/* Shared type scale and spacing rhythm for every public page. */
:root {
  --rhythm-page-top: 64px;
  --rhythm-page-bottom: 32px;
  --rhythm-section-start: 32px;
  --rhythm-section: 96px;
  --rhythm-section-title: 36px;
  --rhythm-title: 18px;
  --type-display: clamp(48px, 6.2vw, 76px);
  --type-section: clamp(32px, 3.6vw, 40px);
  --type-card: 22px;
  --type-body: 16px;
  --type-copy: 15px;
}

body { font-size: var(--type-body); line-height: 1.6; }

/* Page titles share one size and one relationship with the eyebrow and intro. */
.hero h1,
.page-hero h1,
.archive-hero h1,
.status-hero h1,
.project-detail > h1,
.help-article h1,
.legal-document h1,
.service-page-copy h1 {
  font-size: var(--type-display);
  line-height: .98;
  letter-spacing: -.07em;
  margin: var(--rhythm-title) 0;
}

.eyebrow { font-size: 10px; line-height: 1.45; }
.detail-meta { margin: 0 0 16px; font-size: 9px; line-height: 1.4; }
.legal-updated { margin: 0 0 16px; }
.lead,
.service-detail-summary { font-size: 17px; line-height: 1.65; }

/* Shared section headings and card titles. */
.section-heading h2,
.contact-band h2,
.detail-content h2,
.service-detail-copy h2,
.contact-aside h2 { font-size: var(--type-section); line-height: 1.08; }
.project-card h3,
.service-card h3,
.news-item h3,
.status-site h2,
.help-card h2,
.blog-card h2,
.archive-empty h2,
.status-empty h2 { font-size: var(--type-card); line-height: 1.15; }
.project-card p,
.service-card p,
.news-item p,
.blog-card p,
.help-card p,
.contact-aside p,
.status-empty p { font-size: var(--type-copy); line-height: 1.6; }
.detail-content { font-size: var(--type-body); line-height: 1.72; }
.detail-content h2,
.help-article-content h2,
.legal-content h2 { margin-top: 32px; }
.detail-content h3 { font-size: 20px; line-height: 1.2; }
.admin-access-card h1 { font-size: var(--type-section); line-height: 1.08; }

/* Page starts and the transition into the first content section. */
.hero { padding-top: var(--rhythm-page-top); padding-bottom: var(--rhythm-page-top); }
.archive-hero,
.status-hero,
.page-hero,
.service-page-hero { padding-top: var(--rhythm-page-top); padding-bottom: var(--rhythm-page-bottom); }
.contact-hero { justify-content: flex-start; }
.project-detail,
.help-article,
.legal-document,
.admin-access { padding-top: var(--rhythm-page-top); padding-bottom: var(--rhythm-section); }
.archive-section,
.status-section,
.service-details,
.contact-layout { padding-top: var(--rhythm-section-start); padding-bottom: var(--rhythm-section); }
.help-section { padding-top: var(--rhythm-section-start); }
.section,
.news-section,
.services-section { padding-top: var(--rhythm-section); padding-bottom: var(--rhythm-section); }
.section-heading { margin-bottom: var(--rhythm-section-title); }
.archive-hero h1,
.status-hero h1,
.page-hero h1,
.service-page-copy h1 { margin: var(--rhythm-title) 0; }
.archive-hero .lead,
.status-hero .lead { margin: 0; }
.project-detail > h1 { margin-bottom: 8px; }
.project-detail > .detail-meta { margin: 0 0 16px; }
.detail-lead { margin: 0 0 32px; }
.help-article .detail-lead,
.legal-document .detail-lead { margin-bottom: 32px; }
.admin-access .back-link { margin-bottom: 24px; }
.detail-image { margin: 32px 0 48px; }
.detail-columns { gap: 64px; }

/* Align the density of repeated content and controls. */
.project-grid,
.blog-grid,
.help-grid { row-gap: 36px; column-gap: 24px; }
.service-detail-card { padding: 36px 0; }
.service-card { padding: 24px; }
.news-item { gap: 16px; padding: 20px 0; }
.archive-pagination { padding-top: 36px; }
.help-contact { margin-top: 48px; }
.contact-band { padding: 48px 0; }
.contact-layout { gap: 72px; }
.contact-form { padding: 28px; gap: 16px; }

