/* Optical atlas */
:root {
    --aw-ink: #182f2b;
    --aw-muted: #4d6059;
    --aw-primary: #116455;
    --aw-primary-dark: #0e473c;
    --aw-bg-soft: #e8eee7;
    --aw-border: #cad2c7;
    --paper: #f7f5ee;
    --surface: #fffef9;
    --pine: #143c35;
    --gold: #e5b96d;
    --display: Georgia, "Times New Roman", serif;
}
body { background: var(--paper); }
::selection { color: #fff; background: #226356; }
html { scrollbar-color: #779082 var(--paper); }
input { caret-color: var(--pine); }
h1, h2, .state-card h3, .city-card h3, .doctor-card h3, .guide-card h3 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.038em;
    color: var(--aw-ink);
}
a { text-decoration-thickness: .075em; }
a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
    outline: 3px solid #9c541b;
    outline-offset: 4px;
}
.site-header, .site-footer { background: var(--pine); color: #fffdf3; }
.site-header { border-bottom: 1px solid #35564b; }
.aw-header-inner { min-height: 78px; }
.site-branding-link, .site-branding-link:hover, .menu a { color: #fffdf3; }
.site-branding-link { font: 600 clamp(1.25rem,2vw,1.65rem)/1.2 var(--display); }
.site-branding-link svg { color: var(--gold); }
.menu { gap: clamp(16px,2.3vw,34px); }
.menu a { font-size: 1rem; font-weight: 400; }
.menu a:hover, .site-footer a:hover { color: #ffe4a8; text-decoration: underline; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.aw-menu-toggle { background: transparent; border-color: #819a8f; color: #fff; }
.optik-home { border-bottom: 1px solid var(--aw-border); background: #f3eee1; }
.optik-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(32px,5vw,88px); padding-block: clamp(34px,4.4vw,70px); }
.optik-intro { min-width: 0; }
.optik-intro h1 { font-size: clamp(2.75rem,5.1vw,5.1rem); line-height: .99; margin: 0 0 18px; text-wrap: initial; letter-spacing: -.058em; }
.optik-intro h1 em { font-weight: 400; color: #275d4d; }
.optik-count { font-size: 1.1rem; color: #41584e; margin-bottom: clamp(22px,2.4vw,36px); }
.optik-search { gap: 6px; }
.optik-search-row { display: flex; align-items: stretch; background: var(--surface); padding: 5px; border: 1px solid #8c9b8e; border-radius: 10px; }
.optik-search-row input[type=search] { flex: 1; border: 0; min-width: 0; padding-inline: 12px; background: transparent; }
.optik-search-row input:focus-visible { outline-offset: -3px; }
.optik-search-row button { white-space: nowrap; }
.optik-near { display: inline-flex; align-items: baseline; gap: 6px; padding-block: 9px; margin-top: 2px; color: #305a4c; font-size: .95rem; }
.optik-hero-photo { aspect-ratio: 1.46; margin: 0; border-radius: 46% 46% 10px 10px / 52% 52% 10px 10px; overflow: hidden; background: #c89750; }
.optik-hero-photo img,.optik-story-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: #0b5748; }
.btn-secondary,.btn-ghost { color: var(--pine); border-color: #839c8e; background: var(--surface); }
.btn-secondary:hover,.btn-ghost:hover { background: #e3ede5; }
.btn { border-radius: 7px; }
input[type=search],select { border-color: #8a9c90; color: var(--aw-ink); }
.optik-atlas { background: #eef1e9; padding-block: clamp(40px,5.3vw,80px); }
.optik-atlas-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; margin-bottom: 24px; }
.optik-atlas-head h2,.section-head h2 { margin: 0; font-size: clamp(1.9rem,3vw,3rem); }
.optik-region { min-width: min(100%,170px); max-width: 100%; }
.optik-region summary { font-weight: 700; color: var(--aw-primary-dark); padding: 9px 2px; cursor: pointer; }
.optik-region[open] { flex-basis: 100%; }
.optik-region .quick-jump-form { max-width: 620px; padding: 14px 0 6px; }
.state-card-grid,.city-card-grid,.doctor-card-grid { gap: 16px; }
.state-card,.city-card,.doctor-card,.guide-card,.profile-card { background: var(--surface); border: 1px solid var(--aw-border); border-radius: 12px; box-shadow: 0 3px 0 #1a3e2e08; }
.state-card,.city-card,.doctor-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px,2vw,30px); }
.state-card:hover,.city-card:hover,.doctor-card:hover,.guide-card:hover { background: var(--surface); border-color: #7d998b; }
.state-card { position: relative; padding-top: 22px; overflow: hidden; }
.state-card::after { content: "↗"; position: absolute; right: 17px; top: 18px; color: #517866; font-size: 1.15rem; pointer-events: none; }
.landform { display: block; height: 55px; width: 55px; object-fit: contain; margin-bottom: 14px; }
.state-card h3,.city-card h3 { font-size: clamp(1.35rem,1.65vw,1.67rem); margin-bottom: 9px; }
.state-card h3 a::after { content: ""; position: absolute; inset: 0; }
.state-card:focus-within { outline: 3px solid #9c541b; outline-offset: 2px; }
.state-card p,.city-card p { margin-bottom: 10px; }
.entity-statuses { gap: 6px; margin-block: 8px 3px; }
.entity-status { display: inline-flex; align-items: baseline; gap: 5px; font-size: .81rem; line-height: 1.35; padding: 4px 8px; border-radius: 5px; }
.entity-status::before { content: ""; display: inline-block; flex: none; width: 6px; height: 6px; align-self: center; border-radius: 50%; background: currentColor; }
.tone-positive { background: #dceedf; color: #1b5939; }
.tone-neutral { background: #e9ece5; color: #42544b; }
.tone-negative { background: #f3e6dd; color: #774932; }
.city-card > .text-link, .doctor-actions { margin-top: auto; padding-top: 14px; }
.doctor-actions { width: 100%; }
.profile-header,.directory-header { max-width: none; padding: clamp(24px,3.8vw,55px); border-radius: 16px; background: #e2eae0; border-left: 5px solid #507762; }
.directory-header h1,.profile-header h1 { max-width: 30ch; font-size: clamp(2rem,3.65vw,3.8rem); }
.profile-layout { margin-top: 28px; }
.profile-card { padding: clamp(22px,3vw,38px); }
.nearby-controls { background: var(--surface); }
.profile-list li,.feature-list li { border-color: var(--aw-border); }
.directory-header p:last-child,.profile-card p:last-child { margin-bottom: 0; }
.directory-section, .guide-section { scroll-margin-top: 12px; }
.guide-section { border-top: 1px solid var(--aw-border); margin-top: clamp(36px,5vw,70px); padding: clamp(32px,4vw,58px) 0; }
.aw-front-page .guide-section { border: 0; margin-top: 0; padding-top: clamp(42px,5vw,75px); }
.guide-grid,.entry-content .guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; padding: 0 0 22px; min-height: 0; }
.guide-card > :not(img) { margin-inline: 22px; }
.guide-card .optik-card-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; margin-bottom: 21px; }
.guide-card h3,.entry-content .guide-card h2 { font: 500 clamp(1.35rem,1.72vw,1.75rem)/1.14 var(--display); margin-bottom: 12px; }
.entry-content .guide-card h2 { margin-inline: 22px; }
.guide-card p { font-size: 1rem; line-height: 1.55; }
.guide-card .text-link { align-self: flex-start; margin-top: auto; }
.guide-hub .entry-content > p:first-child { max-width: 65ch; font-size: 1.17rem; }
.entry-header { margin-bottom: 24px; }
.default-page:not(.guide-hub):not(.optik-story) { max-width: 960px; }
.optik-story .entry-header { max-width: none; display: grid; align-items: center; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: clamp(30px,5vw,72px); padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--aw-border); }
.optik-story .entry-header h1 { font-size: clamp(2.3rem,3.8vw,3.9rem); line-height: 1.05; }
.optik-story-photo { margin: 0; border-radius: 65px 12px 12px 12px; overflow: hidden; aspect-ratio: 1.65; background: #dde4d8; }
.optik-story .article-meta { padding: 0; margin: 16px 0 0; border: 0; color: var(--aw-muted); }
.optik-story .entry-content { max-width: 73ch; margin-inline: auto; }
.article-lead { font-size: 1.21em; color: var(--aw-ink); }
.article-toc,.checklist { border: 1px solid #c4d4c7; background: #e7eee4; }
.article-toc h2 { font-family: inherit; font-weight: 700; }
.aw-faq { margin: 38px 0 64px; }
.aw-faq-item { background: var(--surface); border: 1px solid var(--aw-border); border-radius: 9px; margin-bottom: 7px; }
.aw-faq-item summary { padding: 17px 19px; }
.aw-faq-answer { padding: 0 20px 20px; }
.site-footer { border-top: 4px solid #bca778; }
.site-footer h2 { color: #fffdf3; }
.site-footer p,.site-footer a,.footer-legal { color: #dce8dc; }
.site-footer h2 { font-family: inherit; font-weight: 700; }
.footer-brand h2 { font-family: var(--display); }
@media (max-width: 1000px) {
    .guide-grid,.entry-content .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .optik-search-row { display: grid; }
    .optik-search-row button { justify-self: stretch; }
}
@media (max-width: 900px) {
    .primary-navigation { background: var(--pine); }
    .primary-navigation .menu a { color: #fffdf3; }
    .optik-hero { gap: 24px; }
}
@media (max-width: 740px) {
    .optik-hero,.optik-story .entry-header { grid-template-columns: 1fr; }
    .optik-hero { gap: 22px; padding-block: 32px 24px; }
    .optik-intro h1 { font-size: clamp(2.6rem,8.5vw,4.2rem); }
    .optik-search-row { display: flex; }
    .optik-search-row input { width: 0; }
    .optik-hero-photo { aspect-ratio: 2.35; border-radius: 52px 9px 9px 9px; }
    .optik-story .entry-header { gap: 20px; padding-bottom: 25px; margin-bottom: 25px; }
    .optik-story-photo { border-radius: 42px 9px 9px 9px; }
}
@media (max-width: 620px) {
    .guide-grid,.entry-content .guide-grid { grid-template-columns: 1fr; }
    .aw-header-inner { min-height: 65px; }
    .optik-atlas-head { display: block; }
    .optik-atlas-head h2 { margin-bottom: 5px; }
    .state-card { padding: 19px 20px 18px 85px; min-height: 98px; }
    .state-card .landform { position: absolute; top: 17px; left: 15px; width: 54px; height: 54px; }
    .state-card::after { display: none; }
    .state-card h3,.city-card h3 { font-size: 1.4rem; }
    .state-card p { margin-bottom: 4px; }
    .section-head h2 { margin-bottom: 10px; }
    .optik-story .entry-header h1 { font-size: clamp(2rem,8.1vw,2.8rem); }
}
@media (max-width: 390px) {
    .optik-search-row { display: grid; }
    .optik-search-row input { width: 100%; }
    .optik-search-row button { width: 100%; }
}
@media print {
    .optik-region,.optik-home form,.optik-near,.optik-hero-photo { display: none; }
    .optik-story-photo { width: 48%; }
}

