/* =========================================================
   ALLERLOG — shared styles (guides, FAQ, blog, contact, home)
   Apricot palette · SF Pro Rounded display.
   Served with a 1-year immutable cache (see _headers): bump the
   ?v= query on every <link> to this file when you change it.
   ========================================================= */
:root {
    --bg: #FBF9F6;
    --bg-warm: #F5EFE7;
    --surface: #FFFFFF;
    --ink: #1F1B16;
    --ink-2: #6B6660;
    --ink-3: #746E67;
    --line: rgba(31, 27, 22, 0.08);
    --line-2: rgba(31, 27, 22, 0.14);
    --apricot: #FF8B6B;
    --apricot-deep: #E8714F;
    --apricot-display: #D2603F;
    --apricot-ink: #A9452A;
    --apricot-soft: #FFE6DC;
    --leaf: #7BAE8E;
    --leaf-ink: #4F7F61;
    --leaf-soft: #E4F0E8;
    --warn: #B3261E;
    --warn-soft: #FDECEA;

    --mood-1: #E57373;
    --mood-2: #FFB74D;
    --mood-3: #FFD54F;
    --mood-4: #AED581;
    --mood-5: #66BB6A;

    --display: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro", system-ui, "Segoe UI", sans-serif;
    --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", sans-serif;

    --pad-x: clamp(16px, 5vw, 88px);
    --max: 1240px;
    --rad: 22px;
    --rad-sm: 14px;
    --t: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--apricot-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--apricot-ink); outline-offset: 3px; border-radius: 6px; }

.skip {
    position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100;
    background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 600; transition: top .2s var(--t);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px var(--pad-x);
    background: rgba(251, 249, 246, 0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav__brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink);
}
.nav__brand-icon { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.nav__links { display: inline-flex; align-items: center; gap: 22px; font-size: 15px; color: var(--ink-2); }
.nav__links a { transition: color .2s var(--t); white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { font-weight: 600; }
.nav__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--ink); color: var(--bg) !important;
    font-family: var(--display); font-weight: 600; font-size: 14px;
    transition: transform .25s var(--t), background .25s var(--t);
}
.nav__cta:hover { transform: translateY(-1px); background: #2a241e; }
@media (max-width: 860px) { .nav__hide-md { display: none; } }
@media (max-width: 560px) {
    .nav { padding: 10px 16px; gap: 10px; }
    .nav__links { gap: 14px; font-size: 14px; }
    .nav__hide-sm { display: none; }
    .nav__brand span { display: none; }
}

/* ---------- Language picker and "also available in" bar (markup from _build/i18n/localize.py) ---------- */
.lang-picker { position: relative; }
.lang-picker__btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 36px; padding: 0 10px; border-radius: 999px;
    list-style: none; cursor: pointer; white-space: nowrap; user-select: none;
    transition: background .2s var(--t), color .2s var(--t);
}
.lang-picker__btn::-webkit-details-marker { display: none; }
.lang-picker__btn::after {
    content: ''; width: 6px; height: 6px; margin: -3px 2px 0;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .2s var(--t);
}
.lang-picker[open] > .lang-picker__btn::after { transform: translateY(3px) rotate(-135deg); }
.lang-picker__btn:hover, .lang-picker[open] > .lang-picker__btn { background: var(--bg-warm); color: var(--ink); }
.lang-picker img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.lang-picker__list {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
    width: 264px; max-height: min(72vh, 540px); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--rad-sm);
    box-shadow: 0 22px 44px -18px rgba(31, 27, 22, 0.3);
}
.nav__links .lang-picker__list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 15px; }
.lang-picker__list small { margin-inline-start: auto; color: var(--ink-3); font-size: 12.5px; }
.nav__links .lang-picker__list a:hover { background: var(--bg-warm); }
.nav__links .lang-picker__list a[aria-current="true"] { background: var(--apricot-soft); font-weight: 600; }
@media (max-width: 560px) {
    .lang-picker { position: static; }
    .lang-picker__name { display: none; }
    .lang-picker__btn { padding: 0 6px; gap: 6px; }
    .lang-picker__list { inset-inline: 12px; top: calc(100% + 6px); width: auto; }
}
/* Small phones: room for the longer nav labels in some languages */
@media (max-width: 360px) {
    .nav { gap: 8px; }
    .nav__links { gap: 10px; font-size: 13.5px; }
    .nav__cta { padding-inline: 12px; }
    .lang-picker__btn { padding: 0 4px; gap: 4px; }
}
.lang-bar {
    position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px;
    padding: 10px 56px; background: var(--ink); color: var(--bg); font-size: 14.5px; line-height: 1.4; text-align: center;
}
.lang-bar p { margin: 0; }
.lang-bar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang-bar button {
    position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: inherit;
    font-size: 24px; line-height: 1; cursor: pointer;
}
.lang-bar button:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Buttons ---------- */
.badge-appstore {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: 14px;
    background: var(--ink); color: var(--bg);
    font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
    transition: transform .25s var(--t), background .25s var(--t);
}
.badge-appstore:hover { transform: translateY(-2px); background: #2a241e; }
.badge-appstore svg { flex-shrink: 0; }
.badge-appstore__caption { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.badge-appstore__caption small { font-weight: 400; font-size: 10px; letter-spacing: 0.04em; opacity: 0.8; }
.badge-appstore__caption strong { font-size: 17px; font-weight: 600; }
.badge-appstore--light { background: var(--bg); color: var(--ink); }
.badge-appstore--light:hover { background: #fff; }
.text-link { color: var(--apricot-ink); font-weight: 600; font-family: var(--display); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--t); }
.text-link:hover { gap: 10px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--apricot-ink); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 14px; height: 1.5px; background: var(--apricot); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13.5px; color: var(--ink-3); margin: 0 0 clamp(20px, 3vw, 32px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--ink-3); opacity: .6; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article ---------- */
.post { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad-x) 0; }
.post__title {
    font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 56px);
    line-height: 1.04; letter-spacing: -0.032em; margin: 0 0 18px; color: var(--ink);
}
.post__dek { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); line-height: 1.5; margin: 0 0 26px; }
.post__meta {
    display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap;
    font-size: 13.5px; color: var(--ink-3);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 14px 0; margin: 0 0 clamp(28px, 4vw, 40px);
}
.post__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); opacity: .7; }

