/*
Theme Name: Ash Legion
Theme URI: https://www.ashlegion.com
Description: Block theme for Agents of the Ash Legion. Layout and styling are being refined.
Author: Ash Nathens
Version: 1.15.16
Requires at least: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: ash-legion
*/

/* Full-height page: header at top, footer at the bottom, body fills the space between. */
/* The page fills exactly one screen. Only the sidebar menu and the main column scroll; the header and footer stay put. */
html, body { height: 100%; overflow: hidden; }
body > .wp-site-blocks, .is-root-container { display: flex; flex-direction: column; height: 100vh !important; min-height: 0 !important; overflow: hidden; }
body.admin-bar > .wp-site-blocks, body.admin-bar .is-root-container { height: calc(100vh - 32px) !important; }
@media (max-width: 782px) { body.admin-bar > .wp-site-blocks, body.admin-bar .is-root-container { height: calc(100vh - 46px) !important; } }

/* Remove WordPress's default spacing between header, body and footer. */
.wp-site-blocks > *, .is-root-container > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* Layout. Widths are percentages and heights are viewport units, so the 1920x1080 ratios hold at any screen size. */
.ash-header { display: flex; height: 80px; margin: 0; padding: 0; box-sizing: border-box; align-items: stretch; }
.ash-header-brand { width: auto; flex-shrink: 0; display: flex; align-items: center; gap: 1rem; padding: 0 2rem; box-sizing: border-box; align-self: stretch; }
.ash-header-tools { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; padding: 0 2rem; box-sizing: border-box; }

/* Desktop: the text menu lives in the sidebar, not the header. */
.ash-header .wp-block-navigation { display: none !important; }

.ash-body { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; margin: 0; padding: 0; gap: 0 !important; }

/* Sidebar column: fixed width, full height. Its menu stays in view while the page scrolls. */
.ash-sidebar-wrap { display: flex; align-self: stretch; width: 10.42%; flex-shrink: 0; min-height: 0; }
.ash-sidebar { width: 100%; box-sizing: border-box; height: 100%; }
.ash-sidebar-inner { height: 100%; overflow-y: auto; padding: 2rem 1.5rem; box-sizing: border-box; }

