/* Topic pages (/<language>/<slug>/): long-form copy on top of styles.css. */
.topic-hero { position: relative; overflow: hidden; padding: calc(var(--header-height) + 64px) 0 72px; background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 38%), linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.topic-hero::before { position: absolute; inset: var(--header-height) 0 0; opacity: .45; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 86%); content: ""; pointer-events: none; }
.topic-hero > .shell { position: relative; }
.topic-hero h1 { max-width: 920px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.topic-lead { max-width: 760px; margin: 26px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

.breadcrumbs { margin-bottom: 30px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--text-muted); font-size: .8rem; font-weight: 700; list-style: none; }
.breadcrumbs li + li::before { margin-right: 8px; content: "/"; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

.topic-body { padding: 80px 0 96px; }
.topic-section { max-width: 880px; }
.topic-section + .topic-section { margin-top: 64px; }
.topic-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.topic-section > p { margin: 18px 0 0; font-size: 1.04rem; line-height: 1.7; }

.topic-points { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.topic-points li { position: relative; padding-left: 30px; color: var(--text-soft); line-height: 1.55; }
.topic-points li::before { position: absolute; top: .38em; left: 0; width: 16px; height: 16px; border-radius: 4px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); content: ""; }
.topic-points li::after { position: absolute; top: calc(.38em + 4px); left: 5px; width: 6px; height: 4px; transform: rotate(-45deg); border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); content: ""; }

.topic-steps { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; counter-reset: topic-step; list-style: none; }
.topic-steps li { position: relative; padding: 22px 24px 22px 78px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); counter-increment: topic-step; }
.topic-steps li::before { position: absolute; top: 22px; left: 24px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; content: counter(topic-step); font: 800 .95rem/1 var(--condensed); }
.topic-steps h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.topic-steps p { margin: 8px 0 0; font-size: .96rem; }

.topic-faq { padding: 96px 0; }

.topic-related { padding: 88px 0 96px; }
.topic-related h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.topic-related ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.topic-related a { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 750; transition: border-color .18s ease, transform .18s ease; }
.topic-related a:hover { transform: translateY(-2px); border-color: var(--accent); }
.topic-related a > span:last-child { color: var(--accent-strong); }
.topic-related a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 3px; }

.topic-cta { position: relative; overflow: hidden; padding: 96px 0; background: #061126; color: #f2f7ff; }
.topic-cta::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(83, 132, 211, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 132, 211, .07) 1px, transparent 1px); background-size: 64px 64px; content: ""; pointer-events: none; }
.topic-cta > .shell { position: relative; }
.topic-cta h2 { max-width: 880px; color: #fff; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.topic-cta p { max-width: 640px; margin: 18px 0 30px; color: #a9bad1; font-size: 1.06rem; }

.footer-main a[aria-current="page"] { color: var(--text); font-weight: 750; }

@media (max-width: 640px) {
  .topic-hero { padding: calc(var(--header-height) + 40px) 0 56px; }
  .topic-body { padding: 56px 0 72px; }
  .topic-section + .topic-section { margin-top: 48px; }
  .topic-steps li { padding: 20px 18px 20px 66px; }
  .topic-steps li::before { left: 16px; width: 34px; height: 34px; }
  .topic-faq, .topic-cta { padding: 72px 0; }
  .topic-related { padding: 64px 0 72px; }
}
