/*
 * Baroque Atlas for biberfan.org (plugin biberfan-baroque-atlas).
 * Every rule is scoped to #bf-atlas. The reset below returns atlas elements to
 * browser defaults so the theme's .entry-content typography, lists, buttons and
 * links do not reach inside; the atlas rules then style them as in the standalone build.
 */
#bf-atlas,#bf-atlas :where(*),#bf-atlas :where(*)::before,#bf-atlas :where(*)::after{all:revert}
@font-face{font-family: "BFA EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: "BFA EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: "BFA Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/source-sans-3-latin-500-normal.woff2") format("woff2");}
#bf-atlas{color-scheme:light;--ink:#23323a;--muted:#4f6269;--navy:#172b37;--paper:#fbf9f4;--line:#d9d7ce;--accent:#8e392f;--water:#dce8e9;font:16px/1.5 system-ui,sans-serif;color:var(--ink);background:var(--paper)}
#bf-atlas *{box-sizing:border-box}
#bf-atlas button,#bf-atlas input,#bf-atlas select{font:inherit;color:inherit}
#bf-atlas button,#bf-atlas select,#bf-atlas summary{cursor:pointer}
#bf-atlas button:focus-visible,#bf-atlas a:focus-visible,#bf-atlas input:focus-visible,#bf-atlas select:focus-visible,#bf-atlas summary:focus-visible,#bf-atlas .map-scroll:focus-visible{outline:3px solid #a05239;outline-offset:3px}
#bf-atlas a{color:#823127;text-underline-offset:3px}
#bf-atlas .wrap{width:min(1320px,calc(100% - 64px));margin-inline:auto}
#bf-atlas .intro{padding:29px 0 22px}
#bf-atlas .bfa-title,#bf-atlas h2,#bf-atlas h3{font-family:Georgia,serif;font-weight:normal;line-height:1.12;margin:0}
#bf-atlas .bfa-title{font-size:clamp(2.8rem,6vw,4.75rem);letter-spacing:-.045em}
#bf-atlas .intro p{margin:9px 0 0;color:var(--muted)}
#bf-atlas .toolbar{display:flex;align-items:center;gap:18px;justify-content:space-between;margin-bottom:18px;padding-block:10px;border-block:1px solid var(--line)}
#bf-atlas .years,#bf-atlas .view-switch{display:flex;gap:4px}
#bf-atlas .years button,#bf-atlas .view-switch button{background:transparent;border:1px solid transparent;border-radius:3px;font-weight:650;padding:7px 15px}
#bf-atlas .years button[aria-pressed=true],#bf-atlas .view-switch button[aria-pressed=true]{background:var(--navy);color:#fff}
#bf-atlas .years button:hover,#bf-atlas .view-switch button:hover{border-color:#89989b}
#bf-atlas #bfa-coverage{margin:0;color:var(--muted);font-size:.875rem}
#bf-atlas .explorer{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);align-items:start;gap:17px}
#bf-atlas .map-panel,#bf-atlas .side-panel{border:1px solid var(--line);border-radius:5px;background:#fffdf8;min-width:0;overflow:hidden}
#bf-atlas .panel-head,#bf-atlas .map-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
#bf-atlas .panel-head h2{font-size:1.27rem}
#bf-atlas .panel-head span,#bf-atlas .map-footer span{color:var(--muted);font-size:.875rem}
#bf-atlas .map-scroll{overflow:auto;background:var(--water)}
#bf-atlas .map-stage{position:relative;width:100%;min-width:450px;aspect-ratio:800/580}
#bf-atlas canvas,#bf-atlas .pins{position:absolute;inset:0;width:100%;height:100%}
#bf-atlas .pin{position:absolute;transform:translate(-50%,-50%);border:2px solid #fff9ec;box-shadow:0 0 0 1px #722b24;background:var(--accent);color:white;border-radius:50%;width:22px;height:22px;padding:0;font-size:.69rem;font-weight:750;line-height:1;display:grid;place-items:center}
#bf-atlas .pin[aria-pressed=true]{background:var(--navy);box-shadow:0 0 0 2px var(--navy),0 0 0 5px #fff9ec;z-index:2}
#bf-atlas .pin:hover,#bf-atlas .pin:focus-visible{z-index:3}
#bf-atlas .pin span{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);color:#fff;background:var(--navy);padding:5px 8px;border-radius:3px;font-size:.875rem;white-space:nowrap;display:none;pointer-events:none}
#bf-atlas .pin:hover span,#bf-atlas .pin:focus-visible span{display:block}
#bf-atlas .map-footer label{font-size:.875rem;font-weight:650}
#bf-atlas .map-footer select{max-width:60%;margin-right:auto;border:1px solid #aaa99e;border-radius:4px;padding:5px 8px;background:#fffdf8}
#bf-atlas .view-switch{padding:10px;border-bottom:1px solid var(--line)}
#bf-atlas .view-switch button{flex:1;font-size:.875rem}
#bf-atlas .side-content{padding:17px 18px;max-height:580px;overflow:auto}
#bf-atlas .side-content h2{font-size:1.95rem}
#bf-atlas .meta{font-size:.875rem;color:var(--muted);margin:4px 0 0}
#bf-atlas .entry{padding:13px 0;border-bottom:1px solid var(--line)}
#bf-atlas .entry:last-child{border-bottom:0}
#bf-atlas .entry h3{font-size:1.26rem}
#bf-atlas .entry p{margin:6px 0}
#bf-atlas .entry .assessment{color:var(--accent);font-size:.875rem;font-weight:650}
#bf-atlas .entry a{font-size:.875rem}
#bf-atlas #bfa-roster>label:first-child{display:block;font-weight:650}
#bf-atlas #bfa-search{display:block;width:100%;margin:5px 0 10px;padding:8px 10px;border:1px solid #aaa99e;border-radius:4px;background:white}
#bf-atlas .check{font-size:.875rem}
#bf-atlas #bfa-result-count{color:var(--muted);font-size:.875rem;margin:10px 0 4px}
#bf-atlas .roster-entry{border-bottom:1px solid var(--line);padding:9px 0}
#bf-atlas .roster-entry summary{font-weight:650}
#bf-atlas .roster-entry summary span{display:block;font-size:.875rem;font-weight:400;margin-left:16px;color:var(--muted)}
#bf-atlas .roster-entry .entry{padding-left:16px}
#bf-atlas .method{margin:19px 0 32px;border-top:1px solid var(--line);padding:13px 0;color:var(--muted);max-width:78ch}
#bf-atlas .method summary{color:var(--ink);font-weight:600}
#bf-atlas .method p{margin:8px 0}
@media(max-width:880px){#bf-atlas .explorer{grid-template-columns:1fr}
#bf-atlas .wrap{width:calc(100% - 32px)}
#bf-atlas .side-content{max-height:460px}
}
@media(max-width:530px){#bf-atlas .toolbar{flex-wrap:wrap;gap:7px}
#bf-atlas .map-footer{flex-wrap:wrap}
#bf-atlas .map-footer span{width:100%}
#bf-atlas .intro{padding-top:23px}
}
#bf-atlas .text-button{border:0;background:none;color:#823127;padding:0;text-decoration:underline;text-underline-offset:3px;font-weight:700}
#bf-atlas .pin-leader{position:absolute;height:1px;transform-origin:0 50%;background:#76554e;pointer-events:none}
#bf-atlas{--bg:#d8d6c2;
  --paper:#e4e2d0;
  --ink:#1f1d1a;
  --muted:#5d594f;
  --line:rgba(31,29,26,.28);
  --accent:#6b3a1f;
  --navy:#26201a;
  --serif:"BFA EB Garamond","EB Garamond","Iowan Old Style",Georgia,serif;
  --sans:"BFA Source Sans 3","Source Sans 3","Helvetica Neue",Arial,sans-serif;
  background:var(--bg);
  font-family:var(--sans);}
