/* Forrer Woodworks — Symbol Visual Sitemap */

:root {
  --bg: hsl(32 28% 97%);
  --brand: hsl(24 42% 38%);
  --brand-soft: hsl(24 42% 38% / 0.08);
  --brand-soft-light: hsl(24 42% 38% / 0.05);
  --surface: #ffffff;
  --ink: #1a2332;
  --muted: #5c6678;
  --line: #c8cdd6;
  --home: #d84315;
  --section: #1565c0;
  --category: #2e7d32;
  --program: #6a1b9a;
  --event: #ef6c00;
  --article: #00838f;
  --utility: #546e7a;
  --cta: #c62828;
  --shop: #4527a0;
  --legal: #37474f;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(26, 35, 50, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-xs: 0.6875rem;
  --text-sm: 0.75625rem;
  --text-base: 0.89375rem;
  --text-md: 0.9625rem;
  --text-label: 0.825rem;
  --text-title: clamp(1.65rem, 3.3vw, 2.2rem);
  --text-body: 15.4px;
  --col-min: 7.25rem;
  --stem: 1.25rem;
  --icon: 1.944rem;
  --icon-content: 1.296rem;
  --icon-card: 2.52rem;
  --icon-legend: 1.8rem;
  --icon-legend-content: 1.2rem;
  --legend-gap-x: 1.25rem;
  --version-nav-height: 3.1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--version-nav-height);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.4;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, var(--brand-soft), transparent 42%),
    radial-gradient(circle at 88% 92%, var(--brand-soft-light), transparent 42%),
    var(--bg);
}

.page {
  max-width: none;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* Version toggle — full-width top bar, fixed on scroll */
.version-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.06);
}

.version-nav__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--version-nav-height);
  padding: 0.9rem 0.35rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.version-nav__btn + .version-nav__btn {
  border-left: 1px solid var(--line);
}

.version-nav__btn:hover {
  color: var(--ink);
  background: rgba(26, 35, 50, 0.03);
}

.version-nav__btn--active {
  color: var(--ink);
  background: rgba(21, 101, 192, 0.06);
  border-bottom-color: var(--section);
  cursor: default;
  pointer-events: none;
}

.version-nav__btn--wireframe.version-nav__btn--active {
  background: rgba(46, 125, 50, 0.08);
  border-bottom-color: var(--category);
}

.version-nav__btn--current.version-nav__btn--active {
  background: rgba(239, 108, 0, 0.08);
  border-bottom-color: var(--event);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  min-height: 7.5rem;
}

.header__eyebrow {
  margin: 0 0 0.35rem;
  min-height: 1.35rem;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__title {
  margin: 0;
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__meta {
  margin: 0.5rem 0 0;
  min-height: 1.35rem;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.4;
}

/* Info box — summary between date and legend */
.info-box {
  max-width: 1280px;
  margin: 0 auto 1.75rem;
  padding: 1rem 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-box--issues {
  border-left: 3px solid #ef9a9a;
}

.info-box--proposed {
  border-left: 3px solid var(--section);
}

.info-box__title {
  margin: 0 0 0.85rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-box__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: disc;
  list-style-position: outside;
}

.info-box__list:has(> li:nth-child(8):last-child) {
  grid-template-rows: repeat(3, auto);
}

.info-box__list:has(> li:nth-child(7):last-child) {
  grid-template-rows: repeat(3, auto);
}

.info-box__list:has(> li:nth-child(10):last-child) {
  grid-template-rows: repeat(4, auto);
}

.info-box__list:has(> li:nth-child(11):last-child) {
  grid-template-rows: repeat(4, auto);
}

.info-box__list:has(> li:nth-child(12):last-child) {
  grid-template-rows: repeat(4, auto);
}

.info-box__list:has(> li:nth-child(13):last-child) {
  grid-template-rows: repeat(5, auto);
}

.info-box__list li {
  padding-left: 0.35rem;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink);
}

@media (max-width: 960px) {
  .info-box__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-box__list:has(> li:nth-child(8):last-child) {
    grid-template-rows: repeat(4, auto);
  }

  .info-box__list:has(> li:nth-child(7):last-child) {
    grid-template-rows: repeat(4, auto);
  }

  .info-box__list:has(> li:nth-child(10):last-child) {
    grid-template-rows: repeat(5, auto);
  }

  .info-box__list:has(> li:nth-child(11):last-child) {
    grid-template-rows: repeat(6, auto);
  }

  .info-box__list:has(> li:nth-child(12):last-child) {
    grid-template-rows: repeat(6, auto);
  }

  .info-box__list:has(> li:nth-child(13):last-child) {
    grid-template-rows: repeat(7, auto);
  }
}

@media (max-width: 560px) {
  .info-box__list {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-template-rows: none;
  }
}

/* Legend */
.legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
}

.legend__title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem var(--legend-gap-x);
  width: 100%;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  font-size: var(--text-base);
  color: var(--muted);
}

/* Icons */
.icon {
  display: block;
  width: var(--icon);
  height: var(--icon);
  flex-shrink: 0;
  object-fit: contain;
}

.node__card .icon {
  width: var(--icon-card);
  height: var(--icon-card);
}

.legend__item .icon {
  width: var(--icon-legend);
  height: var(--icon-legend);
}

