/* WolfOTS, modern layout (2026-10-18). Loaded after site.css: it replaces the old chrome (backdrop, banner masthead,
   side columns, falling leaves, bracketed boxes) with ONE centred column, one slim bar, flat cards and a clear type
   scale. It holds structure only; the look (palette, radius, shadow, accent) comes from the variant file that is
   loaded after it, through the --m-* tokens below. The defaults read the theme's own tokens, so this file alone is
   a complete, quiet look.

   The rules that are still in site.css and apply to inner pages (equipment window, map, quests, forms, admin) are not
   rewritten: they read --surface, --line, --ink... and follow the palette. */

:root {
  --m-width: 1160px;
  --m-pad: 24px;
  --m-radius: 14px;
  --m-radius-sm: 10px;
  --m-bar: 64px;
  --m-card: var(--surface);
  --m-card-solid: var(--surface);   /* an OPAQUE twin of the card fill, for sticky table headers */
  --m-card-line: var(--line);
  --m-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px -14px rgba(0, 0, 0, .5);
  --m-bar-bg: color-mix(in srgb, var(--ground) 82%, transparent);
  --m-bar-line: var(--line);
  --m-hover: color-mix(in srgb, var(--ink) 7%, transparent);
  --m-pill: color-mix(in srgb, var(--ink) 7%, transparent);
  --m-eyebrow: var(--ink-faint-text);
  --m-heading-font: var(--font);
}

/* ---------- page base ---------- */
html { scroll-padding-top: calc(var(--m-bar) + 16px); }
body { background: var(--ground); font-size: 16px; line-height: 1.6; }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--m-heading-font); }
.page > h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12;
  margin: 0 0 12px; padding: 0;
}
.page > h1::after { content: none; }
.page > h1 + p.muted, .page > h1 + p.lead { margin-top: 0; font-size: 1.05rem; }
h2 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); letter-spacing: -0.015em; }
.prose h2 { border-bottom: 0; padding-bottom: 0; margin-top: 2em; }

