/* A regional, qualitative SWOT atlas. All five counties share the same base
   fill; the brighter county is the reader's selection, never a risk score. */
.swot-maproom {
  --swot-accent: #b697ec;
  --swot-accent-deep: #5d3d9e;
  --swot-ink: #152440;
  --swot-white: #fffaf2;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1560px;
  margin: clamp(2rem, 5vw, 5rem) auto;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #101c34;
  color: var(--swot-white);
  box-shadow: 0 28px 90px #14233d24;
  font-family: Montserrat, Arial, sans-serif;
}
.swot-maproom[data-lens="w"] { --swot-accent: #eda16f; --swot-accent-deep: #98421e; }
.swot-maproom[data-lens="o"] { --swot-accent: #ed8bbb; --swot-accent-deep: #992d69; }
.swot-maproom[data-lens="t"] { --swot-accent: #84bce0; --swot-accent-deep: #225c83; }
.swot-maproom * { box-sizing: border-box; }
.swot-maproom button, .swot-maproom a { -webkit-tap-highlight-color: transparent; }
.swot-maproom button:focus-visible, .swot-maproom a:focus-visible,
.swot-maproom [data-swot-county-path]:focus-visible { outline: 3px solid #f6c96b; outline-offset: 3px; }
.swot-maproom__header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.35rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 87% 11%, #a46fc734 0, transparent 34%),
    radial-gradient(circle at 54% 95%, #d45f9440 0, transparent 34%),
    linear-gradient(120deg, #0e1932 4%, #27315d 62%, #17284a 100%);
}
.swot-maproom__header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 87px, #d6e5ff21 88px 89px),
    repeating-linear-gradient(0deg, transparent 0 87px, #d6e5ff16 88px 89px);
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000);
}
.swot-maproom__header > div:first-child { position: relative; z-index: 1; max-width: 810px; }
.swot-maproom .swot-maproom__eyebrow,
.swot-maproom__findings-head span,
.swot-maproom__panel-kicker {
  display: block;
  margin: 0 0 1.05rem;
  color: #e4c4f0;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}
.swot-maproom__eyebrow span { padding: 0 .4rem; color: #f2b172; }
.swot-maproom .swot-maproom__header h2 {
  margin: 0 0 1.1rem;
  max-width: 860px;
  color: #fffaf2;
  font-size: clamp(2.5rem, 5.1vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.01;
  text-wrap: balance;
}
.swot-maproom .swot-maproom__header p:last-child {
  margin: 0;
  max-width: 780px;
  color: #f0eefa;
  font-size: clamp(.89rem, 1.2vw, 1.1rem);
  line-height: 1.75;
}
.swot-maproom__monogram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 3.5rem);
  gap: .42rem;
  flex: 0 0 auto;
  transform: rotate(-8deg);
}
.swot-maproom__monogram span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border: 1px solid #fff8;
  border-radius: .45rem;
  background: #fff2;
  color: white;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px #0002;
}
.swot-maproom__monogram span:nth-child(1) { background: #7656b0; }
.swot-maproom__monogram span:nth-child(2) { background: #b65d35; }
.swot-maproom__monogram span:nth-child(3) { background: #aa407a; }
.swot-maproom__monogram span:nth-child(4) { background: #316f96; }
.swot-maproom__lenses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 0;
  background: #60718e70;
}
.swot-maproom .swot-maproom__lens {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  min-height: 5.6rem;
  padding: 1rem clamp(.8rem, 1.9vw, 1.75rem);
  border: 0;
  border-bottom: .27rem solid transparent;
  border-radius: 0;
  background: #182a4a;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.swot-maproom .swot-maproom__lens:hover { background: #223a62; }
.swot-maproom .swot-maproom__lens[aria-pressed="true"] { background: #213759; border-bottom-color: var(--swot-accent); }
.swot-maproom__lens-letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.35rem;
  aspect-ratio: 1;
  border-radius: .48rem;
  background: #7856ae;
  font-size: 1.15rem;
  font-weight: 800;
}
.swot-maproom__lens[data-swot-lens="w"] .swot-maproom__lens-letter { background: #a44e26; }
.swot-maproom__lens[data-swot-lens="o"] .swot-maproom__lens-letter { background: #a23371; }
.swot-maproom__lens[data-swot-lens="t"] .swot-maproom__lens-letter { background: #2e6b91; }
.swot-maproom__lens strong { display: block; font-size: .86rem; font-weight: 750; line-height: 1.25; }
.swot-maproom__lens small { display: block; margin-top: .25rem; color: #c6d4e9; font-size: .67rem; line-height: 1.45; }
.swot-maproom__lens-arrow { margin-left: auto; color: #d2e0f2; font-size: .95rem; }
.swot-maproom__body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 0;
  padding: clamp(1rem, 2vw, 2rem);
  background: linear-gradient(125deg, #12233e, #172b4c);
}
.swot-maproom__map-column { display: flex; flex-direction: column; min-width: 0; }
.swot-maproom__map-stage {
  position: relative;
  overflow: hidden;
  min-height: 490px;
  border: 1px solid #8aa5c344;
  border-radius: .85rem;
  background: radial-gradient(ellipse at 62% 45%, color-mix(in srgb, var(--swot-accent) 20%, transparent), transparent 58%), #142b4a;
}
.swot-maproom__map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background: repeating-radial-gradient(ellipse at 62% 47%, transparent 0 37px, #b5cce313 38px 39px, transparent 40px 75px);
}
.swot-maproom__compass {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .38rem .55rem;
  border: 1px solid #bdc9db77;
  border-radius: .35rem;
  color: #f8f3e8;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .09em;
}
.swot-maproom__compass b { color: var(--swot-accent); font-size: 1rem; }
.swot-maproom__svg { position: relative; display: block; width: 100%; min-height: 490px; }
.swot-maproom__grid path { fill: none; stroke: #9bb9d330; stroke-width: .65; stroke-dasharray: 3 7; }
.swot-maproom__county {
  fill: #344b70;
  stroke: #c6d7eb;
  stroke-width: 1.6;
  cursor: pointer;
  transition: fill .18s ease, stroke-width .18s ease, filter .18s ease;
}
.swot-maproom__county:hover { fill: #506c98; }
.swot-maproom__county.is-selected {
  fill: color-mix(in srgb, var(--swot-accent) 42%, #344b70);
  stroke: #fff8e7;
  stroke-width: 3.7;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--swot-accent) 68%, transparent));
}
.swot-maproom__county-label {
  pointer-events: none;
  fill: #fffdf4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  paint-order: stroke;
  stroke: #132541;
  stroke-width: 3px;
}
.swot-maproom__map-label {
  position: absolute;
  bottom: .6rem;
  left: .9rem;
  margin: 0 !important;
  color: #deebf8 !important;
  font-size: .67rem !important;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.swot-maproom__map-label span { color: var(--swot-accent); padding: 0 .25rem; }
.swot-maproom__county-picks { display: flex; flex-wrap: wrap; gap: .4rem; padding: .65rem .1rem 0; }
.swot-maproom .swot-maproom__county-picks button {
  padding: .54rem .85rem;
  border: 1px solid #9eb6d278;
  border-radius: 999px;
  background: #203759;
  color: #f4f6fa;
  font-size: .73rem;
  font-weight: 700;
  cursor: pointer;
}
.swot-maproom .swot-maproom__county-picks button:hover { border-color: #f8e8cf; }
.swot-maproom .swot-maproom__county-picks button[aria-pressed="true"] {
  border-color: var(--swot-accent);
  background: var(--swot-accent-deep);
  color: #fff;
}
.swot-maproom__reading { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .75rem; min-width: 0; padding-left: clamp(.75rem, 1.5vw, 1.4rem); }
.swot-maproom__regional, .swot-maproom__local { position: relative; min-width: 0; border-radius: .85rem; }
.swot-maproom__regional { padding: clamp(1.25rem, 2.2vw, 2.3rem); background: #f6f0e8; color: var(--swot-ink); }
.swot-maproom__regional::before { content: ""; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: .25rem; border-radius: 0 .2rem .2rem 0; background: var(--swot-accent-deep); }
.swot-maproom .swot-maproom__regional .swot-maproom__panel-kicker,
.swot-maproom .swot-maproom__local .swot-maproom__panel-kicker { color: var(--swot-accent-deep); margin-bottom: .7rem; }
.swot-maproom__panel-kicker i { display: inline-block; width: .26rem; height: .26rem; margin: 0 .35rem .15rem; border-radius: 50%; background: currentColor; }
.swot-maproom__finding-index { position: absolute; top: 1.05rem; right: 1.35rem; color: var(--swot-accent-deep); font-size: 1.55rem; font-weight: 800; line-height: 1; }
.swot-maproom__finding-index small { font-size: .59rem; font-weight: 700; }
.swot-maproom .swot-maproom__regional h3 { margin: 1.35rem 0 .8rem; max-width: 90%; color: #142541; font-size: clamp(1.5rem, 2.4vw, 2.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.swot-maproom .swot-maproom__regional > p { margin: 0 0 1.3rem; color: #293a55; font-size: .94rem; line-height: 1.7; }
.swot-maproom__implication { padding: 1rem 1.15rem; border-left: 3px solid var(--swot-accent-deep); border-radius: 0 .4rem .4rem 0; background: color-mix(in srgb, var(--swot-accent) 19%, white); }
.swot-maproom__implication strong { display: block; margin-bottom: .3rem; color: #1d2d4a; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.swot-maproom .swot-maproom__implication p { margin: 0; color: #263550; font-size: .86rem; line-height: 1.65; }
.swot-maproom__regional > a, .swot-maproom__local > a { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.2rem; color: #233e67; font-size: .78rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.swot-maproom__regional > a:hover, .swot-maproom__local > a:hover { color: var(--swot-accent-deep); }
.swot-maproom__local { padding: clamp(1.2rem, 1.8vw, 1.65rem) clamp(1.25rem, 2.2vw, 2.3rem); border: 1px solid #e2dbd1; background: #fffbf4; color: var(--swot-ink); }
.swot-maproom .swot-maproom__local h3 { margin: .15rem 0 .25rem; color: #152440; font-size: 1.32rem; letter-spacing: -.035em; }
.swot-maproom__local > strong { display: block; color: #5d476c; font-size: .78rem; }
.swot-maproom .swot-maproom__local > p { margin: .65rem 0; color: #35415a; font-size: .84rem; line-height: 1.65; }
.swot-maproom__local-question { padding-top: .6rem; border-top: 1px solid #ded7d0; }
.swot-maproom__local-question span { color: var(--swot-accent-deep); font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.swot-maproom .swot-maproom__local-question p { margin: .22rem 0 0; color: #273650; font-size: .82rem; line-height: 1.6; }
.swot-maproom__local > a { margin-top: .68rem; font-size: .75rem; }
.swot-maproom__local > small { display: block; margin-top: .6rem; color: #536076; font-size: .66rem; line-height: 1.5; }
.swot-maproom__findings-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.8rem clamp(1rem, 2vw, 2rem) .8rem; }
.swot-maproom__findings-head span { color: var(--swot-accent); margin-bottom: .25rem; }
.swot-maproom .swot-maproom__findings-head h3 { margin: 0; color: #fffaf2; font-size: clamp(1.25rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -.04em; }
.swot-maproom .swot-maproom__findings-head p { max-width: 300px; margin: 0; color: #dce7f4; font-size: .76rem; line-height: 1.5; text-align: right; }
.swot-maproom__findings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; padding: 0 clamp(1rem, 2vw, 2rem) 1.6rem; }
.swot-maproom .swot-maproom__findings button { display: flex; flex-direction: column; align-items: flex-start; min-height: 6.8rem; padding: .85rem .95rem; border: 1px solid #8095b266; border-top: 3px solid #7290ae; border-radius: .5rem; background: #1c3151; color: #fff; text-align: left; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.swot-maproom .swot-maproom__findings button:hover { background: #2b4569; transform: translateY(-2px); }
.swot-maproom .swot-maproom__findings button[aria-pressed="true"] { border-top-color: var(--swot-accent); border-color: var(--swot-accent); background: #344763; }
.swot-maproom__findings button span { color: var(--swot-accent); font-size: .6rem; font-weight: 800; letter-spacing: .09em; }
.swot-maproom__findings button strong { margin-top: .45rem; font-size: .82rem; font-weight: 750; line-height: 1.35; }
.swot-maproom__findings button em { margin-top: auto; margin-left: auto; color: #cbd9ea; font-size: .8rem; font-style: normal; }
.swot-maproom__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.1rem clamp(1rem, 2vw, 2rem) 1.5rem; border-top: 1px solid #6d809e70; background: #0c182e; }
.swot-maproom__legend { display: flex; align-items: flex-start; gap: .65rem; color: #ecf2fa; font-size: .7rem; line-height: 1.65; }
.swot-maproom__legend i { flex: 0 0 auto; display: block; width: .65rem; height: .65rem; margin-top: .18rem; border-radius: 50%; background: var(--swot-accent); box-shadow: 0 0 12px var(--swot-accent); }
.swot-maproom .swot-maproom__foot p { margin: 0; color: #cfdbeb; font-size: .67rem; line-height: 1.65; }
.swot-maproom__foot a { color: #fff4e1; text-decoration: underline; text-underline-offset: .16rem; }
.swot-maproom__unavailable { padding: 2rem; background: #152440; color: #fff; }
@media (max-width: 1120px) {
  .swot-maproom__body { grid-template-columns: minmax(0, 1fr) minmax(285px, .86fr); }
  .swot-maproom__map-stage, .swot-maproom__svg { min-height: 400px; }
  .swot-maproom__findings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .swot-maproom__header { align-items: flex-start; }
  .swot-maproom__monogram { grid-template-columns: repeat(2, 2.4rem); }
  .swot-maproom__monogram span { width: 2.4rem; font-size: 1.1rem; }
  .swot-maproom__body { grid-template-columns: 1fr; }
  .swot-maproom__reading { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; padding: .8rem 0 0; }
  .swot-maproom__map-stage, .swot-maproom__svg { min-height: 390px; }
}
@media (max-width: 640px) {
  .swot-maproom { border-radius: .7rem; }
  .swot-maproom__header { padding: 1.5rem 1.1rem 1.7rem; }
  .swot-maproom__monogram { display: none; }
  .swot-maproom .swot-maproom__header h2 { font-size: clamp(2.4rem, 11vw, 3.8rem); }
  .swot-maproom__lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swot-maproom .swot-maproom__lens { min-height: 4.4rem; padding: .65rem .8rem; }
  .swot-maproom__lens small { display: none; }
  .swot-maproom__lens-arrow { display: none; }
  .swot-maproom__body { padding: .65rem; }
  .swot-maproom__map-stage, .swot-maproom__svg { min-height: 300px; }
  .swot-maproom__compass { top: .55rem; right: .55rem; }
  .swot-maproom__county-label { display: none; }
  .swot-maproom__county-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swot-maproom .swot-maproom__county-picks button { padding: .5rem .25rem; }
  .swot-maproom__reading { grid-template-columns: 1fr; }
  .swot-maproom__regional, .swot-maproom__local { padding: 1.25rem; }
  .swot-maproom__finding-index { position: static; display: block; margin: .1rem 0 .4rem; font-size: 1.3rem; }
  .swot-maproom .swot-maproom__regional h3 { margin-top: .4rem; max-width: none; }
  .swot-maproom__findings-head { display: block; padding: 1.4rem .8rem .7rem; }
  .swot-maproom .swot-maproom__findings-head p { max-width: none; margin-top: .3rem; text-align: left; }
  .swot-maproom__findings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: 0 .8rem 1rem; }
  .swot-maproom .swot-maproom__findings button { min-height: 5.4rem; padding: .65rem .7rem; }
  .swot-maproom__foot { grid-template-columns: 1fr; gap: .7rem; padding: 1rem .8rem 1.2rem; }
}
@media (max-width: 360px) {
  .swot-maproom__county-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swot-maproom__findings { grid-template-columns: 1fr; }
  .swot-maproom .swot-maproom__findings button { min-height: 3.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .swot-maproom *, .swot-maproom *::before, .swot-maproom *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .swot-maproom { break-inside: avoid; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .swot-maproom__header, .swot-maproom__map-stage, .swot-maproom__regional, .swot-maproom__local { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .swot-maproom__county-picks, .swot-maproom__findings, .swot-maproom__lenses { display: none; }
  .swot-maproom__body { grid-template-columns: 1fr 1fr; }
}
