/* Magazine article layout — EEB Plate, scoped so it can move to the child theme */
.article {
  --article-measure: 42rem;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  overflow-x: clip;
}
.article a:not(.btn):not(.check-link):not(.nav-wa):not(.mark) {
  color: var(--plate-lit);
  text-underline-offset: 3px;
}
.article a:not(.btn):not(.check-link):not(.nav-wa):not(.mark):hover { color: var(--silver); }

/* reading progress */
.read-progress {
  position: fixed; top: 0; inset-inline: 0; z-index: 41; height: 2px;
  background: transparent; pointer-events: none;
}
.read-progress > span {
  display: block; height: 100%; width: 0;
  background: var(--plate-lit);
  transform-origin: right center;
}

.preview-banner {
  position: relative; z-index: 30;
  margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 4.6rem) var(--gutter) .7rem;
  background: color-mix(in srgb, var(--plate) 22%, var(--ink));
  color: var(--plate-lit);
  font-size: .9rem; letter-spacing: .02em; text-align: center;
  border-bottom: 1px solid var(--hair);
}

/* ---------- hero ---------- */
.article-hero {
  position: relative;
  padding: 2.2rem var(--gutter) 2.4rem;
  isolation: isolate;
}
.article-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, color-mix(in srgb, var(--plate) 28%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in srgb, var(--plate) 14%, transparent), transparent 55%);
}
.article-hero::after {
  content: ""; position: absolute; inset-inline: var(--gutter); bottom: 0; height: 1px;
  background: linear-gradient(to left, transparent, var(--hair), transparent);
}
.hero-grid {
  max-width: 1180px; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .85fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: end;
}
.article-hero-copy { position: relative; z-index: 1; }
.article-kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  margin: 0 0 1.1rem; color: var(--plate-lit);
  font-family: var(--display);
  font-size: .95rem; letter-spacing: .08em; font-weight: 400;
  text-transform: none;
}
.article-kicker::before {
  content: ""; width: 2rem; height: 1px; background: var(--plate-lit);
}
.article-hero h1 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.2rem);
  line-height: 1.04; letter-spacing: .012em;
  color: #a7a39a; margin: 0 0 1.15rem; text-wrap: balance;
  max-width: 16ch;
}
.article-hero h1 em { font-style: normal; color: var(--silver); }
.article-lede {
  margin: 0 0 1.4rem; max-width: 38ch;
  color: var(--silver-dim);
  font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem);
  line-height: 1.65;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .55rem .9rem;
  margin: 0; padding: 0; list-style: none;
  color: var(--silver-dim); font-size: .92rem;
}
.hero-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--hair); border-radius: 99px;
  padding: .35rem .85rem;
}
.hero-meta svg { width: 1rem; height: 1rem; color: var(--plate-lit); }

.takeaway {
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--ink-2) 88%, var(--plate));
  border-radius: 2px;
  padding: 1.35rem 1.35rem 1.15rem;
  position: relative;
}
.takeaway::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
  background: var(--plate-lit);
}
.takeaway h2 {
  font-family: var(--body); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; color: var(--plate-lit);
  margin: 0 0 1rem;
}
.takeaway ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .85rem;
  counter-reset: take;
}
.takeaway li {
  display: grid; grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: .75rem; align-items: start;
  counter-increment: take;
  color: var(--silver); font-size: .98rem; line-height: 1.45;
  padding-bottom: .85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--plate) 30%, transparent);
}
.takeaway li:last-child { border-bottom: 0; padding-bottom: 0; }
.takeaway li::before {
  content: counter(take, decimal-leading-zero);
  font-family: var(--display); font-weight: 300; font-size: 1.05rem;
  color: var(--plate-lit); line-height: 1.3;
}
.article-hero-copy { text-align: start; }
.hero-deco {
  position: absolute; left: -3%; right: auto; top: 18%;
  width: min(36vw, 24rem); height: auto;
  color: var(--plate); opacity: .09; pointer-events: none; z-index: 0;
}

/* ---------- toc ---------- */
.toc-wrap {
  padding: 1.3rem var(--gutter) 0;
  max-width: 1180px; margin-inline: auto;
}
.toc {
  border: 1px solid var(--hair); border-radius: 2px;
  padding: 1rem 1.2rem 1.1rem;
  background: color-mix(in srgb, var(--ink-2) 60%, transparent);
}
.toc h2 {
  font-family: var(--body); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; color: var(--plate-lit);
  margin: 0 0 .8rem;
}
.toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem 1.2rem;
}
.toc a {
  display: flex; align-items: baseline; gap: .55rem;
  text-decoration: none; color: var(--silver) !important;
  font-size: .95rem; padding: .35rem 0;
  min-height: 2.2rem;
  border-bottom: 1px solid transparent;
}
.toc a:hover { color: var(--plate-lit) !important; }
.toc .n {
  font-family: var(--display); color: var(--plate-lit); font-size: .95rem;
  min-width: 1.4rem;
}

