/* ============================================================
   DATA SCULPTURES — ds.css
   Single stylesheet for datasculptures.com
   Sean Patrick Morris

   Sections:
   1.  Custom Properties
   2.  Reset & Base
   3.  Accessibility Utilities
   4.  Layout
   5.  Header & Brand
   6.  Navigation
   7.  Main Content & Typography
   8.  Artwork Figures
   9.  Gallery Grid
   10. Homepage Hero
   11. Section Headers
   12. Tool Cards  (tools.html)
   13. Tool Detail Pages
   14. Bio Components
   15. Footer
   16. Responsive
   17. Print
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --c-bg:          #ffffff;
  --c-text:        #1c1c1c;
  --c-muted:       #555555;
  --c-light:       #888888;
  --c-border:      #d8d8d8;
  --c-divider:     #eeeeee;

  /* Header / Nav / Footer */
  --c-header:      #111111;
  --c-header-text: #ffffff;
  --c-nav-link:    #bbbbbb;
  --c-nav-hover:   #ffffff;
  --c-nav-active:  #ffffff;

  /* Links */
  --c-link:        #1c1c1c;
  --c-link-hover:  #444444;

  /* Tools accent (keep neutral so it works on white) */
  --c-accent:      #1c1c1c;
  --c-tag-bg:      #f2f2f2;

  /* Code */
  --c-code-bg:     #f5f5f5;
  --c-code-border: #e0e0e0;

  /* Typography */
  --font-body: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;

  /* Layout */
  --max-w:      1100px;
  --max-w-text: 760px;

  /* Spacing scale */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.75rem;
  --sp-xl: 3rem;

  /* Misc */
  --radius:     3px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.10);
  --shadow:     0 2px 8px rgba(0,0,0,0.12);
  --transition: 0.15s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--c-link-hover);
  text-decoration: none;
}

ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.25em;
}


/* ============================================================
   3. ACCESSIBILITY UTILITIES
   ============================================================ */

/* Skip to main content — visible on focus only */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--c-header);
  color: var(--c-header-text);
  font-size: 0.875rem;
  font-family: var(--font-body);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus ring for all interactive elements */
:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}


/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}

/* Narrower container for readable text blocks */
.container--text {
  max-width: var(--max-w-text);
  margin-left: auto;
  margin-right: auto;
}

main {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  min-height: 55vh;
}


/* ============================================================
   5. HEADER & BRAND
   ============================================================ */
.site-header {
  background: var(--c-header);
  color: var(--c-header-text);
}

.header-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0;
  position: relative;
}

.site-brand {
  flex: 1 1 auto;
  padding-bottom: 0.9rem;
}

.site-brand a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.brand-name {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--c-header-text);
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #999999;
  margin-top: 0.15rem;
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */

/* Hidden checkbox — used for CSS-only mobile toggle */
.menu-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  align-self: center;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.menu-toggle:hover,
.menu-toggle:focus {
  border-color: #555;
  outline: none;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-header-text);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Nav element */
.site-nav {
  display: flex;
  align-items: stretch;
}

/* Nav list — horizontal on desktop */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-nav-link);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--c-nav-hover);
  border-bottom-color: var(--c-nav-hover);
}

/* Active page indicator — add aria-current="page" to <a> */
.nav-list a[aria-current="page"] {
  color: var(--c-nav-active);
  border-bottom-color: var(--c-nav-active);
}

/* External link indicator */
.nav-list a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.65rem;
  vertical-align: super;
}


/* ============================================================
   7. MAIN CONTENT & TYPOGRAPHY
   ============================================================ */

/* Page-level heading */
.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}

/* Content headings */
h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-xs);
}

p {
  margin-bottom: var(--sp-md);
  max-width: 75ch;
}

p:last-child {
  margin-bottom: 0;
}

/* Italic note / secondary text */
.note {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* Introductory lead paragraph */
.lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 68ch;
  margin-bottom: var(--sp-lg);
}

blockquote {
  border-left: 3px solid var(--c-border);
  padding: var(--sp-sm) var(--sp-md);
  margin: var(--sp-lg) 0;
  color: var(--c-muted);
  font-style: italic;
}

blockquote p {
  margin-bottom: var(--sp-sm);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--c-code-bg);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  border: 1px solid var(--c-code-border);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--c-code-bg);
  border: 1px solid var(--c-code-border);
  border-radius: var(--radius);
  padding: var(--sp-md);
  overflow-x: auto;
  line-height: 1.55;
  margin: var(--sp-md) 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 1em;
}

