/* Modern Atlas v1. Homepage only: the shared home.css remains unchanged. */
.modern-atlas {
  --margin: clamp(20px, 3.8vw, 64px);
  --section: clamp(96px, 10vw, 144px);
  --step-body: clamp(16px, 1.14vw, 18px);
  --step-head: clamp(32px, 3.5vw, 50px);
  --step-display: clamp(44px, 4.7vw, 72px);
  --paper: #f3f3ef;
  --white: #ffffff;
  background: var(--white);
}
.modern-atlas .bar { gap: 28px; }
.modern-atlas .bar-mark img { width: 220px; }
.modern-atlas .bar-links { gap: 28px; }
.modern-atlas .bar-links a { font-size: var(--step-small); }
.modern-atlas .button { font-size: 16px; }
.modern-atlas .button-accent:hover { background: var(--ocean); }
.modern-atlas .button-ink:hover { background: var(--accent); }
.modern-atlas .button:focus-visible { outline-offset: 5px; }
.ma-menu { display: none; }
.ma-menu:not([open]) nav { display: none; }
.ma-section { margin: var(--section) var(--margin) 0; }
.ma-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }
.ma-section-head p { max-width: 46ch; justify-self: end; }
.ma-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.ma-text-link { font-size: 16px; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.ma-text-link:hover { text-decoration-color: var(--accent); }
.ma-text-link:active { opacity: .65; }
.ma-statement { font-size: clamp(22px, 2vw, 28px); line-height: 1.35; letter-spacing: -.02em; }

/* The map is the object. Whole maps and detail specimens share an atlas spread. */
.ma-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 64px var(--margin) 48px; background: var(--paper); }
.ma-hero-copy { align-self: center; padding-bottom: 32px; }
.ma-hero h1 { font-size: var(--step-display); font-weight: 600; letter-spacing: -.055em; line-height: 1.04; text-wrap: balance; margin-bottom: 32px; }
.ma-intro { font-size: 19px; line-height: 1.55; max-width: 37ch; }
.ma-hero-action { display: flex; align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 32px; }
.ma-price { margin-top: 40px; font-size: 16px; }
.ma-price strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.ma-price span { margin-left: 8px; color: var(--muted); font-size: 14px; }
.ma-specimens { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; align-content: center; }
.ma-main-map { grid-column: 1 / -1; min-width: 0; }
.modern-atlas .frame { clip-path: none; aspect-ratio: 1701 / 935; background: var(--white); cursor: pointer; }
.modern-atlas .frame img { object-fit: contain; }
.modern-atlas .frame:focus-visible { outline-offset: 4px; }
.ma-main-map figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding-top: 10px; font-size: 14px; }
.ma-main-map figcaption span + span { color: var(--muted); }
.ma-specimen { display: block; text-decoration: none; font-size: 16px; }
.ma-specimen > span { display: block; aspect-ratio: 1.8; overflow: hidden; background: var(--ocean); margin-bottom: 10px; }
.ma-specimen img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.ma-specimen strong { font-weight: 600; }
.ma-specimen:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.ma-specimen:hover img { transform: scale(1.06); }
.ma-specimen:active img { transform: scale(1.02); }

/* Real catalogue entries, rather than a second row of generic features. */
.ma-edition-catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ma-edition { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.ma-edition-image { display: grid; place-items: center; aspect-ratio: 1.4; background: var(--ocean); padding: 18px; margin-bottom: 24px; overflow: hidden; }
.ma-edition:nth-child(2) .ma-edition-image { background: var(--paper); }
.ma-edition:nth-child(3) .ma-edition-image { background: var(--ocean); }
.ma-edition-image img { width: 100%; height: auto; mix-blend-mode: multiply; transition: transform 700ms var(--ease-out); }
.ma-edition h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; font-weight: 600; margin-bottom: 12px; }
.ma-edition p { max-width: 40ch; margin-bottom: 24px; }
.ma-edition-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 16px; }
.ma-edition-bottom > span { text-decoration: underline; text-underline-offset: 5px; }
.ma-edition:hover .ma-edition-image img { transform: scale(1.05); }
.ma-edition:hover .ma-edition-bottom > span { text-decoration-color: var(--accent); }
.ma-edition:active .ma-edition-image img { transform: scale(1.02); }
.ma-editions > .ma-note { max-width: 95ch; margin-top: 28px; }

.ma-projection { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; padding: 48px; background: var(--ocean); }
.ma-projection-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ma-projection-copy > p:not(.ma-statement) { max-width: 43ch; }
.ma-projection-visual { min-width: 0; }
/* One 5:4 Africa window: x640/y235, 580x464 in the 1701x935 Political/Physical artwork.
   English Educational/Physical are registered to the same geography by uniform scale/translation.
   Uniform scaling preserves the artwork's aspect ratio. The original image files stay intact. */
