/* Liscaragh Software - site styles */

:root {
  --black: #0a0a0a;
  --logo-black: #000000; /* exact bg colour of the logo files, for a seamless header */
  --panel: #141414;
  --panel-border: #2a2a2a;
  --white: #f5f5f5;
  --grey: #b8b8b8;
  --orange: #de5819; /* sampled from the actual logo files */
  --orange-dark: #b8480f;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Inline prose links carry an underline so they aren't signalled by colour
   alone (WCAG 1.4.1). Nav, buttons and footer links are excluded. */
main p a:not(.btn),
.legal-doc a:not(.btn),
.disclaimer a:not(.btn),
.note a:not(.btn),
.checklist a:not(.btn),
.cookie-banner-inner a:not(.btn) { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  background: var(--logo-black); /* pixel-matches the logo file's own background, no seam */
  border-bottom: 1px solid var(--panel-border);
  padding: 6px 0;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  line-height: 1.1;
}
.brand-logo {
  display: block;
  height: 140px;
  width: auto;
}
@media (max-width: 640px) {
  .brand-logo { height: 90px; }
}
.product-logo {
  display: block;
  height: 110px;
  width: auto;
  margin: 0 0 20px;
}
@media (max-width: 640px) {
  .product-logo { height: 80px; }
}
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 8px;
}
.hero-text {
  flex: 1 1 420px;
  min-width: 280px;
}
.hero-text .lede { max-width: none; }
.price-card {
  flex: 0 0 auto;
  width: 260px;
  max-width: 40%;
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.price-card:hover { border-color: var(--orange); }
.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}
.price-points {
  list-style: none;
  margin: 0;
  padding: 16px 20px 20px;
  background: var(--panel);
}
.price-points li {
  color: var(--grey);
  font-size: 0.85rem;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.price-points li:last-child { margin-bottom: 0; }
.price-points li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
@media (max-width: 720px) {
  .hero { flex-direction: column; gap: 24px; }
  .price-card { width: 260px; max-width: 60%; margin: 0 auto; }
}
nav.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  flex: 1 1 100%;
  justify-content: flex-end;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--orange); text-decoration: none; }

/* Standing Purchase call to action, always visible regardless of which
   page a visitor lands on. Book a demo and Trial are deliberately not
   here; they only appear on the Liscaragh Migrate page itself. */
nav.main-nav ul.nav-cta { gap: 10px; }
nav.main-nav .nav-btn,
nav.main-nav .nav-btn:hover {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  /* The general nav.main-nav a rule sets light text for ordinary nav
     links; it's more specific than .btn's own black text, so without
     this override the Purchase button rendered pale text on the
     orange background at 3.49:1 contrast, below the 4.5:1 minimum. */
  color: var(--black);
}

/* Header dropdown submenu. Opens on mouse hover and on keyboard focus
   (:focus-within) for pointer/keyboard visitors. Touch browsers disagree on
   how to simulate :hover from a tap (iOS shows it on first tap, some Android
   browsers only on a press-and-hold), so touch-only devices get an explicit
   tap-to-open .open class instead, added by the small script in footer.php.
   First tap opens the menu, a second tap on the same link follows it. */
nav.main-nav li.has-sub { position: relative; }
nav.main-nav ul.sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  flex-direction: column;
  gap: 0;
  min-width: 250px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 0;
  margin: 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
nav.main-nav li.has-sub:hover > ul.sub-nav,
nav.main-nav li.has-sub:focus-within > ul.sub-nav,
nav.main-nav li.has-sub.open > ul.sub-nav { display: block; }
nav.main-nav ul.sub-nav li { display: block; }
nav.main-nav ul.sub-nav a {
  display: block;
  padding: 9px 18px;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--white);
  white-space: nowrap;
}
nav.main-nav ul.sub-nav a:hover { color: var(--orange); background: rgba(222, 88, 25, 0.08); }

/* Main content */
main { padding: 56px 0 80px; }

