/*
  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; }