ul, ol {
  margin-bottom: var(--sp-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--sp-md) 0;
}

th, td {
  border: 1px solid var(--c-border);
  padding: 0.4em 0.65em;
  text-align: left;
}

th {
  background: var(--c-tag-bg);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ============================================================
   8. ARTWORK FIGURES
   ============================================================ */
figure.artwork {
  margin: var(--sp-xl) 0;
}

figure.artwork img {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  /* Preserve aspect ratio; remove fixed height */
}

figure.artwork figcaption {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: var(--sp-sm);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Group of artworks by series */
.artwork-group {
  margin-bottom: var(--sp-xl);
}

.artwork-group h3 {
  margin-top: 0;
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--c-divider);
  margin-bottom: var(--sp-lg);
}

.series-note {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-lg);
  max-width: 65ch;
}


/* ============================================================
   9. GALLERY GRID
   ============================================================ */

/* Responsive grid for artwork thumbnails */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
  margin: var(--sp-lg) 0;
}

/* Figures inside grid */
.gallery figure.artwork {
  margin: 0;
}

.gallery figure.artwork img {
  width: 100%;
  max-width: 100%;
  /* Consistent visual height with object-fit */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.gallery figure.artwork figcaption {
  text-align: left;
}


/* ============================================================
   10. HOMEPAGE HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-xl);
  align-items: center;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--c-divider);
}

.hero-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}

.hero-text .page-title {
  margin-bottom: var(--sp-md);
}

.hero-text .lead {
  margin-bottom: var(--sp-lg);
}

/* Quick links below hero intro */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.quick-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-text);
  transition: background var(--transition), border-color var(--transition);
}

.quick-link:hover,
.quick-link:focus {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

/* Featured recent work grid on home page */
.featured-section {
  margin-top: var(--sp-xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.featured-grid figure.artwork {
  margin: 0;
}

.featured-grid figure.artwork img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}


/* ============================================================
   11. SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  border-bottom: 2px solid var(--c-text);
  padding-bottom: var(--sp-sm);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}

.section-header:first-child,
.section-header.first {
  margin-top: 0;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.section-header .section-count {
  font-size: 0.82rem;
  color: var(--c-light);
  margin-left: auto;
  white-space: nowrap;
}


/* ============================================================
   12. TOOL CARDS  (tools.html)
   ============================================================ */
.tools-intro {
  max-width: 65ch;
  color: var(--c-muted);
  margin-bottom: var(--sp-xl);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.tool-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tool-card:hover {
  border-color: #888;
  box-shadow: var(--shadow-sm);
}

.tool-card-header {
  margin-bottom: var(--sp-sm);
}

.tool-card h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--sp-xs);
}

.tool-tagline {
  font-size: 0.82rem;
  color: var(--c-muted);
  font-style: italic;
  margin: 0;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin: var(--sp-md) 0;
  flex: 1;
  max-width: none;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
  list-style: none;
  padding: 0;
}

.tool-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  background: var(--c-tag-bg);
  border: 1px solid var(--c-border);
  border-radius: 2rem;
  color: var(--c-muted);
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-text);
  padding-bottom: 1px;
  width: fit-content;
  margin-top: auto;
}

.tool-link:hover,
.tool-link:focus {
  border-bottom-color: transparent;
}

.tool-link::after {
  content: "→";
  font-size: 0.8rem;
}


/* ============================================================
   13. TOOL DETAIL PAGES
   ============================================================ */
.tool-detail-header {
  border-bottom: 1px solid var(--c-divider);
  padding-bottom: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.tool-detail-header .page-title {
  margin-bottom: var(--sp-sm);
}

.tool-detail-header .lead {
  margin-bottom: var(--sp-md);
}

.tool-detail-header .back-link {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--c-muted);
}

.tool-detail-header .back-link:hover {
  color: var(--c-text);
}

.tool-detail-header .back-link::before {
  content: "← ";
}

/* Two-column layout for metrics, specs */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin: var(--sp-lg) 0;
}

.col-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-lg);
}

.col-card h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-top: 0;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--c-divider);
}

