/* Shared styles for /directory/*, /property-check/ and /verified-properties/
   Matches /css/brand-colors.css & /css/platform.css light palette under strict CSP (style-src 'self'). */

[hidden] {
  display: none !important;
}

.breadcrumb-bar {
  padding: 24px 0 0;
  font-size: 12.5px;
  color: var(--brand-text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb-bar a {
  text-decoration: none;
  color: var(--brand-text-2);
}
.breadcrumb-bar a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.tool-hero {
  padding: 26px 0 38px;
  border-bottom: 1px solid var(--brand-border);
  max-width: 920px;
}
.tool-hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 4.1rem);
  line-height: 1.06;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}
.tool-hero h1 em {
  font-style: italic;
  font-weight: 350;
  color: var(--brand-text-2);
}
.tool-hero .lead {
  font-size: 1.06rem;
  color: var(--brand-text-2);
  max-width: 72ch;
  margin-bottom: 0;
}

.section-compact {
  padding: 48px 0;
  border-top: 1px solid var(--brand-border);
}
.section-compact h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  margin-bottom: 16px;
}

.dir-neutrality-banner {
  margin: 26px 0;
  padding: 18px 22px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-purple);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--brand-text-2);
}
.dir-neutrality-banner strong {
  color: var(--brand-text);
}
.dir-neutrality-banner a {
  color: var(--brand-purple);
  font-weight: 600;
}

.tool-box {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 16px 36px -28px rgba(0, 0, 0, 0.16);
  min-width: 0;
}
.plain-form {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.tool-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0;
}
.tool-fieldset legend {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 14px;
  padding: 0;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.tool-form-grid .full-span {
  grid-column: 1 / -1;
}
.tool-form-grid label {
  min-width: 0;
}
.tool-form-grid input,
.tool-form-grid select,
.tool-form-grid textarea {
  margin: 6px 0 4px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.text-link {
  color: var(--brand-purple);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status-line {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-purple);
}

/* Directory Filter & Cards */
.dir-filter-bar {
  margin: 24px 0 30px;
}
.dir-filter-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}
.dir-filter-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0;
}
.dir-count-badge {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(168, 224, 106, 0.24);
  border: 1px solid rgba(168, 224, 106, 0.65);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-text);
}
.dir-empty-note {
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  font-weight: 500;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}
.dir-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
  transition: transform 0.18s, box-shadow 0.18s;
}
.dir-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.28);
}
.dir-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.dir-card-top .eyebrow {
  margin-bottom: 0;
  font-size: 10px;
}
.dir-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}
.dir-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.dir-card h3 {
  font-size: 1.32rem;
  line-height: 1.18;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}
.dir-card h3 a {
  text-decoration: none;
}
.dir-card h3 a:hover {
  color: var(--brand-purple);
}
.dir-loc {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-text-2);
  margin-bottom: 10px;
}
.dir-summary {
  font-size: 13.5px;
  color: var(--brand-text-2);
  margin-bottom: 14px;
  flex: 1;
}
.dir-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 0;
  border-block: 1px solid var(--brand-border);
  font-size: 12px;
}
.dir-meta dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--brand-text-2);
}
.dir-meta dd {
  margin: 2px 0 0;
  color: var(--brand-text);
  overflow-wrap: break-word;
}
.dir-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dir-claim-mini {
  font-size: 12px;
  color: var(--brand-text-2);
}

.dir-slice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.dir-slice-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  text-decoration: none;
  min-width: 0;
  transition: transform 0.18s, border-color 0.18s;
}
.dir-slice-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-purple);
}
.dir-slice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.dir-slice-card p {
  font-size: 13.5px;
  color: var(--brand-text-2);
  margin-bottom: 14px;
}
.card-end {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-purple);
}

/* Comparison Tables */
.table-hint {
  font-size: 12px;
  color: var(--brand-text-2);
  margin: 10px 0 8px;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  background: var(--brand-surface);
}
.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}
.comparison-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--brand-text-2);
  background: var(--brand-surface-2);
  border-bottom: 1px solid var(--brand-border);
}
.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-border);
  vertical-align: top;
}
.comparison-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-text-2);
  background: var(--brand-surface-2);
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.comparison-table a {
  color: var(--brand-purple);
  font-weight: 600;
}