/* ---------- shared article measure ---------- */
.article-body { padding-inline: var(--gutter); }
.article-measure { max-width: 46rem; margin-inline: auto; }
.article-wide { max-width: 66rem; margin-inline: auto; }

.article h2.sec-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.7rem, 1.15rem + 1.6vw, 2.55rem);
  line-height: 1.15; letter-spacing: .015em;
  color: var(--silver); margin: 0 0 .7rem; text-wrap: balance;
  text-align: center;
}
.article h2.sec-title::after {
  content: ""; display: block; width: 4.5rem; height: 1px;
  margin: .85rem auto 0;
  background: linear-gradient(to left, transparent, var(--plate-lit), transparent);
}
.sec-intro {
  color: var(--silver-dim); margin: 0 auto 1.6rem;
  font-size: 1.05rem; max-width: 62ch;
  text-align: center;
}
.article p { color: var(--silver-dim); margin: 0 0 1rem; max-width: 68ch; }
.article p + p { margin-top: 0; }
.section { padding-top: clamp(2.6rem, 5vw, 4.2rem); }

/* timeline */
.timeline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
  margin: 1.2rem 0 0;
}
.timeline::before {
  content: ""; position: absolute; top: 1.05rem;
  inset-inline: 8%; height: 1px; background: var(--hair);
}
.tl {
  padding: 0 1rem 0 0;
  position: relative;
}
.tl-dot {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 1px solid var(--plate-lit);
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--ink);
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.tl:first-child .tl-dot { background: var(--plate-lit); }
.tl h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.25rem; color: var(--silver);
  margin: 0 0 .4rem;
}
.tl p { margin: 0; font-size: .98rem; }

/* steps */
.step {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0 1.3rem;
  padding-top: clamp(2.2rem, 4vw, 3.4rem);
}
.step-index {
  font-family: var(--display); font-weight: 300;
  font-size: 2.2rem; line-height: 1; color: var(--plate-lit);
  padding-top: .15rem;
}
.step-icon {
  width: 2.9rem; height: 2.9rem; margin: .55rem 0 0;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--plate-lit) 55%, transparent);
  border-radius: 50%;
  color: var(--plate-lit);
  background: color-mix(in srgb, var(--plate) 12%, transparent);
}
.step-icon svg { width: 1.35rem; height: 1.35rem; }
.step h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.55rem, 1.15rem + 1.2vw, 2.15rem);
  line-height: 1.15; color: var(--silver);
  margin: 0 0 .8rem; text-wrap: balance;
}
.step h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.2rem; color: var(--silver);
  margin: 1.5rem 0 .45rem;
}
.article-body ul {
  list-style: none; margin: .3rem 0 1.1rem; padding: 0;
}
.article-body ul li {
  position: relative;
  color: var(--silver-dim);
  margin: 0 0 .45rem;
  padding-inline-start: 0;
  padding-right: 1.35rem;
}
.article-body ul { direction: rtl; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: auto;
  right: 0;
  top: .62em;
  width: .42rem; height: .42rem;
  border-radius: 50%;
  background: var(--plate-lit);
}

.notice {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .7rem 0.85rem;
  margin: 1.2rem 0 1.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--plate-lit) 45%, transparent);
  background: color-mix(in srgb, var(--plate) 12%, var(--ink));
  border-radius: 2px;
}
.notice svg { width: 1.25rem; height: 1.25rem; color: var(--plate-lit); margin-top: .15rem; }
.notice strong {
  display: block; color: var(--plate-lit);
  font-size: .78rem; letter-spacing: .12em; font-weight: 700;
  margin: 0 0 .25rem;
}
.notice p { margin: 0; color: var(--silver); }

.pullquote {
  margin: 1.6rem 0;
  padding: .15rem 0;
  max-width: 28ch;
  border-inline-start: 3px solid var(--plate-lit);
  padding-inline-start: 1.2rem;
  text-align: start;
}
.pullquote p {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.35; color: var(--silver);
  margin: 0; max-width: none;
}