.col-card p,
.col-card li {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.col-card strong {
  color: var(--c-text);
}

/* Key/value pairs */
.spec-list {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

.spec-list li {
  display: flex;
  gap: var(--sp-md);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--c-divider);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-key {
  font-weight: 700;
  min-width: 8rem;
  flex-shrink: 0;
}

.spec-val {
  color: var(--c-muted);
}

/* Discovery blocks (for LLE page) */
.discoveries {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin: var(--sp-md) 0;
}

.discovery {
  border-left: 3px solid var(--c-border);
  padding: var(--sp-sm) var(--sp-md);
}

.discovery-pair {
  font-weight: 700;
  font-size: 0.95rem;
}

.discovery-depth {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-left: var(--sp-sm);
  font-style: normal;
}

.discovery-desc {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Validation table colours (RQB page) */
td.pass   { background: #eaf5ea; }
td.warn   { background: #fef9e7; }
td.fail   { background: #fdecea; }

/* Finding blocks (RQB page) */
.finding {
  padding: var(--sp-sm) var(--sp-md);
  margin: var(--sp-sm) 0;
  border-left: 4px solid var(--c-border);
  background: #f9f9f9;
  font-size: 0.9rem;
}

.finding.good   { border-left-color: #4caf50; }
.finding.note   { border-left-color: #f59e0b; }

/* Pipeline flow (DTS page) */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin: var(--sp-md) 0;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  font-size: 0.9rem;
}

.pipeline-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--c-text);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Constraints grid (DTS page) */
.constraints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-sm);
  margin: var(--sp-md) 0;
}

.constraint-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
}

.constraint-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.constraint-val {
  font-weight: 700;
}


/* ============================================================
   14. BIO COMPONENTS
   ============================================================ */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--sp-xl);
  align-items: start;
}

.bio-image {
  position: sticky;
  top: var(--sp-lg);
}

.bio-image img {
  width: 100%;
  border: 1px solid var(--c-border);
}

.bio-image figcaption {
  font-size: 0.8rem;
  color: var(--c-muted);
  font-style: italic;
  margin-top: var(--sp-xs);
  text-align: center;
}

/* Show history list */
.shows-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--sp-lg);
}

.show-item {
  display: flex;
  gap: var(--sp-md);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-divider);
  font-size: 0.9rem;
  align-items: flex-start;
}

.show-item:first-child {
  border-top: 1px solid var(--c-divider);
}

.show-year {
  font-weight: 700;
  min-width: 50px;
  flex-shrink: 0;
  color: var(--c-muted);
}

.show-desc {
  flex: 1;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-header);
  color: #999999;
  padding: var(--sp-lg) 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-social {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}

.footer-social a {
  display: inline-block;
  color: #999;
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer-social a:hover,
.footer-social a:focus {
  opacity: 0.7;
}

.footer-social img {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-info {
  text-align: right;
  line-height: 1.7;
}

.footer-info a {
  color: #999;
  text-decoration: none;
}

.footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}


/* ============================================================
   16. RESPONSIVE
   ============================================================ */

/* Tablet — medium screens */
@media (max-width: 900px) {
  :root {
    --sp-xl: 2.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .hero-image {
    order: 1;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-text {
    order: 2;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-image {
    position: static;
    max-width: 300px;
  }
}

/* Mobile — small screens */
@media (max-width: 768px) {
  .container {
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
  }

  /* Show hamburger button */
  .menu-toggle {
    display: flex;
  }

  /* Collapse the nav below the header */
  .site-nav {
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1c1c1c;
  }

  /* Reveal nav when menu checkbox is checked */
  .menu-checkbox:checked ~ .site-nav {
    max-height: 600px;
  }

  /* Animate hamburger → X */
  .menu-checkbox:checked ~ .menu-toggle .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-checkbox:checked ~ .menu-toggle .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-checkbox:checked ~ .menu-toggle .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Vertical nav list */
  .nav-list {
    flex-direction: column;
    padding: var(--sp-sm) 0;
  }

  .nav-list a {
    padding: 0.75rem var(--sp-md);
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a:focus,
  .nav-list a[aria-current="page"] {
    border-left-color: var(--c-nav-hover);
    border-bottom-color: transparent;
  }

  /* Gallery — single column on small screens */
  .gallery {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-info {
    text-align: left;
  }

  .section-header {
    flex-wrap: wrap;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    flex-direction: column;
  }

  .quick-link {
    text-align: center;
  }
}


/* ============================================================
   17. PRINT
   ============================================================ */
@media print {
  .skip-link,
  .site-header,
  .site-nav,
  .menu-toggle,
  .footer-social,
  .quick-links {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  figure.artwork {
    break-inside: avoid;
  }

  h2, h3 {
    break-after: avoid;
  }
}
