/* State renewal guide: an editorial extension of the MyPDTracker public site. */
:root {
  --renewal-paper: #f7f4ec;
  --renewal-card: #fffdf8;
  --renewal-ink: #102f40;
  --renewal-teal: #147d78;
  --renewal-soft-teal: #e8f1ed;
  --renewal-muted: #58717a;
  --renewal-line: #d9e0d7;
  --renewal-amber: #f5b63c;
  --renewal-coral: #e77d5d;
}

body { background: var(--renewal-paper); }
/* Deep links should settle immediately, including before web fonts finish loading. */
html { scroll-behavior: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.renewal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 90px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 92% 12%, rgba(20,125,120,.17), transparent 36%),
    var(--deep);
  color: var(--renewal-card);
}
.renewal-hero::after {
  position: absolute;
  content: "";
  width: min(52vw, 660px);
  aspect-ratio: 1;
  right: -14vw;
  bottom: -40vw;
  border: 1px solid rgba(245,182,60,.3);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(20,125,120,.12), 0 0 0 86px rgba(134,185,78,.07);
  pointer-events: none;
}
.renewal-hero .wrap { position: relative; z-index: 1; }
.renewal-hero .eyebrow { color: var(--renewal-amber); }
.renewal-hero h1 {
  max-width: 900px;
  margin: 0 0 22px;
  font: 700 clamp(2.65rem, 6.4vw, 5.6rem)/.98 "Fraunces", Georgia, serif;
  letter-spacing: -.055em;
}
.renewal-hero h1 em { color: var(--renewal-amber); font-style: normal; }
.renewal-intro {
  max-width: 720px;
  margin: 0;
  color: #c8ddd6;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}
.renewal-wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.guide-content { padding: 48px 0 90px; }
.scope-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin: 0 0 34px;
  padding: 22px 24px;
  border: 1px solid #d8e2d8;
  border-left: 5px solid var(--renewal-amber);
  background: #fff8e7;
  color: #3d4d43;
}
.scope-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #c99020;
  border-radius: 50%;
  color: #805d15;
  font: 700 .9rem/1 "DM Sans", sans-serif;
}
.scope-note p { margin: 0; }
.scope-note strong { color: var(--renewal-ink); }
.guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}
.guide-heading h2, .method-note h2 {
  margin: 0;
  color: var(--renewal-ink);
  font: 600 clamp(1.9rem, 3.5vw, 2.8rem)/1.05 "Fraunces", Georgia, serif;
  letter-spacing: -.04em;
}
.guide-heading p { max-width: 450px; margin: 8px 0 0; color: var(--renewal-muted); }
.state-tools {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) minmax(220px, 1fr) auto;
  gap: 13px;
  align-items: end;
  margin: 27px 0 16px;
  padding: 18px;
  border: 1px solid var(--renewal-line);
  background: #edf2eb;
}
.state-tools[hidden] { display: none !important; }
.field-label {
  display: block;
  margin: 0 0 7px;
  color: var(--renewal-ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.state-tools input, .state-tools select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #bdccc5;
  border-radius: 3px;
  background: var(--renewal-card);
  color: var(--renewal-ink);
  font: inherit;
}
.state-tools input::placeholder { color: #58717a; opacity: 1; }
.state-tools button {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--renewal-teal);
  border-radius: 3px;
  background: transparent;
  color: #0e625e;
  font: 700 .9rem "DM Sans", sans-serif;
  cursor: pointer;
}
.state-tools button:hover { background: var(--renewal-teal); color: #fffdf8; }
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 33px;
  margin: 0 0 13px;
  color: var(--renewal-muted);
  font-size: .9rem;
}
#result-count { color: var(--renewal-ink); font-weight: 700; }
.state-results { display: grid; gap: 13px; }
.renewal-state {
  scroll-margin-top: 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--renewal-line);
  background: var(--renewal-card);
  box-shadow: 0 8px 24px rgba(16,47,64,.045);
}
.renewal-state[hidden], #no-results[hidden] { display: none !important; }
.renewal-state:target {
  border-color: var(--renewal-teal);
  box-shadow: 0 0 0 3px rgba(20,125,120,.13);
}
.state-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 22px;
}
.state-heading > div { display: flex; align-items: center; gap: 15px; min-width: 0; }
.state-heading h3 a { color: inherit; text-decoration: none; }
.state-heading h3 a:hover { text-decoration: underline; }
.state-code {
  display: inline-grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  background: var(--renewal-soft-teal);
  color: #0e625e;
  font: 700 .83rem "DM Sans", sans-serif;
  letter-spacing: .09em;
}
.state-heading h3 {
  margin: 0 0 4px;
  color: var(--renewal-ink);
  font: 600 clamp(1.45rem, 2.6vw, 2rem)/1.12 "Fraunces", Georgia, serif;
  letter-spacing: -.025em;
}
.state-license { margin: 0 0 16px; color: var(--renewal-muted); font-size: .94rem; }
.state-facts {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  margin: 0 0 22px;
  border-block: 1px solid var(--renewal-line);
}
.state-facts > div { padding: 16px 18px 17px 0; }
.state-facts > div + div { padding-left: 20px; border-left: 1px solid var(--renewal-line); }
.state-fact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--renewal-teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.state-facts p { margin: 0; color: #304e58; }
.state-facts dd { margin: 0; color: #304e58; }
.state-notes { margin: 0 0 19px; padding-left: 21px; color: #38525c; }
.state-notes li { margin: 6px 0; }
.state-sources { margin: 19px 0 0; padding-top: 16px; border-top: 1px solid var(--renewal-line); }
.state-sources h4 { margin: 0 0 8px; color: var(--renewal-ink); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.state-sources > strong { display: block; margin-bottom: 8px; font-size: .82rem; }
.state-sources ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.state-sources a { color: var(--renewal-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.state-sources a:hover { color: var(--renewal-ink); }
.state-reviewed {
  display: block;
  margin-top: 17px;
  color: var(--renewal-muted);
  font-size: .82rem;
}
.review-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #17645e;
  font-weight: 700;
  font-size: .8rem;
}
.review-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c9072;
  content: "";
}
.review-status[data-status="confirm"], .review-status.confirm {
  color: #805d15;
}
.review-status[data-status="confirm"]::before, .review-status.confirm::before { background: var(--renewal-amber); }
.state-share { color: var(--renewal-teal); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.state-print {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--renewal-teal);
  border-radius: 3px;
  background: transparent;
  color: var(--renewal-teal);
  font: 700 .9rem "DM Sans", sans-serif;
  cursor: pointer;
}
.state-print[hidden] { display: none !important; }
.state-print:hover { background: var(--renewal-teal); color: var(--renewal-card); }
.state-print:focus-visible { outline: 3px solid var(--renewal-ink); outline-offset: 3px; }
#no-results {
  padding: 36px 24px;
  border: 1px dashed #aebeb5;
  background: #edf2eb;
  text-align: center;
}
#no-results h3 { margin: 0 0 7px; color: var(--renewal-ink); font: 600 1.55rem "Fraunces", Georgia, serif; }
#no-results p { margin: 0 0 16px; color: var(--renewal-muted); }
#no-results button {
  padding: 10px 15px;
  border: 0;
  border-radius: 3px;
  background: var(--renewal-teal);
  color: var(--renewal-card);
  font: 700 .9rem "DM Sans", sans-serif;
  cursor: pointer;
}
.method-note {
  margin-top: 44px;
  padding: clamp(24px, 4vw, 36px);
  background: #e8f0e9;
  border-top: 3px solid var(--renewal-teal);
}
.method-note h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.method-note p { max-width: 850px; margin: 13px 0 0; color: #38525c; }
.method-note strong { color: var(--renewal-ink); }
.guide-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 28px clamp(22px, 4vw, 38px);
  background: var(--deep);
  color: var(--renewal-card);
}
.guide-cta h2 { margin: 0 0 6px; font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.1 "Fraunces", Georgia, serif; }
.guide-cta p { margin: 0; color: #c8ddd6; }
.guide-cta .button { flex: 0 0 auto; background: var(--renewal-amber); color: var(--deep); }

@media (max-width: 760px) {
  .renewal-wrap { width: min(100% - 28px, 1080px); }
  .renewal-hero::after { width: 82vw; right: -34vw; bottom: -62vw; }
  .guide-content { padding: 33px 0 62px; }
  .guide-heading { display: block; }
  .state-tools { grid-template-columns: 1fr; gap: 12px; }
  .state-tools button { width: 100%; }
  .state-facts { grid-template-columns: 1fr; }
  .state-facts > div { padding: 13px 0; }
  .state-facts > div + div { padding-left: 0; border-top: 1px solid var(--renewal-line); border-left: 0; }
  .guide-cta { align-items: flex-start; flex-direction: column; }
  .guide-cta .button { width: 100%; }
}
@media (max-width: 420px) {
  .scope-note { padding: 17px; grid-template-columns: 25px minmax(0, 1fr); gap: 11px; }
  .scope-mark { width: 25px; height: 25px; }
  .renewal-state { padding: 20px 17px; }
  .state-heading { gap: 11px; }
  .state-code { flex-basis: 44px; width: 44px; height: 44px; }
  .result-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 16mm; }
  body { background: white; color: black; }
  .skip, .site-header, .renewal-hero, .scope-note, .guide-heading,
  .state-tools, .result-meta, #no-results, .guide-cta, .footer,
  .state-print, .method-note > :not(.licensing-disclaimer) { display: none !important; }
  .renewal-wrap { width: 100%; margin: 0; }
  .guide-content { padding: 0; }
  .state-results { display: block; }
  body[data-print-state] .renewal-state:not(.print-selected) { display: none !important; }
  body[data-print-state] .renewal-state.print-selected { display: block !important; }
  .renewal-state, .renewal-state:target {
    padding: 0;
    margin: 0 0 18pt;
    border: 0;
    background: white;
    box-shadow: none;
  }
  .state-heading { margin-bottom: 12pt; }
  .state-heading h3 { font-size: 20pt; }
  .state-heading a { text-decoration: none; }
  .state-facts { grid-template-columns: 1fr; }
  .state-facts > div, .state-facts > div + div { padding: 8pt 0; border: 0; }
  .state-sources ul { display: block; }
  .state-sources li { margin-bottom: 6pt; }
  .state-sources a::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  .state-sources .sr-only { display: none; }
  .state-reviewed, .review-status { font-size: 10pt; }
  .method-note { margin: 12pt 0 0; padding: 10pt 0 0; border-top: 1px solid black; background: white; }
  .method-note p { margin: 0; font-size: 10pt; }
  .state-heading, .state-facts > div, .state-sources li, .state-reviewed { break-inside: avoid; }
}
