/* ============================================================================
   government.wien — shared subpage styles (topics, services, news, discover)
   Builds on styles.css tokens/components.
   ========================================================================== */

/* Active nav state */
.nav__link[aria-current="page"] { color: var(--red-ink); background: color-mix(in srgb, var(--red) 8%, transparent); }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--stone); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--red-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--line-strong); }

/* Page head */
.page-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 1rem + 2vw, 2.8rem); }
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.page-head .lead { color: var(--ink-soft); }
.wx-h2, .block-h2 { font-size: var(--fs-h3); margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0 1.1rem; }

/* Generic prose */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }

/* ---- Two-column article layout (service pages) ---- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 26%, 320px); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.article__aside { position: sticky; top: 6rem; display: grid; gap: 1rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 0.9rem; margin: 0.5rem 0 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 1rem 1.2rem 1rem 3.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-soft); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem; color: var(--red); }

/* Requirements checklist */
.reqs { list-style: none; padding: 0; display: grid; gap: 0.55rem; margin: 0.5rem 0 1.5rem; }
.reqs li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.reqs li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Cost / duration chips */
.factbox { display: grid; gap: 0.75rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); }
.factbox__row { display: flex; flex-direction: column; gap: 0.15rem; }
.factbox__row .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.factbox__row .v { font-weight: 600; }
.factbox .btn { justify-content: center; margin-top: 0.3rem; }

/* FAQ accordion (no JS) */
.faq { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); font-size: 1.3rem; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* CTA band linking to the official service */
.official-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.5rem 1.6rem; border-radius: var(--r-md); background: var(--night); color: var(--paper); margin-top: 2rem; }
.official-band p { color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: var(--fs-small); max-width: 46ch; }

/* Related services / cards reuse .service and .topic from styles.css */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }

/* ---- Topic hub ---- */
.hub-icon { width: 56px; height: 56px; color: var(--red); margin-bottom: 1rem; }
.hub-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.chiplist { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 1.5rem; }

/* ---- Discover / attractions ---- */
.attractions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.6rem); }
.attraction { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.attraction:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.attraction__top { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
.attraction__top .cat { position: absolute; top: 0.8rem; left: 0.8rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0,0,0,0.35); padding: 0.3rem 0.6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.attraction__top svg { width: 40%; height: 40%; opacity: 0.9; }
.attraction__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.attraction__district { font-family: var(--font-mono); font-size: 0.72rem; color: var(--stone); }
.attraction__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.attraction__blurb { color: var(--ink-soft); font-size: 0.98rem; }
.attraction__tip { margin-top: auto; padding-top: 0.7rem; font-size: var(--fs-small); color: var(--stone); border-top: 1px solid var(--line); }
.attraction__tip b { color: var(--red-ink); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.attraction a.attraction__link { margin-top: 0.6rem; font-weight: 600; color: var(--red-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.attraction a.attraction__link:hover { gap: 0.6rem; }

/* ---- News feed ---- */
.news-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.news-filter button { font-family: var(--font-mono); font-size: var(--fs-small); padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink-soft); transition: all 0.2s var(--ease); }
.news-filter button[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.newsfeed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.6rem); }
.newsitem { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.newsitem:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.newsitem__media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.newsitem__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.newsitem:hover .newsitem__media img { transform: scale(1.05); }
.newsitem__media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.newsitem__media .ph svg { width: 34%; height: 34%; opacity: 0.85; }
.newsitem__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.newsitem__cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-ink); }
.newsitem__title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; }
.newsitem__excerpt { font-size: var(--fs-small); color: var(--stone); }
.newsitem__date { margin-top: auto; padding-top: 0.6rem; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--stone); }
.news-status { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--stone); margin-bottom: 1.2rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.news-status b { width: 8px; height: 8px; border-radius: 50%; background: #2f8f5b; }
.news-note { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--stone); margin-top: 1.5rem; }

@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; }
  .article__aside { position: static; }
}
