/* DESNAVO Magazin (NAV-013 articles). Loaded after desnavo-ds.css and styles.css on /magazin/
   pages only (published as /assets/magazin.css?v=…). Uses the design-system tokens only; no new
   colours. Layout: the subpage shell (.page-head / .page-grid) with a contents column on the left. */

/* ---------- Breadcrumb & meta ---------- */
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--ink-mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-mute); overflow-wrap: anywhere; }
@media (max-width: 719px) { .magazin-article .crumbs li:last-child { display: none; } }
.magazin .page-head .margin-note a { color: inherit; text-decoration: none; }
.magazin .page-head .margin-note a:hover { text-decoration: underline; }
.magazin h1 { max-width: 18em; }
.art-meta { margin: 18px 0 0; font-size: 15px; color: var(--ink-mute); }
.art-meta .sep, .mag-meta .sep { margin: 0 4px; }

/* ---------- Contents ---------- */
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 6px; padding: 6px 0; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.toc a::before { content: counter(toc, upper-roman) "."; flex: none; min-width: 2.4em; font: italic 500 15px/1.35 var(--display); color: var(--seal); }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toc-d { position: sticky; top: 96px; }
.toc-m { margin-top: 22px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.toc-m summary { cursor: pointer; padding: 14px 0; min-height: 48px; font: 800 19px/1.2 var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(45deg) translate(-3px, -3px); }
.toc-m[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.toc-m .toc-n { font: 400 15px var(--body); color: var(--ink-mute); margin-left: 6px; margin-right: auto; }
.toc-m nav { padding: 0 0 12px; }
.art-aside { display: none; }
@media (min-width: 1000px) {
  .toc-m { display: none; }
  .art-aside { display: block; order: 0; }
}

/* ---------- Article text ---------- */
.prose { font-size: 18px; line-height: 1.68; }
.prose > p, .prose li { max-width: 40em; }
.prose > h2 { scroll-margin-top: 96px; }
.prose h3 { margin: 32px 0 10px; scroll-margin-top: 96px; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: 0 0 .45em; }
.prose li::marker { color: var(--seal); }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--seal); }
.prose code { font: 500 .88em var(--mono); background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--seal); font: italic 500 21px/1.45 var(--display); }
.prose blockquote p { margin: 0; }
sup.ref { font-size: 12px; line-height: 0; margin-left: 1px; }
sup.ref a { display: inline-block; padding: 0 2px; text-align: center; text-decoration: none; color: var(--seal); font-weight: 600; border-radius: 3px; }
sup.ref a:hover, sup.ref a:focus-visible { background: var(--paper-deep); }
.table-wrap { margin: 24px 0; overflow-x: auto; border-top: 1.5px solid var(--ink); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.table-wrap th { font-weight: 600; }

.answer-box, .note-box { margin: 0 0 36px; padding: 22px 24px; border-radius: 12px; }
.answer-box { background: rgba(255, 255, 255, .42); border: 1.5px solid var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 50px -36px rgba(23, 33, 28, .5); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .answer-box { background: #FBF7EF; } }
.answer-box p:last-child, .note-box p:last-child, .answer-box ul:last-child, .note-box ul:last-child { margin-bottom: 0; }
.note-box { margin: 32px 0; background: var(--paper-deep); border-left: 4px solid var(--seal); border-radius: 0 12px 12px 0; }
.box-kicker { margin: 0 0 8px; font: italic 500 18px/1.3 var(--display); color: var(--seal); }

/* FAQ inside an article: the questions are H3 inside <summary>. */
.art-faq .faq summary h3 { font: inherit; margin: 0; scroll-margin-top: 96px; }
.art-faq .faq .answer p:last-child { margin-bottom: 0; }

/* Sources */
.sources { margin: 0 0 12px; padding-left: 1.6em; font-size: 15px; line-height: 1.5; }
.sources li { margin: 0 0 10px; scroll-margin-top: 96px; overflow-wrap: anywhere; }
.sources li:target { background: var(--paper-deep); outline: 6px solid var(--paper-deep); }
.src-date { color: var(--ink-mute); }

/* ---------- Next steps (app, classifieds, Temple of Desire) ---------- */
.next-grid { display: grid; gap: 18px; }
.next-card { padding: 22px 24px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.next-card h3 { margin: 0 0 10px; }
.next-card p { margin: 0 0 12px; }
.next-app { background: var(--bottle); border-color: var(--bottle); color: var(--on-bottle); }
.next-app h3 { color: var(--on-bottle); }
.next-app .mute { color: var(--on-bottle-soft); margin: 12px 0 0; }
.next-app .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.next-app .btn-primary:hover { background: var(--on-bottle-soft); border-color: var(--on-bottle-soft); }
.next-app .btn-ghost { color: var(--on-bottle); border-color: var(--on-bottle); }
.next-app .btn-ghost:hover { background: var(--on-bottle); color: var(--bottle); }
.next-app :focus-visible { outline-color: var(--on-bottle-kicker); }
.prose .next-list, .prose .next-links, .prose .sources { max-width: none; }
.prose .next-list, .prose .next-links { padding-left: 0; }
.next-list { margin: 0 0 18px; padding: 0; list-style: none; }
.next-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid rgba(242, 235, 221, .22); }
.next-list .nl-name { font-weight: 600; }
.next-list .nl-text { color: var(--on-bottle-soft); font-size: 15px; }
.next-links { margin: 0; padding: 0; list-style: none; }
.next-links a { display: inline-block; padding: 7px 0; font-weight: 500; }
@media (min-width: 720px) { .next-grid { grid-template-columns: 1fr 1fr; } .next-app { grid-column: 1 / -1; } }

/* ---------- Lists of articles ---------- */
.mag-cats { margin: 0 0 clamp(28px, 4vw, 44px); }
.mag-cats ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mag-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 99px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); background: transparent; }
.mag-cats a:hover { background: var(--paper-deep); }
.mag-cats a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.mag-cats .n { font: 500 12px/1 var(--mono); opacity: .85; }
.mag-list { display: grid; gap: 0 var(--gap); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.mag-card article { padding: 22px 0 26px; border-bottom: 1px solid var(--line); height: 100%; }
.mag-kicker { margin: 0 0 8px; font: italic 500 17px/1.3 var(--display); color: var(--seal); }
.mag-kicker a { color: inherit; text-decoration: none; }
.mag-kicker a:hover { text-decoration: underline; }
.mag-title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; margin: 0 0 10px; }
.mag-title a { text-decoration: none; }
.mag-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.mag-desc { margin: 0 0 10px; }
.mag-meta { margin: 0; font-size: 14px; color: var(--ink-mute); }
@media (min-width: 720px) { .magazin-index .mag-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .magazin-index .mag-list { grid-template-columns: repeat(3, 1fr); } }
.mag-list-small .mag-title { font-size: clamp(21px, 2vw, 24px); }
.mag-empty { margin: 24px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 32px 0 0; flex-wrap: wrap; }
.pager-pos { color: var(--ink-mute); font-size: 15px; }
.mag-cta { margin: clamp(40px, 6vw, 72px) 0 0; padding: 26px 28px; display: grid; gap: 16px; }
.mag-cta-text { margin: 0; font: italic 500 clamp(20px, 2vw, 24px)/1.35 var(--display); max-width: 34em; }
@media (min-width: 1000px) { .mag-cta { grid-template-columns: 1fr auto; align-items: center; } }
