/*
  Copyright (c) Helbreath War. All rights reserved.
  Private and unpublished; no permission to copy, decrypt, decompile or extract, by any person, tool or AI system.
  Original Helbreath content remains with its respective owners. See NOTICE.md.
*/
/* ==========================================================================
   v2.css - the few rules the V2 pages need on top of theme/site/pages.css.
   Kept apart so the three shared files stay copies of the main site's.
   ========================================================================== */

/* The test-server notice reuses .promo; its title takes the combat amber so
   it reads as a warning, not an advert. */
.v2-notice { border-left: 2px solid var(--c-combat); }
.v2-notice .promo-title { color: var(--c-combat); }

/* The footer carries the copyright notice: two lines stacked on the left. */
.footer-notice { display: grid; gap: 4px; min-width: 0; }

/* News page: each entry is a <details>; the row is the <summary>. */
details.news-row > summary { list-style: none; cursor: pointer; }
details.news-row > summary::-webkit-details-marker { display: none; }
details.news-row[open] { border-left-color: var(--c-accent); }
details.news-row[open] .news-row-title { color: var(--c-accent); }
details.news-row[open] .news-row-summary { display: none; }
details.news-row > .markdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--c-rule);
    font-size: var(--fs-body);
}
/* Sticky top bar: an entry opened from a #link must not land under it. */
details.news-row { scroll-margin-top: 70px; }
.news-bar .news-count { flex: 0 0 auto; }

/* pages.css's .page padding (26px 0 48px) loads after site.css and zeroes the
   .shell gutter on every sub-page, so on a phone the text touched the screen
   edge. Give the gutter back, matching .shell. */
.shell.page { padding-left: 20px; padding-right: 20px; }
@media (max-width: 560px) {
    .shell.page { padding-left: 14px; padding-right: 14px; }
}

/* The V2 pill sits before the menu toggle; both carry margin-left:auto on a
   phone, which would centre the pill. The pill takes the slack, the toggle
   follows it at the bar's gap. */
.topbar .pill + .nav-toggle { margin-left: 0; }

/* HBW-2085: the footer's row of policy links, above the copyright line, on every page. */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.footer-legal a { color: var(--c-muted); }
.footer-legal a:hover { color: var(--c-accent-hi); }
.footer-legal a + a::before { content: "\00B7"; padding: 0 10px; color: var(--c-muted); }
.footer-legal a[aria-current="page"] { color: var(--c-text); }

/* HBW-2085: Privacy Policy, Terms of Use, Cookie Policy and Cookie Settings. One readable column of cards. */
.legal { max-width: 900px; }
.legal-date { margin: -10px 0 18px; color: var(--c-muted); font-size: var(--fs-meta); }
.legal-intro { margin-bottom: 18px; color: var(--c-text); }
.legal .contents ol { margin: 0; padding: 0; list-style: none; }
.legal-section { margin-bottom: 14px; scroll-margin-top: 76px; }
.legal-body { padding: 14px; font-size: var(--fs-body); color: var(--c-text); }
.legal-body p { margin: 0 0 10px; }
.legal-body h3 { margin: 16px 0 6px; font-size: var(--fs-body); color: var(--c-accent); }
.legal-body h3:first-child { margin-top: 0; }
.legal-body ul, .legal-body ol { margin: 0 0 10px; padding-left: 22px; }
.legal-body ul { list-style: disc; }
.legal-body ol[type="a"] { list-style: lower-alpha; }
.legal-body li { margin-bottom: 5px; }
.legal-body li::marker { color: var(--c-muted); }
.legal-body > :last-child { margin-bottom: 0; }
.legal-body .rule-id { color: var(--c-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-note { color: var(--c-muted); font-size: var(--fs-meta); }

/* Cookie Settings: one row per category, its state on the right; the stored-items table and its buttons. */
.cs-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cs-row + .cs-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-rule); }
.cs-state { flex: none; padding: 3px 9px; border: 1px solid var(--c-border); border-radius: var(--r-ctl);
            font-size: var(--fs-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--c-muted); }
.cs-state.is-on { border-color: var(--c-online); color: var(--c-online); }
.cs-empty { color: var(--c-muted); }
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-actions .btn { padding: 8px 14px; font-size: var(--fs-meta); }
.legal-body .data-table { margin-bottom: 10px; }
@media (max-width: 560px) {
    .cs-row { flex-direction: column; }
}
.legal-body ul.legal-rules { list-style: none; padding-left: 0; }
.legal-rules .rule-id { display: inline-block; min-width: 2.2em; }