.modern-atlas .plate { --map-width: 293.275862%; --map-left: -110.344828%; --map-top: -50.646552%; position: relative; overflow: hidden; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 1.25; clip-path: none; background: var(--white); }
.modern-atlas .plate[data-plate-edition="educational"] { --map-width: 303.932194%; --map-left: -115.604975%; --map-top: -54.098480%; }
.modern-atlas .plate[data-plate-edition="physical"] { --map-width: 299.560316%; --map-left: -113.526377%; --map-top: -52.934060%; }
.modern-atlas .plate img { position: absolute; max-width: none; height: auto; object-fit: contain; }
.modern-atlas #plate-image { width: var(--map-width); left: var(--map-left); top: var(--map-top); }
/* The Political supplier detail is registered to the unchanged full-map window.
   No source changes, sharpening filters or synthetic cartographic pixels are added. */
.modern-atlas .plate[data-plate-edition="political"] { --detail-width: 58.611819%; --detail-left: 6.991461%; --detail-top: 13.485499%; }
/* The new English details cover only North/Central Africa and have visible colour/JPEG
   differences from their full maps. Show those originals separately on product pages. */
.modern-atlas .plate-detail { width: var(--detail-width); left: var(--detail-left); top: var(--detail-top); }
.modern-atlas .plate-detail[hidden] { display: none; }
.ma-detail figcaption { padding-top: 12px; text-align: center; }
.modern-atlas .tabs { justify-content: center; gap: 10px; margin-top: 20px; }
.modern-atlas .tabs button { border: 0; border-radius: 999px; padding: 10px 18px; font-size: 16px; color: var(--ink); background: var(--white); }
.modern-atlas .tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); font-weight: 600; }
.modern-atlas .tabs button:hover { background: var(--accent); color: var(--ink); }
.modern-atlas .tabs button:active { transform: scale(.96); }