/* CTA cards */
.article .check-card { margin: clamp(2rem, 5vw, 3.2rem) 0; }
.article .check-card h2 { margin: 0 0 .7rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }

/* checklist */
.checks {
  display: grid; gap: .65rem; margin: 1rem 0 0;
}
.chk {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem; align-items: center;
  border: 1px solid var(--hair); border-radius: 2px;
  padding: .85rem 1rem;
  background: color-mix(in srgb, var(--ink-2) 75%, transparent);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.chk:hover { border-color: color-mix(in srgb, var(--plate-lit) 60%, transparent); }
.chk:has(input:checked) {
  border-color: color-mix(in srgb, var(--plate-lit) 70%, transparent);
  background: color-mix(in srgb, var(--plate) 14%, var(--ink));
}
.chk input {
  appearance: none; -webkit-appearance: none;
  width: 1.35rem; height: 1.35rem; margin: 0;
  border: 1px solid var(--plate-lit); border-radius: 2px;
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
  flex: none;
}
.chk input:checked {
  background: var(--plate-lit);
}
.chk input:checked::after {
  content: ""; width: .45rem; height: .75rem;
  border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.chk input:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
.chk-text { color: var(--silver); font-size: 1.02rem; line-height: 1.45; }
.chk .num-tag {
  display: inline-block; margin-inline-end: .45rem;
  font-family: var(--display); color: var(--plate-lit); font-size: .95rem;
}

/* summary grid */
.summary {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem; margin-top: 1rem;
}
.sum-card {
  border: 1px solid var(--hair); border-radius: 2px;
  padding: 1.15rem 1.2rem 1.2rem;
  background: color-mix(in srgb, var(--ink-2) 70%, transparent);
  min-height: 8.5rem;
}
.sum-card .ico {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  color: var(--plate-lit); margin-bottom: .7rem;
  border: 1px solid var(--hair); border-radius: 50%;
}
.sum-card .ico svg { width: 1.2rem; height: 1.2rem; }
.sum-card h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.2rem; color: var(--silver); margin: 0 0 .35rem;
}
.sum-card p { margin: 0; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 0; margin-top: .6rem; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 1rem; align-items: center;
  padding: 1.05rem 0;
  font-family: var(--display); font-weight: 400;
  font-size: 1.15rem; color: var(--silver);
  min-height: 3.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  justify-self: end;
  background:
    linear-gradient(var(--plate-lit), var(--plate-lit)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--plate-lit), var(--plate-lit)) center / 1.5px 12px no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { background: linear-gradient(var(--plate-lit), var(--plate-lit)) center / 12px 1.5px no-repeat; }
.faq .ans { padding: 0 1.8rem 1.15rem 0; }
.faq .ans p { margin: 0; }
.faq summary:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.disclaimer {
  margin: 2.2rem auto 0; max-width: 46rem;
  color: var(--silver-dim); font-size: .92rem;
  border-top: 1px solid var(--hair); padding-top: 1.2rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-deco { display: none; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 1.3rem; }
  .timeline::before {
    top: 0; bottom: 0; inset-inline: auto;
    inset-inline-start: .55rem; width: 1px; height: auto;
  }
  .tl { padding: 0; padding-inline-start: 2rem; }
  .tl-dot { margin-bottom: .6rem; }
  .summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-hero { padding-top: 1.4rem; }
  .article-hero h1 { max-width: none; }
  .step { grid-template-columns: 1fr; gap: .4rem; }
  .step-index { display: flex; align-items: center; gap: .7rem; font-size: 1.6rem; }
  .step-icon { margin: 0; width: 2.2rem; height: 2.2rem; }
  .chk { padding: .9rem .9rem; }
  .article .check-card { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after, .chk, .read-progress > span { transition: none; }
}

/* article pages sit under the fixed header */
body.article-page { padding-top: 4.55rem; }
body.article-page .bar {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-color: color-mix(in srgb, var(--plate) 45%, transparent);
}
.preview-banner {
  padding: .75rem var(--gutter);
}

/* slightly richer CTA on article pages */
.article .check-card {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--plate) 16%, transparent), transparent 48%),
    color-mix(in srgb, var(--ink-2) 82%, var(--plate));
}
.article .check-card::before {
  content: ""; position: absolute; inset-block: 0; right: 0; left: auto; width: 3px;
  background: var(--plate-lit);
}
@media (max-width: 760px) {
  .cta-actions { width: 100%; }
  .cta-actions .btn, .cta-actions .check-link { justify-content: center; width: 100%; }
}
