:root {
  --paper: #FFFBF2;
  --dot: #E6DEC8;
  --ink: #2B211E;
  --card-bg: #FFFDF8;
  --sky: #CFE8FF;
  --mint: #CCF2E0;
  --coral: #FFD5CA;
  --lilac: #E6DAFF;
  --butter: #FFF0B5;
  --border-w: 2.5px;
  --shadow-offset: 5px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #F3EDE0;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.92em;
}

.poster-viewport {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 14px;
}

/* Exact A4 1:1.4142 aspect poster canvas (1080 x 1528) */
.poster-sheet {
  position: relative;
  width: 1080px;
  min-height: 1528px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.9px, transparent 1.9px);
  background-size: 22px 22px;
  background-position: 8px 8px;
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(43, 33, 30, 0.14);
  padding: 22px 34px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

/* Export & Print mode strips outer chrome so canvas is 100% pure poster */
body.export-mode {
  background: var(--paper);
}

body.export-mode .poster-viewport {
  padding: 0;
  display: block;
}

body.export-mode .poster-sheet {
  width: 1080px;
  min-height: 1528px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  justify-content: space-between;
}

.export-only-pill {
  display: none;
  align-items: center;
  gap: 5px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
}

body.export-mode .no-export {
  display: none !important;
}

body.export-mode .export-only-pill {
  display: inline-flex;
}

body.export-mode .tuples-mascot-wrap {
  justify-content: center;
  padding-left: 0;
}

body.export-mode .tuples-mascot-wrap .mascot-svg {
  width: 244px;
}

body.export-mode .tuple-lock-bar {
  justify-content: center;
  gap: 12px;
}

/* Top Controls (SFX Toggle) */
.top-controls {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 30;
}

.sfx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2.2px solid var(--ink);
  background: var(--card-bg);
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--butter);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sfx-btn:hover {
  transform: translate(-1px, -1px);
  background: var(--butter);
}

.sfx-btn[aria-pressed="false"] {
  background: #F4EFE3;
  opacity: 0.8;
}

.sfx-btn[aria-pressed="false"] .sfx-wave {
  opacity: 0.25;
}

.icon-14 {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.icon-13 {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Curved Hand-Drawn Connector Overlay */
.connector-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* HEADER */
.poster-header {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  min-height: 146px;
  z-index: 2;
}

.header-doodle {
  width: 175px;
  height: 132px;
  pointer-events: none;
}

.title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.poster-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.title-line {
  font-size: 64px;
  text-shadow: 4.5px 4.5px 0 var(--coral);
}

.title-vs {
  font-size: 62px;
}

.subtitle-pill {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  border: 2.2px solid var(--ink);
  background: var(--butter);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  box-shadow: 3px 3px 0 var(--coral);
}

/* TWO-COLUMN GRID */
.columns-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* KAWAII CARDS */
.kawaii-card {
  position: relative;
  background: var(--card-bg);
  border: var(--border-w) solid var(--ink);
  border-radius: 26px;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-lists {
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sky);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-mint {
  background: var(--mint);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--mint);
  padding: 13px 16px 15px;
}

.card-coral {
  background: var(--coral);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--coral);
  padding: 13px 16px 14px;
}

.card-tuples {
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--lilac);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* CARD HEADERS */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: var(--border-w) solid var(--ink);
  border-radius: 23px 23px 0 0;
}

.header-blue {
  background: var(--sky);
}

.header-lilac {
  background: var(--lilac);
}

.card-header h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.syntax-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 11px;
  background: var(--card-bg);
  border: 2.2px solid var(--ink);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 16px;
}

.card-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: space-between;
}

/* MASCOT STAGES */
.mascot-stage {
  position: relative;
  background: #FFF9EC;
  border: 2px dashed #D6CBB2;
  border-radius: 18px;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mini-action-arc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: -4px;
}

.arc-tag {
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
}

.tag-mint {
  background: var(--mint);
  transform: rotate(-7deg) translateY(3px);
}

.tag-butter {
  background: var(--butter);
  transform: translateY(-2px);
}

.tag-coral {
  background: var(--coral);
  transform: rotate(7deg) translateY(3px);
}

.mascot-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mascot-svg {
  width: 248px;
  height: auto;
  display: block;
  overflow: visible;
}

/* PLAYGROUND INSIDE LISTS CARD */
.playground-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.live-blocks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 2px 4px;
}

.list-block {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 9px;
  border-radius: 11px;
  border: 2.3px solid var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 2.5px 2.5px 0 rgba(43, 33, 30, 0.22);
}

.list-block .blk-idx {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.72;
  line-height: 1;
}