/* Main column: takes the rest of the width, with content centred. It scrolls on its own. */
.ash-main { width: 100%; flex-grow: 1; min-height: 0; height: 100%; overflow-y: auto; padding: 3rem 4vw; box-sizing: border-box; }
/* Main area background: the image in assets/site-background.jpg. To change the image, replace that file. */
.ash-main {
  background-color: #676767;
  background-image: url("https://ashlegion.com/assets/site-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ash-main > * { margin-left: auto; margin-right: auto; max-width: 760px; width: 100%; }

/* Footer: at least 100px high, with 20px padding, pinned to the bottom of the page. */
.ash-footer-wrap { margin-top: auto !important; flex-shrink: 0; }
.ash-footer { display: grid !important; grid-template-columns: 1fr auto; align-items: center; flex-shrink: 0; min-height: 40px; margin: 0; padding: 0 2rem; box-sizing: border-box; }
.ash-footer, .ash-footer p, .ash-footer a { font-family: var(--wp--preset--font-family--roboto), sans-serif; }
.ash-footer p { margin: 0; text-align: left; }
.ash-footer p:last-child { text-align: right; }

/* Left menu: plain list, no bullets, Roboto font. */
.ash-sidebar ul, .ash-sidebar .wp-block-navigation__container { list-style: none; margin: 0; padding: 0; }
.ash-sidebar li { margin: 0 0 0.75rem; }
.ash-sidebar, .ash-sidebar a { font-family: var(--wp--preset--font-family--roboto), sans-serif; }
.ash-sidebar a { text-decoration: none; }
.ash-sidebar a:hover { text-decoration: underline; }

/* Each competition in the main list is a card: slightly darker than the main area, so each item is clearly separate. */
.ash-main .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ash-main .wp-block-post-template > li { background-color: #565656; padding: 1.25rem 1.5rem; margin: 0; box-sizing: border-box; border-radius: 0 6px 6px 6px; }

/* Page title banner: small breadcrumb above a large title, with a red accent line underneath. */
.ash-page-banner { box-sizing: border-box; background-color: rgba(0, 0, 0, 0.6); padding: 1.5rem 2rem; margin-bottom: 6px; border-radius: 0 6px 6px 6px; }
.ash-breadcrumb { font-family: var(--wp--preset--font-family--roboto), sans-serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.25rem; text-align: left; }
.ash-breadcrumb a { color: var(--wp--preset--color--text-light); text-decoration: none; }
.ash-breadcrumb a:hover { text-decoration: underline; }
.ash-page-banner .wp-block-post-title { font-family: var(--wp--preset--font-family--oswald), sans-serif; font-size: 2.5rem; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; text-align: left; }

/* Dark panel behind the page content, so text reads clearly over the background image. */
.ash-main .entry-content { background-color: rgba(0, 0, 0, 0.6); padding: 2rem; border-radius: 0 6px 6px 6px; }

/* Main area text that isn't a post heading: Roboto. Post headings stay in Oswald. */
.ash-main, .ash-main p, .ash-main li, .ash-main time, .ash-main .wp-block-post-date, .ash-main .wp-block-post-excerpt { font-family: var(--wp--preset--font-family--roboto), sans-serif; }

/* Body text justified with hyphenation. Hyphenation needs the page language set in site settings. */
p { text-align: justify; hyphens: auto; }
.ash-sidebar p, .ash-footer p, .ash-header p { text-align: left; }
h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-site-title { text-align: left; hyphens: manual; }

/* Phone and small tablet: sidebar menu moves into the header menu button. */
@media (max-width: 768px) {
  .ash-sidebar-wrap { display: none; }
  .ash-main { width: 100%; padding: 2rem 5vw; }
  .ash-header-brand { width: auto; }
  .ash-header .wp-block-navigation { display: block !important; }
  .ash-footer { display: flex !important; flex-direction: column; justify-content: center; padding: 4px 1rem; gap: 0; min-height: 40px; font-size: 11px; line-height: 1.2; text-align: center; }
  .ash-footer p { text-align: center !important; }
}

/* Horizontal menu bar under the header: half the header's height. Links turn dark gold on hover. */
.ash-navbar { flex: 0 0 40px; height: 40px; box-sizing: border-box; padding: 0 2rem; display: flex; align-items: center; }
.ash-navbar .wp-block-navigation { height: 40px; }
.ash-navbar .wp-block-navigation__container { gap: 0; }
.ash-navbar .wp-block-navigation-item { margin: 0; }
.ash-navbar .wp-block-navigation-item__content { display: flex; align-items: center; height: 40px; padding: 0 14px; color: #f2f2f2; text-decoration: none; font-family: var(--wp--preset--font-family--roboto), sans-serif; font-size: 14px; }
.ash-navbar .wp-block-navigation-item__content:hover { background: #8b6d1f; color: #f2f2f2; }
@media (max-width: 782px) { .ash-navbar { padding: 0 1rem; } }

/* Reset countdowns in the menu bar: daily and weekly game resets, counted down in the visitor's browser. */
.ash-reset-timers { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; font-family: var(--wp--preset--font-family--roboto), sans-serif; font-size: 14px; color: #f2f2f2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ash-reset-label { opacity: 0.75; margin-right: 0.4rem; }
.ash-reset-value { color: #c9a227; font-weight: 600; display: inline-block; min-width: 11ch; }
@media (max-width: 600px) { .ash-reset-timers { gap: 0.75rem; font-size: 12px; } .ash-reset-label { display: none; } }

/* Game data bar: sits between the main content and the footer, the same height as the menu bar. Timers are centred. */
.ash-gamedata-wrap { flex-shrink: 0; margin-top: 0 !important; }
.ash-gamedata { flex: 0 0 40px; height: 40px; box-sizing: border-box; padding: 0 2rem; display: flex; align-items: center; justify-content: center; }
.ash-gamedata .ash-reset-timers { margin: 0 auto; }
@media (max-width: 782px) { .ash-gamedata { padding: 0 1rem; } }

/* 2px black dividers: under the menu bar and above the game data bar. */
.ash-navbar { border-bottom: 2px solid #000000; }
.ash-gamedata { border-top: 2px solid #000000; }

/* Game data bar contents: left aligned like the menu bar. Each box is divided by a full-height 2px black line. */
.ash-gamedata { justify-content: flex-start; padding: 0 2rem; }
.ash-gamedata-bar { display: flex; align-items: stretch; height: 40px; font-family: var(--wp--preset--font-family--roboto), sans-serif; font-size: 14px; color: #f2f2f2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ash-gd-box { display: flex; align-items: stretch; }
.ash-gd-box { border-right: 2px solid #000000; }
.ash-gd-text { display: flex; align-items: center; gap: 0.5rem; padding: 0 14px; }
.ash-gd-title { margin-right: 0.25rem; }
.ash-gd-link { display: flex; align-items: center; padding: 0 14px; color: #f2f2f2; text-decoration: none; }
.ash-gd-link:hover { background: #8b6d1f; color: #f2f2f2; }
@media (max-width: 600px) { .ash-gamedata-bar, .ash-gd-link { font-size: 12px; } .ash-gd-text { gap: 0.25rem; } }

/* Menu bar: full-height black dividers between top-level links, matching the game data bar. */
.ash-navbar .wp-block-navigation__container > .wp-block-navigation-item { display: flex; align-items: stretch; }
.ash-navbar .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item { border-left: 2px solid #000000; }
.ash-navbar .wp-block-navigation__container > .wp-block-navigation-item:last-child { border-right: 2px solid #000000; }

/* Drop-down sub-menus: menu-bar charcoal panel, black edge, light text. Rows keep the menu bar's size and gold hover. */
.ash-navbar .wp-block-navigation .wp-block-navigation__submenu-container { background-color: #3a3530; color: #f2f2f2; border: 2px solid #000000; min-width: 180px; padding: 0; box-shadow: none; }
.ash-navbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
.ash-navbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { background: transparent; color: #f2f2f2; height: 40px; padding: 0 14px; width: 100%; box-sizing: border-box; }
.ash-navbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #8b6d1f; color: #f2f2f2; }

/* Competitions list page: wider than the reading column, so several cards fit per row. The panel behind the text is dropped. */

/* Content panels include their padding in the width, so they line up exactly with the title banner. */
.ash-main .entry-content { box-sizing: border-box; }

/* API status box at the right of the data bar. Blue = verified, burnt orange = unverified.
   Hover adds a golden glow, so the colour (the status) never changes. */
.ash-gamedata-bar { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ash-gd-status { display: flex; align-items: center; flex-shrink: 0; height: 40px; padding: 0 14px; border-left: 2px solid #000000; border-right: 2px solid #000000; color: #ffffff; font-family: var(--wp--preset--font-family--roboto), sans-serif; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ash-gd-status--verified { background: #006699; }
.ash-gd-status--unverified { background: #b34700; }
.ash-gd-status:hover, .ash-gd-status:focus-visible { color: #ffffff; box-shadow: inset 0 0 0 2px #c9a227, 0 0 12px rgba(201, 162, 39, 0.75); outline: none; }
@media (max-width: 600px) {
  .ash-gd-status { font-size: 12px; padding: 0 8px; }
  .ash-gd-box--links { display: none; }
  .ash-gd-box--timers .ash-reset-label, .ash-gd-box--timers .ash-gd-title { display: none; }
  .ash-gd-box--timers .ash-gd-text { padding: 0 8px; }
}

/* Event Timer page: fills the content area between the menu bar and the data bar. Every rule is scoped to .ash-et. */
.ash-event-timer-page { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; }
.ash-et {
  --gold: #c9a227; --panel: #3a3530; --box: rgba(0, 0, 0, 0.35); --line: rgba(255, 255, 255, 0.12);
  --fg: #f2f2f2; --muted: #b5b5b5; --label-w: 190px;
  --bg: #232120; --top: #000000; --strip: rgba(0, 0, 0, 0.55); --strip-hover: rgba(0, 0, 0, 0.7);
  --sep: rgba(255, 255, 255, 0.1); --zebra: rgba(255, 255, 255, 0.04); --axis: rgba(255, 255, 255, 0.2);
  --grid: rgba(255, 255, 255, 0.07); --tick-hour: rgba(255, 255, 255, 0.3); --input-bg: #111111;
  --on-gold: #1a1a1a; --bar-ink: #111111;
  box-sizing: border-box; width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column;
  padding: 14px 2rem; background: var(--bg); color: var(--fg); overflow: hidden;
  font-family: var(--wp--preset--font-family--roboto), Roboto, system-ui, sans-serif; font-size: 13px; line-height: 1.4;
}
.ash-et *, .ash-et *::before, .ash-et *::after { box-sizing: border-box; }
.ash-et h2 { font-family: var(--wp--preset--font-family--oswald), Oswald, sans-serif; font-weight: 700; margin: 0; letter-spacing: 0.02em; color: var(--fg); }
.ash-et button { font: inherit; color: inherit; cursor: pointer; }
.ash-et button:focus-visible, .ash-et input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.ash-et .ash-et-top { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 260px) 1fr auto; align-items: center; gap: 10px 20px; background: var(--top); padding: 10px 16px; border-radius: 0 6px 6px 6px; margin-bottom: 12px; }
.ash-et .ash-et-brand h2 { font-size: 20px; text-transform: uppercase; }
.ash-et .ash-et-brand p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.ash-et .ash-et-clocks { display: flex; gap: 20px; justify-content: center; }
.ash-et .ash-et-clock { text-align: center; }
.ash-et .ash-et-clock span { font-family: var(--wp--preset--font-family--oswald), Oswald, sans-serif; font-size: 24px; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.ash-et .ash-et-clock small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ash-et .ash-et-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ash-et .ash-et-seg, .ash-et .ash-et-nav { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ash-et .ash-et-seg button, .ash-et .ash-et-nav button { background: transparent; border: 0; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.ash-et .ash-et-seg button + button, .ash-et .ash-et-nav button + button { border-left: 1px solid var(--line); }
.ash-et .ash-et-seg button.on { background: var(--gold); color: var(--on-gold); font-weight: 500; }

.ash-et .ash-et-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); gap: 12px; }
.ash-et .ash-et-timeline-wrap { min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--box); border-radius: 0 6px 6px 6px; padding: 6px 0; }
.ash-et .ash-et-side { min-height: 0; height: 100%; overflow: auto; background: var(--panel); border-radius: 0 6px 6px 6px; padding: 12px; }

.ash-et .trow { display: grid; grid-template-columns: var(--label-w) 1fr; align-items: stretch; min-width: 520px; }
.ash-et .group-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px; font-family: var(--wp--preset--font-family--oswald), Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); }
.ash-et .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ash-et .ev-label { padding: 4px 10px 4px 14px; font-size: 12px; align-self: center; }
.ash-et .ev-label b { font-weight: 500; display: block; }
.ash-et .ev-label small { color: var(--muted); font-size: 10px; }
.ash-et .track { position: relative; height: 38px; margin: 3px 10px 3px 0; border-left: 1px solid var(--line); }
.ash-et .track-in { position: absolute; inset: 0; overflow: hidden; }
.ash-et .bar { position: absolute; top: 3px; bottom: 3px; min-width: 6px; border: 0; border-radius: 3px; padding: 0 5px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 11px; color: var(--bar-ink); text-align: left; }
.ash-et .bar.past { opacity: 0.3; }
.ash-et .bar.live { box-shadow: 0 0 0 2px var(--gold); }
.ash-et .bar:hover { filter: brightness(1.15); }
.ash-et .nowline { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--gold); pointer-events: none; z-index: 2; }
.ash-et .axis .track { height: 26px; border-left: 0; margin: 0 10px 0 0; }
.ash-et .tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.ash-et .tick.hour { border-left-color: var(--tick-hour); }
.ash-et .tick span { position: absolute; top: 3px; left: 3px; font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.ash-et .ash-et-filter { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.ash-et .ash-et-side h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 12px 0 6px; color: var(--gold); }
.ash-et .ash-et-side h2:first-of-type { margin-top: 0; }
.ash-et .item { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--box); border-radius: 0 4px 4px 4px; padding: 8px 10px; margin-bottom: 6px; }
.ash-et .item b { font-weight: 500; display: block; font-size: 13px; }
.ash-et .item small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ash-et .copy { background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.ash-et .copy:hover { background: var(--gold); color: var(--on-gold); }
.ash-et .empty { color: var(--muted); font-size: 12px; margin: 0 0 6px; }

.ash-et .ash-et-cards { display: none; }
.ash-et .card-item { background: var(--box); border-radius: 0 6px 6px 6px; padding: 12px; margin-bottom: 8px; }
.ash-et .card-item .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ash-et .card-item h3 { font-family: var(--wp--preset--font-family--oswald), Oswald, sans-serif; font-weight: 500; font-size: 16px; margin: 0 0 3px; }
.ash-et .card-item p { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Event Timer: the top of the list (ruler and Favourites heading) stays put; the rest scrolls. Scoped to .ash-et. */
.ash-et #ash-et-timeline { flex: 1 1 auto; min-height: 0; overflow: auto; }
.ash-et .ash-et-sticky { position: sticky; top: 0; z-index: 3; background: var(--bg); }
.ash-et .ash-et-sticky > .axis-row { background: transparent; }
.ash-et button.group-head { width: 100%; border: 0; border-left: 6px solid var(--hue, #666); border-radius: 0; text-align: left; cursor: pointer; color: var(--fg); background: var(--strip); }
.ash-et button.group-head[draggable="true"] { cursor: grab; }
.ash-et button.group-head:hover { background: var(--strip-hover); }
.ash-et button.group-head.dragging { opacity: 0.5; }
.ash-et button.group-head.drop-target { box-shadow: inset 0 3px 0 var(--gold); }
.ash-et .group-head .chev { margin-left: auto; color: var(--muted); font-style: normal; font-size: 14px; }
.ash-et .group-head span { margin-right: 6px; }
.ash-et .trow { border-bottom: 1px solid var(--sep); box-shadow: inset 4px 0 0 var(--hue, #666); }
.ash-et .trow.alt { background: var(--zebra); }
.ash-et .trow.axis-row { border-bottom: 1px solid var(--axis); box-shadow: none; background: transparent; }
.ash-et .axis-label { width: 100%; }
.ash-et .group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 8px 14px; background: var(--strip); border-left: 6px solid var(--hue, #666); font-family: var(--wp--preset--font-family--oswald), Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: #f2f2f2; position: sticky; left: 0; }
.ash-et .group-head span { font-weight: 700; }
.ash-et .group-head em { font-style: normal; font-size: 12px; color: var(--muted); }
.ash-et .ev-label { padding: 6px 10px 6px 10px; font-size: 12px; align-self: center; }
.ash-et .ev-title { display: flex; align-items: center; gap: 6px; }
.ash-et .ev-title span { display: block; min-width: 0; }
.ash-et .ev-label b { font-weight: 500; display: block; }
.ash-et .ev-label small { color: var(--muted); font-size: 10px; }
.ash-et .fav { background: transparent; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 4px; flex: none; }
.ash-et .fav.on { color: var(--gold); }
.ash-et .fav:hover { color: var(--gold); }
.ash-et .fav-hint { color: var(--muted); font-size: 12px; padding: 8px 14px; }
.ash-et .tick-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); pointer-events: none; }
.ash-et .track { height: 40px; }
@media (max-width: 900px) { .ash-et .ash-et-layout { grid-template-columns: 1fr; grid-template-rows: auto; overflow: auto; } .ash-et .ash-et-timeline-wrap { height: auto; max-height: 60vh; } .ash-et .ash-et-side { height: auto; } }
@media (max-width: 720px) {
  .ash-et { padding: 10px 1rem; }
  .ash-et .ash-et-top { grid-template-columns: 1fr; justify-items: start; }
  .ash-et .ash-et-clocks, .ash-et .ash-et-controls { justify-content: flex-start; }
  .ash-et .ash-et-layout { display: block; overflow: auto; }
  .ash-et .ash-et-timeline-wrap { display: none; }
  .ash-et .ash-et-cards { display: block; }
}

/* 1.15.2: event timer switch in a box, fixed-width expand/collapse button. Dark is the default. */
/* 1.15.1: event timer light and dark slider switch, expand/collapse all (remembered). Dark is the default. */
/* 1.14.4: event timer search */
.ash-et .ash-et-search { min-width: 0; }
.ash-et .ash-et-search { display: flex; gap: 6px; align-items: center; }
.ash-et .ash-et-search input { min-width: 0; flex: 1 1 auto; }
.ash-et .ash-et-expand { flex: 0 0 auto; width: 96px; text-align: center; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 6px 0; font: inherit; font-size: 12px; white-space: nowrap; }
.ash-et .ash-et-expand:hover { color: var(--fg); border-color: var(--gold); }
.ash-et .ash-et-search input { width: 100%; background: var(--input-bg); color: var(--fg); border: 1px solid var(--gold); border-radius: 4px; padding: 7px 10px; font: inherit; font-size: 14px; }
.ash-et .ash-et-search input::placeholder { color: var(--muted); }
.ash-et .ash-et-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.ash-et .ash-et-nomatch { padding: 12px 16px; }
@media (max-width: 720px) { .ash-et .ash-et-search input { font-size: 16px; } }

.ash-et .ash-et-theme { position: relative; flex: 0 0 auto; width: 56px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); overflow: hidden; }
.ash-et .ash-et-theme:hover { border-color: var(--gold); }
.ash-et .ash-et-theme .slot { position: absolute; top: 0; bottom: 0; width: 27px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ash-et .ash-et-theme .slot.moon { left: 0; }
.ash-et .ash-et-theme .slot.sun { left: 27px; }
.ash-et .ash-et-theme .knob { position: absolute; top: 1px; left: 1px; width: 26px; height: 24px; border-radius: 3px; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.ash-et .ash-et-theme[aria-checked="true"] .knob { transform: translateX(27px); }
.ash-et .ash-et-theme .knob .ico-sun { display: none; }
.ash-et[data-theme="light"] .ash-et-theme .knob .ico-sun { display: block; }
.ash-et[data-theme="light"] .ash-et-theme .knob .ico-moon { display: none; }
@media (prefers-reduced-motion: reduce) { .ash-et .ash-et-theme .knob { transition: none; } }
/* Light theme: warm cream and autumn tones. Dark is the default and is unchanged. */
.ash-et[data-theme="light"] {
  --gold: #8a5a12; --panel: #efe3c8; --box: #fbf6ea; --line: rgba(43, 33, 24, 0.2);
  --fg: #2b2118; --muted: #5e5040;
  --bg: #f6efe1; --top: #efe3c8; --strip: rgba(43, 33, 24, 0.08); --strip-hover: rgba(43, 33, 24, 0.14);
  --sep: rgba(43, 33, 24, 0.12); --zebra: rgba(43, 33, 24, 0.04); --axis: rgba(43, 33, 24, 0.25);
  --grid: rgba(43, 33, 24, 0.08); --tick-hour: rgba(43, 33, 24, 0.3); --input-bg: #fbf6ea;
  --on-gold: #fbf6ea; --bar-ink: #1f1810;
  color-scheme: light;
}
/* Event colours are softer on the cream background. */
.ash-et[data-theme="light"] .bar { opacity: 0.78; }

/* Footer links: Privacy and Contact, divided by a 2px near-white line. */
.ash-footer-links { display: flex; align-items: stretch; justify-content: flex-end; margin: 0; }
.ash-footer-links p { margin: 0; display: flex; align-items: center; padding: 0 14px; }
.ash-footer-links p:first-child { padding-left: 0; }
.ash-footer-links p:last-child { padding-right: 0; }
.ash-footer-links p + p { border-left: 2px solid #f2f2f2; }
.ash-footer-links a { color: inherit; text-decoration: none; }
.ash-footer-links a:hover { color: #c9a227; text-decoration: underline; }
@media (max-width: 782px) { .ash-footer-links { justify-content: center; } }

/* 1.15.9: header search matches the profile picture and social icons (36px tall). */
.ash-header-tools .wp-block-search { margin: 0; }
.ash-header-tools .wp-block-search__inside-wrapper { height: 36px; min-height: 36px; padding: 0; display: flex; align-items: stretch; box-sizing: border-box; }
.ash-header-tools .wp-block-search__input { height: 100%; padding: 0 10px; font-size: 14px; line-height: 1; box-sizing: border-box; }
.ash-header-tools .wp-block-search__button { height: 100%; padding: 0 14px; font-size: 14px; line-height: 1; box-sizing: border-box; }

/* 1.15.9: footer slimmer. Text 14px on desktop, never below 12px on phones. */
.ash-footer { min-height: 28px; }
.ash-footer p, .ash-footer a { font-size: 14px; line-height: 1.2; }
@media (max-width: 782px) {
  .ash-footer { min-height: 28px; padding: 4px 1rem; font-size: 12px; }
  .ash-footer p { font-size: 12px; }
}

/* 1.15.10: the menu lives in the theme (parts/navbar.html), not the Site Editor. Desktop only; phone is a later step. */
.ash-navbar .ash-menu { display: flex; align-items: stretch; height: 40px; margin: 0; padding: 0; list-style: none; font-family: var(--wp--preset--font-family--roboto), sans-serif; font-size: 14px; }
.ash-navbar .ash-menu-item { position: relative; display: flex; align-items: stretch; margin: 0; padding: 0; }
.ash-navbar .ash-menu > .ash-menu-item + .ash-menu-item { border-left: 2px solid #000000; }
.ash-navbar .ash-menu > .ash-menu-item:last-child { border-right: 2px solid #000000; }
.ash-navbar .ash-menu-link { display: flex; align-items: center; height: 40px; padding: 0 14px; box-sizing: border-box; color: #f2f2f2; text-decoration: none; white-space: nowrap; }
.ash-navbar .ash-menu-link:hover, .ash-navbar .ash-menu-link:focus-visible { background: #8b6d1f; color: #f2f2f2; }
.ash-navbar .ash-menu-has-sub > .ash-menu-link::after { content: "\25BE"; margin-left: 8px; font-size: 11px; opacity: 0.8; }
.ash-navbar .ash-menu-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 10; width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none; background: #3a3530; border: 2px solid #000000; }
.ash-navbar .ash-menu-sub .ash-menu-link { height: 40px; width: 100%; }
.ash-navbar .ash-menu-has-sub:hover > .ash-menu-sub,
.ash-navbar .ash-menu-has-sub:focus-within > .ash-menu-sub { display: block; }

/* 1.15.12: Snake! link: same colour as the nav bar, with a lighter snake wriggling across it. On hover the snake steps aside and the gold hover shows, as on the other links. */
.ash-navbar .ash-menu-snake { position: relative; overflow: hidden; }
.ash-navbar .ash-nav-snake-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; transition: opacity 0.15s ease; }
.ash-navbar .ash-menu-snake:hover .ash-nav-snake-canvas, .ash-navbar .ash-menu-snake:focus-visible .ash-nav-snake-canvas { opacity: 0; }
.ash-navbar .ash-snake-label { position: relative; z-index: 2; color: #f2f2f2; }

/* 1.15.15: Forums link after Snake; Privacy and Contact pushed to the right end of the menu bar. */
/* 1.15.16: the menu list fills the bar, so the right-aligned items have room to move. */
.ash-navbar .ash-menu { flex: 1 1 auto; width: 100%; min-width: 0; }
.ash-navbar .ash-menu > .ash-menu-item.ash-menu-end { margin-left: auto; }
