.library .library-feature {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  column-gap: clamp(24px, 6vw, 80px);
  padding-block: clamp(22px, 3vw, 48px);
}
.library-feature h1 + p {
  margin-top: 1rem;
  max-width: 50ch;
  color: var(--muted);
}
.library-example {
  display: grid;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.library-example img {
  display: block;
  width: 100%;
  height: clamp(215px, 24vw, 325px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.library-example figcaption {
  margin: .65rem auto 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  max-width: 38ch;
}
.library-example strong, .library-example figcaption a {color: var(--ink)}
.library-example figcaption a {display: inline-block; margin-top: .4rem}
.library-example figcaption p {margin-top: .2rem}
@media (max-width: 680px) {
  .library .library-feature {grid-template-columns: 1fr; gap: 18px}
  .library-example {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 15px;
    text-align: left;
  }
  .library-example img {height: clamp(160px, 43vw, 235px)}
  .library-example figcaption {margin: 0}
}
@media (max-width: 330px) {
  .library-example {grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px}
}
/* Illustrated covers use one grid across the library and its four home entrances. */
.atlas-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,3vw,42px) clamp(12px,2vw,28px)}
/* Ten country guides: complete rows on wide screens and a readable paired grid below. */
#whisky-by-country .atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1100px){#whisky-by-country .atlas-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.atlas-tile{display:block;min-width:0;text-decoration:none;color:inherit}
.atlas-tile figure{display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;overflow:hidden;margin:0;background:var(--paper,#f7f1e8);isolation:isolate}
.atlas-tile figure img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.atlas-landscape figure img,.theme-door:nth-child(2) figure img{object-fit:cover;mix-blend-mode:normal}
.atlas-pair figure img{width:50%;min-width:0}
.atlas-tile h3{margin:.6rem 0 0;border-top:1px solid var(--line);padding-top:.5rem;font-size:clamp(.97rem,1.45vw,1.45rem);line-height:1.18;letter-spacing:-.025em;overflow-wrap:break-word}
.atlas-landscape h3{display:flex;align-items:center;gap:.45em}
.atlas-flag{display:inline-block;line-height:1;font-size:1.1em}
.atlas-heading .eyebrow .atlas-flag{margin-right:.5em;font-size:1.5rem;vertical-align:middle}
.atlas-tile:is(:hover,:focus-visible) h3{text-decoration:underline;text-underline-offset:.16em}
.atlas-shelf,.guide-themes{scroll-margin-block-start:12px}
.atlas-shelf header,.guide-themes header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem 1.2rem;flex-wrap:wrap;margin:0 0 1rem}
.atlas-shelf header h2,.guide-themes header h2{margin:0}
.atlas-shelf header a,.guide-themes header a{font-weight:600;font-size:.88rem;color:inherit}
.atlas-opening p{margin:.55rem 0 0}
.atlas-jump{margin:.35rem 0 1.25rem}
.atlas-jump summary{cursor:pointer;display:list-item;width:fit-content;padding:.45rem 0;color:var(--ink)}
.atlas-jump .library-jump{margin:.5rem 0}
.atlas-heading{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:center;gap:clamp(20px,4vw,60px)}
.atlas-heading p:last-child{max-width:52ch;margin-top:1rem;color:var(--muted)}
.atlas-heading figure img{display:block;width:100%;aspect-ratio:4 / 3;height:auto;object-fit:cover}
.guide-themes{padding:clamp(30px,5vw,68px) 0}
.guide-themes header h2{font-size:clamp(2rem,4vw,4rem);line-height:1}
.guide-themes h3 span{color:var(--pink);white-space:nowrap}
@media(max-width:760px){
 .atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
 .atlas-heading{grid-template-columns:minmax(0,1fr);gap:15px}
 .atlas-heading>div{min-width:0;overflow-wrap:anywhere}
 .atlas-heading figure img{max-height:220px}
 .atlas-shelf{padding-block:1.2rem 1.6rem}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .atlas-tile img{transition:transform .35s ease-out}
 .atlas-tile:hover img{transform:scale(1.035)}
}
.library [hidden]{display:none!important}
.atlas-themes{grid-template-columns:repeat(3,minmax(0,1fr));padding:.3rem 0 2rem}
.atlas-door figure,.atlas-article figure,.guide-themes .theme-door figure{aspect-ratio:3 / 2}
.atlas-door figure img,.atlas-article figure img,.guide-themes .theme-door figure img{object-fit:cover;mix-blend-mode:normal}
.atlas-door[href="#familiar-labels"] figure img,.guide-themes .theme-door:first-child img{object-fit:contain;mix-blend-mode:multiply}
.atlas-door h3,.atlas-article h3{border:0;padding:0}
.atlas-door span{display:flex;align-items:baseline;justify-content:space-between;font-size:.82rem;margin:.32rem 0 0;color:var(--muted)}
.atlas-door span b{font-size:1rem;font-weight:400;color:var(--ink)}
.atlas-article h3 .atlas-flag{margin-right:.3rem}
.atlas-return{display:inline-flex;align-items:center;min-height:44px;font-size:.9rem;text-decoration:none;color:inherit}
.atlas-return:hover{text-decoration:underline}
.atlas-heading figure img{aspect-ratio:3 / 2}
.atlas-shelf h2,.atlas-opening h1{scroll-margin-top:20px}
.atlas-shelf h2:focus,.atlas-opening h1:focus{outline:none}
@media(max-width:760px){.atlas-themes{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-article h3{font-size:clamp(.98rem,3.7vw,1.2rem)}}

/* Each guide is an isolated ink study. Let its edges meet the page directly. */
.atlas-grid .atlas-tile figure,.atlas-heading figure,.guide-themes .atlas-tile figure{position:relative;overflow:visible;background:transparent;isolation:auto}
.atlas-grid .atlas-tile figure img,.guide-themes .atlas-tile figure img,.atlas-heading figure img{object-fit:contain;mix-blend-mode:normal}
.atlas-grid .atlas-tile figure:has(.atlas-duet){display:block;aspect-ratio:auto}
.atlas-grid .atlas-tile figure:has(.atlas-duet)>img{aspect-ratio:3 / 2;height:auto}
.atlas-duet{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.35rem;padding:.08rem 0 .35rem;line-height:1.15;font-size:clamp(.7rem,.98vw,.93rem);color:var(--muted)}
.atlas-duet span{min-width:0;overflow-wrap:anywhere;hyphens:auto}
.atlas-duet span:first-child{text-align:right;color:var(--ink)}.atlas-duet i{font-style:normal;color:var(--muted)}
.atlas-heading .atlas-duet{font-size:.96rem}
.guide-tastes,.library-watch{margin:clamp(26px,6vw,72px) 0}.guide-tastes>h2,.library-watch>h2{font:500 clamp(1.5rem,3vw,2.65rem)/1.06 Georgia,serif;color:#53243b;letter-spacing:-.03em;margin:0 0 .9rem}.guide-tastes>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,3vw,35px)}.guide-tastes figure{margin:0;border-top:1px solid #b59aa5;display:grid;grid-template-columns:minmax(60px,31%) 1fr;align-items:center;gap:10px;padding-top:.7rem}.guide-tastes figure img,.guide-expressions img{width:100%;height:clamp(85px,10vw,160px);object-fit:contain;mix-blend-mode:multiply}.guide-tastes h3{font-size:clamp(1.05rem,2vw,1.6rem);margin:0}.guide-tastes a,.guide-expressions a{font-weight:650;text-underline-offset:.18em}.guide-tastes p{font-size:.91rem;line-height:1.4;margin:.45rem 0}
.guide-distillery{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(20px,4vw,50px)}.guide-expressions{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity}.guide-distillery-bottle{margin:0;flex:1;min-width:min(145px,74%);scroll-snap-align:start}.guide-expressions img{height:clamp(180px,17vw,280px);display:block}.guide-expressions small,.library-film :is(strong,small,em){display:block}.guide-expressions small{color:#6e4c5a;margin-top:.35rem}.library-film{display:flex;gap:.8rem;align-items:center;max-width:46rem;text-decoration:none;color:inherit;margin:1rem 0}.library-film>span{position:relative;flex:0 0 min(33%,200px);line-height:0}.library-film img{width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;display:block}.library-film i{position:absolute;bottom:6px;left:6px;font:normal .75rem/1 sans-serif;color:white;background:#38132de6;padding:6px 8px}.library-film small,.library-film em{font-size:.76rem;color:#694955}.library-film em{font-style:normal;margin-top:.2rem}.library-film strong{font-size:1rem;line-height:1.25}.library-film:hover strong{text-decoration:underline}
@media(max-width:650px){.guide-distillery{display:flex;flex-direction:column;align-items:stretch;gap:10px}.guide-tastes figure{display:block}.guide-tastes figure img{object-position:left bottom;height:84px}.guide-tastes a,.guide-tastes p{font-size:.84rem}.guide-expressions img{height:180px}}
