/* Grow Gun site — tokens from the game's web loading screen (Docs/marketing/global-design/README.md §4) */
:root {
  --bg: #0a0b10; --panel: #141826; --panel2: #1b1f2a; --line: #2b3142;
  --gold: #f2c14e; --gold-hi: #ffd978; --gold-dark: #b8853e; --on-gold: #2a1a05;
  --text: #f4ecd8; --body: #d9d2c0; --muted: #b3ad9f; --faint: #8a8f9c;
  --teal: #9ff5ea; --orange: #ff9a2e;
  --title: "Pixelify Sans", Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif; overflow-x: hidden; }
:lang(th) body, body:lang(th) { line-height: 1.7; }
img { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.title-font { font-family: var(--title); font-weight: 700; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 8px 12px; }

/* nav */
.top { border-bottom: 1px solid var(--line); background: rgba(10, 11, 16, .94); position: relative; z-index: 20; }
.top nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.brand span { font-family: var(--title); font-weight: 700; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .tag { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: .06em; padding: 3px 9px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-weight: 600; }
.links { display: flex; align-items: center; gap: 24px; }
.links > a { text-decoration: none; white-space: nowrap; }
.links > a:not(.btn) { color: var(--body); font-weight: 500; }
.links > a:not(.btn):hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-hi); color: var(--on-gold); }
.btn-line { border: 2px solid var(--gold-dark); color: var(--text); font-weight: 600; background: rgba(10, 11, 16, .55); }
.btn-line:hover { border-color: var(--gold); color: var(--text); }

/* language menu */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 14px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { flex: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 190px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); z-index: 30; display: grid; }
.lang li a { display: block; padding: 9px 12px; color: var(--body); text-decoration: none; border-radius: 6px; }
.lang li a:hover { background: var(--panel2); color: var(--text); }
.lang li a[aria-current] { color: var(--gold); font-weight: 700; }