@media (max-width: 800px) {
  :root { --rhythm-page-top: 56px; --rhythm-section-title: 30px; }
  .detail-columns { gap: 48px; }
  .contact-layout { gap: 40px; }
}

/* Keep interactive labels readable on pale hover fills in dark mode. */
html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button:focus-visible {
  background: var(--coffee);
  border-color: var(--coffee);
  color: #211811;
}

html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .button-light:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #211811;
}

html[data-theme="dark"] .archive-pagination .page-control:hover,
html[data-theme="dark"] .archive-pagination .page-number:hover,
html[data-theme="dark"] .archive-pagination nav a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #211811;
}

@media (max-width: 560px) {
  :root {
    --rhythm-page-top: 48px;
    --rhythm-page-bottom: 24px;
    --rhythm-section-start: 24px;
    --rhythm-section: 72px;
    --rhythm-section-title: 26px;
    --rhythm-title: 16px;
    --type-display: clamp(40px, 10.5vw, 50px);
    --type-section: clamp(29px, 8vw, 34px);
    --type-card: 20px;
    --type-body: 16px;
    --type-copy: 15px;
  }

  .hero { padding-top: var(--rhythm-page-top); padding-bottom: 72px; }
  .archive-hero,
  .status-hero,
  .page-hero,
  .help-article,
  .legal-document,
  .project-detail,
  .admin-access { padding-top: var(--rhythm-page-top) !important; }
  .archive-hero,
  .status-hero,
  .page-hero { padding-bottom: var(--rhythm-page-bottom); }
  .service-page-hero { padding-top: var(--rhythm-page-top) !important; padding-bottom: 165px; }
  .contact-hero { padding-bottom: 165px !important; }
  .archive-section,
  .status-section,
  .service-details,
  .contact-layout,
  .help-section { padding-top: var(--rhythm-section-start); padding-bottom: var(--rhythm-section); }
  .section,
  .news-section,
  .services-section { padding-top: var(--rhythm-section); padding-bottom: var(--rhythm-section); }
  .section-heading { margin-bottom: var(--rhythm-section-title); }
  .section-heading h2,
  .contact-band h2,
  .detail-content h2,
  .service-detail-copy h2,
  .contact-aside h2 { font-size: var(--type-section); }
  .project-grid,
  .blog-grid,
.help-grid { row-gap: 32px; column-gap: 16px; }
  .service-detail-card { padding: 24px 0; }
  .news-item { padding: 18px 0; }
  .detail-columns { gap: 32px; }
  .detail-image { margin: 24px 0 36px; }
  .detail-lead { margin-bottom: 26px; }
  .help-article .detail-lead,
  .legal-document .detail-lead { margin-bottom: 26px; }
  .admin-access .back-link { margin-bottom: 20px; }
  .contact-layout { gap: 32px; }
  .contact-form { padding: 22px; gap: 15px; }
  .contact-band { padding: 40px 0; }
  .help-article h1,
  .legal-document h1 { font-size: var(--type-display); }
}

