
/*
 * ChaseDesk identity | national project encyclopaedia
 * Ink + copper + sea-glass + warm porcelain, not Stripe violet.
 * Scoped to project directories and dossiers. Editorial HTML stays untouched.
 */
body[data-chasedesk-identity] {
  --cd-ink: #22363c;
  --cd-muted: #62767a;
  --cd-copper: #ae4932;
  --cd-copper-dark: #893822;
  --cd-teal: #216c63;
  --cd-pale-teal: #e4f2ec;
  --cd-rule: #dde6e1;
  --cd-paper: #ffffff;
  --cd-warm: #f7f9f5;
  --cd-gradient: linear-gradient(124deg, #fffaf4 3%, #f4f7ef 35%, #e5f2ec 74%, #f8eee1 100%);
  --ink: var(--cd-ink);
  --muted: var(--cd-muted);
  --brand: var(--cd-ink);
  --link: var(--cd-teal);
  --accent: var(--cd-teal);
  --rule: var(--cd-rule);
  --line: var(--cd-rule);
  --soft: #edf2ed;
  --sage: #e4f1e9;
  --bg: var(--cd-warm);
  --paper: #fff;
  --light: #e4f1e9;
  color: var(--cd-ink);
  background: radial-gradient(ellipse 64% 490px at 89% 0%, rgba(192,223,202,.25), transparent 73%), var(--cd-warm);
  -webkit-font-smoothing: antialiased;
}
body[data-chasedesk-identity] :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #bd6c44;
  outline-offset: 3px;
}
body[data-chasedesk-identity] a { text-underline-offset: 3px; }
body[data-chasedesk-identity] main a:not([class]):not(:hover) { color: var(--cd-teal); }
body[data-chasedesk-identity] :is(h1,h2,h3) { letter-spacing: -.035em; }
body[data-chasedesk-identity] :is(.eyebrow,.section-kicker,.workspace-kicker) {
  color: var(--cd-copper);
  letter-spacing: .1em;
}
body[data-chasedesk-identity] :is(input[type="search"],input[type="text"],select) {
  accent-color: var(--cd-teal);
}
body[data-chasedesk-identity] :is(input[type="search"],input[type="text"],select):focus {
  border-color: #86b2a4;
}

