/* Load brand-tokens.css first. These components are opt-in for v2 pages. */
:root {
  color-scheme: dark;
  font-family: var(--offband-font-body);
  font-size: 100%;
  color: var(--offband-color-text);
  background: var(--offband-color-background);
  line-height: var(--offband-leading-body);
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell {
  max-width: var(--offband-width-page);
  margin-inline: auto;
  padding-inline: var(--offband-page-gutter);
}
a {
  color: var(--offband-color-gold);
  text-underline-offset: var(--offband-underline-offset);
}
a:hover {
  color: var(--offband-color-link-hover);
  text-decoration-thickness: var(--offband-underline-emphasis);
}
a:focus-visible {
  outline: var(--offband-focus-width) solid var(--offband-color-focus);
  outline-offset: var(--offband-focus-offset);
  border-radius: var(--offband-radius);
}
.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--offband-space-5);
  padding-block: var(--offband-space-7);
}
.site-header { border-bottom: var(--offband-border-width) solid var(--offband-color-border); }
nav { display: flex; flex-wrap: wrap; gap: var(--offband-space-2) var(--offband-space-7); }
nav a { display: inline-flex; align-items: center; min-height: var(--offband-target-min); }
[aria-current="page"] {
  color: var(--offband-color-orange);
  font-weight: var(--offband-weight-heading);
  text-decoration-thickness: var(--offband-underline-emphasis);
}
.brand { display: inline-flex; align-items: center; min-height: var(--offband-target-min); }
.brand picture { display: block; }
.brand img { display: block; width: 10.875rem; max-width: 100%; height: auto; }
main { padding-bottom: var(--offband-space-11); }
.intro { padding-block: var(--offband-space-intro) var(--offband-space-8); }
.home { max-width: var(--offband-width-home); padding-bottom: var(--offband-space-10); }
h1, h2, h3 {
  line-height: var(--offband-leading-heading);
  letter-spacing: var(--offband-tracking-heading);
  font-weight: var(--offband-weight-heading);
  overflow-wrap: anywhere;
}
h1 { font-size: var(--offband-text-h1); margin: var(--offband-space-3) 0 var(--offband-space-7); max-width: var(--offband-measure-heading); }
.home h1 { font-size: var(--offband-text-home); }
h2 { font-size: var(--offband-text-h2); }
h3 { font-size: var(--offband-text-h3); margin: 0 0 var(--offband-space-3); }
p { max-width: var(--offband-measure-body); }
.lead { font-size: var(--offband-text-lead); max-width: var(--offband-measure-lead); color: var(--offband-color-text-soft); }
.eyebrow { font-size: var(--offband-text-small); color: var(--offband-color-text-muted); }
section { margin-top: var(--offband-space-9); }
.contact { border-top: var(--offband-border-width) solid var(--offband-color-border); padding-top: var(--offband-space-7); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: var(--offband-target-min);
  padding: var(--offband-space-3) var(--offband-space-5);
  color: var(--offband-color-on-accent);
  background: var(--offband-color-orange);
  border-radius: var(--offband-radius);
  font-weight: var(--offband-weight-action);
}
.button:hover { color: var(--offband-color-on-accent); background: var(--offband-color-orange-hover); }
.catalog { list-style: none; padding: 0; }
.catalog li { border-top: var(--offband-border-width) solid var(--offband-color-border); padding-block: var(--offband-space-7); }
.catalog p { margin: var(--offband-space-2) 0; }
.repository { font-size: var(--offband-text-small); display: inline-block; padding-block: var(--offband-space-repository); }
.services div { padding-block: var(--offband-space-6); border-top: var(--offband-border-width) solid var(--offband-color-border); }
dt { font-weight: var(--offband-weight-label); }
dd { margin: var(--offband-space-1) 0 0; max-width: var(--offband-measure-description); }
.site-footer { border-top: var(--offband-border-width) solid var(--offband-color-border); color: var(--offband-color-text-muted); font-size: var(--offband-text-small); }
.skip-link {
  position: absolute;
  z-index: 1;
  top: var(--offband-space-2);
  left: var(--offband-space-5);
  padding: var(--offband-space-4);
  color: var(--offband-color-text);
  background: var(--offband-color-surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
pre { overflow-x: auto; padding: var(--offband-space-5); background: var(--offband-color-surface); }
code { font-family: var(--offband-font-code); }
/* Homepage refinement: keep other pages and shared chrome unchanged. */
.home-page { max-width: var(--offband-width-home); }
.home-page .home {
  padding-block: clamp(var(--offband-space-10), 6vw, var(--offband-space-11)) var(--offband-space-7);
}
.home-page .home .eyebrow { margin: 0 0 var(--offband-space-5); }
.home-page .home h1 {
  font-size: var(--offband-text-h1);
  max-width: 100%;
  margin: 0 0 var(--offband-space-8);
  text-wrap: balance;
}
.home-page .home .lead { margin: 0; }
.home-page .contact {
  margin-top: var(--offband-space-8);
  padding: var(--offband-space-7);
  border-top: 0;
  background: var(--offband-color-surface);
}
.home-page .contact h2 { margin: 0 0 var(--offband-space-3); }
.home-page .contact p { margin: 0 0 var(--offband-space-7); }

@media (max-width: 30rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: var(--offband-space-2) var(--offband-space-5); }
}
@media (forced-colors: active) {
  .button { border: var(--offband-border-width) solid ButtonText; }
}

/* Catalog directory: optional details share one row without empty columns. */
.catalog .product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--offband-space-7) var(--offband-space-10);
  padding-block: var(--offband-space-2);
}
.catalog .product-heading {
  display: flex;
  align-items: center;
  gap: var(--offband-space-5);
}
.catalog h3 { font-size: var(--offband-text-h2); margin: 0; }
.catalog h3 a { display: inline-flex; align-items: center; min-height: var(--offband-target-min); }
.catalog .product-icon { width: 3rem; height: 3rem; flex: 0 0 auto; object-fit: contain; }
.catalog p { color: var(--offband-color-text-soft); margin: var(--offband-space-5) 0 0; }
.catalog .product-metadata { margin: 0; font-size: var(--offband-text-small); }
.catalog .product-metadata div + div { margin-top: var(--offband-space-4); }
.catalog dt { color: var(--offband-color-text-muted); font-weight: normal; }
.catalog dd { margin: 0; overflow-wrap: anywhere; }
.catalog .repository { min-height: var(--offband-target-min); padding-block: var(--offband-space-3); }
.catalog .product-metadata + .repository { margin-top: var(--offband-space-3); }
@media (min-width: 48rem) {
  .catalog .product-row:has(.product-details) { grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem); }
}