/* Profile & Claim Layouts */
.profile-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}
.profile-toc {
  position: sticky;
  top: 92px;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-toc a {
  font-size: 13.5px;
  text-decoration: none;
}
.profile-toc a:hover {
  color: var(--brand-purple);
}
.profile-main {
  min-width: 0;
}
.profile-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0;
}
.profile-facts-grid dt {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-purple);
}
.profile-facts-grid dd {
  margin: 4px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.claim-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 28px 0;
}
.dossier-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.dossier-card h2,
.dossier-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.dossier-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dossier-head .eyebrow {
  margin-bottom: 0;
}
.dossier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  font-size: 11.5px;
  font-weight: 600;
}
.dossier-dl {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}
.dossier-dl dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-purple);
}
.dossier-dl dd {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--brand-text-2);
}

/* Property Check Console & Interactive SVG Map */
.check-console-section {
  padding: 32px 0 20px;
}
.check-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.check-map-panel {
  background: #10151c;
  color: #f3f5f8;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  min-width: 0;
}
.check-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.region-tab {
  background: rgba(255, 255, 255, 0.08);
  color: #e6ebf2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 12px Inter, sans-serif;
  cursor: pointer;
}
.region-tab.active {
  background: var(--brand-green);
  color: #0d0d0d;
  border-color: var(--brand-green);
}

.radar-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: crosshair;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.map-ocean-bg {
  fill: #0c1826;
}
.map-mainland-line {
  fill: none;
  stroke: #3c4f65;
  stroke-width: 3;
}
.map-spu-halo {
  fill: none;
  stroke: rgba(245, 185, 66, 0.42);
  stroke-width: 7;
  stroke-linejoin: round;
}
.map-land-fill {
  fill: #1b2d26;
  stroke: #79b473;
  stroke-width: 1.6;
}
.map-lagoon {
  fill: #123552;
  stroke: #f5b942;
  stroke-width: 1.3;
}
.map-border-150km {
  fill: none;
  stroke: rgba(168, 112, 224, 0.28);
  stroke-width: 26;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-border-core {
  fill: none;
  stroke: #c08ff0;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.map-coast-spu {
  fill: none;
  stroke: #f5b942;
  stroke-width: 3;
  stroke-linecap: round;
}
.map-hazard-dot {
  fill: #ef4444;
  stroke: #ffffff;
  stroke-width: 1.2;
}
.map-airport-marker circle {
  fill: #93c5fd;
}
.map-airport-marker text {
  fill: #93c5fd;
  font: 600 10px Inter, sans-serif;
}
.map-zone-node {
  cursor: pointer;
}
.map-zone-node circle {
  fill: #e2e8f0;
  stroke: #0c1826;
  stroke-width: 1.5;
}
.map-zone-node text {
  fill: #e2e8f0;
  font: 600 10.5px Inter, sans-serif;
}
.map-zone-node.active circle {
  fill: #a8e06a;
  r: 7;
}
.map-zone-node.active text {
  fill: #a8e06a;
  font-weight: 700;
}
.map-crosshair {
  pointer-events: none;
}
.crosshair-ring {
  fill: rgba(168, 224, 106, 0.16);
  stroke: #a8e06a;
  stroke-width: 2;
}
.crosshair-dot {
  fill: #a8e06a;
}
.map-caption {
  fill: #9fb0c4;
  font: 600 9.2px Inter, sans-serif;
  letter-spacing: 0.06em;
}
.map-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #cbd5e1;
}
.map-readout strong {
  color: #ffffff;
}

.check-form-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 14px;
}

