/* Article / guide pages */
.article { padding: 2rem 0 4rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--plum); } .crumbs span { margin: 0 .35rem; }
.a-head { max-width: 760px; }
.a-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .8rem; }
.a-head .lede { font-size: 1.15rem; max-width: 62ch; }
.byline { font-size: .85rem; color: var(--muted); }
.a-hero { margin: 1.5rem 0 2.5rem; }
.a-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); display: block; }
.a-hero figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.a-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 3rem; align-items: start; }
.a-toc { position: sticky; top: 84px; font-size: .9rem; }
.a-toc ol { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.a-toc a { color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); padding-left: .7rem; display: block; }
.a-toc a:hover { color: var(--plum); border-color: var(--plum); }
.a-body { font-size: 1.05rem; }
.a-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.6rem 0 .8rem; }
.a-body h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.a-body p, .a-body li { color: var(--ink-2); max-width: 68ch; }
.a-body p { margin-bottom: 1rem; }
.a-body ul, .a-body ol { padding-left: 1.3rem; margin: 0 0 1.2rem; } .a-body li { margin-bottom: .45rem; }
.a-body strong { color: var(--ink); }
.a-body figure { margin: 1.6rem 0; } .a-body figure img { width: 100%; border-radius: 16px; display: block; }
.a-body figcaption { font-size: .8rem; color: var(--muted); margin-top: .45rem; }
.a-body .two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .a-body .two img { aspect-ratio: 4/5; object-fit: cover; }
.a-body table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1rem 0 1.5rem; }
.a-body .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 1rem 0 1.6rem; }
.a-body th, .a-body td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.a-body th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--cream-2); }
.a-body tr:last-child td { border-bottom: 0; }
.a-body .note { background: var(--cream-2); border-left: 3px solid var(--gold); padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; margin: 1.2rem 0; }
.a-body .note p { margin: 0; color: var(--ink); }
.a-body .cap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: .5rem 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.a-body .caps { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0 1.4rem; }
.cta { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; background: linear-gradient(160deg, var(--blush-2), #fbf0d4); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2.5rem 0; }
.cta h3 { margin: .3rem 0 .4rem; font-size: 1.35rem; } .cta p { margin: 0; color: var(--ink-2); }
.faq { margin-top: 2.5rem; } .faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; color: var(--plum); } .faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: .6rem 0 0; }
.more { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.more-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.more-grid a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.more-grid a:hover { border-color: var(--plum); color: var(--plum); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.g-card { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.g-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; } .g-card div { padding: 1.1rem 1.3rem 1.4rem; }
.g-card h2 { font-size: 1.3rem; margin: .2rem 0 .4rem; } .g-card p { font-size: .92rem; color: var(--ink-2); margin: 0; }
/* The pill must never shrink or wrap: localized labels ("Acesso antecipado") are longer than
   the English and were breaking across two lines inside the article column. */
.cta .btn { flex: 0 0 auto; white-space: nowrap; }

/* Wide comparison tables scroll inside .tbl. Fade the right edge so it is visible that they do. */
.a-body .tbl { position: relative; }
.a-body .tbl::after { content: ""; position: absolute; top: 0; right: 0; width: 2.2rem; height: 100%;
  background: linear-gradient(to right, transparent, var(--cream, #fbf6f0)); pointer-events: none; }

/* Finnish, Hungarian, German and Polish build single words longer than a phone is wide
   (kertakayttokamerasovellus). Break only when a word genuinely cannot fit, so normal
   headings are untouched. */
.a-head h1, .a-body h2, .a-body h3, .g-card h2, .g-card h3 { overflow-wrap: break-word; }

@media (max-width: 900px) { .a-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .a-toc { position: static; } .cta { flex-direction: column; align-items: flex-start; } .a-body .two, .a-body .caps { grid-template-columns: 1fr; } }

/* Figure system v2: fixed aspect boxes so photos always sit cleanly */
.a-body figure { margin: 1.8rem 0; }
.a-body figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; border-radius: 16px; display: block; background: var(--cream-2); }
.a-body figure.wide img { aspect-ratio: 3 / 2; }
.a-body figure.tall img { aspect-ratio: 4 / 5; }
.a-body figure.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.a-body figure.two img { aspect-ratio: 4 / 5; }
.a-body figure.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.a-body figure.three img { aspect-ratio: 3 / 4; }
.a-body figure figcaption { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin-top: .5rem; line-height: 1.4; }
.a-body figure.two.strip img { aspect-ratio: 3 / 2; }
/* before / after with labels */
.a-body .ba2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.8rem 0; }
.a-body .ba2 > div { position: relative; }
.a-body .ba2 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 16px; display: block; background: var(--cream-2); }
.a-body .ba2.wide img { aspect-ratio: 3 / 2; }
.a-body .ba2 span { position: absolute; top: .7rem; left: .7rem; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: rgba(43,28,37,.72); color: #fff; backdrop-filter: blur(4px); }
.a-body .ba2 span.after { background: rgba(109,44,79,.85); }
.a-body .ba2 p { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: -.2rem 0 0; }
.a-hero img { aspect-ratio: 21 / 9; max-height: none; object-position: center 30%; }
@media (max-width: 640px) { .a-body figure.three { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; } .a-body .ba2 { grid-template-columns: 1fr 1fr; gap: .5rem; } .a-hero img { aspect-ratio: 4 / 3; } }

/* ---------- caption chips: click to copy ---------- */
.a-body .cap { cursor: pointer; user-select: none; transition: border-color .15s ease, background .15s ease, transform .1s ease; position: relative; }
.a-body .cap:hover { border-color: var(--plum); }
.a-body .cap:active { transform: scale(.99); }
.a-body .cap:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.a-body .cap::after { content: var(--cap-copy, "Copy"); position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .15s ease; }
.a-body .cap:hover::after { opacity: 1; }
.a-body .cap.copied { border-color: var(--sage); background: var(--sage-soft, #e6efe6); }
.a-body .cap.copied::after { content: var(--cap-copied, "Copied"); color: var(--sage, #5f8a66); opacity: 1; }
@media (hover: none) { .a-body .cap::after { display: none; } }

/* ---------- hub group headings ---------- */
.hub-group { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 2.5rem 0 .2rem; }
.hub-group:first-of-type { margin-top: 1.5rem; }
.g-grid + .hub-group { margin-top: 3rem; }

/* ---------- how-to steps ---------- */
.a-body .how-steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: grid; gap: .9rem; }
.a-body .how-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin: 0; }
.a-body .how-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blush-2); color: var(--plum); font-family: var(--sans); font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.a-body .how-steps li b { display: block; color: var(--ink); margin-bottom: .15rem; }

/* ---------- recipe card ---------- */
.a-body .recipe-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem .4rem; margin: 1.5rem 0 2rem; }
.a-body .recipe-card h2 { margin-top: 0; font-size: 1.5rem; }
.a-body .recipe-when { color: var(--ink-2); font-style: italic; font-family: var(--serif); margin-bottom: 1rem; }
.a-body .recipe-card .tbl { border: 0; background: transparent; margin: 0; }
.a-body .recipe-card td:last-child { font-family: var(--serif); color: var(--plum); }
.a-body .recipe-moods { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 0 1.2rem; }
.a-body .recipe-moods .chip { font-size: .75rem; padding: .3rem .65rem; border-radius: 999px; background: var(--cream-2); font-weight: 700; color: var(--ink-2); }

/* ---------- tool shell ---------- */
.a-body .tool { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0 0 2rem; }
.a-body .tool h2 { margin-top: 0; }
.a-body .tool .note-private { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }


/* language switcher in the footer */
.lang-switch { display:block; margin:.35rem 0 .2rem; font-size:.85rem; opacity:.75; }
.lang-switch a { text-decoration:none; }
.lang-switch a:hover { text-decoration:underline; }
.lang-switch [aria-current="true"] { font-weight:600; opacity:1; }

/* The download sits directly under the hero on a language home: it is the action the page
   exists for, so it comes before the reading. */
.home-download { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 1.6rem 0 2.2rem; }
.home-download .store-note { margin: 0; }
@media (max-width: 560px) { .home-download { gap: .55rem; flex-direction: column; align-items: flex-start; } }