.list-block .blk-val {
  line-height: 1.15;
}

.blk-c0 { background: var(--sky); }
.blk-c1 { background: var(--mint); }
.blk-c2 { background: var(--coral); }
.blk-c3 { background: var(--lilac); }
.blk-c4 { background: var(--butter); }

.live-code-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 13px;
}

.live-status {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sky);
  border: 1.8px solid var(--ink);
  white-space: nowrap;
}

.playground-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

/* KAWAII INTERACTIVE BUTTONS */
.kawaii-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 11px;
  border: 2.2px solid var(--ink);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.kawaii-btn:hover {
  transform: translate(-1px, -1.5px);
  box-shadow: 3.5px 3.5px 0 var(--ink);
}

.kawaii-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-mint { background: var(--mint); }
.btn-coral { background: var(--coral); }
.btn-butter { background: var(--butter); }
.btn-cream { background: #FFFDF8; font-family: "Fredoka", sans-serif; font-size: 14px; padding: 4px 9px; }
.btn-coral-strong { background: var(--coral); font-family: "Fredoka", sans-serif; font-size: 13.5px; padding: 6px 12px; }

.tuples-mascot-wrap {
  justify-content: flex-start;
  padding-left: 2px;
}

.tuples-mascot-wrap .mascot-svg {
  width: 230px;
}

/* TUPLE LOCK TEST & ERROR BUBBLE */
.tuple-lock-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tuple-data-pill {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 13px;
}

.error-bubble {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  width: 204px;
  background: var(--coral);
  border: 2.4px solid var(--ink);
  border-radius: 15px;
  padding: 7px 10px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

.error-bubble::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: -8px;
  width: 13px;
  height: 13px;
  background: var(--coral);
  border-left: 2.4px solid var(--ink);
  border-bottom: 2.4px solid var(--ink);
  transform: rotate(45deg);
}

.bubble-title {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 11.8px;
  color: var(--ink);
}

.bubble-sub {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  color: #4A332D;
}

/* BULLET LISTS & CODE BOXES */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14.5px;
  line-height: 1.32;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: -1px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.code-box-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.code-box {
  flex: 1 1 auto;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 13px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.48;
  box-shadow: 3px 3px 0 #EFE7D4;
}

.tuple-code-box {
  font-size: 12.6px;
  line-height: 1.46;
}

.code-note {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: #6B564E;
}

.tok-num { color: #1B5E9E; }
.tok-str { color: #B44131; }

.corner-doodle {
  width: 66px;
  height: 56px;
  flex-shrink: 0;
}

.chest-doodle {
  width: 68px;
  height: 58px;
}

/* REAL-LIFE PILLS */
.reallife-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.row-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 13px;
  margin-right: 2px;
}

.reallife-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
}

/* MINT METHODS CARD */
.header-mint-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.header-mint-inline h3,
.coral-top h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.mini-badge {
  padding: 2px 9px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #FFFDF8;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 11.5px;
}

.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}

.method-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #FFFDF8;
  border: 2px solid var(--ink);
  border-radius: 11px;
  padding: 4.5px 8px;
  font-size: 12px;
}

.method-pill code {
  font-size: 11.8px;
  color: #164E63;
}

.method-pill span {
  font-weight: 700;
  font-size: 11.5px;
  color: #463832;
  text-align: right;
}

.method-wide {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 12px;
}

/* CORAL TUPLE RULES CARD */
.coral-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.coral-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coral-list li {
  background: #FFFDF8;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 5.5px 10px;
  font-size: 12.8px;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.hint-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #5A463F;
}

/* INTERACTIVE INDEXING & SLICING STRIP */
.indexing-strip {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border: var(--border-w) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--butter);
  padding: 11px 18px;
  display: grid;
  grid-template-columns: 1.2fr auto 0.85fr;
  align-items: center;
  gap: 16px;
}

.strip-left {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.strip-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.strip-badge {
  padding: 3px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--butter);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
}

.strip-sub {
  font-weight: 700;
  font-size: 12.5px;
  color: #5A463F;
}

