/* /assets/css/site.css
   Global stylesheet for every page (load after variables.css):
   - Base reset
   - Shared page shell: logo, brand title, dividers, footer
   - Services nav: gold baseline, hover glow, active service plaque
   - Home floating pill, content grid, contact pills
   - Error pages and document-style pages (guides)
*/

/* =========================
   Reset / Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid currentColor;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);

  background-color: var(--color-bg);
  background-image: var(--gradient-page-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: inherit;
}

/* Side gutters at every width so text never touches the browser edge;
   clip stray horizontal overflow on small screens. */
body {
  padding: 10px var(--gutter) 0;
}

html,
body {
  overflow-x: hidden;
}

@media (min-width: 641px) {
  html,
  body {
    overflow-x: visible;
  }

  body {
    padding-top: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, pre, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

strong, b {
  font-weight: bolder;
}

code, pre {
  font-family: var(--font-code-fallback);
  font-size: 1em;
}

button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

img, svg {
  display: block;
  vertical-align: middle;
}

summary {
  display: list-item;
}

/* Visually hidden, still announced by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =========================
   Shared text treatments
   ========================= */
.gold-text {
  background: var(--gradient-gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.font-lato {
  font-family: var(--font-body);
}

/* Divider */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-base), transparent);
  opacity: 0.3;
}

.gold-divider--short {
  width: 75%;
  margin: var(--space-4) auto;
  opacity: 0.4;
}

/* =========================
   Page shell
   ========================= */
.page-main {
  width: 100%;
  max-width: var(--width-6xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

/* Logo container */
.brand-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -35px;
  margin-bottom: var(--space-1);
}

.brand-logo__mark {
  width: 11rem;
}

/* =========================
   Logo mark
   Drawn from CSS so the image path resolves relative to this stylesheet, which
   keeps it working from file:// and on error pages served at any URL depth.
   /assets/img/logo.svg is the single source: replace that file to update the
   logo everywhere. The hover color is derived from it with a filter
   (tuned so gold-base #c5a059 lands on the gold-shine hover tone).
   ========================= */
.logo-mark {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 0 14px rgba(var(--gold-base-rgb), 0.14));
  transition: filter 0.55s ease;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../img/logo.svg") center / contain no-repeat;
  transition: filter 0.55s ease;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.logo-mark--interactive:hover {
  filter: drop-shadow(0 0 18px rgba(var(--gold-base-rgb), 0.18));
}

.logo-mark--interactive:hover::before {
  filter: hue-rotate(15deg) saturate(0.46) brightness(1.38);
}

/* Static, dimmed variant (guide index; matches the legal index) */
.logo-mark--dim {
  opacity: 0.8;
  filter: none;
}

/* Brand title */
.brand-title {
  margin-top: -35px;
  margin-bottom: var(--space-3);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.brand-title__line {
  display: block;
}

.hero-divider {
  margin: var(--space-4) 0;
}

@media (min-width: 768px) {
  .brand-logo__mark { width: 18rem; }
  .brand-title {
    font-size: var(--text-6xl);
    line-height: var(--leading-none);
  }
}

@media (min-width: 1024px) {
  .brand-logo__mark { width: 20rem; }
  .brand-title { font-size: var(--text-7xl); }
}

/* =========================
   Services Nav
   Wide screens: one row with diamond separators (never wraps, so a separator
   can't be orphaned). Whenever the row would not fit on one line it is
   replaced by the .services-menu dropdown. 78em (1248px) = measured row width
   (~1184px including hover halos) + both side gutters + a small buffer.
   Keep in sync with NAV_ROW_QUERY in /assets/js/site.js.
   ========================= */
.services-nav {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: var(--text-xl);
  line-height: var(--leading-lg);
  letter-spacing: var(--tracking-wide);
  color: var(--gold-nav);
}

.services-nav__row {
  display: none;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  white-space: nowrap;
}

@media (min-width: 78em) {
  .services-nav__row { display: flex; }
  .services-menu { display: none; }
}

.service-item {
  position: relative;
  display: inline-block;
  z-index: 1;

  font-weight: 400;
  color: var(--gold-base);

  transition: color var(--ease-soft), text-shadow var(--ease-soft);
}

/* hover highlight band */
.service-item::before {
  content: '';
  position: absolute;
  left: -18px;
  right: -18px;
  top: -10px;
  bottom: -10px;

  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: -1;

  background: linear-gradient(
    to right,
    rgba(var(--black-rgb), 0) 0%,
    var(--service-halo-mid) 22%,
    var(--service-halo-strong) 50%,
    var(--service-halo-mid) 78%,
    rgba(var(--black-rgb), 0) 100%
  );

  opacity: 0;
  transition: opacity var(--ease-soft), background var(--ease-soft), border-radius var(--ease-soft);
}

/* underline */
.service-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-base);
  transition: width 0.3s ease, left 0.3s ease, background 0.3s ease;
}

.service-item:hover::before { opacity: 1; }
.service-item:hover::after { width: 100%; left: 0; }

.service-item:hover {
  color: rgba(var(--gold-shine-rgb), 0.95);
  text-shadow:
    0 0 8px var(--service-glow-1),
    0 0 14px var(--service-glow-2);
}

/* keyboard accessibility */
.service-item:focus-visible {
  outline: 2px solid rgba(var(--gold-shine-rgb), 0.35);
  outline-offset: 6px;
  border-radius: var(--radius-focus);
}

/* larger hitbox on mobile */
.service-link {
  padding: 10px 12px;
  margin: -10px -12px;
}

.services-nav__row .service-item::before {
  left: -24px;
  right: -24px;
}

/* Active service (service pages): plaque, no layout shift */
.service-item.is-active {
  color: var(--color-bg);
  -webkit-text-fill-color: var(--color-bg);
  text-shadow: none;
}

.service-item.is-active::before {
  opacity: 1;
  border-radius: var(--radius-md);

  background: linear-gradient(
    to right,
    rgba(var(--black-rgb), 0) 0%,
    rgba(var(--gold-base-rgb), 0.55) 12%,
    rgba(var(--gold-shine-rgb), 0.92) 50%,
    rgba(var(--gold-base-rgb), 0.55) 88%,
    rgba(var(--black-rgb), 0) 100%
  );

  box-shadow:
    inset 0 0 0 1px rgba(var(--gold-base-rgb), 0.22),
    0 0 22px rgba(var(--gold-base-rgb), 0.10);
}

.service-item.is-active::after {
  width: 100%;
  left: 0;
  background: rgba(var(--bg-rgb), 0.55);
}

.service-item.is-active:hover {
  color: var(--color-bg);
  -webkit-text-fill-color: var(--color-bg);
  text-shadow: none;
}

/* Diamond separators (row layout only) */
.diamond-sep {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  margin: 0 12px;
  background: var(--gradient-gold-foil);
  opacity: 0.75;
  border-radius: var(--radius-xs);
}


/* =========================
   Services dropdown (shown whenever the row would wrap)
   Native <details>, so it works without JavaScript; site.js adds
   close-on-outside-click and Escape.
   ========================= */
.services-menu {
  position: relative;
}

.services-menu__toggle {
  display: inline-flex;
  align-items: stretch;
  max-width: calc(100vw - 2 * var(--gutter));
  overflow: hidden;
  list-style: none;
  cursor: pointer;

  border: 1px solid var(--gold-base);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  line-height: var(--leading-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;

  transition: border-color var(--ease-soft), box-shadow var(--ease-soft);
}

.services-menu__toggle::-webkit-details-marker {
  display: none;
}

/* Left segment: "Services" (black on gold) */
.services-menu__label,
.services-menu__current {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  transition: background-color var(--ease-soft), color var(--ease-soft);
}

/* Full-size toggle once "Services | Software Development" fits inside the gutters */
@media (min-width: 641px) {
  .services-menu__toggle {
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-widest);
  }

  .services-menu__label,
  .services-menu__current {
    gap: var(--space-3);
    padding: var(--space-2) var(--space-5);
  }
}

.services-menu__label {
  background-color: var(--gold-base);
  color: var(--color-text-on-gold);
  font-weight: 700;
}

/* Right segment: the current service, when there is one (gold on black) */
.services-menu__current {
  background-color: var(--color-bg);
  color: var(--gold-base);
}

.services-menu__chevron {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease, margin-top 0.3s ease;
}

.services-menu[open] .services-menu__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.services-menu__toggle:hover,
.services-menu[open] .services-menu__toggle {
  border-color: var(--gold-shine);
  box-shadow: 0 0 18px rgba(var(--gold-base-rgb), 0.18);
}

.services-menu__toggle:hover .services-menu__label,
.services-menu[open] .services-menu__label {
  background-color: var(--gold-shine);
}

.services-menu__toggle:hover .services-menu__current,
.services-menu[open] .services-menu__current {
  color: rgba(var(--gold-shine-rgb), 0.95);
}

.services-menu__toggle:focus-visible {
  outline: 2px solid rgba(var(--gold-shine-rgb), 0.35);
  outline-offset: 4px;
}

.services-menu__list {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  z-index: 20;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 2 * var(--gutter));
  /* Center with `translate`, not `transform`: the drop animation animates
     transform and would otherwise knock the menu off-center until it ends */
  translate: -50% 0;

  list-style: none;
  margin: 0;
  padding: var(--space-2);

  border: 1px solid rgba(var(--gold-base-rgb), 0.22);
  border-radius: var(--radius-lg);
  background: rgba(var(--bg-rgb), 0.96);
  box-shadow: 0 12px 32px rgba(var(--black-rgb), 0.6), 0 0 22px rgba(var(--gold-base-rgb), 0.08);
  backdrop-filter: blur(3px);
}

