/* Kurio's public pages (kurio.vn/de-thi, /cam-nang …): static HTML from scripts/seo/build.mjs, not the app.
   The home page's type and colours (src/features/landing, public/dang-ky.html); fonts self-hosted in public/landing/fonts. */

@font-face {
  font-family: 'Paytone One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing/fonts/paytone-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Paytone One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing/fonts/paytone-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Paytone One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing/fonts/paytone-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/shantell-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/shantell-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/shantell-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/landing/fonts/bevietnam-500-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/landing/fonts/bevietnam-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/landing/fonts/bevietnam-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/bevietnam-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/bevietnam-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/bevietnam-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a2a66;
  --ink-2: #2b4478;
  --muted: #4a5f8c;
  --purple: #572cd1;
  --purple-soft: #efe9ff;
  --yellow: #fed131;
  --yellow-soft: #fff3c2;
  --coral: #ff6b4a;
  --green: #12a150;
  --green-soft: #e3f7ea;
  --red: #d8402a;
  --red-soft: #ffe6e0;
  --paper: #fff6e4;
  --card: #ffffff;
  --line: #e6dcc5;
  --sky-top: #ffd6a3;
  --sky-low: #ffeacb;
  --display: 'Paytone One', 'Be Vietnam Pro', 'Montserrat', sans-serif;
  --hand: 'Shantell Sans', 'Be Vietnam Pro', cursive;
  --text: 'Be Vietnam Pro', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.narrow { max-width: 780px; }
h1, h2, h3 { text-wrap: balance; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 52px); line-height: 1.12; margin: 0 0 14px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 48px 0 14px; }
h3 { font-size: 21px; line-height: 1.35; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 680px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  color: var(--purple);
  font-size: 18px;
  margin-bottom: 6px;
}

/* ---- top: the sky band with the header pill ---- */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 70%, var(--paper) 100%);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 28px;
}
.sky::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3a8 0 36%, rgba(255, 243, 168, 0.45) 37% 56%, rgba(255, 243, 168, 0) 68%);
  pointer-events: none;
}
.top { position: relative; z-index: 2; }
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 0 var(--ink);
  padding: 6px 6px 6px 16px;
}
.pill .logo { display: flex; align-items: center; flex: none; }
.pill .logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a[aria-current='page'] { background: var(--purple-soft); color: var(--purple); }
@media (hover: hover) { .nav a:hover { background: var(--purple-soft); } }
.nav .try {
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  margin-left: 4px;
}
@media (hover: hover) { .nav .try:hover { background: #4720b5; } }
.nav .hide-s { display: none; }
@media (min-width: 760px) { .nav .hide-s { display: inline-block; } }
@media (max-width: 520px) {
  .pill { padding-left: 12px; }
  .pill .logo img { height: 26px; }
  .nav a { padding: 10px 8px; font-size: 15px; }
  .nav .try { padding: 10px 12px; }
}
@media (max-width: 400px) { .nav .hide-xs { display: none; } }

.crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 22px 0 10px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--muted);
}
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.hero { position: relative; z-index: 1; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }
.hero .facts li {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 16px;
}

main { padding-bottom: 40px; }
main > section:first-child > h2:first-child, main > .narrow:first-child > h2:first-child { margin-top: 18px; }
section { scroll-margin-top: 16px; }

/* ---- cards and grids ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  display: block;
  min-width: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 0 var(--ink);
  padding: 20px 22px;
  color: var(--ink);
  text-decoration: none;
}
a.card { transition: transform 0.12s ease, box-shadow 0.12s ease; }
@media (hover: hover) { a.card:hover { transform: translateY(-2px); box-shadow: 0 7px 0 0 var(--ink); } }
a.card:active { transform: translateY(3px); box-shadow: 0 2px 0 0 var(--ink); }
.card h3 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 0; color: var(--ink-2); }
.card .go { display: inline-block; margin-top: 10px; color: var(--purple); font-weight: 700; }
.tag {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--yellow-soft);
  color: #7a5200;
  margin-bottom: 8px;
}

/* the years of a level: one tile per paper */
.years { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); padding: 0; list-style: none; }
.years a {
  display: block;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 0 var(--ink);
  padding: 12px 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.years a span { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--purple); }
@media (hover: hover) { .years a:hover { background: var(--purple-soft); } }