.prose > * + * { margin-top: 1.2em; }
.prose h2 {
    font-family: var(--display); font-weight: 700; font-size: clamp(25px, 3.4vw, 32px);
    letter-spacing: -0.02em; line-height: 1.15; margin-top: 1.9em; color: var(--ink); scroll-margin-top: 90px;
}
.prose h3 {
    font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.5vw, 23px);
    letter-spacing: -0.015em; line-height: 1.2; margin-top: 1.6em; color: var(--ink); scroll-margin-top: 90px;
}
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-inline-start: 1.2em; margin-bottom: 0; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--apricot-ink); font-weight: 600; }
.prose strong { font-weight: 650; }
.prose a { color: var(--apricot-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
    margin: 1.6em 0; padding-block: 4px; padding-inline: 22px 0; border-inline-start: 3px solid var(--apricot);
    font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink);
}
.prose blockquote p { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.35; }

/* Quick answer — the snippet-ready summary at the top of a page */
.answer {
    background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--apricot);
    border-radius: var(--rad-sm); padding: 20px 22px; margin: 0 0 clamp(28px, 4vw, 40px);
}
.answer__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--apricot-ink); margin: 0 0 8px; }
.answer p { font-size: 18px; line-height: 1.65; margin: 0; }
.answer p + p { margin-top: .7em; }

/* Table of contents */
.toc { background: var(--bg-warm); border-radius: var(--rad-sm); padding: 18px 22px; margin: 0 0 clamp(28px, 4vw, 40px); }
.toc__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.toc ol { margin: 0; padding-inline-start: 1.2em; columns: 2 240px; column-gap: 32px; }
.toc li { font-size: 15.5px; margin: 5px 0; break-inside: avoid; }
.toc li::marker { color: var(--apricot-ink); }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--apricot-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Callouts */
.callout { border-radius: var(--rad-sm); padding: 18px 20px; background: var(--leaf-soft); border: 1px solid rgba(79, 127, 97, 0.18); }
.callout p, .callout li { font-size: 16.5px; line-height: 1.6; }
.callout > * + * { margin-top: .6em; }
.callout__title { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0; color: var(--ink); }
.callout--warn { background: var(--warn-soft); border-color: rgba(179, 38, 30, 0.2); }
.callout--warn .callout__title { color: var(--warn); }
.callout--app { background: var(--apricot-soft); border-color: rgba(232, 113, 79, 0.25); }