.services-menu[open] .services-menu__list {
  animation: sweep 0.3s ease-in-out;
}

.services-menu__link {
  display: block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  color: var(--gold-base);
  text-align: center;
  white-space: normal;
  transition: color var(--ease-soft), background-color var(--ease-soft), text-shadow var(--ease-soft);
}

.services-menu__link:hover {
  background-color: var(--service-halo-strong);
  color: rgba(var(--gold-shine-rgb), 0.95);
  text-shadow:
    0 0 8px var(--service-glow-1),
    0 0 14px var(--service-glow-2);
}

.services-menu__link:focus-visible {
  outline: 2px solid rgba(var(--gold-shine-rgb), 0.35);
  outline-offset: -2px;
}

/* Active service: same plaque as the row */
.services-menu__link.is-active,
.services-menu__link.is-active:hover {
  color: var(--color-bg);
  -webkit-text-fill-color: var(--color-bg);
  text-shadow: none;
  background: linear-gradient(
    to right,
    rgba(var(--gold-base-rgb), 0.55) 0%,
    rgba(var(--gold-shine-rgb), 0.92) 50%,
    rgba(var(--gold-base-rgb), 0.55) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(var(--gold-base-rgb), 0.22);
}

/* =========================
   Home rail: the Home pill centered between the company name and the
   divider above the services nav (every nav page)
   ========================= */
/* Home pill sits above the divider; nav spacing stays equal above and below */
.home-rail {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;

  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.10em;
  line-height: 1.5;
  text-transform: uppercase;

  border: 1px solid var(--home-pill-border);
  border-radius: var(--radius-full);
  background: var(--home-pill-bg);
  color: var(--home-pill-text);

  backdrop-filter: blur(3px);
  box-shadow: 0 0 12px rgba(var(--gold-base-rgb), 0.10);

  transition:
    color var(--ease-soft),
    border-color var(--ease-soft),
    box-shadow var(--ease-soft);
}

.home-pill:hover,
.home-pill[aria-current="page"] {
  color: rgba(var(--gold-shine-rgb), 0.95);
  border-color: rgba(var(--gold-shine-rgb), 0.45);
  box-shadow: 0 0 18px rgba(var(--gold-base-rgb), 0.18);
}

.home-pill:focus-visible {
  outline: 2px solid rgba(var(--gold-shine-rgb), 0.35);
  outline-offset: 4px;
}

/* =========================
   Content Sections
   ========================= */
.content-section {
  width: 100%;
  max-width: var(--width-5xl);
  margin: var(--space-4) auto 0;
  text-align: left;
}

.content-section > .gold-divider {
  margin-bottom: var(--space-3);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-10);
  }

  .content-grid__main {
    grid-column: span 2 / span 2;
  }
}