/* Help archive: search, categories, and article cards follow the archive controls. */
.help-hero { padding-bottom: var(--rhythm-page-bottom); }
.help-page-heading { margin-top: 0; }
.help-page-heading h1 { margin: 0 0 10px; }
.help-page-heading .lead { margin: 0; }
.help-tools { display: grid; gap: 14px; margin-bottom: 26px; padding: 16px; background: var(--cream); }
.help-search { width: 100%; max-width: none; margin: 0; }
.help-search input,
.archive-filters input,
.archive-filters select {
  height: 42px;
  padding: 0 42px 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--coffee);
  font: 13px var(--sans);
}
.archive-filters select { padding-right: 30px; }
.archive-filters .filter-submit { height: 42px; padding: 0 14px; font-size: 9px; }
.help-search input:focus,
.archive-filters input:focus,
.archive-filters select:focus { border-color: var(--orange); }
.help-search button {
  top: 1px;
  right: 1px;
  bottom: 1px;
  height: auto;
  width: 40px;
  border: 0;
  background: var(--orange);
  color: #fff7e8;
  font: 18px var(--mono);
}
.archive-filters .search-field button {
  top: auto;
  right: 1px;
  bottom: 1px;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--orange);
  color: #fff7e8;
  font: 18px var(--mono);
}
.help-search button:hover,
.archive-filters .search-field button:hover { background: var(--coffee); color: var(--cream); }
.help-categories { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; margin: 0; }
.help-categories-label { padding-top: 8px; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.help-category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.help-category-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .035em;
  text-decoration: none;
  transition: color .18s, border-color .18s, background .18s;
}
.help-category-list a:hover { border-color: var(--orange); color: var(--orange); }
.help-category-list a[aria-current="page"] { border-color: var(--coffee); background: var(--coffee); color: var(--cream); }
.help-categories>.help-clear { align-self: center; min-height: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font: 9px var(--mono); text-decoration: none; white-space: nowrap; }
.help-categories>.help-clear:hover { border: 0; background: transparent; color: var(--orange); }
.help-card { border-top: 2px solid var(--orange); background: color-mix(in srgb, var(--cream) 58%, transparent); }
.help-card:hover { transform: translateY(-2px); border-color: var(--orange); }
.help-card-link { min-height: 232px; padding: 22px; }
.help-card .blog-meta { margin: 0 28px 18px 0; color: var(--muted); font-size: 9px; }
.help-card .blog-meta span { color: var(--orange); }
.help-card h2 { margin-bottom: 10px; }
.help-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-bottom: 18px; }
.help-card-icon { right: 18px; top: 15px; font-size: 17px; }
html[data-theme="dark"] .help-search input { background: var(--cream); color: var(--ink); }
html[data-theme="dark"] .help-card { background: color-mix(in srgb, var(--cream) 72%, transparent); }
.help-search input:focus-visible,
.help-category-list a:focus-visible,
.help-clear:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 800px) {
  .help-categories { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .help-categories-label { grid-column: 1 / -1; padding: 0; }
  .help-category-list { gap: 7px; }
}

@media (max-width: 560px) {
  .help-page-heading { margin-top: 0; }
  .help-tools { gap: 18px; margin-bottom: 22px; }
  .help-tools { padding: 12px; }
  .help-search { width: 100%; }
  .help-search input,
  .archive-filters input,
  .archive-filters select { height: 42px; font-size: 13px; }
  .help-categories { grid-template-columns: 1fr; gap: 9px; }
  .help-categories-label { grid-column: auto; }
  .help-category-list { gap: 7px; }
  .help-category-list a { min-height: 38px; padding: 0 10px; font-size: 8px; }
  .help-categories>.help-clear { justify-self: start; }
  .help-card-link { min-height: 205px; padding: 19px; }
}

/* Archive titles remain on one line and scale to the available width. */
.archive-hero h1.archive-title-inline {
  white-space: nowrap;
  font-size: clamp(36px, 6.2vw, 76px);
}

.news-item a.news-mark,
.news-item a.news-mark:hover,
.news-item a.news-mark:focus-visible {
  text-decoration: none;
}

.contact-options { display: grid; gap: 8px; margin: 24px 0 28px; }
.contact-option {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 56%, transparent);
  color: var(--coffee);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.contact-option:hover,
.contact-option:focus-visible { border-color: var(--orange); background: color-mix(in srgb, var(--cream) 84%, transparent); transform: translateX(2px); }
.contact-option:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.contact-option-label { color: var(--orange); font: 9px var(--mono); letter-spacing: .08em; }
.contact-option strong { font-size: 14px; font-weight: 500; }
.contact-option small { color: var(--muted); font-size: 11px; }
.contact-option-icon { position: absolute; top: 50%; right: 14px; width: 19px; height: 19px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); }
html[data-theme="dark"] .contact-option { background: color-mix(in srgb, var(--cream) 62%, transparent); }
html[data-theme="dark"] .contact-option:hover,
html[data-theme="dark"] .contact-option:focus-visible { background: color-mix(in srgb, var(--cream) 80%, transparent); }

