.q43,
.q43-m {
  --q43-gold-ink: #7a5717;
  --q43-gold-soft: #fbf3e2;
  --q43-gold-line: #e4d2ae;
  --q43-card-line: #d7e1ea;
  --q43-cool-soft: #eef3f8;
  color: var(--ink);
  font-family: var(--font-sans);
}

.q43 *,
.q43-m * {
  box-sizing: border-box;
}

.q43 [hidden],
.q43-m [hidden] {
  display: none !important;
}

.q43 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 52px 64px 26px;
  background: var(--paper);
  overflow: hidden;
}

.q43-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.q43-heading {
  min-width: 0;
}

.q43-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q43-sub {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
}

.q43-head-meta {
  flex: 0 0 auto;
  padding-bottom: 2px;
  text-align: right;
}

.q43-state {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q43-tag {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--q43-gold-ink);
  white-space: nowrap;
}

.q43-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 18px 0 10px;
}

.q43-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.q43-card {
  min-width: 0;
  height: 430px;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 26px;
  border: 1px solid var(--q43-card-line);
  border-radius: 14px;
  background: var(--white);
}

.q43-card-index {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q43-label {
  flex: 0 0 auto;
  height: 112px;
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--control-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 54px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  transition: background-color 220ms ease-out, border-color 220ms ease-out, color 220ms ease-out;
}

.q43-label-text {
  display: block;
}

.q43-card-text {
  flex: 1 1 auto;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  font-size: 28px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
}

.q43-card.is-revealed .q43-label {
  border-style: solid;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.q43-card[data-q43-card="0"].is-revealed .q43-label {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.q43-card[data-q43-card="1"].is-revealed .q43-label {
  border-color: var(--q43-gold-line);
  background: var(--q43-gold-soft);
  color: var(--q43-gold-ink);
}

.q43-card[data-q43-card="2"].is-revealed .q43-label {
  border-color: #b9c9d8;
  background: var(--q43-cool-soft);
  color: var(--navy);
}

.q43-foot {
  flex: 0 0 auto;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 14px;
  border-top: 2px solid var(--gold);
}

.q43-foot-q {
  margin: 0;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q43-foot-sub {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

@keyframes q43-label-rise {
  from {
    opacity: 0;
    transform: translateY(3px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.q43-motion .q43-in {
  animation: q43-label-rise 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.q43.q43-m {
  position: static;
  inset: auto;
  display: block;
  height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.q43-m {
  min-width: 0;
}

.q43-m .q43-head {
  display: block;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.q43-m .q43-title {
  font-size: 28px;
  line-height: 1.38;
}

.q43-m .q43-sub {
  font-size: 16px;
  line-height: 1.75;
}

.q43-m .q43-head-meta {
  margin-top: 10px;
  text-align: left;
}

.q43-m .q43-state {
  font-size: 15px;
  line-height: 1.6;
  white-space: normal;
}

.q43-m .q43-tag {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.q43-m .q43-body {
  display: block;
  padding: 0;
}

.q43-m .q43-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.q43-m .q43-card {
  height: auto;
  min-height: 174px;
  padding: 14px 16px 18px;
}

.q43-m .q43-card-index {
  font-size: 13px;
}

.q43-m .q43-label {
  height: 68px;
  margin-top: 6px;
  font-size: 36px;
}

.q43-m .q43-card.is-revealed .q43-label {
  font-size: 27px;
}

.q43-m .q43-card-text {
  flex: none;
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.7;
}

.q43-m .q43-foot {
  display: block;
  min-height: 0;
  margin-top: 24px;
  padding-top: 14px;
}

.q43-m .q43-foot-q {
  font-size: 24px;
  line-height: 1.45;
}

.q43-m .q43-foot-sub {
  font-size: 16px;
  line-height: 1.7;
}

.q43-m-link {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.is-instant .q43 *,
.is-instant .q43-m * {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .q43 *,
  .q43-m * {
    transition: none !important;
    animation: none !important;
  }
}
