/* התרמיל – "Andes at dusk". RTL, mobile-first, WCAG AA contrast, motion respects prefers-reduced-motion. */
:root {
  --night: #14213d;
  --night-2: #1b2d52;
  --ink: #1b2433;
  --muted: #4d5869;
  --sand: #f7f1e8;
  --sand-2: #efe5d6;
  --card: #ffffff;
  --line: #e3d8c7;
  --teal: #1f6f68;
  --teal-ink: #154f4a;
  --teal-soft: #e2f0ee;
  --clay: #b44a24;
  --clay-ink: #923a1b;
  --clay-soft: #fbe8de;
  --sun: #f2b544;
  --sun-soft: #fdf2d8;
  --wa: #128c4a;
  --wa-ink: #0d6b38;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 10px 30px -12px rgba(20, 33, 61, .18);
  --shadow-lift: 0 2px 4px rgba(20, 33, 61, .08), 0 22px 44px -18px rgba(20, 33, 61, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --display: "Rubik", "Heebo", system-ui, sans-serif;
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%231f6f68' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M-20 60c50-30 90 30 150 0s100-40 160-5 60 20 60 20'/%3E%3Cpath d='M-20 100c60-35 100 25 160-5s95-35 150 0 50 15 50 15'/%3E%3Cpath d='M-20 150c55-25 95 35 155 5s105-45 165-10'/%3E%3Cpath d='M-20 200c45-30 100 30 160 0s100-30 160 5'/%3E%3Cpath d='M-20 250c50-20 90 30 150 5s110-40 170-5'/%3E%3Cpath d='M-20 300c60-25 105 25 165-5s95-30 155 5'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
.site-header { view-transition-name: site-header; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.78; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
a { color: var(--teal); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .2s var(--ease); }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--night); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
h1, h2, h3, h4, .cta-title, .card-title, .wa-name, .path-name, .logo-text { font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; margin: 6px 0 14px; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.05rem); line-height: 1.25; margin: 44px 0 12px; font-weight: 800; }
h3 { font-size: 1.22rem; margin: 28px 0 8px; font-weight: 700; }
h4 { font-size: 1.05rem; margin: 20px 0 6px; }
.eyebrow { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--clay); text-transform: uppercase; }
.eyebrow-light { color: var(--sun); }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 140, 74, .55); } 70% { box-shadow: 0 0 0 9px rgba(18, 140, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 140, 74, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- top bar & header ---------- */
.topbar { background: var(--night); color: #e8ecf4; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.topbar strong { color: #fff; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2bd47a; animation: pulse 2.2s infinite; flex: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 241, 232, .88); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(20, 33, 61, .35); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; transition: min-height .3s var(--ease); }
.site-header.scrolled .header-inner { min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 1.42rem; }
.logo-text small { font-family: var(--font); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.logo-mark { transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) translateY(-2px); }
.nav { margin-inline-start: auto; }
.nav ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 2px; }
.nav a { position: relative; display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 10px; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { padding: 9px 14px; font-size: .95rem; }
.nav-mobile { display: none; position: relative; margin-inline-start: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; background: var(--card); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease); }
.burger::before, .burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(5px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile nav { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); min-width: 230px; padding: 8px; animation: fadeUp .25s var(--ease); }
.nav-mobile a { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-mobile a:hover { background: var(--teal-soft); }
@media (max-width: 960px) { .nav { display: none; } .nav-mobile { display: block; margin-inline-start: 0; } .header-cta { margin-inline-start: auto; } }
@media (max-width: 420px) { .header-cta span { display: none; } .logo-text small { display: none; } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%); transform: translateX(120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(-120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(20, 33, 61, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--clay); color: #fff; } .btn-primary:hover { background: var(--clay-ink); color: #fff; }
.btn-secondary { background: var(--teal); color: #fff; } .btn-secondary:hover { background: var(--teal-ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; } .btn-wa:hover { background: var(--wa-ink); color: #fff; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost { background: var(--sand-2); color: var(--muted); cursor: default; }
.btn-ghost:hover { transform: none; box-shadow: none; }
.btn-ghost::after { display: none; }
.text-link { font-weight: 700; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #2b4a7d 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, #23406b 100%); padding: 64px 0 150px; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--topo); opacity: .9; filter: invert(1) brightness(2); mix-blend-mode: soft-light; pointer-events: none; }
.hero-sun { position: absolute; top: 60px; inset-inline-end: 8%; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd98a, var(--sun) 55%, #e08a2c); box-shadow: 0 0 120px 30px rgba(242, 181, 68, .35); animation: glow 7s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 2; animation: fadeUp .9s var(--ease) both; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 56ch; color: #dfe6f2; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dfe6f2; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: #2bd47a; }
.hero-fresh { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .9rem; color: #e8ecf4; }
.hero-mountains { position: absolute; bottom: -1px; left: 0; width: 100%; height: 190px; z-index: 1; }
.hero-mountains .m1 { fill: #2a4c6e; animation: drift 30s ease-in-out infinite alternate; }
.hero-mountains .m2 { fill: #1f6f68; opacity: .9; }
.hero-mountains .m3 { fill: var(--sand); }

/* ---------- community band ---------- */
.community-band { position: relative; margin-top: -70px; z-index: 3; padding-bottom: 20px; }
.section-head { max-width: 62ch; margin-bottom: 18px; }
.section-head h2 { margin-top: 6px; margin-bottom: 8px; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.community-band .section-head { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); max-width: none; border-top: 4px solid var(--wa); }
.wa-total { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin: 6px 0 14px; }
.wa-total strong { font-family: var(--display); font-size: 1.25rem; }
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (min-width: 900px) { .wa-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .wa-grid { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .wa-card { scroll-snap-align: start; }
}
.wa-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.wa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #b9dcc8; }
.wa-head { display: flex; align-items: center; gap: 10px; }
.wa-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e3f5ea; color: var(--wa); flex: none; }
.wa-name { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.wa-desc { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; flex: 1; }
.wa-members { margin: 4px 0 8px; font-size: .95rem; }
.wa-members strong { font-family: var(--display); font-size: 1.2rem; color: var(--wa-ink); }
.wa-soon { color: var(--muted); }
.wa-card .btn { align-self: flex-start; padding: 9px 16px; }

/* ---------- home sections ---------- */
.home-body { padding-block: 30px 64px; }
.paths { margin-top: 30px; }
.path-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.path-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; background: var(--card) var(--topo) center / 420px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: var(--ink); }
.path-num { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--sun); }
.path-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.path-desc { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.home-prose { max-width: 760px; }
.brand-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 48px 0; padding: 28px; background: var(--night) var(--topo) center / 380px; color: #e8ecf4; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.brand-note h2 { color: #fff; margin: 6px 0 10px; }
.brand-note .eyebrow { color: var(--sun); }
.brand-note p { max-width: 68ch; }
.brand-note a { color: #9fe3d9; }
.brand-note-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; }
@media (max-width: 600px) { .brand-note { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- article pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--sand-2), var(--sand)), var(--topo); background-blend-mode: multiply; padding: 26px 0 18px; border-bottom: 1px solid var(--line); }
.page-hero .wrap > * { max-width: 820px; animation: fadeUp .6s var(--ease) both; }
.lead { font-size: 1.16rem; color: var(--muted); margin: 0 0 8px; }
.meta { font-size: .9rem; color: var(--muted); margin: 0; }
.article { padding-block: 22px 64px; }
.article > *:not(.cards):not(.listing):not(.related):not(.videos):not(.community-inline):not(.cta-pair) { max-width: 780px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "‹"; margin-inline-end: 6px; }
.breadcrumbs a { color: var(--muted); }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-block: 5px; }
.prose li::marker { color: var(--clay); }
.prose a { text-decoration-color: rgba(31, 111, 104, .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 22px 0; padding: 14px 20px; border-inline-start: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose code { background: var(--sand-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.tldr { position: relative; background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--teal); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; box-shadow: var(--shadow); }
.tldr-title { margin: 0 0 8px; font-family: var(--display); font-weight: 800; color: var(--teal-ink); }
.tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tldr li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.tldr svg { color: var(--teal); margin-top: 5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-family: var(--display); }
.toc details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 18px 0; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 10px 0 0; padding-inline-start: 1.3em; }
.callout { border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; border: 1px solid var(--line); background: var(--card); }
.callout-title { margin: 0 0 4px; font-weight: 800; font-family: var(--display); }
.callout-tip { background: var(--teal-soft); border-color: #c4e0dc; }
.callout-warning { background: var(--clay-soft); border-color: #f0c9b6; }
.callout-info { background: var(--sun-soft); border-color: #f0dca8; }
.callout > p:last-child { margin-bottom: 0; }
.steps ol { counter-reset: s; list-style: none; padding: 0; }
.steps ol > li { counter-increment: s; position: relative; padding-inline-start: 50px; margin-block: 16px; }
.steps ol > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; }
.details summary, .faq summary, .toc summary { cursor: pointer; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
th, td { padding: 11px 13px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--night); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fbf8f3; }
tbody tr:last-child td { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--clay); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; animation: fadeUp .3s var(--ease); }
.sources { font-size: .92rem; color: var(--muted); }
.sources ol { padding-inline-start: 1.4em; }
.sources a { word-break: break-word; }

/* ---------- CTAs ---------- */
.cta-pair { display: grid; gap: 16px; margin: 36px 0; }
@media (min-width: 760px) { .cta-pair { grid-template-columns: 1fr 1fr; } }
.cta { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.cta-insurance { border-top: 4px solid var(--clay); }
.cta-community { border-top: 4px solid var(--wa); }
.cta-kicker { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--clay); }
.cta-community .cta-kicker { color: var(--wa-ink); }
.cta-title { font-weight: 800; font-size: 1.15rem; margin: 4px 0 6px; }
.cta p { margin: 0 0 12px; }
.cta-fine { font-size: .8rem; color: var(--muted); margin-top: 10px !important; }
.disclaimer { font-size: .88rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 24px 0; background: #fffdf9; }

/* ---------- cards & listings ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.card { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 18px 18px 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #c9b9a2; color: var(--ink); }
.card-type { font-size: .76rem; font-weight: 700; color: var(--clay); letter-spacing: .04em; }
.card-title { font-weight: 800; line-height: 1.35; font-size: 1.06rem; }
.card-desc { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.card-go { position: absolute; bottom: 14px; inset-inline-end: 16px; color: var(--teal); transition: transform .3s var(--ease); }
.card:hover .card-go, .path-card:hover .card-go { transform: translateX(-5px); }
.path-card .card-go { position: static; margin-top: 6px; color: var(--clay); }
.listing, .related, .latest, .videos { margin-top: 40px; }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.yt-facade, .video-link { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--night); cursor: pointer; overflow: hidden; color: #fff; text-decoration: none; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.yt-facade:hover img { transform: scale(1.05); }
.yt-facade .play, .video-link .play { position: relative; transition: transform .3s var(--ease); }
.yt-facade:hover .play { transform: scale(1.12); }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-meta { padding: 14px 16px 16px; }
.video-title { font-weight: 700; margin: 0 0 4px; line-height: 1.4; }
.video-creator { margin: 0; font-size: .88rem; color: var(--muted); }
.video-note { margin: 8px 0 0; font-size: .92rem; padding-inline-start: 10px; border-inline-start: 3px solid var(--sun); }

/* ---------- footer ---------- */
.site-footer { background: var(--night) var(--topo) center / 420px; color: #d9e0ec; padding: 48px 0 26px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr; grid-auto-flow: column; grid-auto-columns: 1fr; } }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer .social-links a { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.social-row p { margin: 0; font-weight: 600; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: #fff; margin: 0 0 6px; }
.footer-brand svg { background: #fff; border-radius: 10px; padding: 3px; }
.footer-h { font-weight: 700; color: #fff; margin: 0 0 8px; }
.footer-fresh { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-legal { margin-top: 30px; font-size: .84rem; color: #b5c0d2; max-width: 90ch; }
.footer-copy { font-size: .84rem; color: #b5c0d2; margin: 4px 0 0; }

/* ---------- tools ---------- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 22px 0; }
.tool label { display: block; font-weight: 700; margin: 12px 0 4px; }
.tool input, .tool select { width: 100%; padding: 11px 13px; border: 1px solid #cdbfa9; border-radius: var(--radius-sm); font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tool input:focus, .tool select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); outline: none; }
.tool output, .tool .result { display: block; margin-top: 16px; padding: 16px; background: var(--teal-soft); border-radius: var(--radius-sm); font-weight: 700; }

@media print { .site-header, .topbar, .site-footer, .cta, .cta-pair, .related, .videos, .community-band { display: none; } }
@media (max-width: 640px) { .hero { padding-top: 40px; } .hero-sun { width: 84px; height: 84px; top: 14px; inset-inline-end: 14px; opacity: .75; } .hero h1 { max-width: none; } }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero-stamp { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #eef2f8; font-size: .85rem; font-weight: 500; }

/* ---------- mobile: tables become stacked cards, comfortable tap targets, readable small text ---------- */
@media (max-width: 680px) {
  .table-stack { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .table-stack table { min-width: 0; font-size: 1rem; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-stack tr { display: block; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
  .table-stack td { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: none !important; }
  .table-stack td:last-child { border-bottom: 0; }
  .table-stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .88rem; }
  .table-stack td:first-child { background: var(--night) !important; color: #fff; font-weight: 700; font-family: var(--display); grid-template-columns: 1fr; }
  .table-stack td:first-child::before { display: none; }
  .table-stack td:first-child a { color: #fff; }
  .cta-fine, .meta, .card-type, .sources, .breadcrumbs ol { font-size: .9rem; }
  .btn { min-height: 44px; }
  .nav-mobile a, .site-footer li a { display: inline-block; padding-block: 6px; }
  .faq summary, .toc summary, .details summary { padding-block: 6px; }
  .article { padding-block: 16px 48px; }
  h2 { margin-top: 36px; }
}
@media (max-width: 680px) {
  .logo { min-height: 44px; }
  .breadcrumbs a { display: inline-block; padding-block: 10px; }
}
