/* ────────────────────────────────────────────────────────────────
   layout.css — page skeleton (frontend)
   Ported from assets/style.css (2026-10-02), unchanged except where
   noted: .related-section__* replaces two inline styles.
   ──────────────────────────────────────────────────────────────── */

.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Site header ─────────────────────────────────────────────── */

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header__brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-header__brand span { color: var(--accent); }

.site-header__tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    max-width: 860px;
    margin: 0 auto;
}

.hero__headline {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1rem;
}

.hero__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* ── Section headings ────────────────────────────────────────── */

.section { margin-top: 3.5rem; }

.section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.section__title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section__link {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.section__link:hover { color: var(--accent-hover); }

/* ── Grid layouts ────────────────────────────────────────────── */

.grid { display: grid; gap: 1rem; }

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ──────────────────────────────────────────────── */

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 1.5rem 0 0;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-dim); }

/* ── Page header (category/detail pages) ─────────────────────── */

.page-header {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.page-header__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-header__intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 100%;
    line-height: 1.7;
}

/* ── Related sections ────────────────────────────────────────── */

.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* 2026-10-02: these two replaced inline styles in the flat templates. */
.related-section__title {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.related-section__links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Site footer ─────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 4rem;
}

.site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer__copy {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.site-footer__legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__legal a {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.site-footer__legal a:hover { color: var(--accent); }

.site-footer__links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-footer__links a {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.site-footer__links a:hover { color: var(--accent); }

/* ── Legal pages ─────────────────────────────────────────────── */

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.legal-page h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.legal-page .legal-page__meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.5rem;
}

.legal-page p,
.legal-page ul {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-page ul { padding-left: 1.5rem; }

.legal-page a { color: var(--accent); }

/* 2026-10-02: HTML sitemap — simple two-column link lists. */
.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
}
.sitemap-list li { margin-bottom: 0.4rem; break-inside: avoid; }
.sitemap-list a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.sitemap-list a:hover { color: var(--accent); }

@media (max-width: 480px) {
    .sitemap-list { columns: 1; }
}