.index-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.idx-chip {
  padding: 4px 11px;
  border-radius: 10px;
  border: 2.2px solid var(--ink);
  background: #FFFDF8;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--sky);
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.idx-chip:hover {
  transform: translateY(-2px);
  background: var(--sky);
}

.idx-chip.is-active {
  background: var(--butter);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transform: translateY(-1px);
}

.strip-blocks {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seq-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.pos-idx,
.neg-idx {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  color: #6B564E;
}

.seq-block {
  width: 50px;
  height: 40px;
  border-radius: 12px;
  border: 2.4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 3px 3px 0 rgba(43, 33, 30, 0.18);
  transition: box-shadow 0.2s ease;
}

.seq-cell.is-selected .seq-block {
  box-shadow: 0 0 0 3px var(--butter), 4px 4px 0 var(--ink);
}

.seq-cell.is-selected .pos-idx,
.seq-cell.is-selected .neg-idx {
  color: var(--ink);
}

.seq-cell.is-dimmed {
  opacity: 0.5;
}

.blk-blue { background: var(--sky); }
.blk-mint { background: var(--mint); }
.blk-coral { background: var(--coral); }
.blk-lilac { background: var(--lilac); }

.strip-output {
  background: #FFF9EC;
  border: 2.2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 3px 3px 0 var(--mint);
}

.out-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B564E;
}

.strip-output code {
  font-size: 13px;
  color: var(--ink);
}

/* BOTTOM COMPARISON SECTION */
.bottom-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 142px 1fr 142px;
  align-items: center;
  gap: 14px;
}

.side-tags {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.float-tag-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-tags-left .float-tag-wrap {
  justify-content: flex-start;
}

.side-tags-right .float-tag-wrap {
  justify-content: flex-end;
}

.tag-offset {
  transform: translateX(10px);
}

.tag-offset-left {
  transform: translateX(-10px);
}

.side-pill {
  padding: 5px 14px;
  border-radius: 999px;
  border: 2.3px solid var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 3px 3px 0 rgba(43, 33, 30, 0.16);
}

.pill-blue { background: var(--sky); transform: rotate(-4deg); }
.pill-mint { background: var(--mint); transform: rotate(2deg); }
.pill-lilac { background: var(--lilac); transform: rotate(-3deg); }
.pill-coral { background: var(--coral); transform: rotate(4deg); }

.mini-tag-doodle {
  width: 30px;
  height: 28px;
  flex-shrink: 0;
}

/* COMPARISON TABLE */
.table-card {
  background: var(--card-bg);
  border: var(--border-w) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sky);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13.4px;
}

.compare-table th,
.compare-table td {
  padding: 7.5px 12px;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  text-align: left;
  vertical-align: middle;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: none;
}

.compare-table thead th {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  padding: 9px 10px;
}

.col-feature {
  width: 24%;
  background: var(--butter);
}

.col-list {
  width: 38%;
  background: var(--sky);
}

.col-tuple {
  width: 38%;
  background: var(--coral);
}

.compare-table tbody th {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 13.8px;
  background: #FFF9EC;
}

.compare-table tbody td {
  font-weight: 700;
  line-height: 1.25;
}

/* FOOTER */
.poster-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4D3D37;
}

.footer-star {
  color: #E07A68;
  font-size: 13px;
}

/* RESPONSIVE TABLET / PHONE ADAPTATION */
@media (max-width: 1120px) {
  body:not(.export-mode) .poster-viewport {
    padding: 10px;
  }

  body:not(.export-mode) .poster-sheet {
    width: 100%;
    max-width: 1080px;
    min-height: auto;
    padding: 20px 18px 18px;
  }
}

@media (max-width: 900px) {
  body:not(.export-mode) .connector-layer {
    display: none;
  }

  body:not(.export-mode) .poster-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 24px;
  }

  body:not(.export-mode) .header-doodle {
    display: none;
  }

  body:not(.export-mode) .title-line,
  body:not(.export-mode) .title-vs {
    font-size: clamp(34px, 8vw, 56px);
  }

  body:not(.export-mode) .columns-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body:not(.export-mode) .indexing-strip {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body:not(.export-mode) .bottom-section {
    grid-template-columns: 1fr;
  }

  body:not(.export-mode) .side-tags {
    display: none;
  }
}

@media (max-width: 580px) {
  .methods-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 6px 7px;
  }
}

/* PRINT STYLESHEET FOR SINGLE-PAGE A4 */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    height: 297mm;
    background: var(--paper) !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .poster-viewport {
    padding: 0 !important;
    display: block;
  }

  .poster-sheet {
    width: 1080px !important;
    min-height: 1528px !important;
    height: 1528px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    justify-content: space-between !important;
    zoom: 0.734;
    transform-origin: top left;
  }

  .no-export {
    display: none !important;
  }

  .export-only-pill {
    display: inline-flex !important;
  }

  .tuples-mascot-wrap {
    justify-content: center !important;
    padding-left: 0 !important;
  }

  .tuples-mascot-wrap .mascot-svg {
    width: 244px !important;
  }

  .tuple-lock-bar {
    justify-content: center !important;
    gap: 12px !important;
  }
}