/* tables (paper lists): scroll inside their own box on a phone */
.table { overflow-x: auto; border: 2px solid var(--ink); border-radius: 18px; background: #fff; }
.table table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 17px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--purple-soft); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- a sample question ---- */
.q {
  max-width: 820px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 0 var(--ink);
  padding: 20px 22px 22px;
  margin: 22px 0;
}
.q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.q-no {
  font-family: var(--display);
  font-size: 18px;
  background: var(--purple);
  color: #fff;
  border-radius: 999px;
  padding: 3px 14px;
}
.q-pts { background: var(--yellow-soft); color: #7a5200; border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 16px; }
.q-src { color: var(--muted); font-size: 16px; }
.q-prompt p { font-size: 19px; }
.q-fig { margin: 10px 0 16px; text-align: center; }
.q-fig img { max-height: 340px; width: auto; display: inline-block; border-radius: 10px; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 14px 0 4px; padding: 0; list-style: none; }
.choices.pics { grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.choice {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font: inherit;
  font-size: 19px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #c9bfa8;
  border-radius: 16px;
  padding: 8px 14px 8px 8px;
  cursor: pointer;
}
.choices.pics .choice { flex-direction: column; align-items: center; padding: 10px; }
.choice img { max-height: 120px; width: auto; }
.choice .l {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--purple);
  color: #fff;
}
.choices.pics .choice .l { align-self: flex-start; margin-bottom: -6px; }
@media (hover: hover) { .choice:hover { border-color: var(--purple); } }
.choice:focus-visible, .btn:focus-visible, .nav a:focus-visible, .gap input:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.choice.right { border-color: var(--green); background: var(--green-soft); }
.choice.right .l { background: var(--green); }
.choice.wrong { border-color: var(--red); background: var(--red-soft); }
.choice.wrong .l { background: var(--red); }
.q.answered .choice { cursor: default; }
.gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; }
.gap label { font-weight: 700; }
.gap input {
  font: inherit;
  font-size: 20px;
  width: 9em;
  max-width: 100%;
  padding: 10px 14px;
  border: 2px solid #c9bfa8;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}
.gap input.right { border-color: var(--green); background: var(--green-soft); }
.gap input.wrong { border-color: var(--red); background: var(--red-soft); }
.verdict { font-weight: 700; margin: 10px 0 0; min-height: 0; }
.verdict.ok { color: var(--green); }
.verdict.no { color: var(--red); }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  background: var(--purple);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 0 var(--ink);
  padding: 10px 22px;
  cursor: pointer;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.sun { background: var(--yellow); color: var(--ink); }
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }
.btn .play { font-size: 14px; }

details.sol { margin-top: 16px; border-radius: 16px; background: var(--purple-soft); }
details.sol > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--purple);
  padding: 14px 18px;
  min-height: 52px;
}
details.sol > summary::-webkit-details-marker { display: none; }
details.sol > summary::before { content: '▸ '; }
details.sol[open] > summary::before { content: '▾ '; }
.sol-body { padding: 0 18px 16px; }
.sol-body .ans { font-weight: 700; margin-bottom: 8px; }
.sol-body img { display: block; margin: 10px auto; max-height: 380px; width: auto; border-radius: 10px; background: #fff; }
.katex { font-size: 1.05em; }

/* ---- the call to action band ---- */
.cta {
  margin: 48px 0 8px;
  background: var(--purple);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 6px 0 0 var(--ink);
  padding: 26px 24px;
  display: grid;
  gap: 18px;
  align-items: center;
}
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #ece6ff; }
.cta .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.cta img { width: 220px; justify-self: center; }
@media (min-width: 820px) { .cta { grid-template-columns: 1fr auto; padding: 30px 34px; } .cta img { width: 240px; } }

/* ---- articles (cẩm nang) ---- */
.prose { max-width: 740px; }
.prose p, .prose li { font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--yellow-soft);
  border-left: 5px solid var(--yellow);
  border-radius: 0 14px 14px 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.answer-first {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 8px 0 24px;
}
.answer-first > strong:first-child { display: block; font-family: var(--hand); color: var(--purple); margin-bottom: 4px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 18px; list-style: none; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding: 0 18px 14px; }
.meta { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.sources { font-size: 16px; color: var(--muted); }
.sources li { font-size: 16px; }

/* ---- the "Làm thử" player: the paper's own page in a frame ---- */
dialog.play {
  border: 0;
  padding: 0;
  width: min(100vw, 1000px);
  height: min(100dvh, 720px);
  max-width: 100vw;
  max-height: 100dvh;
  border-radius: 24px;
  background: #f4f1fb;
  overflow: hidden;
}
dialog.play::backdrop { background: rgba(10, 42, 102, 0.55); }
dialog.play iframe { border: 0; width: 100%; height: calc(100% - 56px); display: block; background: #fff; }
dialog.play .bar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 18px;
  font-weight: 700;
}
dialog.play .close {
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 640px) {
  dialog.play { width: 100vw; height: 100dvh; border-radius: 0; }
  dialog.play .bar { padding-top: env(safe-area-inset-top, 0px); height: calc(56px + env(safe-area-inset-top, 0px)); }
  dialog.play iframe { height: calc(100% - 56px - env(safe-area-inset-top, 0px)); }
}

/* ---- footer ---- */
footer.site {
  margin-top: 40px;
  background: var(--ink);
  color: #dfe6ff;
  padding-block: 32px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 16px;
}
footer.site a { color: #fff; }
footer.site .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
footer.site h4 { margin: 0 0 8px; color: #fff; font-size: 17px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 6px; }
footer.site .legal { margin-top: 24px; color: #b8c4e6; }

/* ---- cẩm nang: topic chips, shelves, guide cards with their illustration ---- */
a.eyebrow { text-decoration: none; }
@media (hover: hover) { a.eyebrow:hover { text-decoration: underline; } }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.topics a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--tint, #fff);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.topics a span {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 14px;
}
.topics a[aria-current='page'] { background: var(--ink); color: #fff; }
.topics a[aria-current='page'] span { color: var(--ink); }
@media (hover: hover) { .topics a:hover { box-shadow: 0 3px 0 0 var(--ink); } }

.shelf { margin-top: 8px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.shelf-head h2 { margin-bottom: 6px; }
.shelf-head a { font-weight: 700; }
.shelf > p { margin-bottom: 18px; }

.grid.guides { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card.guide { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.guide .thumb { display: block; aspect-ratio: 3 / 2; background: var(--tint); border-bottom: 2px solid var(--ink); }
.card.guide .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.guide .body { display: block; padding: 16px 20px 20px; }
.card.guide .tag { color: var(--ink); }
.card.guide h3 { font-size: 20px; }
.card.guide p { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

figure.art { margin: 0 0 18px; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 3 / 2; max-width: 740px; }
figure.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