h1 {
  font-size: 2.2rem;
  margin: 0 0 16px;
  color: var(--white);
  text-wrap: balance;
}
h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
  color: var(--white);
}
h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--white);
}
p { color: var(--grey); margin: 0 0 16px; }
.lede {
  font-size: 1.2rem;
  color: var(--white);
  max-width: 640px;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
}
.btn:hover { background: var(--orange-dark); text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--panel-border);
}
.btn.secondary:hover { border-color: var(--orange); color: var(--orange); }
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin: 16px 0 0;
}
.price a { font-weight: 400; }

/* Product cards on home */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 24px;
}
.product-card h3 { margin-top: 0; color: var(--white); }
.product-card .status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
/* Muted "in development / coming soon" cards. The muted look is achieved
   with a darker panel, dashed border and explicit mid-grey text, NOT blanket
   opacity, so every element stays above the 4.5:1 AA contrast threshold. */
.product-card.placeholder {
  border-style: dashed;
  background: #101010;
}
.product-card.placeholder h3 { color: var(--grey); }
.product-card.placeholder p { color: var(--grey); }
.product-card.placeholder .status {
  color: var(--grey);
  border-color: var(--grey);
}
/* Fixed 2-column layout for the homepage products grid */
.products.two-col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .products.two-col { grid-template-columns: 1fr; }
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 20px;
}
.feature h3 { margin-top: 0; font-size: 1.05rem; }
.feature p { margin-bottom: 0; font-size: 0.95rem; }

/* Checklist (Designed for real migration projects, and other tick lists).
   Auto-fit rather than a fixed 3x3 grid, so a 2-item list (e.g. the
   security page) sits side by side instead of stacking in one narrow
   column, and reading order stays left-to-right, top-to-bottom for
   any item count. */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 28px;
}
.checklist li {
  color: var(--grey);
  padding-left: 22px;
  position: relative;
}
.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
@media (max-width: 640px) {
  .checklist {
    grid-template-columns: 1fr;
  }
}

/* Sequential steps (How it works) */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 40px;
  max-width: 720px;
}
.steps li {
  position: relative;
  padding: 0 0 28px 60px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: var(--black);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: 2px;
  width: 2px;
  background: var(--panel-border);
}
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; }

/* In-page anchor nav (long pages, e.g. Migrate) */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 8px;
  padding: 14px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}
.page-nav a { color: var(--grey); font-weight: 600; text-decoration: none; }
.page-nav a:hover { color: var(--orange); text-decoration: none; }
/* Anchored headings clear the top of the viewport a little when jumped to. */
:target { scroll-margin-top: 16px; }

/* Forms */
form.card-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--black);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field .hint { color: var(--grey); font-size: 0.82rem; margin-top: 4px; }
.field.checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.field.checkbox input { width: auto; margin-top: 4px; cursor: pointer; }
/* Make the whole row clickable, not just the tiny native control, for
   easier thumb targets on mobile. */
.field.checkbox label { flex: 1; cursor: pointer; margin-bottom: 0; }

.alert {
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert.success {
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid #2ea043;
  color: #7ee2a8;
}
.alert.error {
  background: rgba(232, 98, 42, 0.12);
  border: 1px solid var(--orange);
  color: var(--orange);
}

/* Site-wide search, header, top right. Collapsed to an icon by default so
   it doesn't compete with the nav links; clicking expands an input with an
   autosuggest dropdown underneath, positioned absolute so opening it never
   reflows the header. The form still works with JS off, it's a plain GET
   to /search/. */
.site-search {
  position: relative;
  display: flex;
  align-items: center;
}
.search-toggle {
  background: none;
  border: none;
  color: var(--white);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 6px;
}
.search-toggle:hover,
.search-toggle:focus-visible { color: var(--orange); }
.search-box {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.15s ease, opacity 0.1s ease;
  z-index: 300;
}
.site-search.open .search-box {
  width: 300px;
  opacity: 1;
}
.search-box input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--white);
  font-size: 0.9rem;
}
.search-box input[type="text"]:focus {
  outline: none;
  border-color: var(--orange);
}
.search-suggestions {
  margin-top: 6px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-height: 70vh;
  overflow-y: auto;
}
.search-result {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.active {
  background: rgba(222, 88, 25, 0.08);
  text-decoration: none;
}
.search-result-title {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.search-result-sub {
  display: block;
  color: var(--grey);
  font-size: 0.8rem;
  margin-top: 2px;
}
.search-empty {
  margin: 0;
  padding: 12px 14px;
  color: var(--grey);
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .search-box { right: -40px; }
  .site-search.open .search-box { width: 260px; }
}

/* /search/ results page, the no-JS fallback and "see all results" link
   target for the header search box above. */
.search-page-form {
  display: flex;
  gap: 10px;
  margin: 16px 0 24px;
  max-width: 480px;
}
.search-page-form input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--white);
  font-size: 0.95rem;
}
.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-border);
}
.search-results-list li:first-child { padding-top: 0; }
.search-result-note {
  color: var(--grey);
  font-size: 0.85rem;
  margin: 4px 0 0;
}

