/* EAP Tax Strategy — site styles */
:root {
  --wb-blue:    #003087;
  --wb-cyan:    #009FDA;
  --wb-amber:   #F4A261;
  --wb-green:   #00A65A;
  --wb-red:     #E63946;
  --wb-slate:   #457B9D;
  --wb-grey-90: #f4f5f7;
  --wb-grey-70: #d8dadf;
  --wb-grey-50: #6c7280;
  --wb-grey-30: #2c3138;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               Helvetica, Arial, sans-serif;
  color: var(--wb-grey-30);
  background: #fff;
  line-height: 1.55;
}
a { color: var(--wb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Top navigation */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--wb-blue);
  color: #fff;
  border-bottom: 3px solid var(--wb-amber);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 36px;
  display: flex; align-items: center; gap: 24px;
  height: 56px;
}
.topnav .brand {
  font-weight: 700; font-size: 14px;
  color: #fff; letter-spacing: 0.01em;
  flex-shrink: 0;
}
.topnav .brand:hover { text-decoration: none; opacity: 0.9; }
.topnav nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  font-size: 13px;
}
.topnav nav a {
  color: rgba(255,255,255,0.86);
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.topnav nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}
.topnav nav a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--wb-blue) 0%, #1a4ba8 100%);
  color: #fff;
  padding: 48px 48px 36px;
  border-bottom: 4px solid var(--wb-amber);
}
.page-header-inner {
  max-width: 1200px; margin: 0 auto;
}
.page-header h1 {
  margin: 0 0 6px;
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.01em;
}
.page-header .subtitle {
  margin: 0; font-size: 17px; opacity: 0.92;
}
.page-header .breadcrumb {
  font-size: 12px;
  margin: 0 0 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 36px 80px;
}
h2 {
  color: var(--wb-blue);
  font-size: 22px;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--wb-grey-70);
}
h2.first { margin-top: 8px; }
h3 {
  color: var(--wb-grey-30);
  font-size: 17px;
  margin: 28px 0 8px;
}
p.lead {
  font-size: 17px;
  color: var(--wb-grey-30);
  max-width: 820px;
}
p { max-width: 820px; }

/* Headline tiles */
.headline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.headline-card {
  display: block;
  padding: 22px 24px;
  border-radius: 10px;
  background: var(--wb-blue);
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.headline-card.alt { background: var(--wb-cyan); }
.headline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0,48,135,0.4);
  text-decoration: none;
}
.headline-card .label {
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.75;
}
.headline-card h3 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 20px; font-weight: 600;
}
.headline-card .desc {
  font-size: 14px; opacity: 0.92; line-height: 1.45;
}

/* Section map */
.map-wrap {
  background: var(--wb-grey-90);
  border-radius: 12px;
  padding: 28px;
  margin-top: 18px;
}
.map-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.map-section {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--wb-grey-70);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  color: var(--wb-grey-30);
}
.map-section:hover {
  border-color: var(--wb-blue);
  transform: translateX(2px);
  text-decoration: none;
}
.map-section .num {
  width: 48px; height: 48px;
  background: var(--wb-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}
.map-section[data-color="cyan"]  .num { background: var(--wb-cyan); }
.map-section[data-color="amber"] .num { background: var(--wb-amber); }
.map-section[data-color="green"] .num { background: var(--wb-green); }
.map-section[data-color="slate"] .num { background: var(--wb-slate); }
.map-section h4 {
  margin: 0 0 4px;
  font-size: 16px; font-weight: 600;
  color: var(--wb-grey-30);
}
.map-section .takeaway {
  font-size: 14px;
  color: var(--wb-grey-50);
  line-height: 1.45;
}
.map-section .links {
  display: flex; flex-direction: column;
  gap: 4px; align-items: flex-end;
  font-size: 13px; min-width: 200px;
}
.map-section .links span {
  color: var(--wb-blue);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Resource cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.resource-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--wb-grey-70);
  border-radius: 8px;
  background: #fff;
  color: var(--wb-grey-30);
  text-decoration: none;
  transition: border-color 0.18s ease;
}
.resource-card:hover {
  border-color: var(--wb-blue);
  text-decoration: none;
}
.resource-card .rc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wb-grey-50);
}
.resource-card .rc-title {
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0 4px;
  color: var(--wb-grey-30);
}
.resource-card .rc-desc {
  font-size: 13px;
  color: var(--wb-grey-50);
  line-height: 1.4;
}

/* Figure gallery */
.fig-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.fig-item {
  background: #fff;
  border: 1px solid var(--wb-grey-70);
  border-radius: 8px;
  padding: 16px;
}
.fig-item img {
  display: block;
  margin: 0 auto;
  max-height: 480px;
  border-radius: 4px;
}
.fig-item .fig-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--wb-grey-50);
  line-height: 1.45;
}
.fig-item .fig-caption strong {
  color: var(--wb-grey-30);
  font-weight: 600;
}

/* Single full-width figure */
.fig-feature {
  margin: 18px 0;
  text-align: center;
}
.fig-feature img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--wb-grey-70);
}
.fig-feature .fig-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--wb-grey-50);
  font-style: italic;
}

/* Findings boxes */
.finding {
  background: var(--wb-grey-90);
  border-left: 4px solid var(--wb-blue);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 6px 6px 0;
}
.finding strong {
  color: var(--wb-blue);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 14px;
}
th, td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--wb-grey-70);
  text-align: left;
}
th {
  background: var(--wb-grey-90);
  color: var(--wb-blue);
  font-weight: 600;
}

/* Code */
code {
  background: var(--wb-grey-90);
  color: var(--wb-blue);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
pre {
  background: var(--wb-grey-90);
  border-left: 3px solid var(--wb-blue);
  padding: 12px 16px;
  overflow-x: auto;
  border-radius: 0 6px 6px 0;
}
pre code {
  background: transparent;
  color: var(--wb-grey-30);
  padding: 0;
  font-size: 13px;
}

/* Footer */
footer.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 36px 40px;
  font-size: 12px;
  color: var(--wb-grey-50);
  border-top: 1px solid var(--wb-grey-70);
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wb-grey-30);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

/* Responsive */
@media (max-width: 760px) {
  .topnav-inner { padding: 0 16px; gap: 12px; }
  .topnav nav a { padding: 5px 9px; font-size: 12px; }
  .headline-grid { grid-template-columns: 1fr; }
  .map-section { grid-template-columns: 48px 1fr; }
  .map-section .links {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
  .page-header { padding: 32px 24px; }
  main { padding: 24px; }
  .fig-gallery { grid-template-columns: 1fr; }
}