.icon--content {
  width: var(--icon-content);
  height: var(--icon-content);
}

.legend__item .icon--content {
  width: var(--icon-legend-content);
  height: var(--icon-legend-content);
}

/* Tree */
.tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tree__home {
  position: relative;
  z-index: 2;
}

.tree__stem {
  width: 2px;
  height: var(--stem);
  background: var(--line);
  flex-shrink: 0;
}

.tree__stem--sm {
  height: 0.65rem;
}

/* Scroll wrapper for the wide horizontal row */
.tree__scroll {
  width: 100%;
  overflow-x: auto;
  padding: 0 0.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.tree__row {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: min-content;
  margin: 0 auto;
  padding-top: var(--stem);
}

/* Horizontal rail above nav columns */
.tree__row--nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

/* Secondary row — footer site index */
.tree__secondary {
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}

.tree__row-label {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tree__row-label--nav {
  margin-top: 0.25rem;
}

.tree__row-label-note {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #8a93a3;
}

.tree__scroll--secondary {
  padding-bottom: 0.5rem;
}

.tree__row--secondary {
  padding-top: var(--stem);
}

.tree__row--secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--line);
  opacity: 0.65;
}

.col--secondary::before {
  opacity: 0.65;
}

.node__card--secondary {
  background: #fafafa;
  border-style: dashed;
  box-shadow: none;
}

.node__card--secondary:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.node__card--flag-missing {
  background: #ffebee;
  border-color: #ef9a9a;
}

.node__card--flag-missing:hover {
  background: #ffcdd2;
}

.node__flag {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  color: #c62828;
}

/* Column = one top-level page + descendants below */
.col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 var(--col-min);
  min-width: var(--col-min);
  max-width: 10.5rem;
}

/* Vertical tick from horizontal rail down to card */
.col::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--stem));
  left: 50%;
  width: 2px;
  height: var(--stem);
  background: var(--line);
  transform: translateX(-50%);
}

.col--wide {
  flex-basis: 9.5rem;
  min-width: 9.5rem;
  max-width: 11rem;
}

/* Node card */
.node__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.6rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.node__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.12);
}

.node__label {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  hyphens: auto;
}

/* Vertical levels below a column */
.level {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.level--2 {
  margin-top: 0;
}

.level--3 {
  padding-left: 0.35rem;
  border-left: 2px solid rgba(200, 205, 214, 0.9);
  margin-left: 0.65rem;
}

/* Connector line between levels */
.level__stem {
  align-self: center;
  width: 2px;
  height: 0.65rem;
  background: var(--line);
  flex-shrink: 0;
}

.level__stem--after-card {
  height: 0.75rem;
}

/* Item rows */
.item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.3rem 0.25rem;
  border-radius: 5px;
  text-align: left;
}

.item:hover {
  background: rgba(21, 101, 192, 0.05);
}

.item__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.item__label--sm {
  font-size: var(--text-xs);
  color: var(--muted);
}

.item--category .item__label {
  font-weight: 700;
  color: var(--category);
}

.item--page .item__label {
  font-weight: 700;
  color: var(--section);
}

.item--head {
  padding-top: 0.45rem;
}

/* Upper utility bar — persistent header */
.tree__utility {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.utility-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.utility-bar__label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.utility-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
  background: rgba(21, 101, 192, 0.05);
}

.utility-bar__item--contact {
  background: rgba(198, 40, 40, 0.08);
  color: #b71c1c;
}

/* Other ideas — text only, outside tree */
.other-ideas {
  width: 100%;
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.other-ideas__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.other-ideas__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.other-ideas__list li + li {
  margin-top: 0.35rem;
}

/* Footer site index — wider row */
.tree__row--footer {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
}

.tree__row--footer::before {
  left: 5%;
  right: 5%;
  opacity: 0.65;
}

.col--footer {
  flex: 0 0 6.5rem;
  min-width: 6.5rem;
  max-width: 8rem;
}

.node__card--footer {
  background: #fafafa;
  border-style: dashed;
  box-shadow: none;
  padding: 0.5rem 0.35rem;
}

.node__card--footer .node__label {
  font-size: var(--text-xs);
}

.node__card--footer:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.col--footer::before {
  opacity: 0.65;
}

.tree__row--footer-groups {
  align-items: flex-start;
  gap: 1.5rem;
}

.col--footer-group {
  flex: 0 1 auto;
  min-width: 8.5rem;
  max-width: 11rem;
}

.node__card--footer-head {
  font-weight: 600;
}

.footer-group__items {
  width: 100%;
  padding-top: 0.15rem;
}

.item--footer {
  justify-content: flex-start;
  width: 100%;
  padding: 0.3rem 0.35rem;
  border-radius: 6px;
}

.item--footer .item__label {
  font-size: var(--text-xs);
  text-align: left;
}

.item--footer:hover {
  background: rgba(21, 101, 192, 0.06);
}

/* Nested branch block (category + its children) */
.branch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.branch + .branch,
.branch + .item,
.item + .branch {
  margin-top: 0.15rem;
}

/* Footer */
.footer {
  max-width: 1280px;
  min-height: 1.35rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--muted);
}

@media print {
  body { background: #fff; }
  .tree__scroll { overflow: visible; }
  .node__card:hover { transform: none; }
}