/* Callout box - for a section worth making stand out from the page flow */
.callout {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 40px 0;
}
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Article byline and a centred banner figure for Field Notes posts. */
.post-meta { color: var(--grey); font-size: 0.85rem; margin: -8px 0 20px; }
.article-banner {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 8px auto 28px;
}

/* Interactive product demo embedded in an iframe (e.g. the live
   activity overlay on the Migrate page). */
.demo-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  margin: 24px 0 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.demo-frame iframe {
  width: 100%;
  /* Fallback only, for the moment before the iframe loads and before the
     resize script in migrate/index.php measures its real content height
     (or if JS is unavailable). Once loaded, the script sets an inline
     height matching the actual content, on every screen size. */
  height: 840px;
  border: 0;
  display: block;
}

/* Calendly's own inline widget (not a plain iframe we control, Calendly's
   script replaces the div's content), styled to match .demo-frame. Unlike
   the old Microsoft Bookings iframe, Calendly is built to be embedded and
   does not run a silent Microsoft sign-in check that Microsoft's own
   identity endpoint would refuse to render in a frame. */
.calendly-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  margin: 16px 0 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Static GUI screenshots (a dialog, a mapping screen), styled like
   .demo-frame's panel treatment but for a plain <img>. max-width: 100% with
   width/height: auto means the image displays at its native resolution and
   only shrinks on a narrow viewport, it never scales up past its own pixel
   size and goes soft. */
.screenshot {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  margin: 20px auto 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.demo-caption {
  color: var(--grey);
  font-size: 0.85rem;
  margin: 0 0 32px;
}
.demo-caption-top {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--white);
}

/* Article ad - a boxed Liscaragh Migrate mention inserted mid-article.
   Dashed border and a small label keep it visually apart from the
   article's own prose, so it reads as separate rather than as part
   of the argument the article is making. */
.article-ad {
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 40px 0;
  background: rgba(222, 88, 25, 0.05);
}
.article-ad .ad-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.article-ad h3 { margin: 0 0 8px; }
.article-ad p { margin: 0 0 16px; color: var(--grey); }
.article-ad p:last-child { margin-bottom: 0; }
.article-ad .cta-group { margin: 0; }

/* Pull-quote: a single spoken line lifted out of the surrounding prose. */
.pull-quote {
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--orange);
  line-height: 1.3;
  margin: 20px 0;
  padding-left: 18px;
  border-left: 3px solid var(--orange);
}
@media (max-width: 640px) {
  .pull-quote { font-size: 1.25rem; }
}

/* Inline and block code (help/documentation pages) */
main code {
  background: #1c1c1c;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.88em;
  color: #e8e8e8;
  word-break: break-word;
}
main pre {
  background: #111;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 16px 0 20px;
}
main pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #d8d8d8;
  line-height: 1.6;
}

