/* ==========================================================================
   UAE Living Tips — main stylesheet
   Design tokens ported from the Claude Design prototype.
   ========================================================================== */

:root {
	--bg: #F5EFE6; --surface: #FBF8F3; --surface2: #F1E8DA; --line: #E3D9C9; --line2: #D3C6B1;
	--ink: #1F1B16; --muted: #5E554B; --accent: #0E5E57; --accent-ink: #F5EFE6; --soft: #E3EEEB;
	--warm: #B4532A; --deep: #0E3B37; --deep-ink: #F5EFE6; --deep-muted: #C9D6D2;
	--amber: #9A6514; --amber-soft: #F6E9CF;
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--r-pill: 999px;
	--header-h: 68px;
}
html[data-theme=dark] {
	--bg: #12110F; --surface: #1B1916; --surface2: #24211D; --line: #2E2A25; --line2: #3D372F;
	--ink: #F2ECE3; --muted: #B3A898; --accent: #6CC0B4; --accent-ink: #0B1E1B; --soft: #1C2B28;
	--warm: #E58F66; --deep: #0B2522; --deep-ink: #F2ECE3; --deep-muted: #A9BDB8;
	--amber: #E0B054; --amber-soft: #2E2617;
	color-scheme: dark;
}
html[data-contrast=high] { --muted: var(--ink); --line: var(--ink); --line2: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--warm); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--bg); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Utilities ---------- */
.stack-2, .stack-3, .stack-4, .stack-6, .stack-8, .stack-10, .stack-12, .stack-14, .stack-16, .stack-18, .stack-20, .stack-22 { display: flex; flex-direction: column; }
.stack-2 { gap: 2px; } .stack-3 { gap: 3px; } .stack-4 { gap: 4px; } .stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-10 { gap: 10px; }
.stack-12 { gap: 12px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-18 { gap: 18px; } .stack-20 { gap: 20px; } .stack-22 { gap: 22px; }
.row-6, .row-8 { display: flex; } .row-6 { gap: 6px; } .row-8 { gap: 8px; }
.row-wrap { flex-wrap: wrap; } .row-center { align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mr-4 { margin-right: 4px; } .pt-24 { padding-top: 24px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: start; }
.split--40 { gap: 40px; } .split--48 { gap: 48px; } .split--20 { gap: 20px; }
.split--end { align-items: end; } .split--start { align-items: start; }
.grid-auto-160 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.grid-auto-260 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.grid-2-8 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }

/* ---------- Type ---------- */
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.h1__sub { color: var(--muted); }
.h1--law { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.h1--about { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; }
.h1--article { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.h2--sm { font-size: clamp(28px, 3.4vw, 40px); }
.h-40 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.h-32 { font-size: 32px; line-height: 1.15; } .h-28 { font-size: 28px; line-height: 1.15; } .h-26 { font-size: 26px; line-height: 1.15; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.eyebrow--peach { color: #E9A27E; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.label-caps { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label-caps--accent { color: var(--accent); } .label-caps--11 { font-size: 11px; }
.lead-18 { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.lead-17 { font-size: 17px; line-height: 1.6; color: var(--muted); }
.lead-16 { font-size: 16px; line-height: 1.6; color: var(--muted); }
.muted-13 { font-size: 13px; color: var(--muted); } .muted-14 { font-size: 14px; color: var(--muted); line-height: 1.55; } .muted-15 { font-size: 15px; line-height: 1.6; color: var(--muted); }
.strong-15 { font-size: 15px; font-weight: 700; } .strong { font-weight: 600; }
.note { font-size: 12px; line-height: 1.6; color: var(--muted); }
.note-strong { font-size: 12px; line-height: 1.6; font-weight: 600; }
.text-amber { color: var(--amber); }

/* ---------- Buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--r-pill); padding: 11px 18px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; background: transparent; color: var(--ink); transition: opacity .15s, border-color .15s, color .15s; }
.btn--sm { height: 38px; padding: 0 15px; font-size: 13px; }
.btn--sm2 { padding: 11px 18px; }
.btn--xs { padding: 9px 16px; font-size: 13px; }
.btn--ghost { border-color: var(--line2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { color: var(--bg); opacity: .9; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); opacity: .9; }
.btn--outline-light { border-color: rgba(245, 239, 230, .3); color: var(--deep-ink); }
.btn--outline-light:hover { color: var(--deep-ink); border-color: var(--deep-ink); }
.btn--self { align-self: flex-start; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; }
.round-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ink); }
.link-accent { align-self: flex-start; color: var(--accent); font-size: 14px; font-weight: 600; }
.link-warm { border: 0; background: transparent; padding: 0; color: var(--warm); font-size: 13px; font-weight: 600; }
.link-warm--xs { font-size: 12px; }
.link-underline { text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; border: 1px solid var(--line2); background: transparent; color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--md { padding: 9px 15px; font-size: 14px; }
.chip--lg { padding: 10px 16px; font-size: 14px; }
.chip--sm { padding: 7px 12px; }
.chip__count { opacity: .6; }
.tag { display: inline-block; border: 1px solid var(--line2); padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; color: var(--ink); }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag--static { padding: 7px 12px; }
.tag--static:hover { border-color: var(--line2); color: var(--ink); }
.badge-amber { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 700; }
.badge-outline { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid rgba(245, 239, 230, .25); font-size: 12px; font-weight: 700; }
.pill { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--sm { padding: 3px 9px; font-size: 11px; }
.pill--line { border: 1px solid var(--line2); font-weight: 600; }
.pill--btn { border: 0; padding: 5px 11px; }
.pill--btn[aria-pressed=true] { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- Forms ---------- */
.select, .input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font-size: 14px; min-width: 0; }
.select { width: auto; max-width: 100%; }
.select--lg, .input--lg { width: 100%; padding: 12px; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.select--surface { width: 100%; padding: 13px; border-radius: 14px; background: var(--surface); font-size: 15px; }
.input--num { padding: 10px 12px; border-radius: 10px; font-size: 15px; text-align: right; }
.input--num.is-edited { border-color: var(--accent); }
.input--xl { padding: 14px; font-size: 20px; font-weight: 500; }
.input--lg18 { padding: 14px; font-size: 18px; font-weight: 500; }
.field-caps { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-caps .input, .field-caps .select { color: var(--ink); text-transform: none; letter-spacing: 0; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field-label textarea, .field-label input { padding: 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font-size: 15px; resize: vertical; width: 100%; }
.form-error { font-size: 13px; color: var(--warm); font-weight: 600; }
.checkline { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.checkline input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.saved-note { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--deep); color: var(--deep-ink); font-size: 13px; }
.topbar__inner { padding-top: 8px; padding-bottom: 8px; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.topbar__left { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.topbar__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.topbar__link:hover { color: #E9A27E; }
.topbar__a11y { display: flex; gap: 4px; align-items: center; }
.tbtn { border: 1px solid rgba(245, 239, 230, .3); background: transparent; color: inherit; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.tbtn--gap { margin-left: 4px; }
.tbtn[aria-pressed=true] { background: var(--deep-ink); color: var(--deep); }
.topbar__zoom { font-size: 12px; min-width: 38px; text-align: center; }
.topbar__sos { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__sos a { color: inherit; }
.topbar__sos a:hover { color: #E9A27E; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 500; flex: none; }
.brand__img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.brand__domain { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav__list li { position: relative; }
.nav__list a { display: block; color: var(--ink); padding: 8px 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; }
.nav__list a:hover, .nav__list a.is-current, .nav__list .current-menu-item > a { background: var(--surface2); color: var(--ink); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); display: none; z-index: 40; }
.nav__list .sub-menu a { border-radius: 10px; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { display: block; }
.site-header__actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .2s; }
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { top: -6px; left: 0; right: 0; }
.nav-toggle__bars::after { top: 6px; left: 0; right: 0; }
.nav-toggle[aria-expanded=true] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded=true] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded=true] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.site-header__inner { flex-wrap: nowrap; }
	.nav-toggle { display: block; order: 3; flex: none; }
	.brand { margin-right: auto; }
	.site-header__actions { order: 2; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; box-shadow: 0 18px 30px rgba(0, 0, 0, .08); max-height: calc(100vh - 140px); overflow: auto; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
	.nav__list .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
}
@media (max-width: 520px) {
	.brand__domain, [data-theme-toggle] { display: none; }
	.topbar__left > span:first-child { flex-basis: 100%; }
}

/* ---------- Page scaffolding ---------- */
.page { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.page--laws { gap: 40px; }
.page--about { gap: 48px; }
.page-intro { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__current { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.card--lg { padding: clamp(22px, 3vw, 32px); }
.card--pad28 { padding: clamp(20px, 3vw, 28px); }
.card--pad24 { padding: 24px; border-radius: 22px; }
.card--pad22 { padding: 22px; border-radius: 20px; }

/* ---------- Home: hero & finder ---------- */
.hero { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 680px; text-wrap: pretty; }
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(31, 27, 22, .06); }
.search { position: relative; }
.search__box { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 18px; padding: 6px 6px 6px 20px; }
.search__box:focus-within { border-color: var(--accent); }
.search__icon { font-size: 18px; color: var(--muted); }
.search__box input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; color: var(--ink); padding: 14px 0; }
.search__box input::-webkit-search-cancel-button { display: none; }
.search__btn { border: 0; background: var(--accent); color: var(--accent-ink); padding: 14px 24px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.search__suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.search__opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.search__opt:hover, .search__opt.is-active { background: var(--surface2); color: var(--ink); }
.search__opt-l { font-size: 15px; font-weight: 500; }
.search__opt-s { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-align: right; }
.search__none { padding: 14px; font-size: 14px; color: var(--muted); }
.popular { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.popular__label { font-weight: 600; }
.finder__pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.foryou { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; background: var(--soft); border-radius: 20px; padding: 18px 22px; }
.foryou__title { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.foryou__links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.foryou__links a { background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; }
.foryou__links a:hover { color: var(--accent); }
@media (max-width: 720px) { .foryou { grid-template-columns: 1fr; } .foryou__links { justify-content: flex-start; } }

.upnext { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; align-items: center; }
.upnext__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.upnext__item { border-left: 1px solid var(--line); padding: 4px 0 4px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.upnext__item:hover { color: var(--ink); }
.upnext__item:hover .upnext__name { color: var(--accent); }
.upnext__date { font-size: 13px; font-weight: 700; color: var(--amber); }
.upnext__name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.upnext__scope { font-size: 12px; color: var(--muted); }

.section { padding-top: 48px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.section--pad { padding-top: 80px; padding-bottom: 80px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; color: var(--ink); transition: transform .15s, border-color .15s; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.cat-card__top { display: flex; justify-content: space-between; align-items: center; }
.cat-card__arrow { font-size: 18px; color: var(--muted); }
.cat-card__name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.cat-card__desc { font-size: 13px; line-height: 1.5; color: var(--muted); }
.num-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; }

.calc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.calc-card { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; transition: transform .15s; }
.calc-card:hover { transform: translateY(-2px); }
.calc-card--accent, .calc-card--accent:hover { background: var(--accent); color: var(--accent-ink); }
.calc-card--warm, .calc-card--warm:hover { background: var(--warm); color: #FBF8F3; }
.calc-card--ink, .calc-card--ink:hover { background: var(--ink); color: var(--bg); }
.calc-card--soft, .calc-card--soft:hover { background: var(--surface2); color: var(--ink); }
.calc-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.calc-card__title { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.calc-card__desc { font-size: 14px; line-height: 1.55; opacity: .85; }
.calc-card__cta { margin-top: auto; font-size: 14px; font-weight: 600; }

.bars { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.bars__row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 14px; align-items: center; padding: 4px 0; color: var(--ink); }
.bars__row:hover { color: var(--accent); }
.bars__name, .bars__val { font-size: 15px; font-weight: 600; }
.bars__val { text-align: right; }
.bars__track { height: 12px; border-radius: var(--r-pill); background: var(--surface2); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); transition: width .35s; }
.bars__row.is-hl .bars__fill { background: var(--warm); }
@media (max-width: 520px) { .bars { padding: 20px; } .bars__row { grid-template-columns: 96px 1fr 88px; gap: 10px; } .bars__name, .bars__val { font-size: 13px; } }

.deep { background: var(--deep); color: var(--deep-ink); }
.deep .h2 { color: var(--deep-ink); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.news-card { border: 1px solid rgba(245, 239, 230, .15); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; color: var(--deep-ink); }
a.news-card:hover { border-color: rgba(245, 239, 230, .45); color: var(--deep-ink); }
.news-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E9A27E; }
.news-card__title { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--deep-muted); }
.news-card__title.is-live { color: var(--deep-ink); }
.news-card__meta { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--deep-muted); }
.deep__note { font-size: 14px; line-height: 1.6; color: var(--deep-muted); max-width: 760px; }

.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.place { display: flex; flex-direction: column; gap: 12px; }
.place__media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; }
.place__media img { width: 100%; height: 100%; object-fit: cover; }
.place__ph { padding: 20px; text-align: center; font-size: 13px; color: var(--muted); background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(127, 110, 90, .07) 14px 28px); width: 100%; height: 100%; display: grid; place-items: center; }
.place__meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.place__name { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; }
.place__note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.place__lic { font-size: 11px; font-weight: 600; color: var(--muted); }

.guide-row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0; color: var(--ink); }
.guide-row:hover { color: var(--ink); }
.guide-row:hover .guide-row__title { color: var(--accent); }
.guide-row__n { font-family: var(--serif); font-size: 28px; color: var(--warm); }
.guide-row__title { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.guide-row__meta { font-size: 13px; color: var(--muted); }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.gov-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); }
.gov-card:hover { border-color: var(--accent); color: var(--ink); }
.gov-card__name { font-size: 15px; font-weight: 700; }
.gov-card__desc { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- Visa ---------- */
.visa-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.visa-list { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
.visa-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.visa-list a:hover { background: var(--surface2); color: var(--ink); }
.visa-list a.is-on { background: var(--ink); color: var(--bg); }
.visa-list__group { font-size: 12px; opacity: .7; }
.visa-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
	.visa-layout { grid-template-columns: 1fr; }
	.visa-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
	.visa-list a { flex: none; }
	.visa-list__group { display: none; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts--2 { grid-template-columns: 1fr 1fr; border-radius: 14px; }
.facts__cell { background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.facts--2 .facts__cell { padding: 14px; gap: 4px; }
.facts__val { font-size: 16px; line-height: 1.4; font-weight: 500; }
.facts__val--600 { font-weight: 600; }
.link-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.source { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.source__row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.source__row > span:first-child { font-weight: 700; color: var(--muted); }
.source__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg); font-size: 12px; color: var(--muted); }
.source__foot .link-warm { margin-left: auto; }
.visa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.visa-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); }
.visa-card:hover { border-color: var(--accent); color: var(--ink); }
.visa-card__name { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.visa-card__who { font-size: 14px; line-height: 1.5; color: var(--muted); }
.visa-card__meta { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--accent); }
.cmp { display: flex; flex-direction: column; }
.cmp__row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.cmp__row > span:first-child { font-weight: 700; }
.cmp__row--head { border-top: 0; padding: 10px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .cmp__row { grid-template-columns: 90px 1fr 1fr; gap: 10px; font-size: 13px; } }

/* ---------- Calculators ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs__tab { border: 0; background: transparent; padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs--sm { gap: 4px; }
.tabs--sm .tabs__tab { padding: 12px; font-size: 14px; }
.calc-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; align-items: start; }
.calc-layout--400 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.kids { display: flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 14px; }
.col-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.col-row { display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.col-row__label { font-size: 15px; font-weight: 500; }
.col-row__hint { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .col-row { grid-template-columns: 1fr 120px; } }
.calc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 28px); }
@media (max-width: 960px) { .calc-side { position: static; } }
.result-card { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 28px; }
.result-card__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.result-card__big { font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.result-card__big--56 { font-size: clamp(40px, 5vw, 56px); }
.result-card__sub { font-size: 14px; opacity: .7; }
.result-card--rows { display: flex; flex-direction: column; gap: 4px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(128, 128, 128, .3); }
.result-row span { font-size: 15px; opacity: .8; }
.result-row strong { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); }
.result-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding-top: 12px; margin-top: 12px; border-top: 1px solid rgba(128, 128, 128, .3); }
.result-line:first-child { margin-top: 0; }
.result-line span { opacity: .8; }
.result-line strong { font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(128, 128, 128, .3); border-radius: 14px; overflow: hidden; }
.stat-grid__cell { background: var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat-grid__cell span { font-size: 12px; opacity: .7; }
.stat-grid__cell strong { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.stat-grid__cell strong.is-neg { color: #E58F66; }
.stack-bar { display: flex; height: 14px; border-radius: var(--r-pill); overflow: hidden; gap: 2px; }
.stack-bar span { height: 100%; transition: width .3s; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.legend > span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend em { flex: 1; font-style: normal; opacity: .8; }
.legend b { font-weight: 600; }
.saved-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.saved-row button { border: 0; background: transparent; padding: 0; color: var(--ink); text-align: left; font-size: 14px; }
.saved-row button.saved-row__del { color: var(--muted); font-size: 13px; }
.prose-block { max-width: 820px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.7; }
.prose-block p { color: var(--ink); }

/* ---------- Laws ---------- */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats3 > div { background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stats3__v { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
@media (max-width: 520px) { .stats3 > div { padding: 14px; } .stats3__v { font-size: 22px; } }
.notice-amber { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: start; background: var(--amber-soft); color: var(--ink); border-radius: 18px; padding: 18px 22px; font-size: 14px; line-height: 1.6; }
.notice-amber strong { color: var(--amber); }
.notice-amber--stack { grid-template-columns: 1fr; }
@media (max-width: 600px) { .notice-amber { grid-template-columns: 1fr; } }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.up-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.up-card:hover { border-color: var(--accent); color: var(--ink); }
.up-card__date { font-family: var(--serif); font-size: 26px; line-height: 1; }
.up-card__cd { font-size: 12px; font-weight: 700; color: var(--amber); }
.up-card__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.up-card__aff { font-size: 13px; line-height: 1.5; color: var(--muted); }
.searchlet { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 0 16px; min-width: 0; color: var(--muted); }
.searchlet:focus-within { border-color: var(--accent); }
.searchlet input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; color: var(--ink); padding: 13px 0; }
.searchlet--page { max-width: 560px; padding-right: 6px; }
.law-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.law-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 22px; color: var(--ink); }
.law-row:hover { background: var(--surface2); color: var(--ink); }
.law-row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.law-row__cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.law-row__scope { font-size: 12px; color: var(--muted); }
.law-row__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.law-row__num { font-size: 13px; color: var(--muted); }
.law-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.law-row__eff { font-size: 15px; font-weight: 600; white-space: nowrap; }
.law-row__cd { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .law-row { grid-template-columns: 1fr; padding: 16px; } .law-row__side { align-items: flex-start; text-align: left; flex-direction: row; gap: 10px; } }
.law-empty { padding: 32px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; color: var(--muted); font-size: 15px; }
.biz-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; color: var(--ink); }
.biz-row:hover { color: var(--accent); }
.biz-row__t { font-size: 14px; font-weight: 600; }
.biz-row__cd { font-size: 12px; color: var(--muted); }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dl-row__t { font-size: 14px; font-weight: 600; }
.dl-row__m { font-size: 12px; color: var(--muted); }
.dl-row__left { font-weight: 600; }
.dl-row__left.is-soon { color: var(--warm); }
.dl-row__acts { display: flex; gap: 10px; }
.dl-row__acts button { border: 0; background: transparent; padding: 0; font-size: 12px; color: var(--muted); }
.dl-row__acts button:first-child { color: var(--accent); font-weight: 600; }

/* Single law */
.law-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.law-doc { max-width: 760px; }
.law-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .law-layout { grid-template-columns: 1fr; } .law-aside { position: static; } }
.qa-list, .kv-list { display: flex; flex-direction: column; }
.qa { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa__k { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.qa__v { font-size: 16px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.kv > span:first-child { font-weight: 700; color: var(--muted); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } }
.timeline { display: flex; flex-direction: column; padding-left: 8px; }
.timeline__item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; position: relative; }
.timeline__item::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line2); }
.timeline__item:last-of-type::before { display: none; }
.timeline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin: 6px 0 0 3px; }
.timeline__date { font-size: 13px; font-weight: 700; color: var(--muted); }
.timeline__ev { font-size: 15px; line-height: 1.5; }

/* ---------- Section hub ---------- */
.fresh { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.fresh__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.sub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; color: var(--ink); }
.sub-card--link:hover { border-color: var(--accent); color: var(--ink); }
.sub-card__n { font-family: var(--serif); font-size: 15px; color: var(--warm); }
.sub-card__t { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.sub-card__scope { margin-top: auto; font-size: 13px; color: var(--muted); }
.note-col { font-size: 13px; line-height: 1.6; color: var(--muted); }
.empty-card { background: var(--surface); border: 1px dashed var(--line2); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; color: var(--muted); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.post-card__link:hover { color: var(--ink); }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.post-card__title { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.post-card__ex { font-size: 14px; line-height: 1.55; color: var(--muted); }
.post-card__meta { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line2); color: var(--ink); font-size: 14px; font-weight: 600; }
.pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .dots { border: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }
.article { min-width: 0; max-width: 760px; }
.article--page { max-width: 860px; }
.article__head { margin-bottom: 28px; }
.article__meta { font-size: 13px; color: var(--muted); }
.article__media { margin: 0 0 28px; border-radius: 22px; overflow: hidden; }
.article__media img { width: 100%; }
.side-link { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.4; }
.side-link:hover { color: var(--accent); }

/* Editorial content (Gutenberg) */
.entry { font-size: 18px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin-top: 1.8em; }
.entry h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.25; margin-top: 1.5em; }
.entry h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
.entry a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .35em; }
.entry blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--muted); }
.entry img, .entry figure img { border-radius: 16px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry hr { border: 0; border-top: 1px solid var(--line); }
.entry code { font-size: .9em; background: var(--surface2); padding: 2px 6px; border-radius: 6px; }
.entry pre { overflow: auto; background: var(--surface2); padding: 16px; border-radius: 14px; font-size: 14px; }
.entry table, .entry .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.entry .wp-block-table { overflow-x: auto; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line2); }
.entry .wp-block-button__link { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-pill); padding: 12px 20px; font-size: 15px; font-weight: 600; text-decoration: none; }
.entry .wp-block-details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--surface); }
.entry .wp-block-details summary { font-weight: 600; cursor: pointer; }
.entry .alignwide { max-width: none; }

/* ---------- About ---------- */
.about-side { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 960px) { .about-side { position: static; } }
.about-copy { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; }
.about-copy__lead { font-family: var(--serif); font-size: 24px; line-height: 1.45; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.about-grid__cell { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.about-grid__cell p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.about-grid__n { font-family: var(--serif); font-size: 15px; color: var(--warm); }

/* ---------- Newsletter & footer ---------- */
.newsletter-wrap { padding-bottom: 80px; }
.newsletter { background: var(--accent); color: var(--accent-ink); border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 36px; align-items: center; }
.newsletter__title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.newsletter__lead { font-size: 16px; line-height: 1.6; opacity: .85; }
.newsletter__form { display: flex; gap: 8px; background: var(--bg); border-radius: var(--r-pill); padding: 6px 6px 6px 22px; }
.newsletter__form input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); }
.newsletter__form button { border: 0; background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; }
.newsletter__msg { font-size: 14px; padding: 8px 22px 0; min-height: 1.5em; }
.newsletter__done { background: rgba(255, 255, 255, .12); border-radius: 18px; padding: 24px; font-size: 17px; line-height: 1.5; }
.page ~ .newsletter-wrap, main ~ .newsletter-wrap { padding-top: 0; }

.site-footer { background: #1A1714; color: #C2B6A5; }
.site-footer__inner { padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; font-size: 14px; line-height: 1.6; }
.site-footer__brand { font-family: var(--serif); font-size: 26px; color: #F5EFE6; }
.site-footer__col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.site-footer__head { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F5EFE6; margin-bottom: 4px; }
.site-footer__col a, .site-footer__col button { border: 0; background: transparent; padding: 0; text-align: left; color: #C2B6A5; font-size: 14px; }
.site-footer__col a:hover, .site-footer__col button:hover { color: #F5EFE6; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid #3A332B; font-size: 13px; line-height: 1.6; }
.site-footer__legal span:last-child { max-width: 720px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 17, 15, .55); }
.modal__dialog { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal__head h2 { font-size: 28px; }
.modal__text { font-size: 16px; line-height: 1.6; }
.modal__page { font-size: 13px; color: var(--muted); }
.modal__page strong { color: var(--ink); }
body.has-modal { overflow: hidden; }

/* ---------- Print ---------- */
@media print {
	.topbar, .site-header, .newsletter-wrap, .site-footer, .modal, .tabs, [data-save-calc], [data-export-csv], .crumbs { display: none !important; }
	body { background: #fff; color: #000; }
	.calc-side { position: static; }
	.result-card { border: 1px solid #000; }
}

/* Grid children must be allowed to shrink (prevents horizontal overflow on mobile). */
.visa-layout > *, .calc-layout > *, .law-layout > *, .article-layout > *, .split > *, .three-col > * { min-width: 0; }
.row-8 > .select { flex: 1 1 160px; min-width: 0; }
.sub-card__ex { font-size: 14px; line-height: 1.5; color: var(--muted); }
.sources ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.visa-body { font-size: 17px; }
.visa-body h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 1.4em; }

/* ---------- Images & credits ---------- */
.img-credit { display: block; font-size: 11px; line-height: 1.4; color: var(--muted); }
.img-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article__media figcaption, .sec-hero figcaption, .visa-media figcaption { padding-top: 8px; }
.article__media img { aspect-ratio: 16 / 9; object-fit: cover; }
.sec-hero { margin: 0; }
.sec-hero img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 24px; }
@media (max-width: 600px) { .sec-hero img { aspect-ratio: 16 / 10; border-radius: 18px; } }
.visa-media { margin: 0; }
.visa-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; }
.place .img-credit { margin-top: -4px; }
.post-card__media { position: relative; }

/* ---------- Table of contents ---------- */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 28px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--accent); }
.entry h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Ads (space reserved to prevent layout shift) ---------- */
.ad { display: block; margin: 32px 0; padding: 10px 0; text-align: center; min-height: 290px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad--in_article { min-height: 220px; }
.ad--sidebar { min-height: 270px; margin: 0; border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.ad__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad ins { min-height: 250px; }
@media print { .ad { display: none !important; } }