/* ---------- the bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--m-bar-line);
  background: var(--m-bar-bg); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
@supports not (backdrop-filter: blur(4px)) { .topbar { background: var(--ground); } }
.topbar-inner {
  max-width: var(--m-width); min-height: var(--m-bar); margin: 0 auto; padding: 0 var(--m-pad);
  display: flex; align-items: center; gap: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-size: inherit; }
.home .brand { display: none; }

.sections { flex: 1; position: static; top: auto; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; min-width: 0; }
.sections-inner { max-width: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sections .section-link, .sections summary {
  min-height: 38px; padding: 0 14px; gap: 6px; border: 0; border-radius: 999px; background: none;
  color: var(--ink-muted); font-size: .94rem; font-weight: 550; letter-spacing: 0;
}
.sections .section-link::after, .sections summary::after { content: none; }
.sections .section-link:hover, .sections summary:hover, .sections .group[open] > summary { background: var(--m-hover); color: var(--ink); }
.sections .section-link[aria-current="page"], .sections .group-here > summary { background: var(--accent-soft); color: var(--ink); }
.group-arrow { border-width: 4px 4px 0; border-left-color: transparent; border-right-color: transparent; opacity: .7; }
.group[open] .group-arrow { margin-top: 2px; }

.group-menu {
  top: calc(100% + 12px); left: -6px; min-width: 232px; padding: 8px; border-radius: var(--m-radius);
  background: var(--surface-high); border: 1px solid var(--m-card-line);
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .65);
}
.group-menu a { padding: 9px 12px; border-radius: 8px; color: var(--ink-muted); font-size: .94rem; }
.group-menu a:hover { background: var(--m-hover); color: var(--ink); }
.group-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }

.sections .account-nav { margin-left: auto; gap: 6px; padding-left: 12px; align-items: center; }
.sections .account-nav a:not(.button) { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: .94rem; font-weight: 550; color: var(--ink-muted); }
.sections .account-nav a:not(.button):hover { background: var(--m-hover); color: var(--ink); }
.link-button { min-height: 38px; padding: 0 14px; border-radius: 999px; color: var(--ink-muted); font-size: .94rem; font-weight: 550; }
.link-button:hover { background: var(--m-hover); color: var(--ink); text-decoration: none; }
.button-small { min-height: 38px; }

.nav-toggle { display: none; }

/* ---------- the page ---------- */
.page { max-width: var(--m-width); padding: 40px var(--m-pad) 80px; }
.footer { margin-top: auto; border-top: 1px solid var(--m-bar-line); background: none; box-shadow: none; }
.footer-inner { max-width: var(--m-width); padding: 28px var(--m-pad) 36px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; font-size: .88rem; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-inner span:first-child { font-weight: 600; }

/* ---------- surfaces ---------- */
.card, .stat {
  background: var(--m-card); border: 1px solid var(--m-card-line); border-radius: var(--m-radius);
  box-shadow: var(--m-shadow); padding: 28px;
}
.card::before, .card::after { content: none; }
.card:hover { border-color: var(--m-card-line); box-shadow: var(--m-shadow); }
a.card:hover, .card a.stat:hover { transform: none; }
.card > h2:first-child::after { content: none; }
.filters { border-radius: var(--m-radius); }
.card .card, .card .filters { box-shadow: none; }
.alert { border-radius: var(--m-radius-sm); }
.badge { border-radius: 999px; text-transform: none; font-size: .78rem; letter-spacing: 0; font-weight: 600; }

.button { min-height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; letter-spacing: 0; font-size: .96rem;
  text-transform: none; text-shadow: none; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.button-quiet { background: var(--m-hover); border: 1px solid var(--m-card-line); color: var(--ink); }
.button-quiet:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }

.table-wrap { border-radius: var(--m-radius); border: 1px solid var(--m-card-line); background: var(--m-card); box-shadow: none; }
.card .table-wrap { background: transparent; border-color: transparent; }
.table thead th { background: var(--m-card-solid); border-bottom: 1px solid var(--m-card-line); }
.table tbody tr:nth-child(even) { background: none; }
.table tbody tr:hover { background: var(--m-hover); }
.field input, .field textarea, .field select, .inline-form input[type="text"] { border-radius: var(--m-radius-sm); box-shadow: none; }
.card-narrow h1, .card-narrow h2 { border-bottom: 0; padding-bottom: 0; }
.card-head { align-items: baseline; }

/* ---------- status pills (hero and footer) ---------- */
.status-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: var(--m-pill); border: 1px solid transparent; color: var(--ink-muted); font-size: .88rem; line-height: 1.4;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill strong { color: var(--ink); font-weight: 650; }
.pill a { color: var(--ink-muted); text-decoration: none; }
.pill a:hover { color: var(--ink); text-decoration: underline; }
.pill-label { color: var(--ink-faint-text); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.pill-good { color: var(--ink-good); font-weight: 600; }
.pill-bad { color: var(--ink-bad); font-weight: 600; }
.pill-muted { font-style: italic; }
.footer-status .status-pills { justify-content: flex-start; }

/* ---------- the front page ---------- */
.hero { text-align: center; padding: 8px 0 0; }
.hero-title { margin: 0; line-height: 0; }
.hero-title img { display: block; width: min(640px, 100%); height: auto; margin: 0 auto; }
.hero-lead { margin: 6px auto 26px; max-width: 44ch; font-size: 1.18rem; color: var(--ink-muted); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .button { min-width: 180px; }
.hero-status { margin-top: 30px; }
.hero-status .status-pills { justify-content: center; }

.home-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 36px; padding: 12px 18px;
  border-radius: var(--m-radius-sm); background: var(--accent-soft); border: 1px solid var(--m-card-line);
}
.home-strip-label { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--m-eyebrow); }
.home-strip-body { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 24px; min-width: 0; }
.home-strip-item { margin: 0; font-size: .94rem; }
.home-strip-item .event-name { font-weight: 650; }
.home-strip-more { font-size: .9rem; }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 36px; }
/* three cards: 3 across on a desktop, 2 + one full-width on a tablet, a stack on a phone */
@media (max-width: 960px) { .home-cards > .home-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.home-card { display: flex; flex-direction: column; padding: 22px 24px; min-width: 0; }
.home-card-label { margin: 0 0 14px; font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--m-eyebrow); }
.home-card-title { margin: 0; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.home-card-title a { color: var(--ink); text-decoration: none; }
.home-card-title a:hover { text-decoration: underline; }
.home-card-sub { margin: 4px 0 0; font-size: .92rem; color: var(--ink-muted); }
.home-card-figure { margin: 12px 0 2px; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-accent); font-variant-numeric: tabular-nums; }
.home-card-link { margin: auto 0 0; padding-top: 16px; font-size: .9rem; font-weight: 600; }
.home-card-link a, .home-strip-more, .home-section > .card-head > a, .news-more a { text-decoration: none; }
.home-card-link a::after, .home-strip-more::after, .home-section > .card-head > a::after, .news-more a::after { content: " \2192"; }
.home-card-link a:hover, .home-strip-more:hover, .home-section > .card-head > a:hover, .news-more a:hover { text-decoration: underline; }
.home-card .raid-now { margin: 0 0 12px; }
.home-card .weather-icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 2px; }
.home-card .weather-clear { margin: 0; }