#bf-atlas .bfa-title,#bf-atlas h2,#bf-atlas h3{font-family:var(--serif)}
#bf-atlas .wrap{max-width:78rem}
#bf-atlas .bfa-title{letter-spacing:-.025em}
#bf-atlas .map-panel,#bf-atlas .side-panel{background:var(--paper);border-radius:2px}
#bf-atlas .entry p:not(.meta):not(.assessment){font-family:var(--serif);font-size:1.125rem;line-height:1.42}
#bf-atlas .years button[aria-pressed=true],#bf-atlas .view-switch button[aria-pressed=true]{background:var(--accent);color:#f3f1e3}
#bf-atlas a,#bf-atlas .text-button{color:var(--accent)}
#bf-atlas .map-scroll{position:relative;overflow:hidden;background:#c8cbb9;touch-action:none;cursor:grab}
#bf-atlas .map-scroll.dragging{cursor:grabbing}
#bf-atlas .map-stage{min-width:0;aspect-ratio:auto;height:clamp(330px,52vw,535px)}
#bf-atlas .map-commands{position:absolute;top:10px;left:10px;z-index:5;display:flex;gap:3px;flex-wrap:wrap;max-width:calc(100% - 20px);cursor:default}
#bf-atlas .map-commands button{min-width:37px;min-height:36px;padding:4px 9px;border:1px solid #8b8777;border-radius:2px;background:#f1efe1;font-size:.875rem}
#bf-atlas .map-commands button:hover,#bf-atlas .map-commands button[aria-pressed=true]{background:var(--accent);color:#fff}
#bf-atlas .map-commands button:disabled{opacity:.62;cursor:default}
#bf-atlas .map-commands button:disabled:hover{background:#f1efe1;color:inherit}
#bf-atlas .map-help{margin:0;padding:7px 16px;font-size:.875rem;color:var(--muted);border-bottom:1px solid var(--line)}
#bf-atlas .pin[hidden],#bf-atlas .pin-leader[hidden]{display:none}
#bf-atlas .pin{box-shadow:0 0 0 1px #55321f}
#bf-atlas .map-footer select{background:#f1efe1}
#bf-atlas .touch-map-help{display:none}
@media (hover:none) and (pointer:coarse){#bf-atlas #bfa-zoom-in,#bf-atlas #bfa-zoom-out,#bf-atlas .desktop-map-help{display:none}
#bf-atlas .touch-map-help{display:inline}
#bf-atlas .map-commands button{min-height:44px}

}
#bf-atlas [hidden]{display:none!important}
#bf-atlas .toolbar{flex-wrap:wrap}
#bf-atlas .timeline{flex:1 1 270px;max-width:480px;padding:0 8px}
#bf-atlas .timeline input{display:block;width:100%;margin:0;accent-color:var(--accent);min-height:28px;cursor:pointer}
#bf-atlas .timeline-ticks{position:relative;height:1.15rem;margin-inline:8px;font-size:.875rem;color:var(--muted);line-height:1.25}
#bf-atlas .timeline-ticks span{position:absolute;left:calc(var(--stop) * 100% / 6);transform:translateX(-50%)}
#bf-atlas .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:540px){#bf-atlas .timeline{flex-basis:100%;max-width:none}
#bf-atlas .toolbar #bfa-coverage{margin-left:auto}
}
#bf-atlas .recordings{margin:9px 0 5px 16px;padding:10px 0 2px}
#bf-atlas .recordings h3{font-size:1.2rem}
#bf-atlas .recordings ol{margin:6px 0;padding-left:1.3rem}
#bf-atlas .recordings li{margin:5px 0 8px}
#bf-atlas .recordings a{font-family:var(--serif);font-size:1.07rem}
#bf-atlas .recordings p{margin:0}
#bf-atlas .recordings .text-button{font-family:var(--serif);font-size:1.07rem;text-align:left}
body:has(#bfa-album-review[open]){overflow:hidden}
#bf-atlas #bfa-album-review{width:min(720px,calc(100% - 24px));max-height:calc(100% - 28px);max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--line);border-radius:3px;color:var(--ink);background:#faf7ea;overscroll-behavior:contain}
#bf-atlas #bfa-album-review::backdrop{background:rgba(31,29,26,.62)}
#bf-atlas .review-sheet{padding:0 clamp(18px,6vw,48px) 36px}
#bf-atlas .review-controls{display:flex;justify-content:flex-end;position:sticky;top:0;z-index:1;background:#faf7ea;padding:12px 0 8px}
#bf-atlas .review-controls button{padding:6px 11px;border:1px solid var(--line);border-radius:2px;background:#f1efe1}
#bf-atlas .review-controls button:hover{background:var(--accent);color:white}
#bf-atlas .review-sheet h2{font-size:clamp(1.8rem,5vw,2.7rem)}
#bf-atlas .review-links{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.875rem;margin:10px 0 0}
#bf-atlas .review-prose{border-top:1px solid var(--line);margin-top:16px;font:1.22rem/1.5 var(--serif);overflow-wrap:anywhere}
#bf-atlas .review-prose h3{font-size:1.45rem;margin-top:1em}
#bf-atlas .review-prose blockquote{margin-inline:0;padding-inline-start:1rem;border-inline-start:2px solid var(--line)}
#bf-atlas .city-flag{display:flex;align-items:center;gap:12px;margin:10px 0 3px;padding:9px 0;border-bottom:1px solid var(--line)}
#bf-atlas .city-flag img{width:clamp(80px,29%,126px);height:66px;margin-left:auto;object-fit:contain;object-position:right center;flex:none;filter:drop-shadow(0 0 .6px #6a604f)}
#bf-atlas .city-polity{margin:0;font-weight:650}
#bf-atlas .city-flag summary{color:var(--muted);font-size:.875rem}
#bf-atlas .roster-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 8px}
#bf-atlas .roster-controls label{font-size:.875rem}
#bf-atlas .roster-controls select{display:block;width:100%;padding:5px;border:1px solid var(--line);background:#f1efe1;color:var(--ink);border-radius:2px}

/* WordPress page integration */
#bf-atlas{display:block;position:relative;background:transparent;width:min(78rem,calc(100vw - 64px));max-width:none;margin:1.5rem 0 0 calc(50% - min(39rem,50vw - 32px));padding:0;text-align:left;font-size:16px;line-height:1.5}
#bf-atlas .wrap{width:auto;max-width:none;margin-inline:0}
#bf-atlas .intro{padding-top:6px}
#bf-atlas .bfa-version{font-size:.875rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
#bf-atlas .intro .bfa-version{margin:0 0 6px}
#bf-atlas .method:last-of-type{margin-bottom:8px}
#bf-atlas .bfa-noscript{padding:12px 16px;border:1px solid var(--line);background:var(--paper)}
@media(max-width:880px){#bf-atlas{width:calc(100vw - 32px);margin-left:calc(50% - 50vw + 16px)}}

/* 0.9.2: heading matches the theme's page title; violin beaver from the theme's home-page tagline */
#bf-atlas .bfa-heading-row{display:flex;align-items:center;gap:14px}
#bf-atlas .bfa-title{font-family:"EB Garamond","BFA EB Garamond","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;font-size:clamp(2rem,5.4vw,3.6rem);font-weight:500;line-height:1.08;letter-spacing:-.005em;text-wrap:balance;min-width:0}
#bf-atlas .bfa-beaver{display:block;flex:none;width:112px;height:112px;background-repeat:no-repeat;background-size:1600% 100%;background-position:0 0;opacity:.6}
#bf-atlas .bfa-beaver.is-playing{animation:bf-atlas-beaver-plays 5.1s steps(15) forwards}
@keyframes bf-atlas-beaver-plays{from{background-position-x:0%}to{background-position-x:100%}}
@media(max-width:600px){#bf-atlas .bfa-heading-row{gap:8px}#bf-atlas .bfa-beaver{width:64px;height:64px}}
@media(prefers-reduced-motion:reduce){#bf-atlas .bfa-beaver{background-position-x:100%;animation:none!important}}
