.visit-plan {
  margin-top: clamp(26px, 5vw, 61px);
  padding: clamp(15px, 2.5vw, 30px);
  border: 1px solid var(--ink);
  border-top: 5px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 6px 0 var(--pink);
  scroll-margin-top: 16px;
}
.visit-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.visit-header p { color: var(--muted); margin-top: 5px; }
.visit-header h2 { font-size: clamp(2.35rem, 4.7vw, 3.8rem); }
.plate-comparison { padding: clamp(11px, 2vw, 21px); margin-bottom: 26px; background: var(--blush); border-block: 1px solid var(--ink); }
.plate-quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 11px 0 7px; border: 1px solid var(--line); background: var(--white); }
.plate-quote { display: grid; grid-template-rows: 1fr auto; align-items: start; gap: 5px; min-width: 0; padding: 10px 12px; border-bottom: 3px solid transparent; }
.plate-quote + .plate-quote { border-inline-start: 1px solid var(--line); }
.plate-quote strong { font: 800 clamp(1.65rem, 3vw, 2.45rem)/1.02 var(--display); overflow-wrap: anywhere; }
.plate-quote span { font-weight: 690; }
.plate-quote.current-quote { background: #fff1c8; border-bottom-color: var(--accent); }
#plate-assumption { color: var(--muted); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(284px, .7fr); gap: clamp(17px, 4vw, 51px); align-items: start; }
.doc-section > header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.doc-section h3, .office-section h3, .plate-comparison h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
#doc-progress { padding: 4px 9px; border: 1px solid var(--ink); background: var(--sun); font-weight: 720; }
.doc-section > p, .visit-notes, .agency-note, .filing-note, .booking-hint { color: var(--muted); }
.visit-notes { display: grid; gap: 7px; margin: 11px 0; padding-inline-start: 22px; }
.visit-notes:empty { display: none; }
.document-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.document-list > li { padding: 10px 7px; border-bottom: 1px solid var(--line); transition: background .2s; }
.document-list > li:hover { background: #fff4f1; }
.document-label { display: grid; gap: 8px; grid-template-columns: 19px minmax(0, 1fr); align-items: start; cursor: pointer; }
.document-label input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--accent); }
.document-text { display: grid; gap: 1px; min-width: 0; }
.document-text > span { color: var(--muted); }
.document-label:has(input:checked) .document-text > strong { color: var(--accent); }
.document-links { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0 27px; }
.visit-notes .document-links { margin-inline-start: 0; }
.document-links a, .office-actions a { overflow-wrap: anywhere; font-weight: 700; }
.print-check { display: none; }
.office-section { min-width: 0; border-top: 5px solid var(--ink); background: #edf7f8; padding: clamp(10px, 1.6vw, 18px); }
.office-results > p { margin: 8px 0; }
.office-list { list-style: none; display: grid; gap: 0; margin: 9px 0 7px; padding: 0; }
.office-list > li { border-top: 1px solid #a2bdc7; padding: 9px 0; }
.office-list h4 { font: 700 1.42rem/1.05 var(--display); margin: 0 0 3px; }
.appointment-status { margin-top: 4px; font-weight: 725; color: var(--accent); }
.agency-note, .filing-note, .booking-hint { margin-top: 4px; }
.filing-note { margin-top: 12px; }
.office-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 11px; margin-top: 5px; }
.office-appointment { color: var(--ink); background: var(--sun); min-height: 36px; padding: 5px 10px; }
.office-appointment:hover { background: var(--pink); box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px); }
.office-print-option { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; cursor: pointer; }
.office-print-option input { margin-top: 5px; accent-color: var(--accent); }
.office-directory-link, .fee-source { font-weight: 680; }
.fee-source { color: var(--accent); }
.fee-source:hover { text-decoration-thickness: 2px; }
.county-next .county-link-official { display: block; margin-top: 10px; }
.entry-info, .entry-nav { margin-top: clamp(32px, 6vw, 72px); border-block-start: 4px double var(--ink); padding-top: 16px; }
.entry-sections, .entry-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; }
.entry-sections { margin-top: 15px; }
.entry-sections section { padding: 8px 0 0 11px; border-inline-start: 4px solid var(--coral); }
.entry-sections p { margin-top: 6px; color: var(--muted); }
.entry-nav ul { list-style: none; padding: 0; margin-bottom: 0; }
.entry-nav li { background: var(--blush); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.entry-nav a { display: block; padding: 9px; font-weight: 700; transition: background .2s; }
.entry-nav a:hover { background: var(--sun); }
.entry-sources { padding-left: 18px; }

@media (max-width: 900px) {
  .plate-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate-quote:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .visit-grid, .entry-sections, .entry-nav ul { grid-template-columns: minmax(0, 1fr); }
  .visit-plan { padding: 12px; }
  .plate-quote { padding: 7px; }
  .visit-header { margin-bottom: 12px; }
}
@media print {
  .entry-info, .entry-nav, .visit-header button, .office-actions, .office-directory-link, .office-results .button, .office-print-option, .office-list > li:not(:has(input:checked)) { display: none !important; }
  .result:not(.has-estimate) { display: none !important; }
  .visit-plan { padding: 0; box-shadow: none; margin-top: 14px; border: 0; }
  .visit-header { margin: 0 0 8px; }
  .visit-grid { display: block; }
  .visit-grid section { margin-top: 12px; }
  .visit-plan, .office-section, .plate-quote, .plate-comparison { background: #fff !important; }
  .office-section { padding: 8px 0; }
  .office-actions:has(.office-appointment) { display: block !important; }
  .office-actions a:not(.office-appointment) { display: none; }
  .office-actions .office-appointment { display: inline !important; padding: 0; border: 0; color: #000; background: transparent; text-align: start; }
  .office-appointment::after { content: ' (' attr(href) ')'; font-size: .85em; font-weight: 400; overflow-wrap: anywhere; }
  .document-label input { display: none; }
  .document-label .print-check { display: inline; }
  .document-list li, .office-list li, .plate-comparison { break-inside: avoid; }
  .document-links a::after { content: ' (' attr(href) ')'; font-size: .85em; font-weight: 400; overflow-wrap: anywhere; }
}
