/* The Giving Compass — compass-navigation visual.
   Deep navy ink, pale survey-blue ground, cardinal tick rulers. Sharp corners only. */
:root {
  --bg: #eef3f6;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --ink: #22303a;
  --navy: #14365d;
  --navy-deep: #0d2440;
  --muted: #5b6b7a;
  --line: #cbd8e4;
  --tick: #9db2c8;
  --soft: #dbe6f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.68;
  font-size: 16px;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ---- masthead ---- */
.masthead { background: var(--navy); color: #eaf1f8; border-bottom: 4px solid var(--navy-deep); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 12px; color: #eaf1f8; }
.wordmark:hover { text-decoration: none; color: #ffffff; }
.rose { width: 42px; height: 42px; flex: 0 0 auto; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.18; }
.wordmark-name { font-weight: 700; letter-spacing: .4px; font-size: 17px; }
.wordmark-tag { font-size: 11px; color: #9fb4cc; letter-spacing: 1.6px; text-transform: uppercase; }
.bearing-nav { display: flex; gap: 20px; }
.bearing-nav a { color: #cddae8; font-size: 14px; padding: 4px 0; border-bottom: 2px solid transparent; letter-spacing: .3px; }
.bearing-nav a:hover { color: #ffffff; border-bottom-color: #6f8fb4; text-decoration: none; }

/* tick ruler used under headers and on card tops */
.ticks {
  height: 6px; width: 100%;
  background-image: repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 9px);
  background-position: 0 0; background-repeat: repeat-x;
}

/* ---- hero ---- */
.compass-hero { background: var(--navy-deep); color: #eaf1f8; padding: 52px 0 46px; position: relative; overflow: hidden; }
.compass-hero .rose-water { position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; opacity: .10; }
.compass-hero .wrap { position: relative; }
.hero-bearing { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #8fb0d4; margin-bottom: 14px; }
.compass-hero h1 { font-size: 36px; line-height: 1.14; font-weight: 700; max-width: 720px; margin-bottom: 16px; }
.hero-lede { max-width: 660px; color: #b8c9dc; font-size: 17px; }

/* ---- section labels ---- */
.strip { padding: 34px 0 6px; }
.strip-label { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.strip-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- sector (category) tiles ---- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector-card { background: var(--panel); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; }
.sector-card:hover { border-color: var(--navy); text-decoration: none; }
.sector-tick { height: 6px; background-image: repeating-linear-gradient(to right, var(--navy) 0 1px, transparent 1px 9px); }
.sector-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 5px; }
.sector-deg { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
.sector-name { font-weight: 700; font-size: 17px; color: var(--navy); }
.sector-count { font-size: 12px; color: var(--muted); }

/* ---- cause cards (article cards) ---- */
.group-block { padding: 22px 0 4px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.group-head h2 { font-size: 22px; font-weight: 700; color: var(--navy); }
.group-head a { font-size: 13px; }
.cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cause-card {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; padding: 0;
}
.cause-card:hover { border-color: var(--navy); text-decoration: none; }
.cause-card .card-tick { height: 5px; background-image: repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 8px); }
.cause-card:hover .card-tick { background-image: repeating-linear-gradient(to right, var(--navy) 0 1px, transparent 1px 8px); }
.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cause-tag { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.cause-title { font-weight: 700; font-size: 16px; line-height: 1.32; color: var(--ink); }
.cause-readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.readout { display: flex; flex-direction: column; font-size: 12px; }
.readout b { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.readout span { color: var(--muted); }
.cause-desc { font-size: 13px; color: var(--muted); }

/* ---- page head ---- */
.head-block { padding: 34px 0 10px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.head-block h1 { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.head-lede { color: var(--muted); margin-top: 8px; }

/* ---- item layout ---- */
.chart-layout { display: grid; grid-template-columns: 306px 1fr; gap: 28px; padding: 22px 0 44px; }
.bearing-sheet { align-self: start; background: var(--panel); border: 1px solid var(--line); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--navy); color: #eaf1f8; }
.sheet-top .cause-tag { color: #cddae8; }
.sheet-legend { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #9fb4cc; }
.bearing-rows { }
.bearing-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.bearing-row:last-child { border-bottom: 0; }
.bearing-row dt { flex: 0 0 44%; padding: 10px 14px; color: var(--navy); font-weight: 600; border-right: 1px solid var(--line); background: var(--panel-2); }
.bearing-row dd { flex: 1; padding: 10px 14px; }

.field-notes { background: var(--panel); border: 1px solid var(--line); padding: 26px 30px; }
.field-notes .sec { margin-bottom: 26px; }
.field-notes .sec:last-child { margin-bottom: 0; }
.field-notes h2 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.sec-num { font-size: 12px; letter-spacing: 1px; color: var(--navy); border: 1px solid var(--line); background: var(--panel-2); padding: 1px 7px; font-weight: 700; }
.field-notes p { margin-bottom: 12px; color: #2c3a45; }
.field-notes p:last-child { margin-bottom: 0; }
.related-list { list-style: none; }
.related-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.related-list li:last-child { border-bottom: 0; }

/* ---- inline legend ---- */
.legend-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.legend-list li { font-size: 14px; color: var(--ink); display: flex; gap: 9px; align-items: baseline; }
.legend-code { font-size: 11px; letter-spacing: 1px; color: var(--navy); font-weight: 700; border: 1px solid var(--line); padding: 1px 6px; }

/* ---- legal prose ---- */
.legal-body { background: var(--panel); border: 1px solid var(--line); padding: 28px 32px; margin: 12px 0 44px; }
.legal-body h2 { font-size: 18px; color: var(--navy); margin: 20px 0 8px; font-weight: 700; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 12px; color: #2c3a45; }

/* ---- footer ---- */
.foot { background: var(--navy); color: #cddae8; border-top: 4px solid var(--navy-deep); margin-top: 24px; padding: 30px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.foot-brand { flex: 1 1 340px; }
.foot-brand .wordmark-name { color: #ffffff; }
.foot-brand p { color: #9fb4cc; font-size: 14px; margin-top: 8px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { color: #cddae8; font-size: 14px; }
.foot-nav a:hover { color: #ffffff; }
.copyright { flex: 1 1 100%; font-size: 12px; color: #8fb0d4; margin-top: 12px; }

@media (max-width: 900px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .cause-grid { grid-template-columns: repeat(2, 1fr); }
  .legend-list { grid-template-columns: 1fr; }
  .chart-layout { grid-template-columns: 1fr; }
  .compass-hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .sector-grid, .cause-grid { grid-template-columns: 1fr; }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bearing-nav { gap: 14px; flex-wrap: wrap; }
}
