:root {
  --navy: #1B3A57;
  --navy-soft: #26455F;
  --teal: #2A8A9C;
  --teal-light: #DCEEF1;
  --bg: #F7FAFB;
  --white: #FFFFFF;
  --ink: #1B3A57;
  --ink-soft: #4A6072;
  --border: #E1E9EC;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.dashboard-types-banner {
  padding: 72px 0 56px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 14px;
}

.dashboard-types-banner h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.lede {
  font-size: 1.1rem;
  color: #4A6072;
  max-width: 620px;
  margin: 0;
}

.lede-note {
  margin-top: 14px;
  font-size: 1rem;
}

.lede-note a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lede-note a:hover {
  color: #24717F;
}

/* Categories */
.category {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.category:last-of-type {
  border-bottom: none;
}

.category-head {
  margin-bottom: 28px;
  max-width: 640px;
}

.category-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--navy);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-head h2::before {
  content: "";
  width: 6px;
  height: 28px;
  background: var(--teal);
  border-radius: 3px;
  flex-shrink: 0;
}

.category-head p {
  color: var(--ink-soft);
  margin: 0 0 0 20px;
  font-size: 1rem;
}

/* Masonry via CSS columns */
.masonry {
  column-count: 3;
  column-gap: 20px;
}

.masonry figure {
  margin: 0 0 20px;
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 58, 87, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.masonry figure:hover {
  box-shadow: 0 8px 24px rgba(27, 58, 87, 0.14);
  transform: translateY(-2px);
}

.masonry img {
  width: 100%;
  height: auto;
}

.thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.thumb-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 87, 0);
  transition: background 0.2s ease;
}

.thumb-btn:hover::after,
.thumb-btn:focus-visible::after {
  background: rgba(27, 58, 87, 0.08);
}

.thumb-btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 38, 0.92);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  width: 100%;
  max-width: 1600px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-viewport {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: grab;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lightbox-viewport.dragging {
  cursor: grabbing;
}

.lightbox-viewport img {
  display: block;
  transform-origin: 0 0;
  max-width: none;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  margin: auto;
  transition: width 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-figure figcaption {
  color: #E5EEF1;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lightbox-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-zoom-btn:hover,
.lightbox-zoom-btn:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
}

.lightbox-zoom-level {
  color: #C9DCE4;
  font-size: 0.85rem;
  min-width: 44px;
  text-align: center;
}

.lightbox-hint {
  color: #7C97A5;
  font-size: 0.8rem;
  margin-left: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--teal);
}

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 10px; right: 14px; font-size: 2rem; }
  .lightbox-hint { display: none; }
}

.masonry figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-top: 1px solid var(--border);
}

/* CTA */
.cta {
  text-align: center;
  padding: 64px 0 72px;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 12px;
}

.cta p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #24717F;
  transform: translateY(-1px);
}

/* Disclaimer above footer */
.dashboard-disclaimer {
  text-align: center;
  color: var(--ink-soft, #4A6072);
  font-size: 0.85rem;
  padding: 0 0 48px;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .dashboard-types-banner { padding: 56px 0 40px; }
  .masonry { column-count: 1; }
  .category { padding: 40px 0; }
  .category-head h2 { font-size: 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .masonry figure, .btn { transition: none; }
}
