/* Data for Thought — global shell (header, footer, cards) */

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pillar-accent-ink); outline-offset: 2px; border-radius: 2px; }

/* ---- Global header ---- */
.dft-header { background: var(--brand-paper); border-bottom: var(--header-rule) solid var(--pillar-accent); }
.dft-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dft-brand { display: inline-flex; align-items: center; flex: none; }
.dft-brand img { display: block; height: 34px; width: auto; }
.dft-brand .dft-mark-mobile { display: none; height: 34px; }

.dft-nav { display: flex; align-items: center; gap: 18px; font-size: 14.5px; font-weight: 600; }
.dft-nav a { text-decoration: none; color: var(--text-secondary); padding: 6px 2px; }
.dft-nav a:hover { color: var(--text-primary); }
.dft-nav a[aria-current="true"] {
  color: var(--text-primary); font-weight: 800;
  border-bottom: 2px solid var(--pillar-accent); padding-bottom: 4px;
}
.dft-nav .dft-sep { width: 1px; height: 15px; background: var(--border-strong); }
.dft-nav .dft-news { color: var(--brand-teal); font-weight: 700; }
.dft-nav .dft-news:hover { color: var(--brand-teal-light); }

.dft-menu {
  display: none; font: 700 14px/1 var(--font-ui); color: var(--brand-teal);
  background: none; border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 9px 14px; cursor: pointer; min-height: 40px;
}

/* Local (second-level) navigation slot — visually distinct from global */
.dft-localnav {
  background: color-mix(in srgb, var(--pillar-accent) 8%, var(--page-background));
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}
.dft-localnav .wrap { display: flex; gap: 14px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.dft-localnav .crumb { color: var(--text-secondary); font-weight: 600; }
.dft-localnav .crumb b { color: var(--text-primary); }

/* ---- Cards ---- */
.dft-card {
  background: var(--surface-primary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 22px;
}
.dft-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.dft-card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.dft-card-accent { border-top: 4px solid var(--card-accent, var(--pillar-accent)); }
a.dft-cardlink { text-decoration: none; display: block; height: 100%; }
a.dft-cardlink:hover .dft-card { border-color: var(--border-strong); transform: translateY(-1px); }
a.dft-cardlink .dft-card { transition: transform 120ms ease, border-color 120ms ease; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  a.dft-cardlink .dft-card { transition: none; }
  a.dft-cardlink:hover .dft-card { transform: none; }
}

.dft-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pillar-accent-ink);
}
.dft-chip {
  display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 3px 10px; border: 1px solid var(--border-subtle);
  background: var(--surface-secondary); color: var(--text-secondary);
}

/* ---- Footer ---- */
.dft-footer {
  margin-top: 56px; background: var(--brand-teal); color: var(--brand-paper);
}
.dft-footer .wrap {
  padding-top: 28px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between;
}
.dft-footer img { height: 30px; display: block; }
.dft-footer nav { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; }
.dft-footer a { color: var(--brand-paper); text-decoration: none; }
.dft-footer a:hover { color: var(--brand-sand-light); }
.dft-footer .fineprint { width: 100%; font-size: 12px; color: #BFCDC5; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .dft-brand .dft-logo-desktop { display: none; }
  .dft-brand .dft-mark-mobile { display: block; }
  .dft-menu { display: inline-block; }
  .dft-nav .dft-links {
    display: none; position: absolute; right: 12px; top: 60px; z-index: 30;
    background: var(--surface-primary); border: 1px solid var(--border-subtle);
    border-radius: 12px; box-shadow: var(--shadow-card);
    padding: 10px; min-width: 180px; flex-direction: column; align-items: stretch; gap: 2px;
  }
  .dft-nav .dft-links a { padding: 10px 12px; border-radius: 8px; min-height: 24px; }
  .dft-nav .dft-links a[aria-current="true"] { border-bottom: none; background: var(--surface-secondary); }
  .dft-nav .dft-sep { display: none; }
  .dft-nav.open .dft-links { display: flex; }
  .dft-header-inner { position: relative; }
}
@media (min-width: 721px) {
  .dft-nav .dft-links { display: flex; align-items: center; gap: 18px; }
}