/* App how-to: numbered steps with an optional screenshot */
.app-how { margin-top: 2em !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: clamp(22px, 3.4vw, 34px); }
.app-how__grid { display: grid; grid-template-columns: 1fr 210px; gap: 28px; align-items: start; }
@media (max-width: 680px) { .app-how__grid { grid-template-columns: 1fr; } .app-how__shot { max-width: 220px; margin: 0 auto; } }
.app-how h2 { margin-top: 0 !important; }
.app-how__shot { border-radius: 26px; overflow: hidden; box-shadow: 0 1px 2px rgba(31,27,22,.06), 0 18px 40px -14px rgba(31,27,22,.2); background: var(--bg-warm); }
.app-how__shot img { width: 100%; height: auto; }
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 18px 0 0; }
.steps > li { counter-increment: step; position: relative; padding-inline-start: 46px; margin: 0 0 16px; }
.steps > li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; top: 1px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--apricot-soft); color: var(--apricot-ink);
    font-family: var(--display); font-weight: 700; font-size: 15px;
    display: grid; place-items: center;
}
.steps > li strong { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }

/* Figures */
.prose figure { margin: 1.8em 0; }
.prose figure.phone { max-width: 280px; margin-inline-start: auto; margin-inline-end: auto; }
.prose figure.phone img { border-radius: 30px; box-shadow: 0 1px 2px rgba(31,27,22,.06), 0 18px 40px -14px rgba(31,27,22,.2); width: 100%; height: auto; }
.prose figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 12px; line-height: 1.5; }

/* Tables (also used for printable templates) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: var(--rad-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 700; background: var(--bg-warm); font-size: 14.5px; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.template td { height: 44px; }
.print-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
    font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer;
}
.print-btn:hover { border-color: var(--ink-3); }

/* Key takeaways / checklists */
.keypoints { background: var(--bg-warm); border-radius: var(--rad-sm); padding: 20px 22px 18px; }
.keypoints__title { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.keypoints ul { margin-top: 6px; }
.keypoints li { font-size: 16.5px; }

/* Page-level FAQ */
.faq-mini { border-top: 1px solid var(--line-2); }
.faq-mini details { border-bottom: 1px solid var(--line-2); }
.faq-mini summary {
    cursor: pointer; list-style: none; padding: 18px 0;
    font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.012em; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-mini summary::-webkit-details-marker { display: none; }
.faq-mini summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--apricot-ink); line-height: 1; transition: transform .25s var(--t); }
.faq-mini details[open] summary::after { transform: rotate(45deg); }
.faq-mini details > div { padding: 0 0 18px; }
.faq-mini details p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }

/* Sources & disclaimer */
.sources { border-top: 1px solid var(--line); padding-top: 18px; }
.sources__title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.sources ol { padding-inline-start: 1.2em; }
.sources li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 6px 0; }
.sources a { color: var(--ink-2); }
.disclaimer { font-size: 14px !important; line-height: 1.6 !important; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; }

/* Article CTA */
.cta-box {
    margin: clamp(40px, 6vw, 64px) 0 0; padding: clamp(28px, 4vw, 44px);
    background: var(--ink); color: var(--bg); border-radius: var(--rad);
    display: grid; grid-template-columns: auto 1fr; gap: 22px 26px; align-items: center;
}
.cta-box__icon { width: 72px; height: 72px; border-radius: 18px; }
.cta-box h2 { font-family: var(--display); font-weight: 700; font-size: clamp(23px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 8px; }
.cta-box p { color: rgba(251, 249, 246, 0.72); margin: 0 0 18px; font-size: 16px; line-height: 1.55; max-width: 50ch; }
.cta-box .cta-box__fine { font-size: 13px; margin: 12px 0 0; color: rgba(251, 249, 246, 0.56); }
@media (max-width: 560px) { .cta-box { grid-template-columns: 1fr; text-align: start; } }

/* Related links */
.related { max-width: 760px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 0 var(--pad-x); }
.related__title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.related a {
    display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
    font-family: var(--display); font-weight: 700; font-size: 18.5px; letter-spacing: -0.015em; line-height: 1.3;
    padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: color .2s var(--t);
}
.related a:first-of-type { border-top: 1px solid var(--line); }
.related a:hover { color: var(--apricot-ink); }
.related a span { font-family: var(--text); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* ---------- Hubs ---------- */
.hub-head { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 7vw, 96px) var(--pad-x) clamp(28px, 4vw, 48px); }
.hub-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 80px); line-height: 1; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 18ch; }
.hub-head p { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 0; line-height: 1.55; }
.hub-section { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x) clamp(40px, 6vw, 72px); }
.hub-section__title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--rad); padding: clamp(22px, 3vw, 30px);
    transition: transform .3s var(--t), box-shadow .3s var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(31, 27, 22, 0.16); }
.card .eyebrow { margin-bottom: 12px; font-size: 11px; }
.card__title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 23px); letter-spacing: -0.018em; line-height: 1.18; margin: 0 0 10px; color: var(--ink); }
.card__excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.58; margin: 0 0 18px; }
.card__arrow { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--apricot-ink); display: inline-flex; gap: 8px; align-items: center; transition: gap .25s var(--t); }
.card:hover .card__arrow { gap: 12px; }
.card__meta { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }

/* FAQ hub list */
.qa-list { max-width: 860px; margin: 0 auto; padding: 0 var(--pad-x) clamp(48px, 7vw, 88px); }
.qa-group + .qa-group { margin-top: clamp(36px, 5vw, 56px); }
.qa-group__title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -0.02em; margin: 0 0 8px; }
.qa { border-bottom: 1px solid var(--line-2); padding: 20px 0; }
.qa h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.012em; line-height: 1.3; margin: 0 0 8px; }
.qa h3 a:hover { color: var(--apricot-ink); }
.qa p { color: var(--ink-2); font-size: 16.5px; line-height: 1.62; margin: 0 0 10px; max-width: 72ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-warm); padding: clamp(48px, 6vw, 72px) var(--pad-x) 36px; margin-top: clamp(56px, 8vw, 104px); }
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 0.8fr; gap: 36px 40px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 14px 0 20px; max-width: 38ch; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: color .2s var(--t), border-color .2s var(--t); }
.footer__social a:hover { color: var(--apricot-ink); border-color: var(--line-2); }
.footer__col h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 4px 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink); font-size: 14.5px; line-height: 1.4; transition: color .2s var(--t); }
.footer__col a:hover { color: var(--apricot-ink); }
.footer__disclaimer { max-width: var(--max); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.footer__bottom { max-width: var(--max); margin: 14px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.footer__bottom a { color: var(--ink-2); }
.footer__bottom a:hover { color: var(--apricot-ink); }

/* ---------- Other languages and scripts ---------- */
body { overflow-wrap: break-word; }
html:is(:lang(de), :lang(nl), :lang(fi), :lang(sv), :lang(da), :lang(no), :lang(ru), :lang(pl), :lang(cs)) :is(h1, h2, h3, p, li, td, th) { hyphens: auto; }
html:lang(ko) body { word-break: keep-all; }
/* Tight tracking breaks joined scripts (Arabic, Devanagari) and crowds CJK and Thai */
html:is(:lang(ar), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) * { letter-spacing: normal !important; }
/* Room for stacked marks and taller glyphs in display type */
html:is(:lang(ar), :lang(hi), :lang(th), :lang(vi), :lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3, blockquote) { line-height: 1.3; }
/* These scripts have no italics: keep emphasis upright */
html:is(:lang(ar), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) :is(em, i) { font-style: normal; }
[dir="rtl"] .mail__arrow { transform: scaleX(-1); }
[dir="rtl"] .mail:hover .mail__arrow { transform: scaleX(-1) translateX(6px); }
@media print { .lang-bar { display: none !important; } }

/* ---------- Print (diary templates) ---------- */
@media print {
    .nav, .footer, .cta-box, .related, .crumbs, .print-btn, .skip, .toc, .no-print { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    .post { max-width: none; padding: 0; }
    .table-wrap { border: 0; overflow: visible; }
    .prose table { font-size: 10.5pt; }
    .prose th, .prose td { border: 1px solid #999; }
    .template td { height: 34px; }
    a { text-decoration: none !important; color: inherit !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Printable checklists ---------- */
.printable { border: 1px dashed var(--line-2); border-radius: var(--rad); padding: clamp(18px, 3vw, 28px); background: var(--surface); }
.printable h2 { margin-top: 0 !important; }
.printable__hint { font-size: 14px !important; color: var(--ink-3); }
.foods { list-style: none; padding: 0 !important; margin: 10px 0 0; columns: 3 128px; column-gap: 22px; }
.foods li { break-inside: avoid; display: flex; gap: 10px; align-items: center; padding: 6px 0; margin: 0; border-bottom: 1px dashed var(--line-2); font-size: 16px; line-height: 1.35; }
.foods li::before { content: ''; width: 15px; height: 15px; border: 1.5px solid var(--ink-3); border-radius: 4px; flex-shrink: 0; }
.al { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--apricot-ink); background: var(--apricot-soft); border-radius: 999px; padding: 1px 6px; margin-inline-start: auto; }
.prose h3.foods__h { font-size: 17px; letter-spacing: 0; margin-top: 1.4em; }
.box-col { width: 54px; text-align: center !important; }

@media print {
    body.printing .post > :not(.prose),
    body.printing .prose > :not(.print-target) { display: none !important; }
    body.printing .printable { border: 0; padding: 0; }
    .foods li { font-size: 10.5pt; padding: 3px 0; }
    .al { background: none; border: 1px solid #999; color: #333; }
}
.template--form th { white-space: normal; width: 40%; }
