/* Guide pages (counties, zoning, how-to guides, CoStar comparison).
   One stylesheet in the landing page's look: paper, ink, the red mark, Archivo headings over
   Public Sans. The tokens are copied from site/landing-options/map-first.html; change both together. */
:root { --paper:#EEF1EC; --ink:#13202B; --red:#B3261E; --red-dk:#951E17; --pencil:#56626B; --rule:#C9D1C8; --tint:#E2E8E0; --white:#FBFCFA;
  --head:"Archivo", system-ui, sans-serif; --body:"Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
a:focus-visible, summary:focus-visible, .tablewrap:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wide .wrap { max-width: 900px; }

/* header: the landing page's mark, a quiet Sign in and the red Open the map button */
header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; max-width: 1240px; }
.mark { font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mark i { width: 18px; height: 18px; border: 2px solid var(--red); display: inline-block; transform: rotate(8deg); }
.mark:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.top-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.top-actions .signin-quiet { text-decoration: none; }
.top-actions .cta-top { min-height: 44px; padding: 0 18px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; border-radius: 3px; }
.top-actions .cta-top:hover { background: var(--red-dk); color: #fff; }

/* buttons */
.btn, .live .fallback { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--red); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 3px; white-space: nowrap; }
.btn:hover, .live .fallback:hover { background: var(--red-dk); color: #fff; }

/* article */
main { padding: clamp(24px, 5vw, 48px) 0 16px; }
.crumb { font-size: 13px; color: var(--pencil); margin-bottom: 14px; }
.crumb a { color: var(--pencil); }
h1 { margin: 0; font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: clamp(36px, 6vw, 60px); line-height: .98; letter-spacing: -0.005em; }
h2 { margin: 48px 0 12px; font-family: var(--head); font-stretch: 85%; font-weight: 800; font-size: clamp(25px, 3vw, 32px); line-height: 1.1; }
h3 { font-family: var(--head); font-stretch: 92%; font-weight: 750; font-size: 19px; line-height: 1.25; margin: 26px 0 6px; }
p { margin: 14px 0; }
ol, ul { margin: 14px 0; padding-left: 24px; }
li { margin: 8px 0; }
li::marker { color: var(--red); font-weight: 600; }
b, strong { font-weight: 600; }
.verified, .src, .sources, .others { font-size: 14px; color: var(--pencil); }
.verified { margin: 14px 0 0; }
.sources li { margin: 6px 0; }
.lede { font-size: 19px; line-height: 1.55; margin: 18px 0 0; }
.maplink { margin: 8px 0 4px; font-size: 15px; font-weight: 600; }

/* the short answer and fact boxes: a plain bordered sheet, like the landing page's panels */
.answer, .quick, .keyfacts { margin: 26px 0; padding: 18px 20px; background: var(--white); border: 1.5px solid var(--ink); font-size: 17px; }
.quick b { color: var(--red); }
.keyfacts h3 { margin: 0 0 8px; font-size: 13px; font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--pencil); }
.keyfacts ul { margin: 0; }

/* calls to the map */
.topcta { margin: 0 0 28px; padding: 16px 18px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.topcta p { margin: 0; flex: 1 1 300px; font-size: 16px; }
.promo, .notify { margin: 40px 0; padding: clamp(22px, 4vw, 32px); background: var(--ink); color: #EEF1EC; }
.promo h3, .notify h3 { margin: 0 0 8px; font-size: 22px; }
.promo p, .notify p, .notify ol { color: #B8C3CA; font-size: 16px; }
.promo a:not(.btn), .notify a:not(.btn) { color: #EEF1EC; }
.promo .btn, .notify .btn { margin-top: 10px; }
.notify .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }

/* the live map */
.livemap { margin: 30px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.livemap .lead { margin: 0; font-weight: 600; }
.live { position: relative; height: clamp(420px, 70vw, 560px); overflow: hidden; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--rule); }
.live .still { display: block; width: 100%; height: 100%; object-fit: cover; }
.live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.live.ready iframe { opacity: 1; pointer-events: auto; }
.live .fallback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.live .fallback[hidden] { display: none; }
.livemap .note { margin: 0; font-size: 14px; color: var(--pencil); }
.livemap .note .on { display: none; }
.livemap:has(.live.ready) .note .on { display: inline; }
.livemap:has(.live.ready) .note .off { display: none; }
/* the Secretary of State disclaimer: its own boxed line, never folded into body text */
.disc { margin: 0; padding: 8px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink); background: var(--tint); border-left: 3px solid var(--ink); }

/* tables: scroll inside their own box on a phone, never the page */
.tablewrap { margin: 18px 0; background: var(--white); border: 1.5px solid var(--ink); overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; line-height: 1.5; }
caption { text-align: left; padding: 12px 14px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--pencil); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--rule); }
thead th { border-top: 0; border-bottom: 1.5px solid var(--ink); font-size: 13px; color: var(--pencil); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.cat { white-space: nowrap; }
td.us { font-weight: 600; }
tr.group th { background: var(--tint); color: var(--pencil); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.scrollhint { display: none; font-size: 13px; color: var(--pencil); margin: -8px 0 0; }
@media (max-width: 660px) { .scrollhint { display: block; } }

/* the CoStar comparison stacks on a phone: one block per row, each tool labeled */
@media (max-width: 640px) {
  .stack .tablewrap { overflow: visible; border: 0; background: none; }
  .stack .tablewrap table { min-width: 0; }
  .stack .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stack .tablewrap tbody, .stack .tablewrap tr, .stack .tablewrap tbody th, .stack .tablewrap td { display: block; width: 100%; }
  .stack .tablewrap tr { background: var(--white); border: 1.5px solid var(--ink); margin: 0 0 14px; }
  .stack .tablewrap tbody th { background: var(--tint); white-space: normal; border-top: 0; }
  .stack .tablewrap td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  .stack .tablewrap td::before { color: var(--pencil); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding-top: 2px; }
  .stack .tablewrap td:nth-of-type(1)::before { content: "NC CRE Map"; color: var(--red); }
  .stack .tablewrap td:nth-of-type(2)::before { content: "CoStar"; }
  .stack .tablewrap td:nth-of-type(3)::before { content: "Reonomy"; }
  .stack .tablewrap td:nth-of-type(4)::before { content: "Crexi"; }
  .stack .tablewrap td:nth-of-type(5)::before { content: "LandGlide"; }
}

/* the county list on the counties hub */
.counties { list-style: none; margin: 20px 0; padding: 0; border-top: 1.5px solid var(--ink); }
.counties li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.counties a { font-family: var(--head); font-stretch: 92%; font-weight: 750; font-size: 21px; }
.counties p { margin: 4px 0 0; font-size: 16px; color: var(--pencil); }

/* questions: the landing page's ruled list, as plain headings or as open/close rows */
h2.faq { margin-bottom: 0; }
div.faq { margin-top: 14px; border-top: 1.5px solid var(--ink); }
div.faq > h3 { margin: 0; padding-top: 20px; border-top: 1px solid var(--rule); }
div.faq > h3:first-child { border-top: 0; }
div.faq > p { margin: 6px 0 20px; color: var(--pencil); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--head); font-size: 26px; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 0 18px; color: var(--pencil); }
.faq .faq-body b { color: var(--ink); }

/* related guides */
.related { margin: 48px 0 0; padding-top: 4px; border-top: 1.5px solid var(--ink); }
.related h2 { margin: 18px 0 8px; font-size: 22px; }
.related a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.related a::after { content: " \2192"; color: var(--red); }

/* footer: the same on every page, landing included */
footer.site-foot { margin-top: 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--pencil); }
footer.site-foot .wrap { max-width: 1240px; display: flex; flex-direction: column; gap: 10px; padding-top: 24px; padding-bottom: 32px; }
footer.site-foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer.site-foot nav { padding-left: calc(7.5em + 18px); }
footer.site-foot nav span { color: var(--pencil); width: 7.5em; margin-left: calc(-7.5em - 18px); }
@media (max-width: 480px) { footer.site-foot nav { padding-left: 0; } footer.site-foot nav span { width: 100%; margin-left: 0; } }
footer.site-foot a { color: var(--ink); }
footer.site-foot .foot-legal { margin: 8px 0 0; font-size: 13px; }

@media (max-width: 480px) { header.site .wrap { flex-wrap: nowrap; } .mark { font-size: 17px; gap: 8px; } .mark i { width: 15px; height: 15px; } .top-actions { gap: 0; font-size: 14px; } .top-actions a { padding: 0 8px; } .top-actions .cta-top { padding: 0 12px; } }