.boosted-row { display: flex; align-items: center; gap: 16px; }
.home-card .boosted-figure { flex: none; width: 88px; height: 88px; margin: 0; border-radius: var(--m-radius-sm); background: var(--m-pill); }
.home-card .boosted-figure img { transform: scale(1.5); }
.boosted-text { min-width: 0; }
.home-card .boosted-name { text-align: left; margin: 0 0 6px; }
.home-card .boosted-bonus { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .9rem; }
.boosted-bonus > div { display: flex; gap: 6px; }
.home-card .boosted-bonus dt { color: var(--ink-faint-text); }
.home-card .boosted-bonus dd { margin: 0; font-weight: 650; color: var(--ink-good); }

.home-section { margin-top: 56px; }
.home-section > .card-head { margin-bottom: 16px; }
.home-section > .card-head h2 { margin: 0; }
.news-card { display: block; margin-bottom: 14px; padding: 24px 28px; }
.news-card h3 { margin: 2px 0 8px; font-size: 1.3rem; letter-spacing: -0.015em; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-date { margin: 0; font-size: .84rem; }
.news-teaser { margin: 0 0 10px; color: var(--ink-muted); max-width: 75ch; }
.news-more { margin: 0; font-size: .92rem; }
.empty-state { text-align: center; padding: 44px 24px; }
.empty-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 650; }
.empty-state p { margin-left: auto; margin-right: auto; max-width: 46ch; }
.empty-state p:last-child { margin-bottom: 0; }
.home-rare { padding: 8px 24px; }
.home-rare .rare-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px; }
.home-rare .rare-drop, .home-rare .rare-drop:first-child { padding: 12px 0; border: 0; }

/* ---------- tablet and phone ---------- */
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; padding: 0 16px; min-height: 56px; gap: 0 12px; }
  .home .brand { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 40px; padding: 0 14px;
    border: 1px solid var(--m-card-line); border-radius: 10px; background: var(--m-hover); color: var(--ink);
    font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .sections { flex: 1 1 100%; order: 3; max-height: calc(100vh - 64px); overflow-y: auto; padding-bottom: 12px; }
  .js .sections { display: none; }
  .js.nav-open .sections { display: block; }
  .sections-inner { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 4px; }
  .sections .section-link, .sections summary { min-height: 46px; border-radius: 10px; padding: 0 12px; font-size: 1rem; }
  .sections summary { justify-content: space-between; }
  .group-menu { position: static; min-width: 0; margin: 2px 0 6px 12px; padding: 4px 0 4px 12px; background: none; border: 0; border-left: 1px solid var(--m-card-line); border-radius: 0; box-shadow: none; }
  .group-menu a { min-height: 42px; display: flex; align-items: center; white-space: normal; }
  .sections .account-nav { margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid var(--m-card-line); justify-content: space-between; }
  .sections .account-nav a.button { flex: 1; justify-content: center; }
  .page { padding: 28px 16px 56px; }
  .footer-inner { padding: 24px 16px 32px; }
}
@media (max-width: 560px) {
  .home-strip { flex-direction: column; align-items: flex-start; }
  .card, .stat { padding: 18px; }
  .home-card { padding: 18px 20px; }
  .news-card { padding: 18px 20px; }
  .hero-lead { font-size: 1.05rem; margin-bottom: 20px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-status { margin-top: 22px; }
  .hero-status .status-pills, .footer-status .status-pills { gap: 6px; }
  .pill { padding: 5px 11px; font-size: .84rem; }
  .home-cards { margin-top: 28px; gap: 12px; }
  .home-section { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .button, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; } }

/* changelog: one card per date, the day's builds inside it */
.changelog-day .changelog-build + .changelog-build { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--m-line, rgba(255,255,255,.08)); }
.changelog-day .changelog-build h3, .changelog-day .changelog-build h4 { margin: 0 0 8px; font-size: 1.05rem; }
.changelog-day .changelog-build ul { margin: 0; }

/* Grouped menus (Game, owner 2026-10-29): titled columns side by side on desktop, stacked with their titles on a
   phone. A plain group keeps one column. */
.group-col { display: flex; flex-direction: column; min-width: 0; }
.group-col-title {
  padding: 6px 12px 4px; font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.group-menu-columns { flex-direction: row; gap: 6px; min-width: 0; }
.group-menu-columns .group-col { width: 172px; }
@media (max-width: 860px) {
  .group-menu-columns { flex-direction: column; gap: 4px; }
  .group-menu-columns .group-col { width: auto; }
}

/* A video in a news post (markdown.py `@video`). */
.news-video { display: block; width: 100%; max-width: 960px; height: auto; margin: 16px 0; border-radius: 10px; background: #000; }
