/* Historic Color Finder — /historic-color-finder/ (docs/COLOR-FINDER.md). Site palette: navy #112e5b, slate #425469,
   gold #f0b323, body #626262. */
.cf { max-width: 980px; margin: 24px auto 0; }
.cf-noscript { background: #fff7e0; border: 1px solid #f0b323; padding: 12px 16px; border-radius: 8px; }
.cf-pick { background: #fff; border: 1px solid #e3e7ec; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(17,46,91,.06); }
.cf-step { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.cf-step legend { font-family: 'Patua One', Georgia, serif; color: #112e5b; font-size: 1.2rem; margin-bottom: 12px; padding: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cf-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #112e5b; color: #fff; font-size: .95rem; flex: none; }
.cf-opt { font-family: 'Open Sans', Arial, sans-serif; font-size: .85rem; color: #6b7785; font-weight: 400; }
.cf-help { font-size: .9rem; color: #6b7785; margin: 6px 0 0; }

.cf-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cf-style { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid #e3e7ec; border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.cf-style input { position: absolute; opacity: 0; pointer-events: none; }
.cf-style-name { font-weight: 700; color: #112e5b; }
.cf-style-hint { font-size: .85rem; color: #626262; line-height: 1.35; }
.cf-style:has(input:checked) { border-color: #112e5b; background: #f3f6fb; box-shadow: inset 0 0 0 1px #112e5b; }
.cf-style:has(input:focus-visible) { outline: 3px solid #f0b323; outline-offset: 2px; }

.cf-year input { max-width: 180px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span { display: inline-block; padding: 8px 14px; border: 2px solid #e3e7ec; border-radius: 999px; font-size: .92rem; color: #425469; background: #fff; }
.cf-chip input:checked + span { border-color: #112e5b; background: #112e5b; color: #fff; }
.cf-chip input:focus-visible + span { outline: 3px solid #f0b323; outline-offset: 2px; }
.cf-error { color: #a12a1a; background: #fdecea; border-radius: 6px; padding: 8px 12px; }

.cf-results { margin-top: 32px; outline: none; }
.cf-results > h2 { margin-bottom: 4px; }
.cf-summary { color: #425469; font-weight: 600; margin-top: 0; }
.cf-note { background: #fff7e0; border-left: 4px solid #f0b323; padding: 10px 14px; border-radius: 4px; }
.cf-rule { background: #f3f6fb; border-radius: 10px; padding: 14px 18px; margin: 16px 0 8px; }
.cf-rule h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cf-rule p { margin: 6px 0; font-size: .95rem; }
.cf-rule-link { font-size: .9rem; }
.cf-group { margin-top: 28px; }
.cf-group-title { margin-bottom: 4px; }
.cf-group-sub { margin-top: 0; color: #6b7785; font-size: .92rem; }
.cf-label { font-weight: 700; color: #425469; font-size: .9rem; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.cf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cf-grid-more .cf-card { opacity: .92; }
.cf-card { display: flex; flex-direction: column; border: 1px solid #e3e7ec; border-radius: 10px; overflow: hidden; background: #fff; }
.cf-swatch { display: flex; align-items: center; justify-content: center; height: 96px; border-bottom: 1px solid #e3e7ec; }
.cf-swatch-none { background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 8px, #eceff3 8px, #eceff3 16px); color: #6b7785; font-size: .85rem; }
.cf-card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 6px; flex: 1; }
.cf-card-name { color: #112e5b; }
.cf-card-code, .cf-card-use { font-size: .85rem; color: #626262; }
.cf-card-link { font-size: .85rem; margin-top: 4px; }
.cf-save-btn { margin: 6px 12px 12px; padding: 8px 10px; border-radius: 6px; border: 2px solid #112e5b; background: #fff; color: #112e5b; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.cf-save-btn[aria-pressed="true"] { background: #112e5b; color: #fff; }
.cf-save-btn:focus-visible { outline: 3px solid #f0b323; outline-offset: 2px; }
.cf-empty { background: #f3f6fb; border-radius: 10px; padding: 14px 18px; }
.cf-screen { font-size: .88rem; color: #6b7785; margin-top: 18px; }
.cf-next { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 8px; }
.cf-save { margin-top: 36px; border-top: 3px solid #f0b323; padding-top: 20px; }
.cf-picked { font-weight: 600; color: #425469; }
.cf-fine { font-size: .82rem; color: #6b7785; margin-top: 10px; }
.cf-booked { background: #eef7ee; border: 1px solid #b9dcb9; border-radius: 10px; padding: 16px 18px; margin-top: 16px; }

@media (max-width: 600px) {
  .cf-pick { padding: 16px 12px; }
  .cf-styles { grid-template-columns: 1fr 1fr; }
  .cf-style { padding: 10px; }
  .cf-style-hint { display: none; }
  .cf-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cf-swatch { height: 72px; }
}

/* "Need HOA approval?" box on the finder */
.cf-hoa { margin-top: 28px; background: #f3f6fb; border-radius: 10px; padding: 16px 18px; }
.cf-hoa h2 { margin: 0 0 6px; font-size: 1.3rem; }
.cf-hoa p { margin: 0 0 12px; }

/* HOA color approval packet — /historic-color-finder/print/ (one Letter page when printed) */
.hoa-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 8.5in; margin: 0 auto 16px; }
.hoa-tip { flex-basis: 100%; margin: 0; font-size: .9rem; color: #6b7785; }
.hoa-egg:empty { display: none; }
.hoa-egg { color: #112e5b; font-weight: 600; }
.hoa-empty { max-width: 8.5in; margin: 0 auto 16px; background: #fff7e0; border-left: 4px solid #f0b323; padding: 10px 14px; border-radius: 4px; }
.hoa-sheet { max-width: 8.5in; margin: 0 auto; background: #fff; border: 1px solid #e3e7ec; box-shadow: 0 2px 12px rgba(17,46,91,.08); padding: .5in; color: #222; font-size: 10.5pt; line-height: 1.35; }
.hoa-head { display: flex; align-items: center; gap: 18px; border-bottom: 3px solid #112e5b; padding-bottom: 10px; margin-bottom: 12px; }
.hoa-head img { width: 1.3in; height: auto; }
.hoa-kicker { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 8.5pt; color: #425469; font-weight: 700; }
.hoa-title { margin: 0; font-size: 20pt; color: #112e5b; }
.hoa-block { margin: 10px 0; }
.hoa-h { font-size: 12pt; margin: 0 0 6px; color: #112e5b; }
.hoa-hint { font-family: 'Open Sans', Arial, sans-serif; font-weight: 400; font-size: 9pt; color: #6b7785; }
.hoa-row { display: flex; gap: 18px; }
.hoa-row > .hoa-line { flex: 1; }
.hoa-row > .hoa-short { flex: 0 0 34%; }
.hoa-line { display: flex; align-items: flex-end; gap: 8px; margin: 9px 0; }
.hoa-line-label { flex: none; font-size: 9pt; color: #425469; font-weight: 600; }
.hoa-blank { display: block; flex: 1; min-height: 1.2em; border-bottom: 1px solid #555; }
.hoa-house { margin: 8px 0; padding: 6px 10px; background: #f3f6fb; border-radius: 4px; }
.hoa-colors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hoa-color { display: flex; flex-direction: column; border: 1px solid #c9d0d8; border-radius: 6px; overflow: hidden; break-inside: avoid; }
.hoa-swatch { display: flex; align-items: center; justify-content: center; height: 1.05in; border-bottom: 1px solid #c9d0d8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hoa-swatch-none { background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 8px, #eceff3 8px, #eceff3 16px); color: #6b7785; font-size: 9pt; }
.hoa-color-body { display: flex; flex-direction: column; gap: 1px; padding: 5px 8px 6px; }
.hoa-color-blank .hoa-color-body { gap: 10px; padding-top: 12px; }
.hoa-color-name { color: #112e5b; font-size: 10.5pt; }
.hoa-color-code { font-size: 9pt; font-weight: 600; }
.hoa-color-meta { font-size: 8pt; color: #555; }
.hoa-two .hoa-swatch { height: .8in; }
.hoa-many .hoa-colors { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hoa-many .hoa-swatch { height: .7in; }
.hoa-many .hoa-hex { display: none; }
.hoa-lots .hoa-swatch { height: .45in; }
.hoa-lots .hoa-era { display: none; }
.hoa-lots .hoa-line { margin: 7px 0; }
.hoa-note { margin: 10px 0 4px; font-size: 9pt; }
.hoa-src { margin: 4px 0; font-size: 8pt; color: #555; }
.hoa-foot { margin-top: 10px; border-top: 1px solid #c9d0d8; padding-top: 6px; font-size: 9pt; }
.hoa-foot p { margin: 2px 0; }
.hoa-printed { color: #6b7785; font-size: 8pt; }
.hoa-printed:empty { display: none; }
.hoa-wink { font-style: italic; color: #6b7785; font-size: 8pt; }
.hoa-after { max-width: 8.5in; margin: 24px auto 0; }

@media (max-width: 700px) {
  .hoa-sheet { padding: 16px 12px; font-size: 10pt; }
  .hoa-colors, .hoa-many .hoa-colors { grid-template-columns: 1fr 1fr; }
  .hoa-row { flex-direction: column; gap: 0; }
  .hoa-row > .hoa-short { flex-basis: auto; }
}

@page { size: letter; margin: .45in; }
@media print {
  body:has(#hoa-sheet) .site-header, body:has(#hoa-sheet) .site-footer, body:has(#hoa-sheet) .mobile-cta,
  body:has(#hoa-sheet) .skip-link, body:has(#hoa-sheet) .page-hero, body:has(#hoa-sheet) .hoa-toolbar,
  body:has(#hoa-sheet) .hoa-empty, body:has(#hoa-sheet) .hoa-after, body:has(#hoa-sheet) .estimate-aside { display: none !important; }
  body:has(#hoa-sheet) { background: #fff; padding: 0 !important; margin: 0; }
  body:has(#hoa-sheet) main, .hoa-page, .hoa-page .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .hoa-sheet { border: 0; box-shadow: none; padding: 0; max-width: none; font-size: 10pt; }
  .hoa-sheet, .hoa-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
