.q33,
.q33-m {
  --q33-gold-ink: #7a5717;
  color: var(--ink);
  font-family: var(--font-sans);
}

.q33 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 64px 26px;
  background: var(--paper);
}

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

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

/* head */

.q33-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);
  margin-bottom: 18px;
}

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

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

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

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

/* body */

.q33-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.q33-card-wrap {
  flex: 0 0 auto;
  min-width: 0;
}

.q33-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.q33-card-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q33-card-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.q33-card {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.q33-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 28px;
  row-gap: 2px;
  min-height: 92px;
  padding: 12px 26px;
  border-top: 1px solid var(--line);
}

.q33-row:first-child {
  border-top: 0;
}

.q33-row-k {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q33-row-sub {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.q33-row-s {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  display: flex;
  align-items: center;
}

.q33-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}

.q33-status.is-ready {
  color: var(--muted);
}

.q33-status.is-pass {
  color: var(--pass);
}

.q33-check {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.q33-unknown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  background: var(--paper);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

/* b0 judgement prompt */

.q33-ask {
  flex: 0 0 auto;
  padding: 4px 2px 0;
}

.q33-ask-q {
  margin: 0;
  max-width: 1120px;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

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

/* b1 split */

.q33-split {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q33-verdict {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q33-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.q33-pane {
  min-width: 0;
  padding: 16px 20px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.q33-pane.is-gap {
  background: transparent;
  border: 2px dashed var(--gold);
}

.q33-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.q33-pane-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

.q33-pane.is-deliver .q33-pane-head h3,
.q33-pane.is-deliver .q33-check {
  color: var(--pass);
}

.q33-pane.is-gap .q33-pane-head h3 {
  color: var(--q33-gold-ink);
}

.q33-gap-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q33-pane ul {
  margin: 0;
  padding-left: 1.1em;
}

.q33-pane li {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}

.q33-pane li + li {
  margin-top: 4px;
}

/* foot */

.q33-foot {
  flex: 0 0 104px;
  min-height: 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--gold);
  display: flex;
  align-items: center;
}

.q33-foot-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.q33-foot-k {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--q33-gold-ink);
}

.q33-foot-text {
  margin: 0;
  max-width: 1400px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
}

/* staged reveal */

.q33-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.q33-reveal.is-on {
  opacity: 1;
  transform: none;
}

.q33-reveal.is-reset {
  transition: none !important;
}

/* mobile document flow */

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

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

.q33-m .q33-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.4;
}

.q33-m .q33-head-meta {
  text-align: left;
  margin-top: 8px;
}

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

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

.q33-m .q33-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.q33-m .q33-card-head {
  display: block;
  margin-bottom: 10px;
}

.q33-m .q33-card-head h2 {
  font-size: 20px;
  line-height: 1.5;
}

.q33-m .q33-card-head p {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
}

.q33-m .q33-card {
  border-radius: 10px;
}

.q33-m .q33-row {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 2px;
  min-height: 0;
  padding: 14px 16px;
}

.q33-m .q33-row-k {
  grid-column: 1;
  grid-row: auto;
  font-size: 18px;
  line-height: 1.5;
}

.q33-m .q33-row-sub {
  grid-column: 1;
  grid-row: auto;
  font-size: 15px;
  line-height: 1.6;
}

.q33-m .q33-row-s {
  grid-column: 1;
  grid-row: auto;
  justify-self: start;
  margin-top: 6px;
}

.q33-m .q33-status {
  font-size: 18px;
}

.q33-m .q33-check {
  width: 22px;
  height: 22px;
}

.q33-m .q33-unknown {
  width: 48px;
  height: 48px;
  font-size: 26px;
}

.q33-m .q33-ask {
  padding: 0;
}

.q33-m .q33-ask-q {
  font-size: 24px;
  line-height: 1.5;
}

.q33-m .q33-ask-sub {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.65;
}

.q33-m .q33-split {
  gap: 14px;
}

.q33-m .q33-verdict {
  font-size: 23px;
  line-height: 1.5;
}

.q33-m .q33-pair {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.q33-m .q33-pane {
  padding: 14px 16px 16px;
}

.q33-m .q33-pane-head h3 {
  font-size: 19px;
  line-height: 1.5;
}

.q33-m .q33-pane li {
  font-size: 16px;
  line-height: 1.65;
}

.q33-m .q33-foot {
  flex: none;
  height: auto;
  margin-top: 24px;
  padding-top: 16px;
}

.q33-m .q33-foot-k {
  font-size: 13px;
}

.q33-m .q33-foot-text {
  font-size: 20px;
  line-height: 1.6;
}

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

/* instant and reduced motion */

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

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