.ma-size-layout { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: stretch; }
.ma-size-copy { display: flex; flex-direction: column; gap: 24px; justify-content: center; align-items: flex-start; }
.ma-size-copy p { max-width: 33ch; }
.modern-atlas .ma-room { height: 540px; min-height: 0; background: var(--paper); }
.modern-atlas .room-sizes { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
.modern-atlas .room-label { font-size: 16px; }
.modern-atlas .room-buttons { justify-content: flex-start; gap: 8px; }
.modern-atlas .room-buttons button { flex: 1; padding-inline: 4px; min-width: 44px; font-size: 16px; }
.modern-atlas .room-caption { font-size: 14px; }

.ma-organisations { display: grid; grid-template-columns: 6fr 5fr; gap: 96px; background: var(--ink); color: var(--white); padding: 64px 48px; }
.ma-organisation-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ma-organisation-copy .ma-note { color: #cecece; }
.ma-organisation-copy .button { margin-top: 8px; }
.ma-audiences { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.ma-audiences h3 { font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.ma-audiences p { max-width: 44ch; }
.ma-organisations :focus-visible { outline-color: var(--accent); }

.modern-atlas .products { gap: 40px 24px; }
.modern-atlas .product-tile { background: var(--paper); padding: 20px; }
.modern-atlas .product-tile img { mix-blend-mode: multiply; }
.modern-atlas .product-name, .modern-atlas .product-finish { font-size: 16px; }
.modern-atlas .product-price { font-size: 24px; }
.modern-atlas .product:hover .product-tile { background: var(--ocean); }
.finishes > .ma-note { margin-top: 32px; max-width: 90ch; }
.modern-atlas .faq { grid-template-columns: 4fr 8fr; gap: 48px; }
.modern-atlas .faq > h2 { max-width: none; }
.modern-atlas .cards { display: grid; gap: 8px; }
.modern-atlas .card { margin-top: 0; background: var(--paper); --bgc: var(--paper); }
.modern-atlas .card:has(.card-q[aria-expanded="true"]) { --bgc: var(--ocean); }
.modern-atlas .card-q { position: relative; font-size: 19px; padding: 24px 64px 24px 24px; min-height: 72px; }
.modern-atlas .card-q::after { content: '+'; position: absolute; right: 24px; top: 20px; font-size: 24px; font-weight: 400; }
.modern-atlas .card-q[aria-expanded="true"]::after { content: '−'; }
.modern-atlas .card-q:hover { background: var(--ocean); }
.modern-atlas .card-a { padding: 0 24px 28px; }
.modern-atlas .card-a p { max-width: 56ch; color: var(--ink); }
.ma-close { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; background: var(--paper); padding: 48px; }
/* Keep ICC-managed map colours unchanged by the surrounding surface. */
.ma-close > img { width: 100%; height: auto; mix-blend-mode: normal; }
.ma-close > div { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ma-close h2 { max-width: 11ch; }

@media (min-width: 1700px) {
  .ma-hero { max-width: 1700px; margin-inline: auto; }
  .ma-section { max-width: calc(1700px - 2 * var(--margin)); margin-inline: auto; }
}
@media (max-width: 1100px) {
  .modern-atlas .bar { gap: 20px; }
  .ma-menu { display: block; }
  .ma-menu summary { padding: 10px 4px; font-size: 16px; font-weight: 600; cursor: pointer; }
  .ma-menu nav { position: absolute; inset: 100% var(--margin) auto; background: var(--ink); padding: 12px 24px 24px; display: grid; gap: 4px; }
  .ma-menu nav a { display: block; padding-block: 12px; text-decoration: none; }
  .ma-menu nav a:hover { color: var(--accent); }
  .ma-hero { gap: 32px; grid-template-columns: 1fr 1fr; padding-top: 48px; }
  .ma-hero h1 { font-size: 48px; }
  .ma-intro { font-size: 16px; }
  .ma-specimens { gap: 16px 8px; }
  .ma-specimen { font-size: 14px; }
  .ma-main-map figcaption { font-size: 14px; }
  .ma-projection { gap: 36px; padding: 32px; grid-template-columns: 1fr 1fr; }
  .modern-atlas .tabs { gap: 6px; flex-wrap: wrap; }
  .modern-atlas .tabs button { padding-inline: 12px; }
  .ma-edition-catalogue { gap: 20px; }
  .ma-edition-bottom { flex-direction: column; }
  .ma-size-layout { grid-template-columns: 1fr 1.5fr; gap: 32px; }
  .ma-organisations { padding: 40px 32px; gap: 48px; }
  .modern-atlas .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
  .modern-atlas .product-tile { padding: 12px; }
  .modern-atlas .faq { grid-template-columns: 1fr 2fr; gap: 32px; }
  .ma-close { gap: 32px; padding: 32px; }
}
@media (max-width: 760px) {
  .modern-atlas { --margin: 20px; --section: 88px; }
  .modern-atlas .bar { justify-content: space-between; }
  .modern-atlas .bar-mark img { width: 180px; }
  .modern-atlas .bar-action { display: none; }
  .ma-hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 32px; gap: 40px; }
  .ma-hero-copy { padding-bottom: 0; }
  .ma-hero h1 { font-size: clamp(40px, 11.3vw, 64px); margin-bottom: 24px; }
  .ma-intro { font-size: 17px; max-width: 38ch; }
  .ma-hero-action { gap: 20px; margin-top: 24px; }
  .ma-price { margin-top: 24px; }
  .ma-price strong { font-size: 24px; }
  .ma-main-map figcaption { gap: 4px; }
  .ma-specimens { gap: 20px 10px; }
  .ma-specimen > span { aspect-ratio: 1; }
  .ma-specimen { font-size: 14px; }
  .ma-section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .ma-section-head p { justify-self: start; }
  .ma-edition-catalogue { grid-template-columns: 1fr; gap: 40px; }
  .ma-edition-image { aspect-ratio: 1.7; margin-bottom: 20px; }
  .ma-edition h3 { margin-bottom: 12px; }
  .ma-edition p { margin-bottom: 20px; }
  .ma-edition-bottom { flex-direction: row; }
  .ma-editions > .ma-note { margin-top: 24px; }
  .ma-projection { grid-template-columns: 1fr; padding: 28px 20px; gap: 32px; }
  .ma-projection-copy { gap: 24px; }
  .modern-atlas .tabs { margin-top: 20px; gap: 6px; }
  .modern-atlas .tabs button { font-size: 14px; padding: 12px 10px; }
  .ma-size-layout { grid-template-columns: 1fr; gap: 28px; }
  .ma-size-copy { gap: 20px; }
  .ma-size-copy p { max-width: none; }
  .modern-atlas .ma-room { height: 450px; }
  .modern-atlas .room-sizes { padding: 12px; left: 8px; right: 8px; bottom: 8px; }
  .modern-atlas .room-buttons { gap: 4px; }
  .modern-atlas .room-buttons button { min-width: 0; }
  .ma-organisations { grid-template-columns: 1fr; padding: 32px 20px; gap: 40px; }
  .ma-audiences { gap: 32px; }
  .ma-audiences h3 { font-size: 24px; }
  .modern-atlas .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .modern-atlas .product-tile { padding: 12px; }
  .modern-atlas .faq { grid-template-columns: 1fr; gap: 28px; }
  .modern-atlas .faq > h2 { margin: 0; }
  .modern-atlas .card-q { padding: 20px 48px 20px 20px; font-size: 17px; }
  .modern-atlas .card-q::after { right: 20px; top: 18px; }
  .modern-atlas .card-a { padding: 0 20px 24px; }
  .ma-close { display: flex; flex-direction: column-reverse; gap: 32px; padding: 28px 20px; align-items: stretch; }
  .ma-close h2 { max-width: none; }
  .ma-close > div { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .modern-atlas *, .modern-atlas *::before, .modern-atlas *::after { animation: none; transition: none; scroll-behavior: auto; }
}