/* Diagonal, luminous hero motif is shared by national, state and city directories.
   The warm and sea-glass palette is brand-specific rather than a purple clone. */
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head,
body[data-chasedesk-identity="city"] .header {
  position: relative;
  isolation: isolate;
  background: var(--cd-gradient);
  color: var(--cd-ink);
  border-bottom: 1px solid var(--cd-rule);
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head::before,
body[data-chasedesk-identity="city"] .header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(144deg, transparent 46%, rgba(239,177,132,.21) 46.2%, rgba(191,225,203,.28) 70%, transparent 70.2%);
  pointer-events: none;
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .nav,
body[data-chasedesk-identity="city"] .header .top {
  border-bottom: 1px solid rgba(40,80,75,.10);
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .nav img,
body[data-chasedesk-identity="city"] .header .brand img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(14%) saturate(815%) hue-rotate(140deg);
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .nav a:not(.brand),
body[data-chasedesk-identity="city"] .header .nav {
  color: var(--cd-ink) !important;
  font-weight: 720;
  text-decoration: none;
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .hero,
body[data-chasedesk-identity="city"] .header .hero {
  position: relative;
  background: transparent;
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .hero h1,
body[data-chasedesk-identity="city"] .header .hero h1 { color: var(--cd-ink); }
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .hero p,
body[data-chasedesk-identity="city"] .header .hero p {
  color: #536970;
}
body:is([data-chasedesk-identity="index"],[data-chasedesk-identity="state"]) .head .hero .eyebrow,
body[data-chasedesk-identity="city"] .header .hero .eyebrow { color: var(--cd-copper); }
body[data-chasedesk-identity="city"] .header .hero .sub {
  color: #62757a !important;
}
body[data-chasedesk-identity="city"] .header .hero .lead {
  color: #536970 !important;
}
body[data-chasedesk-identity="city"] .cd-counts span { color: #536970; }

/* Navigation cards retain their links and state flags. */
body[data-chasedesk-identity="index"] .state-grid { gap: 11px; }
body[data-chasedesk-identity="index"] .state-card,
body[data-chasedesk-identity="state"] .city {
  border-color: var(--cd-rule);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(31,60,52,.035);
  color: var(--cd-ink);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body[data-chasedesk-identity="index"] .state-card:hover,
body[data-chasedesk-identity="state"] .city:hover {
  border-color: #b7cdbd;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(33,68,57,.10);
}
body[data-chasedesk-identity="index"] .state-card strong {
  color: var(--cd-ink);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
body[data-chasedesk-identity="index"] .state-card .arr,
body[data-chasedesk-identity="state"] .city .arr {
  color: var(--cd-teal);
  background: var(--cd-pale-teal);
}
body[data-chasedesk-identity="state"] .city strong { color: var(--cd-ink); }
body[data-chasedesk-identity="state"] .city small { color: var(--cd-teal); }
body[data-chasedesk-identity="state"] .city-search input {
  color: var(--cd-ink);
  border-color: #c6d7d0;
  border-radius: 11px;
}
body[data-chasedesk-identity="state"] .city-search input:focus-visible {
  outline-color: #bf8057;
}

/* Every city listing, including the 14 legacy Arizona directories. */
body[data-chasedesk-identity="city"] .directory-section .section-head {
  border-bottom-color: #d8e5de;
}
body[data-chasedesk-identity="city"] .directory-section .section-head h2 {
  color: var(--cd-ink);
}
body[data-chasedesk-identity="city"] .project {
  border: 1px solid var(--cd-rule);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 15px rgba(37,61,57,.035) !important;
  padding: 21px 24px;
  margin-bottom: 11px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body[data-chasedesk-identity="city"] .project:hover {
  transform: translateY(-2px);
  border-color: #b3cec2;
  box-shadow: 0 12px 24px rgba(37,61,57,.08) !important;
}
body[data-chasedesk-identity="city"] .project :is(h3,h3 a) { color: var(--cd-ink); }
body[data-chasedesk-identity="city"] .project h3 a {
  text-decoration-color: #8db9a7;
}
body[data-chasedesk-identity="city"] .project h3 a:hover { color: var(--cd-teal); }
body[data-chasedesk-identity="city"] .project .kind { color: var(--cd-copper); }
body[data-chasedesk-identity="city"] .project .project-aside a,
body[data-chasedesk-identity="city"] .cd-history summary span { color: var(--cd-teal); }
body[data-chasedesk-identity="city"] :is(.cd-history,.cd-evidence,.cd-spotlight,.cd-finder,.cd-tabs) {
  border-color: var(--cd-rule);
  background-color: #fff;
}
body[data-chasedesk-identity="city"] .cd-history {
  border-radius: 14px;
}
body[data-chasedesk-identity="city"] .cd-history summary { color: var(--cd-ink); }

/* Article templates: adaptive, legacy Arizona and bespoke dashboards.
   Preserve all timelines, source links, status semantics, and data density. */
body[data-chasedesk-identity="article"] {
  background:
    linear-gradient(148deg, rgba(249,210,175,.21) 0, rgba(208,231,219,.21) 360px, transparent 620px),
    var(--cd-warm);
}
body[data-chasedesk-identity="article"] :is(.site-nav,header:has(.top .back)) {
  background: rgba(255,255,255,.96);
  color: var(--cd-ink);
  border-bottom: 1px solid var(--cd-rule);
}
body[data-chasedesk-identity="article"] .site-nav img,
body[data-chasedesk-identity="article"] header:has(.top .back) .top img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(14%) saturate(815%) hue-rotate(140deg);
}
body[data-chasedesk-identity="article"] .site-nav a,
body[data-chasedesk-identity="article"] header .top a.back {
  color: var(--cd-ink);
}
body[data-chasedesk-identity="article"] :is(.breadcrumbs,.breadcrumb) {
  color: var(--cd-muted);
}
body[data-chasedesk-identity="article"] :is(.breadcrumbs a,.breadcrumb a) {
  color: var(--cd-teal);
}
body[data-chasedesk-identity="article"] h1 {
  color: var(--cd-ink);
  letter-spacing: -.043em;
}
body[data-chasedesk-identity="article"] :is(.intro,.hero) .lead {
  color: #566c70;
}
body[data-chasedesk-identity="article"] :is(.intro,.hero) .eyebrow {
  color: var(--cd-copper);
}
body[data-chasedesk-identity="article"] :is(.panel,.snapshot,.cd-record-grid,.summary,.cd-overview,.timeline,.confidence-panel,.notes,.trade-item) {
  border-color: var(--cd-rule);
  border-radius: 13px;
  background-color: #fff;
  box-shadow: 0 4px 19px rgba(33,66,61,.045);
}
body[data-chasedesk-identity="article"] :is(.panel,.snapshot,.cd-record-grid,.summary,.cd-overview,.timeline,.confidence-panel) {
  transition: border-color .22s ease, box-shadow .22s ease;
}
body[data-chasedesk-identity="article"] :is(.panel,.snapshot,.cd-record-grid,.summary,.cd-overview,.timeline,.confidence-panel):hover {
  border-color: #c1d7ca;
  box-shadow: 0 10px 30px rgba(35,64,57,.07);
}
body[data-chasedesk-identity="article"] :is(.panel-title h3,.section-header h2,.snapshot-value,.figure strong,.cd-record-story h3) {
  color: var(--cd-ink);
}
body[data-chasedesk-identity="article"] :is(.snapshot-item:first-child,.uncertainty,.warning) {
  border-color: #c37d54;
}
body[data-chasedesk-identity="article"] :is(.status,.cd-status) {
  border-radius: 6px;
}
body[data-chasedesk-identity="article"] :is(.status.upcoming,.cd-status.upcoming) {
  background-color: #fff0d9;
  color: #86572e;
}
body[data-chasedesk-identity="article"] :is(.status.archived,.cd-status.archived) {
  background-color: #edf0ef;
  color: #536769;
}
body[data-chasedesk-identity="article"] .status:not(.upcoming):not(.archived),
body[data-chasedesk-identity="article"] .cd-status.underway {
  background-color: var(--cd-pale-teal);
  color: var(--cd-teal);
}
body[data-chasedesk-identity="article"] :is(.cd-record-facts,.figure,.cd-glance div,.visuals a) {
  border-color: var(--cd-rule);
  background-color: #fff;
}
body[data-chasedesk-identity="article"] :is(.page-nav a,.btn,.button.primary) {
  border-radius: 9px;
}
body[data-chasedesk-identity="article"] .btn { background-color: var(--cd-ink); color: #fff; }
body[data-chasedesk-identity="article"] .btn:hover { background-color: var(--cd-teal); }
body[data-chasedesk-identity="article"] :is(.cd-overview,.cta,.offer) {
  background-color: #f0f6f0;
}
body[data-chasedesk-identity="article"] .article-body p,
body[data-chasedesk-identity="article"] .panel-content p,
body[data-chasedesk-identity="article"] .cd-record-story p,
body[data-chasedesk-identity="article"] .timeline p {
  color: #3d545b;
}

/* Archive routes and consistent closing chrome */
body[data-chasedesk-identity="archive"] {
  background-color: var(--cd-warm);
}
body[data-chasedesk-identity] .footer,
body[data-chasedesk-identity] footer {
  border-top: 1px solid var(--cd-rule);
}
body[data-chasedesk-identity] .footer {
  background-color: #f3f7f2;
  color: var(--cd-muted);
}
body[data-chasedesk-identity] .footer a {
  color: var(--cd-teal);
}
body[data-chasedesk-identity="article"] footer:not(.footer) {
  background-color: #eef5ef;
  color: var(--cd-muted);
}
body[data-chasedesk-identity="article"] footer:not(.footer) a { color: var(--cd-teal); }

@media(max-width:700px) {
  body[data-chasedesk-identity="city"] .project { padding: 17px 16px; }
  body[data-chasedesk-identity="city"] .project .project-aside {
    min-width: 0;
    flex-wrap: wrap;
  }
  body[data-chasedesk-identity="article"] :is(.panel,.summary,.cd-overview,.timeline) {
    border-radius: 11px;
  }
}
@media(prefers-reduced-motion: reduce) {
  body[data-chasedesk-identity] :is(.state-card,.city,.project,.panel,.snapshot,.cd-record-grid,.summary,.cd-overview,.timeline,.confidence-panel) {
    transition: none !important;
  }
  body[data-chasedesk-identity] :is(.state-card,.city,.project):hover {
    transform: none !important;
  }
}
