/* Cuaderno y atlas: papel mediante CSS; sin texturas ni fuentes remotas. */
.bird-profile-dialog.naturalist-notebook{width:min(1180px,calc(100% - 24px));max-height:95dvh;background:#f3eedf;border:1px solid #bdb59f;border-radius:9px;padding:0;scroll-padding-top:100px;box-shadow:0 12px 55px #1e302b30}
.naturalist-notebook .bird-profile-header{padding:15px 24px;background:#f7f2e6;border-color:#d2c8af;gap:24px}
.naturalist-notebook .bird-profile-header h2{font:25px/1.2 var(--serif);margin:3px 0 0}
.notebook-header-kicker{font-size:9px;letter-spacing:2px;color:#56634c}
.naturalist-notebook>.profile-content{padding:0 18px 10px;overflow-wrap:anywhere}
.notebook-species-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 24px;border-bottom:1px solid #d2c8af}
.notebook-species-navigation .secondary{font-size:11px;padding:9px 12px;min-height:44px;gap:8px;background:transparent}
#notebook-species-position{font-size:11px;line-height:1.5;text-align:center}
.notebook-tabs{display:flex;gap:8px;padding:12px 0;flex-wrap:wrap}
.notebook-tabs [role="tab"]{min-height:44px;font-size:12px;line-height:1.5;border:1px solid transparent;border-radius:4px;background:transparent;color:#4e604b;padding:8px 12px;display:flex;align-items:center;gap:12px}
.notebook-tabs [role="tab"] span{font:italic 12px var(--serif);color:#637057}
.notebook-tabs [aria-selected="true"]{border-color:#829272;background:#e5e8d8;color:#243e32}
.notebook-spread{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;isolation:isolate;border:1px solid #d1c6ac;border-radius:4px;box-shadow:0 3px 8px #77694813;background:#fcf8ec}
.notebook-spread::after{content:'';position:absolute;left:50%;top:0;bottom:0;width:12px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#82704e12 40%,#665a3d25 50%,#82704e12 60%,transparent);pointer-events:none}
.notebook-page{position:relative;min-width:0;padding:26px 30px 32px;box-shadow:inset 0 0 30px #b69c6a0a;background:repeating-linear-gradient(0deg,#a38e5f03 0,#a38e5f03 1px,transparent 1px,transparent 4px)}
.notebook-page:nth-child(2){border-left:1px solid #d9cfb9}
.notebook-page-kicker{font-size:9px;letter-spacing:1.7px;color:#627057;margin:0 0 15px;line-height:1.6}
.naturalist-notebook .notebook-page>h3{font:32px/1.12 var(--serif);margin:0 0 18px;color:#304b37}
.naturalist-notebook .notebook-page>.notebook-bird-name{font-size:35px;margin-bottom:5px}
.notebook-page h3 em{font-weight:400;color:#647750}
.notebook-scientific{font:italic 15px/1.6 var(--serif);margin:0 0 18px;color:#59674f}
.notebook-page p{font-size:14px;line-height:1.85}
.notebook-photo{margin:0 0 18px;border:1px solid #d3cbb7;padding:8px;background:#fffcf3;box-shadow:0 2px 5px #6b5b3810}
.naturalist-notebook .notebook-photo .photo-profile{margin:0;background:#f0eddf;border-radius:2px}
.naturalist-notebook .notebook-photo .photo-profile>img{display:block;width:auto;max-width:100%;height:auto;max-height:280px;margin:0 auto;object-fit:contain}
.naturalist-notebook .notebook-photo .photo-zoom-hint{font-size:10px;padding:6px 3px;margin:0;text-align:right}
.notebook-photo figcaption{font-size:11px;line-height:1.8;color:#53614c;margin:9px 3px 1px}
.notebook-photo-block{border:1px dashed #a89978;padding:22px;background:#eee9d950;margin:0 0 18px}
.notebook-photo-block strong{font:22px/1.3 var(--serif);display:block;margin:8px 0}
.notebook-photo-block p{font-size:13px;line-height:1.8;margin:10px 0}
.notebook-photo-block small{font-size:11px;line-height:1.8;display:block;color:#56634d}
.notebook-empty-mark{color:#8c7959;font-size:25px}
.naturalist-notebook .notebook-page dl{font-size:14px;line-height:1.85;margin:18px 0}
.naturalist-notebook .notebook-fact{padding:10px 0;border-top:1px solid #dcd4be}
.naturalist-notebook .notebook-fact dt{font-size:11px;line-height:1.7;letter-spacing:.5px;margin:0 0 4px;color:#4e634b;font-weight:650}
.naturalist-notebook .notebook-fact dd{margin:0;font-size:14px;line-height:1.85}
.notebook-meta{margin:14px 0}
.notebook-meta h4,.notebook-conservation h4{font-size:11px;letter-spacing:.4px;font-weight:650;margin:0 0 5px;color:#4e634b}
.notebook-meta p{font-size:13px;margin:0 0 4px}
.notebook-meta small,.notebook-frequency>small,.notebook-conservation>small{font-size:11px;line-height:1.8;color:#53614b;display:block}
.notebook-frequency{margin-top:15px}.notebook-frequency .frequency-badge{margin:0 0 3px;font-size:12px}
.notebook-margin-note{font:italic 14px/1.8 var(--serif)!important;color:#5e7152;border-left:2px solid #b4bda1;padding-left:12px;margin:20px 0}
.notebook-leaf{width:52px;height:70px;display:block;margin:18px 0 0 auto;color:#71805b;opacity:.48}
.notebook-conservation{border-top:1px solid #d5ccb5;padding-top:15px;margin-top:20px}
.notebook-conservation p{font-size:13px;margin:8px 0}
.naturalist-notebook .notebook-page .audio-block{margin:16px 0 24px;background:#e8ebdc;border:1px solid #c4cdb4;padding:18px;border-radius:4px}
.naturalist-notebook .audio-block audio{width:100%;max-width:100%}
.naturalist-notebook .audio-block p{font-size:12px;line-height:1.8}
.naturalist-notebook .geographic-distribution{padding:0;margin:0 0 25px;border:0;background:transparent}
.naturalist-notebook .geographic-distribution h3{font-size:29px;margin:0 0 18px}
.naturalist-notebook .geographic-distribution p{font-size:13px;line-height:1.85}
.naturalist-notebook .evidence-list{font-size:12px;max-height:260px;background:#f3eedf}
.naturalist-notebook .card-sources{font-size:12px;line-height:1.8;margin:0;padding:0;border:0}
.naturalist-notebook .card-sources>p{font-size:12px;margin:14px 0;line-height:1.9}
.naturalist-notebook .card-sources small{font-size:11px;line-height:1.8}
.notebook-research summary{font-size:12px;line-height:1.6;padding:12px 0;min-height:44px}
.notebook-footnote{display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.7px;line-height:1.6;color:#5d6a51;padding:14px 8px 4px}
.notebook-loading{padding:30px;font-size:14px}
.naturalist-notebook :focus-visible{outline:3px solid #965c3f;outline-offset:3px}
.naturalist-notebook .photo-open:focus-visible{outline-offset:0}

/* Atlas acotado a Mapa; la consulta cercana conserva su presentación práctica. */
.atlas-library .atlas-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:34px;align-items:start}
.atlas-map-frame{position:relative;border:1px solid #b9b69e;border-radius:5px;padding:12px;background:linear-gradient(90deg,#d8cbaa10,transparent 6%,transparent 94%,#d8cbaa15),#f7f2e3;box-shadow:0 3px 12px #5363440d}
.atlas-map-frame::before{content:'';position:absolute;inset:6px;border:1px solid #d6cbb4;pointer-events:none;border-radius:2px}
.atlas-plate-heading{padding:16px 72px 16px 18px;border-bottom:1px solid #d6ceb7;min-height:112px}
.atlas-plate-heading>span{font-size:8px;letter-spacing:1.3px;color:#5c6b50;line-height:1.7;display:block}
.atlas-plate-heading>h2{font:30px/1.2 var(--serif);margin:10px 0 5px}
.atlas-plate-heading>p{font:italic 14px var(--serif);margin:0;color:#61724e}
.atlas-compass{position:absolute;right:25px;top:25px;width:47px;height:65px;fill:none;stroke:#75815e;stroke-width:1}
.atlas-compass text{fill:#526448;stroke:none;font:12px Georgia,serif}
.atlas-compass>path:first-of-type{fill:#81916b24}
.atlas-library .argentina-map{background:transparent;border:0;border-radius:0;padding:10px;min-height:300px}
.atlas-library .argentina-map>svg{display:block;width:100%;height:auto;max-height:590px}
.atlas-library .argentina-map path{fill:#dce1cd;stroke:#788968;stroke-width:1}
.atlas-library .argentina-map .selected{fill:#496349;stroke:#344b33;stroke-width:2}
.atlas-library .argentina-map path:hover,.atlas-library .argentina-map path:focus{fill:#bdcba7;stroke:#9b684b;stroke-width:2;outline:none}
.atlas-library .argentina-map path.selected:hover,.atlas-library .argentina-map path.selected:focus{fill:#496349;stroke:#9b684b}
.atlas-map-key{padding:12px 16px;font-size:11px;line-height:1.8;border-top:1px solid #d7cfb9}
.atlas-map-key>span{display:flex;align-items:center;gap:8px}
.atlas-map-key i{width:11px;height:11px;display:inline-block;background:#496349;border:1px solid #344b33}
.atlas-map-key>small{display:block;font-size:10px;color:#55664c;margin-top:4px}
.atlas-plate-footer{text-align:center;font-size:8px;letter-spacing:1.4px;color:#61724e;margin:8px 0 10px}
.map-query-controls{min-width:0}.map-query-controls>label{display:block;font-size:12px;margin-bottom:20px}
.map-query-controls>label select{font-size:13px;min-height:46px}
.map-query-controls #map-summary{border-top:1px solid var(--line);padding-top:18px}
.map-query-controls #map-summary h2{font-size:28px;margin:0 0 12px}
.map-query-controls #map-summary p,.map-query-controls #province-links p{font-size:12px;line-height:1.85}
.atlas-method{border-top:1px solid var(--line);margin-top:20px;padding-top:5px}
.atlas-method>summary{font-size:12px;line-height:1.6;padding:12px 0;min-height:44px}
.atlas-method p,.atlas-method a{font-size:11px;line-height:1.9}
.near-practical .near-query-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.near-location-note{padding:24px;background:var(--sage);border:1px solid var(--line);border-radius:7px}
.near-location-note h2{font:32px/1.2 var(--serif);margin:15px 0 22px}
.near-location-note p{font-size:13px;line-height:1.9}
.atlas-library :focus-visible{outline:3px solid #965c3f;outline-offset:3px}
.atlas-library .argentina-map :focus-visible{outline:none;stroke:#965c3f;stroke-width:3}

/* Leyenda breve y permanente, sin panel explicativo grande. */
.frequency-legend.compact-legend{background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:10px 0;margin:16px 0}
.frequency-legend.compact-legend>p{font-size:12px;line-height:1.7;margin:0}
.frequency-legend.compact-legend ul{margin:8px 0;gap:10px 20px}
.frequency-legend.compact-legend>small{font-size:11px;line-height:1.7}
@media(max-width:850px){
 .notebook-spread{grid-template-columns:1fr}.notebook-spread::after{display:none}
 .notebook-page:nth-child(2){border-left:0;border-top:1px solid #d9cfb9}
 .atlas-library .atlas-layout,.near-practical .near-query-layout{grid-template-columns:1fr;gap:26px}
 .atlas-library .argentina-map>svg{max-height:620px}
}
@media(max-width:640px){
 .naturalist-notebook .bird-profile-header{padding:12px 16px}.naturalist-notebook .bird-profile-header h2{font-size:23px}
 .notebook-header-kicker{font-size:8px;letter-spacing:1.3px}
 .naturalist-notebook>.profile-content{padding:0 8px 8px}
 .notebook-species-navigation{padding:8px 12px;gap:8px}.notebook-species-navigation .secondary{font-size:10px;padding:8px;min-height:44px}
 #notebook-species-position{font-size:10px;max-width:120px}
 .notebook-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:9px 0}
 .notebook-tabs [role="tab"]{font-size:11px;line-height:1.5;min-height:62px;padding:8px 5px;flex-direction:column;justify-content:center;gap:4px}
 .notebook-tabs [role="tab"] span{font-size:10px}
 .notebook-page{padding:24px 20px}.naturalist-notebook .notebook-page>.notebook-bird-name{font-size:32px}
 .naturalist-notebook .notebook-page>h3{font-size:29px}
 .naturalist-notebook .notebook-fact dd,.notebook-page p{font-size:15px;line-height:1.85}
 .naturalist-notebook .notebook-photo .photo-profile>img{max-height:320px}
 .notebook-footnote{flex-direction:column;font-size:8px;gap:4px;padding:12px 8px 4px}
 .atlas-plate-heading{padding:15px 65px 15px 10px}.atlas-plate-heading>h2{font-size:27px}
 .atlas-compass{right:17px;top:28px;width:40px;height:60px}
 .atlas-library .argentina-map{padding:8px 0}.atlas-library .argentina-map>svg{max-height:550px}
 .map-query-controls>label select{font-size:13px}.atlas-method>summary{font-size:12px}
}