/* Scorecard & 12 Category Cards */
.score-summary-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 22px 24px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  margin-bottom: 24px;
}
.score-summary-bar h2 {
  margin-bottom: 6px;
}
.score-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.pill-green {
  background: rgba(22, 163, 74, 0.12);
  color: #14532d;
  border-color: rgba(22, 163, 74, 0.35);
}
.pill-amber {
  background: rgba(217, 119, 6, 0.13);
  color: #78350f;
  border-color: rgba(217, 119, 6, 0.35);
}
.pill-red {
  background: rgba(220, 38, 38, 0.12);
  color: #7f1d1d;
  border-color: rgba(220, 38, 38, 0.35);
}
.pill-legal {
  background: rgba(139, 63, 202, 0.12);
  color: #4c1d95;
  border-color: rgba(139, 63, 202, 0.35);
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.radar-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-top-width: 4px;
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.radar-card.status-green {
  border-top-color: #16a34a;
}
.radar-card.status-amber {
  border-top-color: #d97706;
}
.radar-card.status-red {
  border-top-color: #dc2626;
}
.radar-card.status-open_legal {
  border-top-color: var(--brand-purple);
}

.radar-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.radar-num {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-text-2);
}
.radar-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-green {
  background: rgba(22, 163, 74, 0.14);
  color: #14532d;
}
.badge-amber {
  background: rgba(217, 119, 6, 0.16);
  color: #78350f;
}
.badge-red {
  background: rgba(220, 38, 38, 0.15);
  color: #7f1d1d;
}
.badge-open_legal {
  background: rgba(139, 63, 202, 0.15);
  color: #4c1d95;
}

.radar-card h3 {
  font-size: 1.22rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.radar-headline {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
.radar-detail {
  font-size: 13px;
  color: var(--brand-text-2);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  overflow-wrap: break-word;
}
.radar-question {
  padding: 10px 12px;
  background: var(--brand-surface-2);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.radar-source {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--brand-text-2);
  border-top: 1px solid var(--brand-border);
  padding-top: 10px;
}
.radar-source a {
  color: var(--brand-purple);
  overflow-wrap: anywhere;
}

/* Dossier Export & CTA Band */
.dossier-export-box {
  background: linear-gradient(135deg, rgba(168, 224, 106, 0.14), rgba(139, 63, 202, 0.08));
  border: 1px solid rgba(168, 224, 106, 0.48);
  border-radius: 14px;
  padding: 30px;
}
.dossier-meta-grid {
  margin-top: 18px;
}
.dossier-result-box {
  margin-top: 22px;
  padding: 22px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
}
.dossier-pre {
  margin: 12px 0;
  padding: 16px;
  background: #11151c;
  color: #f1f5f9;
  border-radius: 8px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-width: 100%;
}

.sources-box {
  margin: 28px 0;
  padding: 24px;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}
.sources-box h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.sources-box ul {
  margin: 12px 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.sources-box a {
  color: var(--brand-purple);
  overflow-wrap: anywhere;
}

.prechecked-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}
.prechecked-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 14px;
}
.prechecked-steps li {
  padding: 16px 18px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
}
.prechecked-steps li strong {
  display: block;
  margin-bottom: 4px;
}
.prechecked-steps li span {
  font-size: 13.5px;
  color: var(--brand-text-2);
}

.verified-prop-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
}
.verified-prop-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.tool-cta-band {
  margin: 36px 0 12px;
  padding: 34px;
  background: #111111;
  color: #f5f5f5;
  border-radius: 14px;
}
.tool-cta-band .eyebrow {
  color: var(--brand-green);
}
.tool-cta-band p {
  color: #d4d4d4;
  max-width: 64ch;
}
.tool-cta-band .button.secondary {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1020px) {
  .check-console-grid,
  .radar-grid,
  .dir-grid,
  .dir-slice-grid,
  .profile-layout,
  .claim-layout,
  .prechecked-showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .tool-form-grid,
  .profile-facts-grid,
  .verified-prop-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-box,
  .dossier-export-box,
  .tool-cta-band,
  .dir-card,
  .radar-card {
    padding: 18px;
  }
  .action-row .button {
    width: 100%;
  }
}

@media print {
  .nav,
  .wa-fab,
  .check-console-section,
  .tool-cta-band,
  .footer,
  #dossier-form {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .radar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .radar-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
