/* Swift in Practice — public site.
   Source of truth: the Stitch screen "Swift in Practice - Home (Refined)" (project 7659287877720991962).
   Every size, colour and spacing below is that screen's Tailwind v3 value, written out by hand so the
   site needs no CSS toolchain. The article, search and 404 layouts come from their own Stitch screens,
   re-skinned with the Home palette, header and footer. */

:root {
  /* Home (Refined) brand colours */
  --sip-dark: #070D1E;
  --sip-navy: #0B132B;
  --sip-surface: #111C3A;
  --sip-card: #0F1A34;
  --sip-border: #1E2D56;
  --sip-blue: #2E7BFF;
  --sip-gold: #F59E0B;
  --sip-gold-light: #FBBF24;
  --sip-gold-hover: #D97706;
  --sip-footer: #050A17;
  --sip-raised: #16244A;
  --sip-raised-2: #22325F;
  /* Tailwind slate / accents used by the screens */
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --blue-300: #93c5fd;
  --purple-400: #c084fc;
  --green-300: #86efac;
  --red-500: #ef4444;
  --sip-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  --sip-font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;
  --sip-font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --sip-glow-gold: 0 0 25px -5px rgba(245, 158, 11, 0.35);
  --sip-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --sip-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --sip-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --sip-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --sip-ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

/* Tailwind preflight (the parts these screens rely on) */
*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--sip-border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--sip-font-sans); scroll-behavior: smooth; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, blockquote, figure, pre, dl, dd, hr { margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, pre, samp { font-family: var(--sip-font-mono); font-size: 1em; }
button, input { font: inherit; color: inherit; margin: 0; padding: 0; background: transparent; line-height: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sip-dark);
  color: var(--slate-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--sip-gold); color: #000; }
main { flex-grow: 1; }
:focus-visible { outline: 2px solid var(--sip-gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.wrap-wide { max-width: 90rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.gold-text { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(to right, var(--sip-gold), var(--sip-gold-light)); }

/* ---------------------------------------------------------------- Header (MainHeader) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(11 19 43 / 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(30 45 86 / 0.6); }
.site-header .wrap { height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
/* The bird itself, scaled down, on a card-coloured tile. */
.brand-mark { width: 2.5rem; height: 2.5rem; flex-shrink: 0; border: 1px solid var(--sip-border); border-radius: 0.75rem; padding: 0.125rem; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, rgb(46 123 255 / 0.22), var(--sip-card) 70%); box-shadow: 0 4px 6px -1px #172554, 0 2px 4px -2px #172554; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.25)); transition: transform 150ms var(--sip-ease); }
.brand:hover .brand-mark img { transform: scale(1.1); }
.brand-name { display: flex; align-items: center; gap: 0.375rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; white-space: nowrap; }
.brand-name span { font-weight: 400; color: var(--slate-300); }
.site-nav { display: none; align-items: center; font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--slate-300); }
.site-nav a + a { margin-left: 2rem; }
.site-nav a { transition: color 150ms var(--sip-ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sip-gold); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.site-nav .nav-support { padding: 0.25rem 0.75rem; border: 1px solid var(--sip-border); border-radius: 9999px; font-size: 0.9375rem; color: var(--slate-200); }
.site-nav .nav-support:hover, .site-nav .nav-support[aria-current="page"] { border-color: var(--sip-gold); color: var(--sip-gold); }
.menu-button { padding: 0.5rem; border-radius: 0.5rem; color: var(--slate-200); }
.menu-button:hover, .menu-button[aria-expanded="true"] { color: #fff; background: rgb(17 28 58 / 0.6); }
.menu-button svg { width: 1.375rem; height: 1.375rem; }
@media (min-width: 1024px) { .site-nav { display: flex; } .menu-button { display: none; } }
/* Below 1024px the primary nav is a drop-down under the header, opened by the menu button. */
@media (max-width: 1023px) {
  .site-header .wrap { position: relative; }
  .site-header.menu-open .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; background: var(--sip-dark); border-bottom: 1px solid var(--sip-border); box-shadow: var(--sip-shadow-xl); }
  .site-header.menu-open .site-nav a { margin: 0; padding: 0.75rem 0.25rem; border-bottom: 1px solid rgb(30 45 86 / 0.6); font-size: 1.0625rem; }
  .site-header.menu-open .site-nav .nav-support { margin-top: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--sip-border); text-align: center; }
}
.search-button { padding: 0.5rem; border-radius: 0.5rem; color: var(--slate-300); transition: color 150ms var(--sip-ease), background-color 150ms var(--sip-ease); }
.search-button:hover { color: #fff; background: rgb(17 28 58 / 0.6); }
.search-button svg { width: 1.25rem; height: 1.25rem; }
.subscribe-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; background: var(--sip-gold); color: #000; box-shadow: var(--sip-glow-gold); transition: all 200ms var(--sip-ease); white-space: nowrap; }
.subscribe-button:hover { background: var(--sip-gold-light); box-shadow: var(--sip-shadow-lg); }
/* Narrow phones (320px): keep brand, search and Subscribe on one row. */
@media (max-width: 639px) { .brand { gap: 0.5rem; } .brand-mark { width: 2.25rem; height: 2.25rem; } .brand-name { font-size: 1.0625rem; } .header-actions { gap: 0.25rem; } .search-button, .menu-button { padding: 0.375rem; } .subscribe-button { margin: 0 0.25rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; } }
/* 320px: the wordmark keeps "Swift" and drops "in Practice"; the brand link keeps its full aria-label. */
@media (max-width: 359px) { .brand-name > span { display: none; } }

/* ---------------------------------------------------------------- Buttons */
.btn-primary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 9999px; font-size: 1rem; line-height: 1.5rem; transition: all 150ms var(--sip-ease); }
.btn-primary { font-weight: 600; background: var(--sip-gold); color: #000; box-shadow: var(--sip-glow-gold); }
.btn-primary:hover { background: var(--sip-gold-light); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }
.btn-outline { font-weight: 500; color: #fff; border: 1px solid var(--slate-600); }
.btn-outline:hover { border-color: var(--sip-gold); color: var(--sip-gold); }

/* ---------------------------------------------------------------- Shared hero pieces (listing pages) */
.hero-glow { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.hero-glow-blue { top: 25%; right: 25%; width: 24rem; height: 24rem; background: rgb(46 123 255 / 0.2); }
.eyebrow-modes { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); }
.eyebrow-modes a:hover { color: var(--slate-200); }
.eyebrow-modes b { color: var(--sip-gold); font-weight: 700; }
.hero-description { max-width: 36rem; font-size: 1rem; line-height: 1.625; color: var(--slate-400); }
.hero-actions { padding-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------------------------------------------------------------- Home banner (layered "Swift in Practice" header art)
   Desktop (lg+): the layers sit where they are in the original 2172×724 artwork; sizes use container
   units so the composition scales as one picture. Below lg the same layers stack: copy on the warm
   side of the plate, then the bird crossing into a navy band that carries the code. */
.banner { position: relative; overflow: hidden; background: var(--sip-navy); border-bottom: 1px solid rgb(30 45 86 / 0.5); container-type: inline-size; }
.banner-stage { position: relative; display: flex; flex-direction: column; padding: 2.5rem 1.25rem 2rem; }
.banner-bg { position: absolute; inset: 0 0 auto 0; height: 30rem; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, var(--sip-navy) 98%); }
.banner-glow { position: absolute; inset: 0 0 auto 0; height: 30rem; background: radial-gradient(ellipse 85% 55% at 35% 32%, rgba(255, 249, 240, 0.78), rgba(255, 249, 240, 0) 75%); pointer-events: none; }
.banner-shade { display: none; }
.banner-copy { position: relative; z-index: 2; color: var(--sip-navy); }
.banner-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.banner-chip { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.5em 0.6em 0.5em 0.9em; border: 1px solid rgb(30 41 59 / 0.18); border-radius: 9999px; background: rgb(255 255 255 / 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1e293b; box-shadow: 0 1px 2px rgb(15 23 42 / 0.08); transition: background-color 150ms var(--sip-ease), border-color 150ms var(--sip-ease), color 150ms var(--sip-ease), transform 150ms var(--sip-ease); }
.banner-chip:hover, .banner-chip:focus-visible { background: rgb(255 255 255 / 0.85); border-color: var(--sip-gold); color: var(--sip-gold-hover); transform: translateY(-1px); }
.banner-rule { display: block; width: 2.5rem; height: 3px; margin: 1rem 0 1.1rem; border-radius: 2px; background: var(--sip-gold); }
.banner h1 { font-size: 2.75rem; line-height: 1.05; font-weight: 400; letter-spacing: -0.035em; color: var(--sip-navy); }
.banner h1 strong { font-weight: 800; }
.banner-tagline { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.5; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: #1e293b; }
.banner-platforms { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; }
.banner-platforms .banner-chip { padding: 0.45em 0.9em 0.45em 0.7em; letter-spacing: 0; }
.banner-platforms svg { width: 1.35em; height: 1.35em; flex-shrink: 0; color: var(--sip-gold-hover); }
.banner-latest { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.75rem 1.5rem; border-radius: 9999px; background: var(--sip-navy); color: #fff; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; box-shadow: var(--sip-shadow-lg); transition: all 150ms var(--sip-ease); }
.banner-latest:hover { background: var(--sip-gold); color: #000; }
.banner-bird { position: relative; z-index: 3; width: min(100%, 26rem); margin: 0.5rem auto 0.75rem; filter: drop-shadow(0 18px 30px rgba(245, 158, 11, 0.22)); }
.banner-code { position: relative; z-index: 1; align-self: center; margin-top: -0.5rem; font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1.55; color: var(--slate-200); }
.banner-code p { white-space: pre; }
.banner-code .l1 { padding-left: 1.5em; } .banner-code .l2 { padding-left: 3em; } .banner-code .l3 { padding-left: 4.5em; }
.banner-code .i { color: var(--sip-gold); } .banner-code .k { color: #60a5fa; } .banner-code .t { color: var(--blue-300); }
.banner-code .c { color: var(--slate-300); opacity: 0.85; }
.banner-motto { position: relative; z-index: 1; margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.8em; font-size: 0.75rem; line-height: 1.2; font-weight: 800; letter-spacing: 0.1em; white-space: nowrap; text-transform: uppercase; color: var(--sip-gold); text-shadow: 0 0 18px rgba(245, 158, 11, 0.55), 0 2px 10px rgba(7, 13, 30, 0.6); }
.banner-motto span { flex-shrink: 0; width: 3em; height: 4px; border-radius: 9999px; background: var(--sip-gold); box-shadow: var(--sip-glow-gold); }

/* ---------------------------------------------------------------- Section headings + post cards (LatestBlogSection) */
.section { padding: 4rem 0; background: var(--sip-navy); }
.section-dark { background: var(--sip-dark); }
.section-head { margin-bottom: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.section-head h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.section-head p { margin-top: 0.25rem; font-size: 1rem; line-height: 1.5rem; color: var(--slate-400); }
.more-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--sip-gold); transition: color 150ms var(--sip-ease); white-space: nowrap; }
.more-link:hover { color: var(--sip-gold-light); }
.more-link span { transition: transform 150ms var(--sip-ease); }
.more-link:hover span { transform: translateX(0.25rem); }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sip-border); border-radius: 1rem; background: var(--sip-card); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(245, 158, 11, 0.2); }
.post-media { position: relative; height: 11rem; overflow: hidden; background-image: linear-gradient(to bottom right, rgb(30 58 138 / 0.6), var(--sip-navy)); }
.post-media { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.motif-package { background-image: linear-gradient(to bottom right, #1e1b4b, var(--sip-navy)); }
.motif-chart { background-image: linear-gradient(to bottom right, var(--slate-900), #172554); }
.motif-headset { background-image: linear-gradient(to bottom right, #0c1836, var(--sip-navy)); }
.m-phone { width: 6rem; height: 10rem; display: flex; flex-direction: column; padding: 0.375rem; overflow: hidden; border: 2px solid var(--slate-700); border-radius: 1rem; background: var(--slate-900); box-shadow: var(--sip-shadow-xl); transform: rotate(2deg); }
.m-phone i { width: 2rem; height: 0.25rem; margin: 0 auto 0.25rem; border-radius: 9999px; background: var(--slate-700); }
.m-phone b { flex-grow: 1; border-radius: 0.5rem; background-image: linear-gradient(to bottom, var(--sip-gold), var(--sip-blue)); opacity: 0.85; }
.m-package { position: relative; width: 6rem; height: 6rem; display: flex; align-items: center; justify-content: center; }
.m-package i { position: absolute; width: 4rem; height: 4rem; border-radius: 0.75rem; background: rgb(37 99 235 / 0.7); transform: translateY(0.75rem) rotate(-12deg); filter: blur(1px); }
.m-package b { position: absolute; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; border: 1px solid #60a5fa; border-radius: 0.75rem; background: var(--sip-blue); box-shadow: var(--sip-shadow-lg); font-size: 1.25rem; line-height: 1.75rem; color: #fff; }
.m-chart { width: 8rem; height: 5rem; display: flex; align-items: flex-end; gap: 0.375rem; padding: 0 0.5rem 0.25rem; border-bottom: 1px solid var(--slate-700); border-left: 1px solid var(--slate-700); }
.m-chart i { width: 0.75rem; border-radius: 0.25rem 0.25rem 0 0; background: var(--sip-blue); }
.m-chart i:nth-child(1) { height: 2rem; }
.m-chart i:nth-child(2) { height: 3.5rem; }
.m-chart i:nth-child(3) { height: 4rem; background: var(--sip-gold); box-shadow: var(--sip-glow-gold); }
.m-chart i:nth-child(4) { height: 2.75rem; }
.m-chart i:nth-child(5) { background: var(--sip-gold-light); }
.m-headset { width: 7rem; height: 3.5rem; display: flex; align-items: center; justify-content: space-around; padding: 0 0.5rem; border: 2px solid rgb(96 165 250 / 0.8); border-radius: 9999px; background-image: linear-gradient(to right, #172554, var(--slate-900), #172554); box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); }
.m-headset i { width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid rgb(147 197 253 / 0.4); background: rgb(59 130 246 / 0.3); }
.post-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; }
.post-category { display: inline-block; margin-bottom: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sip-gold); }
.post-card h3 { font-size: 1.125rem; line-height: 1.375; font-weight: 700; color: #fff; transition: color 150ms var(--sip-ease); }
.post-card h3:hover { color: var(--sip-gold-light); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-summary { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--slate-400); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.post-meta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(30 45 86 / 0.6); font-size: 11px; font-weight: 500; color: var(--slate-500); }

/* ---------------------------------------------------------------- Quote + platforms (PlatformBarSection) */
.platform-bar { padding: 2.5rem 0; background: var(--sip-dark); border-top: 1px solid rgb(30 45 86 / 0.7); border-bottom: 1px solid rgb(30 45 86 / 0.7); }
.support-band { padding: 3rem 0 0; background: var(--sip-navy); }
.support-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--sip-border); border-radius: 1rem; background: var(--sip-card); box-shadow: var(--sip-shadow-md); }
.support-card h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.support-card p { margin-top: 0.5rem; max-width: 40rem; color: var(--slate-300); }
.support-card-action { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.support-card-action .btn-primary { padding: 0.75rem 1.5rem; }
.support-card-action small { font-size: 0.75rem; line-height: 1rem; color: var(--slate-500); max-width: 18rem; }
@media (min-width: 768px) { .support-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.75rem 2rem; } .support-card-action { align-items: center; text-align: center; flex-shrink: 0; } }
.platform-bar .wrap { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
.motto-quote { padding: 0.25rem 0 0.25rem 1.25rem; border-left: 2px solid var(--sip-gold); }
.motto-quote blockquote { font-family: var(--sip-font-serif); font-style: italic; font-weight: 500; font-size: 1.25rem; line-height: 1.75rem; color: #fff; }
.motto-quote p { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sip-gold); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.platform { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.platform > span { font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--slate-300); transition: color 150ms var(--sip-ease); }
.platform:hover > span { color: var(--sip-gold); }
.platform .o { border: 2px solid var(--slate-400); transition: border-color 150ms var(--sip-ease); }
.platform .f { background: var(--slate-400); transition: background-color 150ms var(--sip-ease); }
.platform:hover .o { border-color: var(--sip-gold); }
.platform:hover .f { background: var(--sip-gold); }
.pi { display: flex; flex-direction: column; align-items: center; }
.pi-phone { width: 2rem; height: 3rem; border-radius: 0.5rem; justify-content: space-between; padding: 0.25rem 0; }
.pi-tablet { width: 2.75rem; height: 3.5rem; border-radius: 0.5rem; justify-content: space-between; padding: 0.25rem 0; }
.pi-speaker { width: 0.75rem; height: 0.125rem; border-radius: 0.25rem; background: var(--slate-500); }
.pi-button { width: 0.375rem; height: 0.375rem; border-radius: 9999px; }
.pi-mac { width: 3.5rem; height: 3rem; justify-content: flex-end; }
.pi-mac-screen { width: 3rem; height: 2rem; border-radius: 0.375rem 0.375rem 0 0; }
.pi-mac-base { width: 3.5rem; height: 0.25rem; border-radius: 0 0 0.25rem 0.25rem; }
.pi-watch { width: 2.25rem; height: 3rem; justify-content: center; }
.pi-band { width: 1rem; height: 0.375rem; background: var(--slate-600); }
.pi-band.top { border-radius: 0.25rem 0.25rem 0 0; }
.pi-band.bottom { border-radius: 0 0 0.25rem 0.25rem; }
.pi-watch-face { width: 1.75rem; height: 2rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; }
.pi-watch-face i { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--sip-gold); }
.pi-tv { width: 3.5rem; height: 3rem; justify-content: center; }
.pi-tv-screen { width: 3rem; height: 2rem; border-radius: 0.25rem; }
.pi-tv-stand { width: 1rem; height: 0.25rem; margin-top: 0.125rem; background: var(--slate-500); }
.pi-vision { width: 3.5rem; height: 3rem; justify-content: center; }
.pi-vision-band { width: 3rem; height: 1.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: space-around; padding: 0 0.25rem; }
.pi-vision-band i { width: 0.625rem; height: 0.625rem; border-radius: 9999px; }

/* ---------------------------------------------------------------- Newsletter (NewsletterSection) */
.newsletter { position: relative; overflow: hidden; padding: 4rem 0; background: var(--sip-navy); }
.newsletter-inner { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; padding: 0 1rem; text-align: center; }
.kicker { font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sip-gold); }
.newsletter h2 { margin-top: 0.5rem; font-size: 2.25rem; line-height: 1.1; filter: drop-shadow(0 0 22px rgba(245, 158, 11, 0.35)); font-weight: 800; letter-spacing: -0.025em; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(to right, var(--sip-gold), var(--sip-gold-light), var(--sip-gold)); }
.newsletter-copy { max-width: 36rem; margin: 0.75rem auto 0; font-size: 1rem; line-height: 1.5rem; color: var(--slate-400); }
.subscribe-form { margin: 2rem auto 0; max-width: 32rem; display: flex; flex-direction: column; gap: 0.75rem; }
.subscribe-form input { flex-grow: 1; padding: 0.75rem 1.25rem; border: 1px solid var(--sip-border); border-radius: 9999px; background: var(--sip-surface); font-size: 0.875rem; line-height: 1.25rem; color: #fff; }
.subscribe-form input::placeholder, .rail-form input::placeholder { color: var(--slate-500); }
.subscribe-form input:focus, .rail-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--sip-gold); }
.subscribe-form button { padding: 0.75rem 1.75rem; border-radius: 9999px; background: var(--sip-gold); box-shadow: var(--sip-glow-gold); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: #000; transition: all 150ms var(--sip-ease); }
.subscribe-form button:hover { background: var(--sip-gold-light); }
.rail-form { display: flex; flex-direction: column; gap: 0.5rem; }
.rail-form input { width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: var(--sip-dark); font-size: 0.875rem; line-height: 1.4rem; color: var(--slate-100); }
.rail-form button { width: 100%; padding: 0.5rem; border-radius: 0.5rem; background: var(--sip-gold); font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.02em; color: #000; transition: opacity 150ms var(--sip-ease); }
.rail-form button:hover { opacity: 0.9; }
.subscribe-form :disabled, .rail-form :disabled { opacity: 0.55; cursor: not-allowed; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-message { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.25rem; color: var(--slate-300); }
.subscribe-message:empty { display: none; }
.subscribe-message.is-error { color: #fca5a5; }
.subscribe-message.is-success { color: #86efac; }
[data-subscribe] input[aria-invalid="true"] { box-shadow: 0 0 0 2px #f87171; }
.subscribe-pending { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1rem; color: var(--slate-400); }
.subscribe-pending a, .newsletter-note a { color: var(--sip-gold); text-decoration: underline; text-underline-offset: 2px; }
.rail-buttons .subscribe-pending { margin-top: 0; }
.subscribe-panel { text-align: center; }
.subscribe-panel .subscribe-form { margin-top: 0; }
.about-lead { max-width: 48rem; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 2px solid var(--sip-gold); }
.about-lead p { font-family: var(--sip-font-serif); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 2.125rem; color: #fff; }
.about-lead cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sip-gold); }
.newsletter-note { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1rem; color: var(--slate-500); }

/* ---------------------------------------------------------------- Footer (MainFooter) */
.site-footer { padding: 3rem 0; background: var(--sip-footer); border-top: 1px solid rgb(30 45 86 / 0.6); font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-400); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand > * + * { margin-top: 1rem; }
.footer-name { display: flex; align-items: center; gap: 0.5rem; }
.footer-name i { width: 0.75rem; height: 0.75rem; border-radius: 9999px; background: var(--sip-gold); }
.footer-name strong { font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 0.75rem; line-height: 1.625; color: var(--slate-500); }
.site-footer h4 { margin-bottom: 0.75rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-200); }
.site-footer ul { font-size: 0.75rem; line-height: 1rem; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer ul a { transition: color 150ms var(--sip-ease); }
.site-footer ul a:hover { color: var(--sip-gold); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgb(30 45 86 / 0.4); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.75rem; line-height: 1rem; color: var(--slate-500); }
.built-with { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--slate-400); transition: color 150ms var(--sip-ease); }
.built-with:hover { color: #fff; }
.built-with svg { width: 0.85rem; height: 1.1rem; }
.footer-bottom .built-with strong { font-size: 0.9375rem; line-height: 1; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: none; filter: none; -webkit-background-clip: border-box; background-clip: border-box; }
.footer-bottom > strong { font-size: 1.375rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -0.01em; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(to right, var(--sip-gold), var(--sip-gold-light)); filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.3)); }

/* ---------------------------------------------------------------- Listing pages (Home vocabulary) */
.page-hero { position: relative; overflow: hidden; padding: 3rem 0; border-bottom: 1px solid rgb(30 45 86 / 0.5); background: radial-gradient(circle at 75% 35%, rgba(46, 123, 255, 0.18) 0%, rgba(11, 19, 43, 0.95) 60%, #070D1E 100%); }
.page-hero .wrap { position: relative; z-index: 10; }
.page-hero .wrap > * + * { margin-top: 1.5rem; }
.page-hero h1 { max-width: 48rem; font-size: 2.25rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.page-hero .hero-description { max-width: 42rem; }
.page-hero .hero-actions { padding-top: 0.25rem; }
.platform-rail { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 1rem; padding: 14px 32px; border: 1.5px solid var(--sip-gold); border-radius: 9999px; background: var(--sip-dark); color: #d8e0f5; box-shadow: 0 14px 34px rgb(15 32 59 / 0.18); overflow-x: auto; scrollbar-width: none; }
.platform-rail::-webkit-scrollbar { display: none; }
.platform-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 4px 6px; border-radius: 9999px; color: #9aa7c1; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; transition: color 0.18s ease, transform 0.18s ease; }
.platform-link svg { width: 30px; height: 30px; flex: 0 0 30px; fill: none; stroke: var(--sip-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-link:first-child svg { fill: var(--sip-gold); stroke: none; }
.platform-link:hover { color: var(--sip-gold-light); transform: translateY(-1px); }
.platform-link[aria-pressed="true"] { color: var(--sip-gold-light); }
.platform-link[aria-pressed="true"] span { text-decoration: underline; text-decoration-color: var(--sip-gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.platform-divider { width: 1px; height: 25px; flex: 0 0 1px; background: rgba(255, 255, 255, 0.16); }
/* Phones: icons only, so all six platforms fit; the names stay for screen readers. */
@media (max-width: 767px) {
  .platform-rail { justify-content: space-between; gap: 2px; padding: 10px 12px; overflow: visible; }
  .platform-link { padding: 5px; }
  .platform-link svg { width: 24px; height: 24px; flex-basis: 24px; }
  .platform-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .platform-link[aria-pressed="true"] { background: rgb(245 158 11 / 0.16); }
  .platform-divider { height: 20px; }
}
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.filter-label { margin-right: 0.25rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.875rem; border-radius: 9999px; border: 1px solid var(--sip-border); background: var(--sip-card); font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; color: var(--slate-300); transition: all 150ms var(--sip-ease); }
.chip:hover { border-color: rgb(245 158 11 / 0.6); color: #fff; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { border-color: var(--sip-gold); background: rgb(245 158 11 / 0.12); color: var(--sip-gold-light); }
.chip small { font-family: var(--sip-font-mono); font-size: 0.6875rem; color: var(--slate-500); }
.filter-status { margin: 0.5rem 0 1.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-400); }
.filter-status button { margin-left: 0.5rem; color: var(--sip-gold); font-weight: 600; }
.filters { margin-bottom: 1.5rem; }
.topic-grid, .mode-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.info-card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border: 1px solid var(--sip-border); border-radius: 1rem; background: var(--sip-card); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
a.info-card:hover, .info-card:has(a:hover) { transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(245, 158, 11, 0.2); }
.info-card h3 { font-size: 1.125rem; line-height: 1.375; font-weight: 700; color: #fff; }
.info-card h3 a::after { content: ""; position: absolute; inset: 0; }
.info-card p { font-size: 0.875rem; line-height: 1.5; color: var(--slate-400); }
.info-card .post-meta { margin-top: auto; }
.link-card-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: rgb(245 158 11 / 0.12); color: var(--sip-gold); }
.link-card-icon svg { width: 1.25rem; height: 1.25rem; }
.link-card h3 a::before { content: ""; }
.link-card:hover h3 { color: var(--sip-gold-light); }
.prose-block { max-width: 48rem; }
.prose-block > * + * { margin-top: 1rem; }
.prose-block h2 { margin-top: 2.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.prose-block p { font-size: 1.0625rem; line-height: 1.75; color: var(--slate-300); }
.prose-block a { color: var(--sip-gold); text-decoration: underline; text-decoration-color: rgb(245 158 11 / 0.4); text-underline-offset: 3px; }
.prose-block a:hover { color: var(--sip-gold-light); }
.author-row { display: flex; align-items: center; gap: 1rem; }
.author-row img { width: 4rem; height: 4rem; border-radius: 9999px; object-fit: cover; }
.author-row strong { display: block; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: #fff; }
.author-row span { font-size: 0.875rem; color: var(--sip-gold); }
.stack > * + * { margin-top: 2.5rem; }

/* ---------------------------------------------------------------- Article (Leitura de Artigo Desktop, re-skinned) */
.read-progress { position: sticky; top: 5rem; z-index: 40; width: 100%; height: 0.25rem; background: var(--sip-card); }
.read-progress i { display: block; height: 100%; width: 0; background: var(--sip-gold); transition: width 150ms var(--sip-ease); }
.article-hero { position: relative; overflow: hidden; padding-bottom: 2.5rem; background: var(--sip-dark); }
.article-hero .glow-a { position: absolute; top: -8rem; left: 33.333333%; width: 24rem; height: 24rem; border-radius: 9999px; background: rgb(245 158 11 / 0.05); filter: blur(64px); pointer-events: none; }
.article-hero .glow-b { position: absolute; top: -2.5rem; right: 2.5rem; width: 20rem; height: 20rem; border-radius: 9999px; background: rgb(46 123 255 / 0.05); filter: blur(64px); pointer-events: none; }
.article-hero .wrap { position: relative; padding-top: 1.5rem; }
.label { font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.04em; }
.crumbs-row { margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; color: var(--slate-400); }
.crumbs a:first-child { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--blue-300); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: var(--sip-raised-2); }
.crumbs .here { color: var(--slate-100); }
.crumbs svg { width: 1rem; height: 1rem; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 0.25rem; background: var(--sip-raised); color: var(--slate-400); }
.badge-gold { padding: 0.25rem 0.75rem; border-radius: 9999px; color: var(--sip-gold); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.badge-gold i { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--sip-gold); animation: sip-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.badge-blue { color: var(--blue-300); }
.badge-plain { background: var(--sip-surface); }
@keyframes sip-pulse { 50% { opacity: 0.5; } }
.article-title-block { max-width: 56rem; }
.article-title-block h1 { margin-bottom: 1rem; font-size: 2.25rem; line-height: 1; font-weight: 800; letter-spacing: -0.025em; color: var(--slate-100); }
.article-dek { max-width: 48rem; font-size: 1.125rem; line-height: 1.625; letter-spacing: -0.005em; color: var(--slate-400); }
.article-meta { margin-top: 1.5rem; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.byline { display: flex; align-items: center; gap: 1rem; }
.byline img { width: 3rem; height: 3rem; border-radius: 9999px; object-fit: cover; box-shadow: var(--sip-shadow-md); }
.byline-name { display: flex; align-items: center; gap: 0.25rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); }
.byline-name svg { width: 1.125rem; height: 1.125rem; color: var(--blue-300); }
.byline .label { color: var(--slate-400); }
.meta-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.02em; color: var(--slate-400); }
.meta-facts > span { display: flex; align-items: center; gap: 0.375rem; }
.meta-facts svg { width: 1.125rem; height: 1.125rem; }
.meta-actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-button { padding: 0.5rem; border-radius: 0.5rem; background: var(--sip-surface); color: var(--slate-100); transition: background-color 150ms var(--sip-ease); }
.icon-button:hover { background: var(--sip-raised-2); }
.icon-button svg { width: 1.25rem; height: 1.25rem; }
.epub-button { display: inline-flex; align-items: center; gap: 0.375rem; padding-inline: 0.75rem; font-family: var(--sip-font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }

.article-layout { padding-top: 3rem; padding-bottom: 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.rail { display: none; }
.rail-card { padding: 1.25rem; border-radius: 0.75rem; background: var(--sip-card); box-shadow: var(--sip-shadow-md); }
.rail-card-alt { background: var(--sip-surface); }
.rail-kicker { font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sip-gold); }
.rail-head { margin-bottom: 0.5rem; padding-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; white-space: nowrap; }
.rail-head .label { color: var(--slate-400); }
.toc { display: flex; flex-direction: column; gap: 0.25rem; }
.toc a { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; line-height: 1.4rem; color: var(--slate-400); transition: all 150ms var(--sip-ease); }
.toc a:hover, .toc a[aria-current="true"] { color: var(--slate-100); background: var(--sip-surface); }
.toc a .label { margin-top: 0.125rem; color: rgb(245 158 11 / 0.7); }
.rail-inset { margin-top: 1.5rem; padding: 0.5rem; border-radius: 0.5rem; background: rgb(22 36 74 / 0.6); }
.rail-inset-head { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; color: var(--slate-100); font-weight: 600; }
.rail-inset-head svg { width: 1.125rem; height: 1.125rem; color: var(--sip-gold); }
.rail-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.rail-tags a { padding: 0.25rem 0.625rem; border-radius: 9999px; background: var(--sip-surface); color: var(--slate-300); transition: color 150ms var(--sip-ease); }
.rail-tags a:hover { color: var(--sip-gold-light); }
.rail-source { margin-top: 0.5rem; padding: 0.5rem; display: flex; align-items: center; justify-content: space-between; border-radius: 0.5rem; background: var(--sip-surface); }
.rail-source > span { display: flex; align-items: center; gap: 0.5rem; }
.rail-source .play { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: var(--sip-gold); color: #000; transition: transform 150ms var(--sip-ease); }
.rail-source:hover .play { transform: scale(1.05); }
.rail-source .play svg { width: 1.125rem; height: 1.125rem; }
.rail-source strong { display: block; color: var(--slate-100); font-weight: 500; }
.rail-source small { display: block; font-size: 11px; color: var(--slate-400); }
.rail-source > svg { width: 1.25rem; height: 1.25rem; color: var(--slate-400); }
.author-card-head { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.author-card-head img { width: 3.5rem; height: 3.5rem; border-radius: 9999px; object-fit: cover; }
.author-card-head h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); }
.author-card-head .label { color: var(--sip-gold); }
.rail-text { margin-bottom: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--slate-400); }
.rail-text-xs { font-size: 0.75rem; }
.rail-links { padding-top: 0.25rem; display: flex; align-items: center; justify-content: space-between; }
.rail-links a { display: flex; align-items: center; gap: 0.25rem; color: var(--blue-300); }
.rail-links a:hover { text-decoration: underline; }
.rail-links > span { color: var(--slate-400); }
.rail-links svg { width: 0.875rem; height: 0.875rem; }
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-list a { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.25rem; border-radius: 0.5rem; transition: background-color 150ms var(--sip-ease); }
.related-list a:hover { background: var(--sip-surface); }
.related-list .row { display: flex; align-items: center; justify-content: space-between; }
.related-list .row .label:first-child { color: var(--blue-300); }
.related-list .row .label:last-child { color: var(--slate-400); }
.related-list a:nth-child(2) .row .label:first-child { color: var(--sip-gold); }
.related-list a:nth-child(3) .row .label:first-child { color: var(--sip-gold-light); }
.related-list h4 { font-size: 1rem; line-height: 1.375; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); transition: color 150ms var(--sip-ease); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.related-list a:hover h4 { color: var(--sip-gold); }
.related-list p { font-size: 0.75rem; line-height: 1.4rem; color: var(--slate-400); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.rail-subscribe-head { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); }
.rail-subscribe-head svg { width: 1.25rem; height: 1.25rem; color: var(--sip-gold); }
.rail-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.rail-button { display: block; width: 100%; padding: 0.5rem; border-radius: 0.5rem; text-align: center; font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.02em; background: var(--sip-gold); color: #000; transition: opacity 150ms var(--sip-ease); }
.rail-button:hover { opacity: 0.9; }
.rail-button-quiet { background: var(--sip-dark); color: var(--slate-300); }

/* Article body: imported LinkedIn HTML, styled like the Stitch article sections */
.article-main { min-width: 0; }
.article-body { color: var(--slate-300); font-size: 1.0625rem; line-height: 1.8; overflow-wrap: break-word; }
/* Long identifiers and URLs wrap instead of widening the page on phones (blocks of code scroll). */
.article-body :not(pre) > code, .article-body a { overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 1.35rem; }
.article-body > p:first-child { font-size: 1.1875rem; line-height: 1.75; letter-spacing: -0.005em; color: var(--slate-200); }
.section-kicker { margin-top: 3.5rem !important; margin-bottom: -0.85rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sip-gold); }
.section-kicker::after { content: ""; flex: 1; height: 1px; background: var(--sip-surface); }
.article-body > .section-kicker:first-child { margin-top: 0 !important; }
.article-body h2 { scroll-margin-top: 7rem; font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.015em; color: var(--slate-100); }
.article-body h3 { margin-top: 2.25rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); }
.article-body strong { color: var(--slate-100); font-weight: 600; }
.article-body a { color: var(--sip-gold); text-decoration: underline; text-decoration-color: rgb(245 158 11 / 0.4); text-underline-offset: 3px; }
.article-body a:hover { color: var(--sip-gold-light); }
.article-body ul, .article-body ol { padding-left: 1.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 0.375rem; }
.article-body li::marker { color: var(--sip-gold); }
.article-body blockquote { padding: 1rem; border-left: 2px solid var(--sip-gold); border-radius: 0 0.75rem 0.75rem 0; background: var(--sip-card); color: var(--slate-200); }
.article-body :not(pre) > code { padding: 0.125rem 0.375rem; border-radius: 0.25rem; background: var(--sip-surface); font-size: 0.875em; color: var(--blue-300); }
.article-body figure:not(.code-window) img { width: auto; max-width: 100%; margin-inline: auto; cursor: zoom-in; border-radius: 0.75rem; background: var(--sip-card); box-shadow: var(--sip-shadow-md); }
.article-body figcaption:not(.code-bar) { margin-top: 0.5rem; text-align: center; font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.04em; color: var(--slate-500); }
/* Masterclass: offer on an edition, order confirmation, admin */
.masterclass-card { margin-top: 2.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; border: 1px solid rgb(245 158 11 / 0.45); border-radius: 0.75rem; background: linear-gradient(135deg, rgb(245 158 11 / 0.10), var(--sip-card) 60%); }
.masterclass-card h2 { margin-top: 0.25rem; font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; color: #fff; }
.masterclass-card p { margin-top: 0.5rem; color: var(--slate-300); }
.masterclass-card form { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.masterclass-card small { font-size: 0.75rem; color: var(--slate-500); }
@media (min-width: 768px) { .masterclass-card { flex-direction: row; align-items: center; justify-content: space-between; } .masterclass-card form { align-items: center; flex-shrink: 0; } }
.order-status { max-width: 40rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; color: var(--slate-200); }
.order-note { font-size: 0.875rem; color: var(--slate-400); }
.masterclass-admin { max-width: 56rem; color: var(--slate-200); }
.masterclass-admin h1 { font-size: 2rem; font-weight: 800; color: #fff; }
.masterclass-admin h2 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; color: #fff; }
.masterclass-admin h3 { margin-top: 1.25rem; font-weight: 600; color: var(--slate-100); }
.admin-note, .admin-message { margin-top: 0.75rem; color: var(--slate-400); }
.admin-message.is-error { color: #fca5a5; }
.admin-panel { margin-top: 1.5rem; }
.admin-signin, .admin-start { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.admin-signin input, .admin-start select { flex: 1 1 16rem; min-width: 0; padding: 0.75rem 1rem; border: 1px solid var(--sip-border); border-radius: 9999px; background: var(--sip-surface); color: #fff; }
.admin-jobs { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.admin-job { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--sip-card); text-align: left; }
.admin-job:hover { background: var(--sip-raised-2); }
.admin-job strong { flex: 1 1 14rem; overflow-wrap: anywhere; }
.admin-state { padding: 0.125rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: var(--sip-surface); }
.state-readyForApproval, .state-approved { background: rgb(34 197 94 / 0.2); color: #86efac; }
.state-needsHuman { background: rgb(245 158 11 / 0.2); color: var(--sip-gold-light); }
.state-failed { background: rgb(239 68 68 / 0.2); color: #fca5a5; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-actions .btn-primary, .admin-actions .btn-outline { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.admin-issues { margin-top: 0.5rem; padding-left: 1.25rem; list-style: disc; display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.9375rem; overflow-wrap: anywhere; }
.lightbox { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: 1.5rem; border: 0; background: transparent; color: var(--slate-300); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.lightbox::backdrop { background: rgb(7 13 30 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox img { width: min(100%, calc((100dvh - 7rem) * var(--ratio, 1.5))); height: auto; border-radius: 0.75rem; box-shadow: var(--sip-shadow-2xl); cursor: zoom-out; }
.lightbox p { max-width: 48rem; text-align: center; font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1.25rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: rgb(22 36 74 / 0.8); color: #fff; font-size: 1.5rem; line-height: 1; }
.lightbox-close:hover { background: var(--sip-gold); color: #000; }
.article-body hr { height: 1px; background: var(--sip-surface); }
.article-body table { width: 100%; font-size: 0.875rem; }
.article-body th, .article-body td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--sip-border); text-align: left; }
.source-note { padding: 1rem; border-radius: 0.75rem; background: var(--sip-card); font-size: 0.875rem; line-height: 1.4rem; color: var(--slate-400); }

/* macOS-style code window */
.code-window { overflow: hidden; border-radius: 0.75rem; background: #08101F; box-shadow: var(--sip-shadow-xl); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; background: rgb(22 36 74 / 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.code-dots { display: flex; align-items: center; gap: 0.5rem; }
.code-dots i { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 9999px; background: var(--red-500); }
.code-dots i:nth-child(2) { background: rgb(245 158 11 / 0.8); }
.code-dots i:nth-child(3) { background: var(--blue-300); }
.code-title { margin-left: 0.5rem; display: flex; align-items: center; gap: 0.25rem; color: var(--slate-400); }
.code-title svg { width: 0.9375rem; height: 0.9375rem; color: var(--blue-300); }
.code-copy { display: flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.625rem; border-radius: 0.25rem; background: var(--sip-raised-2); color: var(--slate-100); transition: background-color 150ms var(--sip-ease); }
.code-copy:hover { background: #2C3E73; }
.code-copy svg { width: 0.875rem; height: 0.875rem; }
.code-window pre { padding: 1rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.625; color: var(--slate-200); }
.tok-k, .tok-a { color: var(--purple-400); }
.tok-t { color: var(--blue-300); }
.tok-s { color: var(--sip-gold-light); }
.tok-n { color: var(--sip-gold); }
.tok-c { color: var(--slate-500); }

.helpful { margin-top: 2.5rem; padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 0.75rem; background: var(--sip-card); }
.helpful h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); }
.helpful > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.helpful a, .helpful button { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem; border-radius: 0.5rem; font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.02em; transition: opacity 150ms var(--sip-ease), background-color 150ms var(--sip-ease); }
.helpful-copy p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-400); }
.helpful .support-cta { background: var(--sip-gold); color: #000; font-weight: 600; box-shadow: var(--sip-glow-gold); }
.helpful .support-cta:hover { background: var(--sip-gold-light); }
.helpful .share { background: var(--sip-surface); color: var(--slate-100); }
.helpful .share:hover { opacity: 0.9; }
.helpful .coffee { background: var(--sip-surface); color: var(--slate-100); }
.helpful .whatsapp { background: #25D366; color: #052e16; }
.helpful .whatsapp:hover { opacity: 0.9; }
.helpful .coffee:hover { background: var(--sip-raised-2); }
.helpful svg { width: 1rem; height: 1rem; }

.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--sip-raised-2); color: var(--slate-100); box-shadow: var(--sip-shadow-xl); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: all 300ms var(--sip-ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------- ⌘K palette (Busca Global, re-skinned) */
.search-palette { width: calc(100% - 2.5rem); max-width: 48rem; max-height: calc(100vh - 4rem); margin: 2rem auto auto; padding: 0; overflow: hidden; border: 0; border-radius: 0.75rem; background: var(--sip-card); color: var(--slate-100); box-shadow: var(--sip-shadow-2xl); }
.search-palette::backdrop { background: rgb(7 13 30 / 0.8); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
.search-field { position: relative; display: flex; align-items: center; padding: 1rem 1.5rem; background: var(--sip-dark); }
.search-field svg { width: 1.625rem; height: 1.625rem; margin-right: 1rem; color: var(--blue-300); }
.search-field input { width: 100%; border: 0; outline: 0; font-size: 1.125rem; line-height: 1.875rem; letter-spacing: -0.025em; color: var(--slate-100); }
.search-field input::placeholder { color: rgb(148 163 184 / 0.5); }
.search-field input::-webkit-search-cancel-button { display: none; }
.kbd { padding: 0.125rem 0.5rem; border-radius: 0.25rem; background: var(--sip-raised); font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.04em; color: var(--slate-400); }
.search-field .kbd { margin-left: 0.5rem; }
.search-filters { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1.5rem; overflow-x: auto; background: var(--sip-surface); color: var(--slate-400); }
.search-filters > div { display: flex; align-items: center; gap: 0.25rem; min-width: max-content; }
.search-filters .rail-kicker { margin-right: 0.25rem; color: var(--blue-300); font-size: 0.75rem; }
.search-filter { display: flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 9999px; background: var(--sip-raised); color: var(--slate-400); transition: all 150ms var(--sip-ease); }
.search-filter:hover { background: var(--sip-raised-2); }
.search-filter[aria-pressed="true"] { color: var(--blue-300); font-weight: 600; }
.search-filter small { padding: 0 0.375rem; border-radius: 9999px; background: var(--sip-dark); font-size: 10px; color: var(--blue-300); }
.search-status { display: none; align-items: center; gap: 0.25rem; padding-left: 1rem; min-width: max-content; }
.search-status i { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--blue-300); }
.search-body { max-height: 593px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.search-group { display: flex; flex-direction: column; gap: 0.25rem; }
.search-group-head { padding: 0 0.5rem; display: flex; align-items: center; justify-content: space-between; }
.search-group-head .rail-kicker { display: flex; align-items: center; gap: 0.375rem; color: var(--blue-300); letter-spacing: 0.1em; }
.search-group-head .rail-kicker svg { width: 1rem; height: 1rem; }
.search-group-head .label { color: var(--slate-400); }
.search-results { display: flex; flex-direction: column; gap: 0.25rem; }
.search-result { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--sip-surface); color: var(--slate-100); transition: all 150ms var(--sip-ease); }
.search-result:hover, .search-result[aria-selected="true"] { background: var(--sip-raised); box-shadow: var(--sip-shadow-md); }
.search-result-main { display: flex; align-items: center; gap: 1rem; min-width: 0; padding-right: 1rem; }
.search-result-icon { width: 2.25rem; height: 2.25rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; background: var(--sip-raised-2); color: var(--blue-300); }
.search-result-icon svg { width: 1.25rem; height: 1.25rem; }
.search-result-text { display: flex; flex-direction: column; min-width: 0; }
.search-result-title { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.search-result-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.025em; }
.search-result-title .label { flex-shrink: 0; padding: 0.125rem 0.5rem; border-radius: 9999px; background: var(--sip-surface); color: var(--blue-300); }
.search-result-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; line-height: 1.4rem; color: var(--slate-400); }
.search-result-go { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; opacity: 0; transition: opacity 150ms var(--sip-ease); }
.search-result:hover .search-result-go, .search-result[aria-selected="true"] .search-result-go { opacity: 1; }
.search-result-go .label { display: none; color: var(--slate-400); }
.search-result-go .kbd { padding: 0.25rem 0.5rem; background: var(--sip-dark); color: var(--blue-300); }
.search-empty { padding: 1.5rem 0.5rem; text-align: center; font-size: 0.875rem; color: var(--slate-400); }
.search-hints { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; background: var(--sip-dark); color: var(--slate-400); }
.search-hints > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.search-hints span { display: inline-flex; align-items: center; gap: 0.25rem; }
.search-hints .kbd { padding: 0 0.375rem; }

/* ---------------------------------------------------------------- 404 (Blueprint Not Found, re-skinned) */
.error-stage { position: relative; overflow: hidden; padding: 2.5rem 2rem; }
.error-glow-a { position: absolute; top: -8rem; left: 50%; width: 720px; height: 360px; transform: translateX(-50%); border-radius: 9999px; background-image: linear-gradient(to bottom, rgb(245 158 11 / 0.15), rgb(245 158 11 / 0.05), transparent); filter: blur(64px); pointer-events: none; }
.error-glow-b { position: absolute; top: 33.333333%; right: -6rem; width: 24rem; height: 24rem; border-radius: 9999px; background: rgb(46 123 255 / 0.1); filter: blur(100px); pointer-events: none; }
.error-inner { position: relative; max-width: 64rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.diag-pill { margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; background: rgb(22 36 74 / 0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sip-shadow-lg); }
.diag-pill i { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--sip-gold); animation: sip-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.diag-pill .label:first-of-type { color: var(--sip-gold-light); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.diag-pill .sep { font-size: 0.75rem; color: rgb(148 163 184 / 0.4); }
.diag-pill .label:last-of-type { color: var(--slate-400); }
.error-split { position: relative; width: 100%; max-width: 56rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; user-select: none; }
.error-code-col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.halo { position: absolute; width: 20rem; height: 20rem; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.halo i { position: absolute; border-radius: 9999px; }
.halo i:nth-child(1) { width: 18rem; height: 18rem; border: 1px solid rgba(245, 158, 11, 0.35); }
.halo i:nth-child(2) { width: 20rem; height: 20rem; border: 1px solid rgba(46, 123, 255, 0.4); }
.halo i:nth-child(3) { width: 15rem; height: 15rem; background-image: linear-gradient(to top right, rgba(245, 158, 11, 0.12), transparent, rgba(46, 123, 255, 0.16)); filter: blur(40px); }
.halo i:nth-child(4) { width: 12rem; height: 12rem; border: 1px dashed rgba(245, 158, 11, 0.25); animation: sip-spin 15s linear infinite reverse; }
@keyframes sip-spin { to { transform: rotate(360deg); } }
.spark { position: absolute; pointer-events: none; display: flex; align-items: center; justify-content: center; border-radius: 9999px; }
.spark-a { top: -0.75rem; left: -1rem; gap: 0.25rem; padding: 0.125rem 0.5rem; background: rgb(7 13 30 / 0.9); border: 1px solid rgba(245, 158, 11, 0.4); font-family: var(--sip-font-mono); font-size: 11px; color: var(--sip-gold-light); box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
.spark-b { top: 2.5rem; right: -0.5rem; width: 1.5rem; height: 1.5rem; background: rgba(46, 123, 255, 0.2); border: 1px solid rgba(46, 123, 255, 0.5); box-shadow: 0 0 10px rgba(46, 123, 255, 0.5); color: var(--sip-blue); font-size: 12px; }
.spark-c { bottom: 3rem; left: -1.5rem; width: 1.25rem; height: 1.25rem; background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.6); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); color: var(--sip-gold-light); font-size: 10px; }
.big-code { position: relative; z-index: 10; font-size: 6.5rem; line-height: 1; font-weight: 900; letter-spacing: -0.05em; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(to bottom, var(--slate-100), rgb(241 245 249 / 0.8), var(--sip-raised-2)); filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); }
.code-tags { position: relative; z-index: 10; margin-top: 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.route-tag { padding: 0.25rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(245, 158, 11, 0.4); background: rgb(7 13 30 / 0.9); box-shadow: 0 0 16px rgba(245, 158, 11, 0.18); font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.02em; color: var(--sip-gold-light); white-space: nowrap; }
.fault { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid rgba(245, 158, 11, 0.5); background: rgba(11, 19, 43, 0.9); box-shadow: var(--sip-shadow-md); font-family: var(--sip-font-mono); font-size: 11px; line-height: 1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sip-gold-light); }
.fault i { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--sip-gold); animation: sip-pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.error-bird-col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; }
.bubble { position: relative; z-index: 20; max-width: 20rem; margin-bottom: 0.75rem; padding: 1rem; text-align: left; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1rem; background: rgb(7 13 30 / 0.9); box-shadow: var(--sip-shadow-2xl); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bubble-head { margin-bottom: 0.375rem; display: flex; align-items: center; gap: 0.375rem; font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sip-gold-light); }
.bubble-head i { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--sip-gold); }
.bubble p { font-family: var(--sip-font-mono); font-size: 0.75rem; line-height: 1.625; color: var(--slate-100); }
.bubble p b { font-weight: 600; color: var(--sip-gold-light); }
.bubble::after { content: ""; position: absolute; bottom: -0.5rem; left: 2.5rem; width: 1rem; height: 1rem; transform: rotate(45deg); background: rgb(7 13 30 / 0.9); border-right: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bird-stage { position: relative; width: 18rem; height: 18rem; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0.5rem; border: 1px solid rgba(46, 123, 255, 0.4); border-radius: 1rem; background-image: linear-gradient(to bottom, #0F172A, #060E20); box-shadow: 0 0 30px rgba(46, 123, 255, 0.2), 0 0 12px rgba(245, 158, 11, 0.15); transition: transform 300ms var(--sip-ease); }
.bird-stage:hover { transform: scale(1.05); }
.bird-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(46, 123, 255, 0.18) 0%, transparent 70%); pointer-events: none; }
.bird-stage img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 0.75rem; }
.fatal { width: 100%; max-width: 42rem; margin: 0.5rem 0 1.5rem; padding: 1rem; display: flex; align-items: flex-start; gap: 1rem; border-radius: 0.75rem; background: rgb(15 26 52 / 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--sip-shadow-xl); }
.fatal-icon { width: 2rem; height: 2rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; background: var(--sip-raised); color: var(--sip-gold-light); }
.fatal-icon svg { width: 1.25rem; height: 1.25rem; }
.fatal strong { display: block; font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0.02em; color: var(--sip-gold); }
.fatal p { font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.625; color: var(--slate-400); }
.fatal code { font-weight: 600; color: var(--purple-400); }
.error-copy { max-width: 42rem; margin-bottom: 2.5rem; text-align: center; }
.error-copy h1 { margin-bottom: 0.5rem; font-size: 2.25rem; line-height: 2.75rem; font-weight: 800; letter-spacing: -0.025em; color: var(--slate-100); }
.error-copy p { font-size: 1.125rem; line-height: 1.625; color: var(--slate-400); }
.error-copy p span { font-weight: 500; color: var(--slate-100); }
.error-stage .code-window { width: 100%; max-width: 42rem; margin-bottom: 2.5rem; box-shadow: var(--sip-shadow-2xl); }
.error-stage .code-window pre { padding: 1.5rem; text-align: left; }
.error-stage .code-copy { background: transparent; color: var(--slate-500); padding: 0.125rem 0.5rem; }
.error-stage .code-copy:hover { background: var(--sip-raised); color: var(--slate-100); }
.error-actions { width: 100%; margin-bottom: 5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.error-actions > * { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2.5rem; border-radius: 0.75rem; font-size: 1rem; line-height: 1.65; font-weight: 600; transition: all 150ms var(--sip-ease); }
.error-actions > *:hover { transform: scale(1.02); }
.error-actions > *:active { transform: scale(0.98); }
.error-actions svg { width: 1.25rem; height: 1.25rem; }
.error-home { background: var(--sip-gold); color: var(--sip-navy); box-shadow: rgba(245, 158, 11, 0.3) 0 10px 15px -3px; }
.error-search { background: var(--sip-raised); color: var(--slate-100); box-shadow: var(--sip-shadow-lg); }
.error-search:hover { background: var(--sip-raised-2); }
.error-search svg { color: var(--blue-300); }
.error-search .kbd { margin-left: 0.25rem; background: rgb(7 13 30 / 0.8); }
.popular { width: 100%; max-width: 56rem; margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.popular-head { display: flex; align-items: center; justify-content: space-between; }
.popular-head > span { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-100); }
.popular-head > span svg { width: 1.25rem; height: 1.25rem; color: var(--sip-gold-light); }
.popular-head a { display: flex; align-items: center; gap: 0.125rem; color: var(--blue-300); white-space: nowrap; }
.popular-head a svg { width: 0.875rem; height: 0.875rem; }
.popular-head a:hover { text-decoration: underline; }
.popular-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.popular-card { display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; border-radius: 0.75rem; background: var(--sip-card); box-shadow: var(--sip-shadow-lg); transition: all 300ms var(--sip-ease); }
.popular-card:hover { background: var(--sip-surface); transform: translateY(-0.25rem); }
.popular-card > div { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.popular-card .row { display: flex; align-items: center; justify-content: space-between; }
.popular-card .row .label:first-child { padding: 0.125rem 0.5rem; border-radius: 9999px; background: rgba(245, 158, 11, 0.1); color: var(--sip-gold-light); }
.popular-card .row .label:last-child { color: var(--slate-500); }
.popular-card h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--slate-100); transition: color 150ms var(--sip-ease); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.popular-card:hover h3 { color: var(--sip-gold-light); }
.popular-card p { font-size: 0.875rem; line-height: 1.4rem; color: var(--slate-400); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.popular-card .go { display: flex; align-items: center; gap: 0.25rem; font-family: var(--sip-font-mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.02em; color: var(--blue-300); transition: transform 150ms var(--sip-ease); }
.popular-card:hover .go { transform: translateX(0.25rem); }
.popular-card .go svg { width: 1rem; height: 1rem; }

/* ---------------------------------------------------------------- Breakpoints (Tailwind sm / md / lg) */
@media (min-width: 640px) {
  .wrap { padding: 0 1.5rem; }
  .newsletter-inner { padding: 0 1.5rem; }
  .page-hero h1 { font-size: 3rem; line-height: 1; }
  .hero-description { font-size: 1.125rem; line-height: 1.75rem; }
  .banner h1 { font-size: 3.75rem; }
  .section-head { flex-direction: row; align-items: flex-end; }
  .section-head h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .motto-quote blockquote { font-size: 1.5rem; line-height: 2rem; }
  .platforms { gap: 2.5rem; }
  .newsletter h2 { font-size: 3rem; }
  .subscribe-form { flex-direction: row; }
  .about-lead p { font-size: 1.875rem; line-height: 2.5rem; }
  .footer-bottom { flex-direction: row; }
  .bird-stage { width: 20rem; height: 20rem; }
  .error-actions { flex-direction: row; width: auto; }
  .error-actions > * { width: auto; }
  .search-palette { margin-top: 4rem; }
  .search-result-go .label { display: inline-block; }
}
@media (min-width: 768px) {
  .post-grid, .topic-grid, .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .error-stage { padding-top: 6rem; padding-bottom: 6rem; }
  .error-split { flex-direction: row; }
  .big-code { font-size: 9.5rem; }
  .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-palette { margin-top: 5rem; }
  .search-status { display: flex; }
}
@media (min-width: 1024px) {
  .wrap { padding: 0 2rem; }
  .newsletter-inner { padding: 0 2rem; }
  .page-hero { padding-top: 4rem; }
  .page-hero h1 { font-size: 3.75rem; line-height: 1; }
  /* Desktop banner: the original composition, scaled with the container width. */
  .banner-stage { display: block; padding: 0; max-width: 1920px; margin: 0 auto; aspect-ratio: 2172 / 724; }
  .banner-bg, .banner-glow { inset: 0; height: auto; }
  .banner-bg::after { display: none; }
  .banner-bg img { object-position: center; }
  .banner-glow { background: radial-gradient(ellipse 30% 42% at 24% 52%, rgba(255, 249, 240, 0.72), rgba(255, 249, 240, 0) 72%); }
  .banner-shade { display: block; position: absolute; inset: 0; background: linear-gradient(to right, transparent 62%, rgba(11, 19, 43, 0.38) 82%); pointer-events: none; }
  .banner-copy { position: absolute; left: 6.6%; top: 22%; }
  .banner-modes { gap: 0.6cqw; font-size: min(0.85cqw, 16px); }
  .banner-rule { width: 3.7cqw; height: 0.28cqw; margin: 1.2cqw 0 1.6cqw; }
  .banner h1 { font-size: min(4.6cqw, 88px); line-height: 1; }
  .banner-tagline { margin-top: 0.9cqw; font-size: min(1.02cqw, 19px); letter-spacing: 0.42em; }
  .banner-platforms { margin-top: 2.2cqw; flex-wrap: nowrap; gap: 0.5cqw; font-size: min(0.85cqw, 16px); }
  .banner-latest { display: none; }
  .banner-bird { position: absolute; z-index: 3; left: 40.5%; top: -2%; width: 40%; margin: 0; }
  .banner-code { position: absolute; left: 82.6%; top: 7.5%; margin: 0; font-size: min(1cqw, 19px); line-height: 1.55; }
  .banner-motto { position: absolute; right: 4.5%; bottom: 8.5%; margin: 0; font-size: calc(min(1.45cqw, 28px) - 2px); letter-spacing: 0.14em; }
  .newsletter h2 { font-size: 3.75rem; }
  .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topic-grid, .mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-bar .wrap { flex-direction: row; }
  .article-hero .wrap, .article-layout { padding-left: 2rem; padding-right: 2rem; }
  .article-title-block h1 { font-size: 3.5rem; line-height: 1; letter-spacing: -0.03em; }
  /* Reading layout: text column capped at a comfortable measure, rails beside it with wide gutters.
     1024–1279px: text + right rail. 1280px+: index rail, text, right rail. */
  .article-layout { grid-template-columns: minmax(0, 46rem) 17rem; justify-content: space-between; column-gap: 4rem; }
  .rail { position: sticky; top: 6.5rem; align-self: start; }
  .rail-right { display: flex; flex-direction: column; gap: 1.5rem; }
  .article-body h2 { font-size: 2.25rem; line-height: 2.75rem; letter-spacing: -0.02em; }
}

/* Balanced grids (gridLayout() in build-site.mjs, balanceGrid() in app.js): no orphan cards. */
@media (min-width: 768px) {
  .post-grid > .wide-md, .topic-grid > .wide-md, .post-grid > .full, .topic-grid > .full { grid-column: 1 / -1; }
  .post-card.full { flex-direction: row; }
  .post-card.full .post-media { width: 42%; height: auto; min-height: 15rem; flex-shrink: 0; }
  .post-card.full .post-body { padding: 2rem; }
  .post-card.full h3 { font-size: 1.5rem; line-height: 1.3; }
  .post-card.full .post-summary { font-size: 0.875rem; line-height: 1.4rem; -webkit-line-clamp: 3; }
}
@media (min-width: 1024px) {
  .post-grid, .topic-grid { grid-auto-flow: dense; }
  .post-grid[data-cols="3"], .topic-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-grid[data-cols="4"], .topic-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .post-grid > .wide-md, .topic-grid > .wide-md { grid-column: auto; }
  .post-grid > .wide, .topic-grid > .wide { grid-column: span 2; }
  .post-grid > .full, .topic-grid > .full { grid-column: 1 / -1; }
}

@media (min-width: 1280px) {
  .article-layout { grid-template-columns: 17rem minmax(0, 46rem) 17rem; column-gap: clamp(3rem, 4.2vw, 5rem); }
  .rail { display: block; }
  .rail-right { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.rail-card > .rail-kicker { display: block; margin-bottom: 0.5rem; }