.section-heading,
.subsection-heading {
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.section-heading {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
}

.subsection-heading {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.copy {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--body-text);
}

.copy--list {
  list-style: disc;
  padding-left: var(--space-5);
}

.copy--spaced {
  margin-bottom: var(--space-2);
}

.content-block {
  margin-top: var(--space-4);
}

.content-aside .gold-divider {
  margin: var(--space-3) 0;
  opacity: 0.4;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  width: 100%;
  max-width: var(--width-4xl);
  margin-top: var(--space-3);
  text-align: center;
}

.site-footer > .gold-divider:first-child {
  margin-bottom: var(--space-3);
}

.contact-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);

  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: var(--leading-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* Phones get a slightly smaller pill so the email address fits inside the gutters */
@media (min-width: 481px) {
  .contact-row {
    font-size: var(--text-sm);
  }
}

@media (min-width: 768px) {
  .contact-row {
    flex-direction: row;
    gap: var(--space-6);
  }
}

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);

  font-family: var(--font-system);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gray-500);
}

.legal-links a {
  transition: color var(--duration-fast) var(--ease-standard);
}

.legal-links a:hover {
  color: var(--gold-shine);
}

.legal-links__sep {
  color: var(--gray-700);
}

.copyright {
  font-family: var(--font-system);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--gray-500);
  text-align: center;
}

/* =========================
   Pills (general)
   ========================= */
