/* Permit office directory (/permits/...) + report upsell pop-up. Builds on site.css tokens. */
.pd-header { padding-bottom: 48px; }
.pd-header p { margin-top: 8px; }
.pd-crumbs { font-size: 0.85rem; margin-bottom: 18px; color: rgba(255,255,255,0.7); }
.pd-crumbs a { color: var(--gold-light); text-decoration: none; }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-main { padding-top: 40px; padding-bottom: 64px; }
.pd-main h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 14px; }

.pd-card { background: var(--white); border: 1px solid rgba(10,22,40,0.1); border-radius: 14px; padding: 26px 28px; margin-bottom: 24px; box-shadow: 0 4px 18px rgba(10,22,40,0.05); }
.pd-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pd-card-head h2 { margin: 0; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
.pd-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); font-weight: 600; }
.pd-facts dd { color: var(--charcoal); overflow-wrap: anywhere; }
.pd-note { font-size: 0.85rem; color: var(--slate); margin-top: 16px; }
.pd-badge { font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.pd-ai { background: #fff7e6; color: #92400e; border: 1px solid #f5d9a8; }
.pd-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.pd-fast { font-weight: 600; color: #067647; margin-bottom: 10px; }
.pd-types { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.pd-types li { padding-left: 18px; position: relative; }
.pd-types li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.pd-link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-dark); text-decoration: underline; cursor: pointer; }

.pd-upsell { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; background: linear-gradient(165deg, var(--navy-dark), var(--navy)); color: var(--white); border-radius: 16px; padding: 30px 32px; margin: 32px 0; }
.pd-upsell h2 { color: var(--white); font-size: 1.5rem; margin: 6px 0 12px; }
.pd-upsell em { color: var(--gold-light); font-style: normal; }
.pd-eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.pd-checks { list-style: none; display: grid; gap: 6px; }
.pd-checks li { padding-left: 24px; position: relative; color: rgba(255,255,255,0.85); }
.pd-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.pd-upsell-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; }
.pd-price { font-family: 'Archivo', sans-serif; font-size: 2rem; font-weight: 800; }
.pd-upsell-cta small { color: rgba(255,255,255,0.7); }

.pd-related { margin-top: 12px; }
.pd-list, .pd-rows, .pd-states { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pd-list a { color: var(--navy); }
.pd-group { margin-bottom: 30px; }
.pd-rows a, .pd-states a { display: block; padding: 14px 16px; border: 1px solid rgba(10,22,40,0.1); border-radius: 10px; text-decoration: none; color: var(--navy); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.pd-rows a:hover, .pd-states a:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(10,22,40,0.08); }
.pd-rows b, .pd-states b { display: block; }
.pd-rows span, .pd-states span { display: block; font-size: 0.82rem; color: var(--slate); margin-top: 2px; }

.pd-search { position: relative; margin-top: 22px; max-width: 560px; }
.pd-search input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); font: inherit; font-size: 1rem; }
.pd-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; background: var(--white); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); padding: 6px; }
.pd-results a { display: block; padding: 9px 12px; color: var(--navy); text-decoration: none; border-radius: 6px; }
.pd-results a:hover { background: var(--ice); }
.pd-none { padding: 9px 12px; color: var(--slate); }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* pop-up */
.pd-pop { border: 0; border-radius: 16px; padding: 0; width: min(94vw, 520px); max-height: 92vh; overflow: auto; margin: auto; inset: 0; position: fixed; box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
.pd-pop::backdrop { background: rgba(5,13,26,0.6); }
.pd-pop-body { padding: 30px 30px 24px; }
.pd-pop h2 { font-size: 1.45rem; color: var(--navy); margin: 8px 0 8px; }
.pd-pop p { color: var(--slate); font-size: 0.95rem; }
.pd-pop .pd-eyebrow { color: var(--gold-dark); }
.pd-pop-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--slate); cursor: pointer; }
.pd-form { display: grid; gap: 12px; margin-top: 16px; }
.pd-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.pd-form input { padding: 11px 12px; border: 1px solid rgba(10,22,40,0.2); border-radius: 8px; font: inherit; font-weight: 400; }
.pd-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.pd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-hp { position: absolute; left: -9999px; }
.pd-err { color: #b42318; font-size: 0.9rem; }
.pd-form .btn { justify-content: center; width: 100%; }
.pd-skip { text-align: center; font-size: 0.9rem; color: var(--navy); }
.pd-fine { color: var(--slate); font-size: 0.75rem; text-align: center; }
.pd-done { text-align: center; padding: 10px 0; }
.pd-done h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.pd-done .btn { margin-top: 14px; }

@media (max-width: 640px) {
  .pd-card { padding: 20px; }
  .pd-upsell { padding: 24px; }
  .pd-row { grid-template-columns: 1fr; }
}