/* store badges: official artwork, same visible height; clear space = 1/4 of the height (Apple) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 56px; width: auto; display: block; }

/* hero */
.hero { background: linear-gradient(90deg, rgba(10, 11, 16, .93) 0%, rgba(10, 11, 16, .8) 45%, rgba(10, 11, 16, .45) 100%), url(/img/meadow.webp) center bottom / cover; border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-logo { width: 320px; height: auto; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-family: var(--title); font-weight: 700; font-size: 56px; line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { max-width: 580px; font-size: 18px; color: var(--body); }
.fine { font-size: 13px; color: var(--muted); max-width: 620px; }
.hero .badges { padding-top: 6px; }
.hero .badge { margin: 0 0 0 0; }
.hero-card { flex: 0 1 340px; display: flex; justify-content: center; }
.hero-card img { width: 320px; height: auto; border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }

/* stats */
.stats { background: var(--panel); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.stat { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--gold); padding-left: 14px; }
.stat b { font-family: var(--title); font-size: 28px; color: var(--gold); line-height: 1.2; }
.stat span { color: var(--body); font-size: 14px; }

/* sections */
.section { padding: 64px 0; }
.section h2 { font-family: var(--title); font-size: 36px; font-weight: 700; line-height: 1.15; }
.section .sub { color: var(--muted); }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* trailer (click to load the YouTube player — nothing from YouTube loads before the click) */
.trailer .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.video { position: relative; display: block; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; border: 3px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 22px 0 16px; background: rgba(10, 11, 16, .86); border: 2px solid var(--gold); border-radius: 30px; color: var(--text); font-weight: 700; font-size: 18px; white-space: nowrap; }
.video:hover .play { background: rgba(10, 11, 16, .95); border-color: var(--gold-hi); }
.note { font-size: 13px; color: var(--faint); }

/* features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.feature { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 22px; color: var(--gold); }
.feature p { color: var(--body); }

/* screens strip */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 12px; margin-top: 20px; scroll-snap-type: x proximity; }
.strip img { flex: none; height: 420px; width: auto; border: 2px solid var(--line); border-radius: 12px; scroll-snap-align: start; }
.strip img.wide { height: 236px; align-self: flex-start; }

/* community */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* five (Korean, + Naver Blog): 3 on top, 2 wider below */
.cards.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards.five .card { grid-column: span 2; }
.cards.five .card:nth-child(n+4) { grid-column: span 3; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--gold-dark); color: var(--text); }
.card.hot { border: 2px solid var(--gold); }
.card .k { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.card .k .ico { flex: none; width: 20px; height: 20px; }
.card .h { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.card .p { color: var(--muted); font-size: 14px; }
.card .go { margin-top: auto; font-weight: 700; color: var(--gold); }

/* final CTA */
.final { background: linear-gradient(180deg, rgba(10, 11, 16, .62), rgba(10, 11, 16, .92)), url(/img/meadow.webp) center 70% / cover; border-top: 1px solid var(--line); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.final img.logo { width: 260px; height: auto; }
.final h2 { font-family: var(--title); font-size: 40px; }
.final .badges { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
footer .info { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
footer .info strong { color: var(--text); font-weight: 600; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
/* footer "cookie settings": a button that looks like the footer links next to it */
.linkbtn { all: unset; cursor: pointer; color: var(--gold); text-decoration: underline; }
.linkbtn:hover { color: var(--gold-hi); }
.linkbtn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* consent banner (site.js): accept and decline look the same; while it is open the phone store bar steps aside */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 16px 20px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); font-size: 14px; color: var(--body); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 auto; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-actions .btn { min-width: 112px; }
.consent-open .storebar { display: none; }

/* sticky store bar (phones) */
.storebar { display: none; }

/* press kit */
.press-head { background: linear-gradient(90deg, rgba(10, 11, 16, .95) 0%, rgba(10, 11, 16, .72) 60%, rgba(10, 11, 16, .45) 100%), url(/img/meadow.webp) center bottom / cover; border-bottom: 1px solid var(--line); }
.press-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.press-head .copy { display: flex; flex-direction: column; gap: 12px; max-width: 700px; min-width: 0; }
.press-head h1 { font-family: var(--title); font-size: 44px; line-height: 1.08; }
.press-head p { font-size: 17px; color: var(--body); }
.press-head .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.press-head img.logo { width: 300px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)); }
.size { font-weight: 500; opacity: .8; }
.facts-wrap { display: flex; flex-wrap: wrap; gap: 40px; }
.facts { flex: 1 1 320px; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; align-self: flex-start; }
.facts h2 { font-size: 26px; color: var(--gold); margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 10px 14px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd.links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.prose { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-size: 30px; }
.prose p, .prose li { color: var(--body); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.callout { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.callout h2 { font-family: Inter, sans-serif; font-size: 18px; color: var(--gold); }
.callout p { font-size: 15px; }
.media-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.dlbox { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.dlbox .btn { justify-content: flex-start; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.shots.tall { grid-template-columns: repeat(3, minmax(0, 220px)); }
figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
figure a { line-height: 0; }
figure img { width: 100%; height: auto; border: 2px solid var(--line); border-radius: 10px; }
figcaption { font-size: 13px; color: var(--muted); }
.art { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.art figure { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; align-items: center; justify-content: space-between; }
.art figure img { border: 0; border-radius: 8px; width: auto; max-width: 100%; max-height: 170px; }
.art figure img.icon { width: 128px; height: 128px; border-radius: 26px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.contact-grid > div { display: flex; flex-direction: column; gap: 10px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* 404 */
.lost { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 48px 16px; }

@media (max-width: 1100px) {
  .links > a.opt { display: none; }
  .cards.four, .cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.five .card, .cards.five .card:nth-child(n+4) { grid-column: auto; }
  .cards.five .card.hot { grid-column: 1 / -1; }
  .art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap { padding-top: 48px; }
  .hero h1 { font-size: 44px; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .cards, .cards.four, .cards.five { grid-template-columns: 1fr; }
  .media-grid, .contact-grid { grid-template-columns: 1fr; }
  .links > a:not(.btn) { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .top nav { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .brand img { width: 40px; height: 40px; border-radius: 9px; }
  .brand span { font-size: 18px; }
  .brand .tag { display: none; }
  /* the menu side keeps its size (the CTA is flex: none and would stick out past the edge); the game name gives way */
  .links { gap: 8px; flex: none; }
  /* long CTAs (ru · es · de) wrap to two lines instead of squeezing the game name to "Grow G…" */
  .links .btn { flex: none; padding: 0 14px; font-size: 15px; max-width: 132px; white-space: normal; }
  .lang summary .lname { display: none; }
  .hero { background: linear-gradient(180deg, rgba(10, 11, 16, .55) 0%, rgba(10, 11, 16, .9) 62%, var(--bg) 100%), url(/img/meadow-960.webp) 30% top / auto 560px no-repeat, var(--bg); }
  .hero .wrap { flex-direction: column; gap: 22px; padding-top: 36px; padding-bottom: 32px; text-align: center; }
  .hero-copy { flex: none; align-items: center; gap: 16px; }
  .hero-logo { width: 240px; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .hero .badges { flex-direction: column; align-items: center; width: 100%; }
  .fine { font-size: 12px; }
  .hero-card { flex: none; }
  .hero-card img { width: 260px; border-radius: 16px; }
  .stats .wrap { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 28px; }
  .trailer .play { min-height: 48px; font-size: 15px; padding: 0 16px 0 12px; }
  .feature div { padding: 16px 18px 20px; }
  .feature h3 { font-size: 19px; }
  .strip img { height: 356px; }
  .strip img.wide { height: 169px; }
  .final .wrap { padding-top: 48px; padding-bottom: 48px; }
  .final img.logo { width: 200px; }
  .final h2 { font-size: 28px; }
  .final .badges { flex-direction: column; }
  footer .wrap { flex-direction: column; padding-bottom: 104px; font-size: 13px; }
  .storebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: center; align-items: center; gap: 12px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 11, 16, .96); border-top: 2px solid var(--gold-dark); transition: transform .2s; }
  .storebar .badge img { height: 44px; }
  .consent { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 14px 16px; font-size: 13px; }
  .consent-actions .btn { flex: 1 1 0; min-width: 0; }
  .js .storebar.away { transform: translateY(110%); }
  .press-head { background-image: linear-gradient(90deg, rgba(10, 11, 16, .95) 0%, rgba(10, 11, 16, .72) 60%, rgba(10, 11, 16, .45) 100%), url(/img/meadow-960.webp); }
  .press-head h1 { font-size: 32px; }
  .press-head img.logo { width: 220px; }
  .press-head .actions .btn { width: 100%; }
  .facts { max-width: none; padding: 20px; }
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .prose h2 { font-size: 26px; }
  .shots, .shots.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art { grid-template-columns: 1fr 1fr; gap: 12px; }
  .art figure { padding: 12px; }
  .art figure img.icon { width: 96px; height: 96px; border-radius: 20px; }
  .dlbox .btn { width: 100%; }
}
@media (max-width: 380px) {
  .storebar .badge img { height: 40px; }
  /* blog header: search + menu + language leave no room for both the game name and the BLOG tag */
  .blog-tag { display: none; }
  .hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .storebar { transition: none; } }
/* Pixelify Sans has no Vietnamese, CJK or Thai glyphs: those headings use the body face instead of a glyph-by-glyph mix */
:lang(vi) h1, :lang(vi) h2, :lang(vi) .title-font, :lang(vi) .stat b, :lang(vi) .brand span { font-family: Inter, system-ui, sans-serif; font-weight: 800; }

/* ---------------------------------------------------------------- official blog (B: dark game magazine,
   Docs/marketing/blog-design) — same tokens as the landing; Korean reads in Noto Sans KR */
.blog {
  --chip-notice-bg: #3a2a0c; --chip-notice-fg: #ffd978; --chip-notice-line: #6b4a12;
  --chip-guide-bg: #0f3b36; --chip-guide-line: #1c5e56;
  --chip-tip-bg: #2a2a4a; --chip-tip-fg: #cfcdf7; --chip-tip-line: #44427a;
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
/* Korean wraps between words (a space), not inside one */
.blog :lang(ko), .blog:lang(ko) { word-break: keep-all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blog-tag { font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 3px 9px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; color: var(--gold); flex: none; }
.blog .links > a.cur { color: var(--gold); font-weight: 700; }
.blog-icon, .blog-menu { display: none; }
.blog-icon, .blog-menu summary { align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; }
.blog-menu { position: relative; }
.blog-menu summary { display: inline-flex; list-style: none; cursor: pointer; color: var(--text); }
.blog-menu summary::-webkit-details-marker { display: none; }
.blog-menu ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 200px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); z-index: 30; }
.blog-menu li a { display: block; padding: 11px 12px; color: var(--body); text-decoration: none; border-radius: 6px; }
.blog-menu li a:hover { background: var(--panel2); color: var(--text); }

.blog-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.blog-chip.notice { background: var(--chip-notice-bg); color: var(--chip-notice-fg); border-color: var(--chip-notice-line); }
.blog-chip.guide { background: var(--chip-guide-bg); color: var(--teal); border-color: var(--chip-guide-line); }
.blog-chip.tips, .blog-chip.series { background: var(--chip-tip-bg); color: var(--chip-tip-fg); border-color: var(--chip-tip-line); }
.blog-chip.draft { background: var(--orange); color: var(--on-gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }

/* head band: the landing's meadow (lists) or the post's own image, darkened (posts) */
.blog-hero { background: linear-gradient(90deg, rgba(10, 11, 16, .95) 0%, rgba(10, 11, 16, .78) 55%, rgba(10, 11, 16, .5) 100%), url(/img/meadow.webp) center bottom / cover; border-bottom: 1px solid var(--line); }
.blog-hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 40px; padding-bottom: 32px; }
.blog-hero .copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 520px; min-width: 0; }
.blog-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 700; }
.blog-hero .lead { font-size: 17px; color: var(--body); max-width: 640px; }
.blog-hero .lead a { font-weight: 600; }
.blog-eyebrow { font-family: var(--title); font-weight: 700; color: var(--teal); font-size: 14px; letter-spacing: .12em; }
.blog-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.blog-crumbs a { color: var(--muted); text-decoration: none; }
.blog-crumbs a:hover { color: var(--text); }
.blog-crumbs span { color: var(--text); }
.blog-search { display: flex; gap: 8px; flex: 0 1 380px; min-width: 260px; }
.blog-search input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(10, 11, 16, .8); color: var(--text); font: inherit; font-size: 15px; }
.blog-search input::placeholder { color: var(--faint); }
.blog-search input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.blog-search .btn { min-height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.blog-hero.post { background: linear-gradient(180deg, rgba(10, 11, 16, .72), rgba(10, 11, 16, .96)), var(--hero-img) center / cover; }
.blog-hero.post .wrap { max-width: 920px; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 36px; }
.blog-hero.post h1 { font-size: 40px; line-height: 1.25; }
.blog-hero.post .lead { font-size: 18px; line-height: 1.65; max-width: none; }
.blog-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--muted); }
.blog-byline .who { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.blog-byline .who img { width: 28px; height: 28px; border-radius: 7px; }
.blog-byline .who span { color: var(--muted); font-weight: 500; }

.blog-main { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 56px; }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.blog-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; text-decoration: none; color: var(--body); font-weight: 600; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.blog-tab:hover { border-color: var(--gold-dark); color: var(--text); }
.blog-tab[aria-current] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.blog-rss { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; }
.blog-pin { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--panel2); border: 2px solid var(--gold-dark); color: var(--text); text-decoration: none; }
.blog-pin .t { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15px; }
.blog-pin .when { flex: none; color: var(--faint); font-size: 13px; }
.blog-pin svg { flex: none; color: var(--gold); }

.blog-lead-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.blog-lead-row.bottom { align-items: start; }
.blog-lead-row.single { grid-template-columns: minmax(0, 1fr); max-width: 400px; margin-left: auto; }
.blog-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); }
.blog-card:hover { border-color: var(--gold-dark); color: var(--text); }
.blog-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.blog-card .in { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.blog-card h2, .blog-card h3 { font-size: 19px; line-height: 1.4; font-weight: 700; }
.blog-card .desc { color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .meta, .blog-rel .when { color: var(--faint); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; }
.blog-card.feature { flex-direction: row; border: 2px solid var(--gold); }
.blog-card.feature img { width: 52%; flex: none; aspect-ratio: auto; height: auto; min-height: 260px; object-fit: cover; }
.blog-card.feature .in { padding: 22px 24px; gap: 10px; justify-content: center; }
.blog-card.feature h2 { font-size: 24px; line-height: 1.35; }
.blog-card.feature .meta { margin-top: 4px; }
.blog-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.blog-panel h2 { font-size: 15px; font-weight: 700; color: var(--teal); letter-spacing: .06em; }
.blog-beginner { border: 3px solid var(--gold-dark); box-shadow: inset 0 0 0 2px var(--on-gold); justify-content: space-between; }
.blog-beginner .beg-top { display: flex; gap: 14px; align-items: center; }
.blog-beginner .beg-top img { width: 60px; height: 112px; object-fit: cover; object-position: top; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.blog-beginner .k { color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.blog-beginner h2 { color: var(--text); font-size: 20px; letter-spacing: 0; line-height: 1.3; }
.blog-beginner .sub { font-size: 13px; color: var(--muted); }
.blog-panel ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.blog-panel ol a { color: var(--text); text-decoration: none; font-weight: 600; }
.blog-panel ol a:hover, .blog-panel ol a[aria-current] { color: var(--gold); }
.blog-panel .now { color: var(--faint); }
.blog-sec { display: flex; flex-direction: column; gap: 14px; }
.blog-sec-head h2 { font-size: 24px; font-weight: 700; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; }
.blog-pager a, .blog-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--body); border: 1px solid var(--line); background: var(--panel); }
.blog-pager a:hover { border-color: var(--gold-dark); }
.blog-pager .cur { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.blog-pager [aria-disabled] { color: var(--faint); }
.blog-pager .gap { border: 0; background: none; min-width: 24px; }
.blog-notices .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.blog-notices .head a { font-size: 13px; font-weight: 600; }
.blog-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.blog-row:last-child { border-bottom: 0; }
.blog-row > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blog-row .t { font-size: 16px; font-weight: 600; line-height: 1.4; }
.blog-row:hover .t { color: var(--gold); }
.blog-row small { color: var(--faint); font-size: 12px; }
.blog-empty, .blog-status { color: var(--muted); font-size: 15px; }
.blog-get { align-items: flex-start; background: linear-gradient(180deg, rgba(20, 24, 38, .6), rgba(10, 11, 16, .95)), url(/img/meadow-960.webp) center 70% / cover; }
.blog-get > img { width: 180px; height: auto; }
.blog-get p { font-size: 14px; color: var(--body); }
.blog-get .badge img { height: 40px; }
.blog-get .badges { gap: 10px; }
.blog-get .fine { font-size: 12px; color: var(--muted); }

/* post */
.blog-post { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 300px); justify-content: space-between; gap: 48px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.blog-article { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.blog-body { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.75; }
.blog-body h2 { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--gold); padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.blog-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.blog-body h3 { font-size: 19px; font-weight: 700; color: var(--text); }
.blog-body p, .blog-body li { color: var(--body); }
.blog-body strong { color: var(--text); }
.blog-body ul, .blog-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.blog-body code { font-size: .9em; background: var(--panel2); padding: 1px 6px; border-radius: 4px; }
.blog-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.blog-body table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--panel); line-height: 1.5; }
.blog-body th, .blog-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.blog-body th { background: var(--panel2); font-weight: 700; color: var(--teal); }
.blog-body tr:last-child td { border-bottom: 0; }
.blog-body figure img { border-radius: 12px; display: block; }
.blog-body figcaption { color: var(--faint); }
.blog-callout { padding: 16px 20px; border-radius: 12px; background: var(--panel); border: 3px solid var(--gold-dark); box-shadow: inset 0 0 0 2px var(--on-gold); display: flex; flex-direction: column; gap: 6px; }
.blog-callout strong { color: var(--gold); font-size: 14px; letter-spacing: .04em; }
.blog-callout p { font-size: 15px; }
.blog-updated { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.blog-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.blog-prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.blog-prevnext a:hover { border-color: var(--gold-dark); color: var(--text); }
.blog-prevnext a.next { text-align: right; grid-column: 2; }
.blog-prevnext span { font-size: 12px; color: var(--faint); }
.blog-prevnext b { font-size: 15px; line-height: 1.4; }
.blog-related { display: flex; flex-direction: column; gap: 14px; }
.blog-related h2 { font-size: 20px; font-weight: 700; }
.blog-related .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.blog-rel { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--text); }
.blog-rel:hover { border-color: var(--gold-dark); color: var(--text); }
.blog-rel img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--bg); display: block; }
.blog-rel .in { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.blog-rel b { font-size: 16px; line-height: 1.4; }
.blog-rel .when { margin-top: 0; font-size: 13px; }
.blog-rel .when .cat { display: none; }
.blog-rel .chips { display: flex; }
.blog-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.blog-toc ol a { font-weight: 500; }
.blog-toc.m, .blog-series.m { display: none; }
.blog-toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--teal); }
.blog-toc summary::-webkit-details-marker { display: none; }
.blog-toc summary::after { content: "▾"; color: var(--muted); }
.blog-toc:not([open]) summary::after { content: "▸"; }
.blog-series { border: 3px solid var(--gold-dark); box-shadow: inset 0 0 0 2px var(--on-gold); }

@media (max-width: 1100px) {
  .blog-grid, .blog-related .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-lead-row { grid-template-columns: minmax(0, 1fr); }
  .blog-lead-row.single { max-width: none; }
  .blog-post { grid-template-columns: minmax(0, 1fr); }
  .blog-side { display: none; }
  .blog-toc.m, .blog-series.m { display: flex; }
}
@media (max-width: 860px) {
  .links > a.blog-icon { display: inline-flex; }
  .blog-menu { display: block; }
  .blog-card.feature { flex-direction: column; }
  .blog-card.feature img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .blog .links .btn-gold { display: none; }
  .blog-tag { font-size: 12px; padding: 2px 7px; }
  /* phones: the smaller copies the page preloads (Tools/gun_site_blog.py preload) */
  .blog-hero:not(.post) { background-image: linear-gradient(90deg, rgba(10, 11, 16, .95) 0%, rgba(10, 11, 16, .78) 55%, rgba(10, 11, 16, .5) 100%), url(/img/meadow-960.webp); }
  .blog-hero.post { background-image: linear-gradient(180deg, rgba(10, 11, 16, .72), rgba(10, 11, 16, .96)), var(--hero-img-sm, var(--hero-img)); }
  .blog-hero .wrap { padding-top: 20px; padding-bottom: 18px; gap: 14px; }
  .blog-hero h1 { font-size: 30px; }
  .blog-hero .lead { font-size: 15px; }
  .blog-hero.post .wrap { padding-top: 20px; gap: 10px; }
  .blog-hero.post h1 { font-size: 26px; line-height: 1.3; }
  .blog-hero.post .lead { font-size: 15px; line-height: 1.6; }
  .blog-byline { font-size: 13px; gap: 6px 12px; }
  .blog-byline .who { width: 100%; }
  .blog-byline .who img { width: 24px; height: 24px; border-radius: 6px; }
  .blog-search { flex: 1 1 100%; min-width: 0; }
  .blog-main { padding-top: 16px; padding-bottom: 40px; gap: 18px; }
  .blog-bar { flex-wrap: nowrap; }
  .blog-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; flex: 1 1 auto; min-width: 0; }
  .blog-tabs::-webkit-scrollbar { display: none; }
  .blog-tab { min-height: 40px; padding: 0 14px; }
  .blog-rss { display: none; }
  .blog-pin { flex-wrap: wrap; gap: 6px 10px; }
  .blog-pin .t { flex-basis: 100%; order: 3; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blog-grid .blog-card { flex-direction: row-reverse; align-items: flex-start; gap: 12px; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .blog-grid .blog-card img { width: 96px; height: 96px; aspect-ratio: auto; flex: none; border-radius: 8px; border: 1px solid var(--line); }
  .blog-grid .blog-card .in { padding: 0; gap: 6px; }
  .blog-grid .blog-card h2, .blog-grid .blog-card h3 { font-size: 17px; }
  .blog-grid .blog-card .desc { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-card.feature .in { padding: 16px; }
  .blog-card.feature h2 { font-size: 20px; }
  .blog-post { padding-top: 16px; padding-bottom: 40px; gap: 16px; }
  .blog-body { font-size: 16px; line-height: 1.7; }
  .blog-body h2 { font-size: 21px; padding-top: 16px; margin-top: 6px; }
  .blog-body h3 { font-size: 17px; }
  .blog-body ul, .blog-body ol { padding-left: 22px; }
  .blog-body table { font-size: 14px; }
  .blog-body th, .blog-body td { padding: 8px 10px; }
  .blog-callout { padding: 14px 16px; }
  .blog-updated { flex-direction: column; font-size: 13px; padding: 12px 0; }
  .blog-prevnext { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .blog-prevnext a.next { grid-column: auto; }
  .blog-related .list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .blog-rel { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
  .blog-rel img { width: 88px; height: 56px; flex: none; aspect-ratio: auto; border-radius: 6px; }
  .blog-rel .chips { display: none; }
  .blog-rel .when .cat { display: inline; }
  .blog-rel b { font-size: 14px; }
  .blog-rel .when { font-size: 12px; }
}