/* Help / documentation pages */
.breadcrumb { font-size: 0.85rem; color: var(--grey); margin: 0 0 20px; }
.breadcrumb a { color: var(--grey); text-decoration: underline; }
.breadcrumb a:hover { color: var(--orange); }
.help-toc {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0 40px;
}
.help-toc h2 { margin-top: 0; font-size: 1.1rem; }
.help-toc ul { margin: 0; padding-left: 20px; }
.help-toc li { color: var(--grey); margin: 7px 0; }
.help-toc a { text-decoration: underline; }
.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.help-cards a.help-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--white);
  text-decoration: none;
}
.help-cards a.help-card:hover { border-color: var(--orange); text-decoration: none; }
.help-cards .help-card strong { display: block; color: var(--white); margin-bottom: 6px; }
.help-cards .help-card span { color: var(--grey); font-size: 0.9rem; }
.tunables { margin: 20px 0 40px; }
.tunables dt { color: var(--white); font-weight: 700; margin-top: 22px; }
.tunables dt .default {
  color: var(--grey);
  font-weight: 400;
  font-size: 0.82rem;
  margin-left: 8px;
}
.tunables dd { color: var(--grey); margin: 6px 0 0; }
.tunables dd .when { color: var(--white); font-weight: 600; }
.note {
  background: var(--panel);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--grey);
}
.note strong { color: var(--white); }

/* Disclaimer box */
.disclaimer {
  background: var(--panel);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--grey);
  margin: 32px 0;
}

/* Legal doc listing */
.legal-list { list-style: none; padding: 0; margin: 24px 0; }
.legal-list li {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-list .doc-name { font-weight: 600; color: var(--white); }
.legal-list .doc-status {
  font-size: 0.78rem;
  color: var(--grey);
}
.legal-list .doc-status.pending {
  color: var(--orange);
}

/* Legal document body (EULA / Support Policy pages) */
.legal-doc {
  max-width: 760px;
  font-size: 0.95rem;
}
.legal-doc p { color: #d8d8d8; }
.legal-doc h1, .legal-doc h2 { color: var(--white); }
.legal-doc ol { color: #d8d8d8; padding-left: 22px; }
.legal-doc ol > li { font-weight: 700; color: var(--white); margin: 32px 0 8px; }
/* Pandoc renders indented "a. b. c." sub-clause lists as <pre><code> blocks
   because of the source markdown's 4-space indent. Re-style as plain
   prose rather than a code block - the text itself is untouched. */
.legal-doc pre {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 16px;
  white-space: pre-line;
  font-family: inherit;
}
.legal-doc pre code {
  background: none;
  color: #d8d8d8;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-doc .doc-meta { color: var(--grey); font-size: 0.85rem; margin-bottom: 32px; }
.legal-doc .back-link { display: inline-block; margin-bottom: 24px; }

/* Nested lists (sitemap) */
main ul ul {
  display: block;
  list-style: none;
  margin: 8px 0 0 24px;
  padding: 0;
}
main ul ul li {
  display: list-item;
  margin: 4px 0;
  padding: 0;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 32px 0;
  margin-top: 60px;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--grey);
}
footer.site-footer a { color: var(--grey); }
footer.site-footer a:hover { color: var(--orange); }
footer.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  nav.main-nav ul { gap: 16px; flex-wrap: wrap; }
  h1 { font-size: 1.7rem; }
}

/* Scroll reveal: sections fade and lift in as they enter the viewport,
   instead of the whole page being dumped on screen at once. Progressive
   enhancement only: the "reveal" class and its hidden state are added by
   JS after confirming IntersectionObserver exists, so content stays fully
   visible with JS disabled or if the script errors. A focused element
   inside a not-yet-revealed section shows immediately, so keyboard
   navigation never lands on something invisible. */
body.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-reveal-ready .reveal.is-visible,
body.js-reveal-ready .reveal:focus-within {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.js-reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Cookie consent banner. Equal-weight Accept/Reject buttons (same class,
   same size) are deliberate: neither choice is visually nudged over the
   other. Fixed to the bottom of the viewport, above everything else, and
   hidden by default; JS reveals it only when no choice has been recorded
   yet, or when "Cookie preferences" in the footer is clicked. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--panel);
  border-top: 1px solid var(--panel-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.cookie-banner-inner p {
  flex: 1 1 420px;
  margin: 0;
  font-size: 0.9rem;
  color: #d8d8d8;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.cookie-banner-actions .btn {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .cookie-banner-inner { padding: 16px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 0; text-align: center; }
}