.action-pill {
  border: 1px solid rgba(var(--gold-base-rgb), 0.22);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  color: var(--gray-300);
  transition: color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.action-pill:hover {
  color: var(--gold-shine);
  border-color: rgba(var(--gold-shine-rgb), 0.35);
}

/* Contact pills (label | value) */
.contact-pill {
  display: inline-flex;
  flex-wrap: wrap;              /* very narrow screens: the value drops to its own line */
  justify-content: center;
  align-items: center;
  gap: 0 8px;
  max-width: 100%;
}

.contact-pill__label {
  color: rgba(var(--gold-dark-rgb), 0.95);
}

.contact-pill__sep {
  color: rgba(var(--gold-base-rgb), 0.35);
}

.contact-pill__value {
  letter-spacing: 0.04em;
}

@media (min-width: 481px) {
  .contact-pill { gap: 10px; }
  .contact-pill__value { letter-spacing: 0.08em; }
}

/* =========================
   Error Pages
   ========================= */
.error-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);

  font-family: var(--font-body);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.error-block__code {
  font-size: var(--text-4xl);
  line-height: var(--leading-4xl);
  font-weight: 700;
  color: var(--gold-dark);
}

.error-block__message {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  color: var(--gray-400);
}

.error-block__return {
  margin-top: var(--space-4);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--gold-dark);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--gold-base);
  transition: color var(--duration-fast) var(--ease-standard);
}

.error-block__return:hover {
  color: var(--gold-shine);
}

@media (min-width: 768px) {
  .error-block__code {
    font-size: var(--text-5xl);
    line-height: var(--leading-none);
  }

  .error-block__message {
    font-size: var(--text-xl);
  }
}

/* =========================
   Document pages (guide index + guides)
   Navigation, spacing and directory mirror legal.shatteredvales.studio
   ========================= */
body.page-doc {
  padding: var(--space-6);
}

@media (min-width: 768px) {
  body.page-doc {
    padding: var(--space-12);
  }
}

/* Site navigation: gold buttons (Main Site / Guide Index) */
.site-nav {
  width: 100%;
  max-width: var(--width-4xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  /* body.page-doc adds a --space-3 flex gap below */
  margin-bottom: calc(var(--space-12) - var(--space-3));
}

.nav-button {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-button);
  background-color: var(--gold-base);
  color: var(--color-text-on-gold);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  transition: background-color var(--transition-doc), box-shadow var(--transition-doc);
}

.nav-button:hover,
.nav-button:focus-visible {
  background-color: var(--gold-shine);
  box-shadow: 0 0 8px var(--color-gold-glow);
}

.nav-button:focus-visible {
  outline: 2px solid var(--gold-shine);
  outline-offset: 2px;
}

.doc-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--width-4xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.doc-header__logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.doc-header__mark {
  width: 6rem;
}

.doc-header__title {
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.doc-header .gold-divider {
  margin: var(--space-4) 0;
}

@media (min-width: 768px) {
  .doc-header__mark { width: 8rem; }
  .doc-header__title { font-size: var(--text-4xl); }
}

.doc-footer {
  margin-top: var(--space-12);
}

.doc-footer > .gold-divider:first-child {
  margin-bottom: var(--space-8);
}

.doc-footer .legal-links,
.doc-footer .copyright {
  font-family: var(--font-body);
  color: var(--color-text-subtle);
}

/* Guide index footer: no divider, extra space above (matches the legal index) */
.doc-footer--index {
  margin-top: var(--space-16);
}

/* Guide index directory (collapsible folders) */
.directory-main {
  width: 100%;
  max-width: var(--width-3xl);
  z-index: 10;
  text-align: center;
}

.directory-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
  color: var(--gold-base);
}

.directory-logo__mark {
  width: 6rem;
}

.directory-heading {
  margin-bottom: var(--space-10);
  font-size: var(--text-4xl);
  line-height: var(--leading-heading);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .directory-heading {
    font-size: var(--text-5xl);
  }
}

.directory {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-family: var(--font-body);
  text-align: left;
}

.folder {
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
}

.folder__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;

  font-size: var(--text-xl);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-base);

  transition: background-color var(--transition-doc);
}

.folder__summary::-webkit-details-marker {
  display: none;
}

.folder__summary:hover {
  background-color: var(--color-surface-hover);
}

.folder__summary:focus-visible {
  outline: 2px solid var(--gold-shine);
  outline-offset: -2px;
}

.folder__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.folder__icon {
  font-size: var(--text-2xl);
}

.folder__chevron {
  transition: transform var(--transition-doc);
}

/* Empty folders get a dimmed icon */
.folder--empty .folder__icon {
  opacity: 0.6;
}

.folder__empty-note {
  font-size: var(--text-sm);
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text-subtle);
}

.folder[open] .folder__chevron {
  transform: rotate(90deg);
}

.folder__contents {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  border-top: 1px solid var(--color-surface-border);
  background-color: var(--color-bg);
}

.folder[open] .folder__contents {
  animation: sweep 0.3s ease-in-out;
}

@keyframes sweep {
  0%   { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.doc-link {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.5;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-doc), text-shadow var(--transition-doc);
}

.doc-link:hover,
.doc-link:focus-visible {
  color: var(--gold-shine);
  text-shadow: 0 0 8px var(--color-gold-glow);
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