.cookie-notice[hidden] { display: none; }
.cookie-notice {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(620px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 56%, var(--paper));
  color: var(--coffee);
  box-shadow: 0 12px 40px #21181155;
  transform: translateX(-50%);
}
.cookie-notice-label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--orange); font: 9px var(--mono); letter-spacing: .08em; }
.cookie-notice-label svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cookie-notice-copy strong { display: block; font-size: 14px; line-height: 1.25; font-weight: 500; }
.cookie-notice-copy p { max-width: 510px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cookie-notice-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.cookie-notice-links a { color: var(--coffee); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice:focus { outline: none; }
.cookie-notice-actions { display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 190px; }
.cookie-notice-actions button {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 56%, transparent);
  color: var(--coffee);
  font: 9px var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.cookie-notice-actions button:hover,
.cookie-notice-actions button:focus-visible { border-color: var(--orange); background: color-mix(in srgb, var(--cream) 84%, transparent); transform: translateY(-1px); }
.cookie-notice-actions button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cookie-notice-actions button:hover { border-color: var(--orange); background: color-mix(in srgb, var(--cream) 84%, transparent); transform: translateY(-1px); }
html[data-theme="dark"] .cookie-notice { box-shadow: 0 12px 40px #0009; }

@media (max-width: 760px) {
  .cookie-notice { bottom: 78px; grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .cookie-notice-actions { min-width: 0; }
  .cookie-notice-actions button { padding: 0 8px; white-space: normal; }
}

@media (max-width: 560px) {
  .archive-hero h1.archive-title-inline { font-size: clamp(24px, 7.5vw, 42px); }
}

.topline .online--warning b { background: #f28a24; box-shadow: 0 0 6px 2px rgba(242, 138, 36, .65); animation: online-led-warning 1.35s ease-in-out infinite; }
.topline .online--critical b { background: #e33b32; box-shadow: 0 0 6px 2px rgba(227, 59, 50, .7); animation: online-led-critical 1.1s ease-in-out infinite; }
@keyframes online-led-warning { 0%, 100% { background: #e7781a; box-shadow: 0 0 4px 1px rgba(242, 138, 36, .5); opacity: .82; } 50% { background: #ffc266; box-shadow: 0 0 10px 3px rgba(255, 166, 64, .9); opacity: 1; } }
@keyframes online-led-critical { 0%, 100% { background: #c92825; box-shadow: 0 0 4px 1px rgba(227, 59, 50, .55); opacity: .82; } 50% { background: #ff6257; box-shadow: 0 0 11px 3px rgba(255, 62, 53, .95); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .topline .online--warning b { animation: none; background: #f28a24; box-shadow: 0 0 7px 2px rgba(242, 138, 36, .65); }
  .topline .online--critical b { animation: none; background: #e33b32; box-shadow: 0 0 7px 2px rgba(227, 59, 50, .7); }
}

.service-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 0 22px; color: var(--orange); }
.service-icon-art { display: block; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.service-icon-art--home { width: 35px; height: 35px; }
.service-detail-icon { display: flex; align-items: flex-start; padding-top: 0; color: var(--orange); }
.service-icon-art--detail { width: 46px; height: 46px; }
@media (max-width: 560px) { .service-icon-art--detail { width: 39px; height: 39px; } }

.news-item { grid-template-columns: 28px 105px minmax(0, 1fr); }
.news-item .news-mark { display: grid; width: 24px; height: 24px; place-items: center; justify-self: start; color: var(--orange); }
.news-mark img { display: block; width: 21px; height: 21px; object-fit: contain; filter: brightness(0) saturate(100%) invert(48%) sepia(89%) saturate(1302%) hue-rotate(341deg) brightness(94%) contrast(91%); }
.news-mark svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .news-mark img { filter: brightness(0) saturate(100%) invert(63%) sepia(47%) saturate(1122%) hue-rotate(336deg) brightness(99%) contrast(92%); }
@media (max-width: 560px) {
  .news-item { grid-template-columns: 22px 64px minmax(0, 1fr); gap: 10px; }
  .news-item .news-mark { display: grid; }
}

