/* The Amsterdam Adventure: signature layer.
   Rice paper as a key element (left edge + top band, solid in the top-left corner),
   the blue mantra band, a phone-first design with contrasting bands, snap and motion. Loaded last. */

:root { --amx-paper: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="260" height="260"%3E%3Cfilter id="a" x="0" y="0"%3E%3CfeTurbulence stitchTiles="stitch" type="fractalNoise" baseFrequency=".012 .03" numOctaves="3" seed="11"/%3E%3CfeColorMatrix values="0 0 0 0 .80  0 0 0 0 .70  0 0 0 0 .45  0 0 0 .55 -.12"/%3E%3C/filter%3E%3Cfilter id="b" x="0" y="0"%3E%3CfeTurbulence stitchTiles="stitch" type="fractalNoise" baseFrequency=".9 .07" numOctaves="2" seed="4"/%3E%3CfeColorMatrix values="0 0 0 0 .62  0 0 0 0 .54  0 0 0 0 .36  0 0 0 1.1 -.62"/%3E%3C/filter%3E%3Cfilter id="c" x="0" y="0"%3E%3CfeTurbulence stitchTiles="stitch" type="fractalNoise" baseFrequency="1.6" numOctaves="1" seed="2"/%3E%3CfeColorMatrix values="0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .32  0 0 0 .9 -.55"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" fill="%23fbf6e8"/%3E%3Crect width="100%25" height="100%25" filter="url(%23a)"/%3E%3Crect width="100%25" height="100%25" filter="url(%23b)" opacity=".55"/%3E%3Crect width="100%25" height="100%25" filter="url(%23c)" opacity=".35"/%3E%3C/svg%3E'); --amx-paper-tone: #fbf6e8; --amx-gold: #f0b85e; }

/* ---------- rice paper: wide, smooth left edge that the text slides over ---------- */
body.amx::after {
  width: clamp(120px, 26vw, 460px);
  background: var(--amx-paper) 0 0 / 260px 260px repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.96) 10%, rgba(0,0,0,.86) 22%, rgba(0,0,0,.7) 34%, rgba(0,0,0,.52) 46%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.09) 82%, rgba(0,0,0,.025) 92%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.96) 10%, rgba(0,0,0,.86) 22%, rgba(0,0,0,.7) 34%, rgba(0,0,0,.52) 46%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.09) 82%, rgba(0,0,0,.025) 92%, transparent 100%);
}
/* top band fading down; together with the left edge the top-left corner becomes solid paper */
html::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: clamp(200px, 20vw, 320px);
  background: var(--amx-paper) 0 0 / 260px 260px repeat; pointer-events: none;
  -webkit-mask-image: radial-gradient(130% 100% at 0 0, #000 0%, rgba(0,0,0,.82) 22%, rgba(0,0,0,.5) 46%, rgba(0,0,0,.2) 70%, transparent 94%), linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.4) 30%, rgba(0,0,0,.16) 62%, transparent 100%);
          mask-image: radial-gradient(130% 100% at 0 0, #000 0%, rgba(0,0,0,.82) 22%, rgba(0,0,0,.5) 46%, rgba(0,0,0,.2) 70%, transparent 94%), linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.4) 30%, rgba(0,0,0,.16) 62%, transparent 100%);
}
.amx-chapters { background: rgba(246, 244, 239, .55); }
@media print { html::before { display: none; } }

/* ---------- footer: one blue band like the banner, mantra in off-white at the bottom ---------- */
.amx-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 0; color: rgba(255, 250, 240, .8);
  background: #142a46 url("../images/hero-canal-art.jpg") center 70% / cover no-repeat; }
.amx-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 38, 64, .95) 0%, rgba(22, 48, 80, .88) 50%, rgba(27, 58, 96, .8) 100%); }
.amx-footer__prompt { color: #fff; }
.amx-footer__heading { color: rgba(255, 250, 240, .55); }
.amx-footer__menu a { color: #fff; }
.amx-footer__menu a:hover { color: var(--amx-gold); }
.amx-footer__copy { color: rgba(255, 250, 240, .62); }
.amx-footer .amx-logo { color: #fff; }
.amx-footer .amx-btn { background: #fff; border-color: #fff; color: var(--navy); }
.amx-footer .amx-btn:hover { background: var(--amx-gold); border-color: var(--amx-gold); color: var(--navy); }
.amx-footer .amx-btn--line { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.amx-footer .amx-btn--line:hover { background: #fff; border-color: #fff; color: var(--navy); }
.amx-footer__preorder { border-top-color: rgba(255, 255, 255, .14); }
.amx-orn .amx-footer__menu li::before { filter: brightness(0) invert(1); opacity: .55; }
.amx-footer__mantra { margin: 0; padding: 18px var(--gutter) 24px; border-top: 1px solid rgba(255, 255, 255, .1); background: none;
  color: rgba(255, 250, 240, .9); font: 11.5px/1.75 var(--ui); letter-spacing: .05em; text-align: center; }

/* ---------- motion: content settles in as it arrives ---------- */
html.amx-motion .amx-rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 700ms cubic-bezier(.2, .7, .2, 1), transform 700ms cubic-bezier(.2, .7, .2, 1); }
html.amx-motion .amx-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.amx-motion .amx-rv { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   PHONES
   ===================================================================== */
@media (max-width: 700px) {
  /* paper on phones: a soft edge, plus the top band */
  body.amx::after { width: 84px; }
  html::before { height: 230px; }

  .amx-footer__mantra-line { display: block; white-space: nowrap; }
  .amx-footer__mantra-sep { display: none; }

  /* slim sticky header that frosts on scroll; the title line scrolls away */
  .amx-header { position: sticky; top: -27px; z-index: 60; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); transition: background-color 250ms ease, box-shadow 250ms ease; }
  html.amx-scrolled .amx-header { background: rgba(255, 255, 255, .95); box-shadow: 0 12px 26px -20px rgba(16, 28, 44, .55); }
  .amx-header.is-menu-open { position: relative; top: 0; background: #fff; }
  .amx-id { border-bottom: 0; }
  .amx-id__text { padding: 8px 0 7px; line-height: 12px; }
  .amx-bar { border-bottom: 1px solid rgba(20, 30, 45, .07); }
  .amx-bar__inner { min-height: 52px; }

  /* ---------- home: alternating bands ---------- */
  html:has(body.ambook-home) { scroll-snap-type: y proximity; }
  body.ambook-home .amx-skip { scroll-snap-align: start; }
  body.ambook-home .amx-home-book, body.ambook-home .amx-mosaic, body.ambook-home .amx-team,
  body.ambook-home .amx-record-band, body.ambook-home .amx-notes, body.ambook-home .amx-strip, body.ambook-home .amx-footer { scroll-snap-align: start; scroll-margin-top: 52px; }

  /* hero: tall, image-led, words at the bottom */
  .amx-band--home { display: flex; align-items: flex-end; min-height: 66svh; background-position: 62% 40%; }
  .amx-band--home::before { background: linear-gradient(180deg, rgba(18, 36, 60, .28) 0%, rgba(18, 36, 60, .55) 42%, rgba(14, 28, 48, .96) 100%); }
  .amx-band--home .amx-band__inner { width: 100%; padding-block: 48px 30px; }
  .amx-band--home .amx-band__sub { max-width: 30ch; margin-top: 10px; font-size: 14px; color: rgba(255, 250, 240, .88); }
  .amx-band--home .amx-band__actions { margin-top: 22px; }
  .amx-band--home .amx-btn--invert { min-height: 48px; padding: 12px 22px; font-size: 14px; background: rgba(255, 255, 255, .1); }

  /* chapter slider: one card centred, neighbours peeking and dimmed */
  .amx-slider { padding-top: 18px; }
  .amx-slider__track { gap: 12px; padding-inline: 8vw; scroll-padding-inline: 8vw; }
  .amx-slider__slide { flex: 0 0 84vw; scroll-snap-align: center; transition: opacity 380ms ease, transform 420ms cubic-bezier(.2, .7, .2, 1); }
  .amx-slider.is-ready .amx-slider__slide:not(.is-active) { opacity: .42; transform: scale(.93); }
  .amx-slider__card { background: #fff; box-shadow: 0 18px 34px -26px rgba(16, 28, 44, .6); }
  .amx-slider__media { aspect-ratio: 3 / 2; }
  .amx-slider__body { padding: 14px 16px 16px; }
  .amx-slider__title { font-size: 16px; line-height: 1.28; }
  .amx-slider__btn { height: calc(84vw * 2 / 3); width: 44px; font-size: 44px; background: none; }
  @supports (height: 1cqw) { .amx-slider__btn { height: calc(84cqw * 2 / 3); } }
  .amx-slider__dots { padding: 14px 12px 22px; }

  /* topic mosaic stays black, two across; titles appear as tiles pass the middle of the screen */
  .amx-mosaic__title { padding: 10px 10px 11px; }

  /* the book team on rice paper */
  .amx-team { padding-block: 46px 50px; background: var(--amx-paper-tone) var(--amx-paper) 0 0 / 260px 260px repeat; border: 0; }
  .amx-team__cover { width: min(58vw, 220px); justify-self: center; }
  .amx-team .amx-section-title { font-size: 1.6rem; }

  /* archive call-out as a full navy band */
  .amx-record-band { padding: 0 !important; }
  .amx-record-band .amx-wrap { padding: 0; }
  .amx-record-band .amx-record { padding: 42px var(--gutter) 46px; border-left: 0; background: var(--navy); color: rgba(255, 250, 240, .86); }
  .amx-record-band .amx-label { color: var(--amx-gold); }
  .amx-record-band .amx-record__title { color: #fff; font-size: 1.75rem; }
  .amx-record-band .amx-record__text { color: rgba(255, 250, 240, .84); }
  .amx-record-band .amx-btn { background: #fff; border-color: #fff; color: var(--navy); width: 100%; }

  /* notes on white */
  .amx-notes { padding-block: 34px 30px; border-top: 0; }

  .amx-strip__link { padding-block: 24px; }
  .amx-strip__title { font-size: 1.15rem; }

  /* footer on phones */
  .amx-footer__grid { padding-block: 40px 34px; }
  .amx-footer__prompt { font-size: 15px; }
  .amx-footer__menu a { min-height: 40px; }
  .amx-footer .amx-btn { width: 100%; }
  .amx-footer__mantra { padding: 22px 10px 28px; font-size: 11.5px; letter-spacing: .01em; line-height: 1.9; }

  /* ---------- inner pages ---------- */
  .amx-chapter-head { margin: 0 calc(var(--gutter) * -1) 26px; padding: 30px var(--gutter) 28px; background: var(--navy); border-bottom: 0; }
  .amx-chapter-head__marker { color: var(--amx-gold); }
  .amx-chapter-head__title { color: #fff; }
  .amx-chapter-head__line { color: rgba(255, 250, 240, .78); }
  .amx-orn .amx-chapter-head__title::after { filter: brightness(0) invert(1) sepia(.35); opacity: .6; }

  .amx-page-head { margin: 0 calc(var(--gutter) * -1) 26px; padding: 30px var(--gutter) 26px; background: var(--amx-paper-tone) var(--amx-paper) 0 0 / 260px 260px repeat; }
  .amx-page-head__deck { color: var(--ink-2); }

  .amx-topic-head > div { padding-top: 4px; }

  .amx-prose figure, .amx-prose .wp-block-image { margin-inline: calc(var(--gutter) * -1); }
  .amx-prose figcaption, .amx-prose .wp-element-caption { padding-inline: var(--gutter); }

  /* previous / next as a navy bar */
  .amx-step { margin: 10px calc(var(--gutter) * -1) 0; padding: 0; gap: 0; border-top: 0; background: var(--navy); }
  .amx-step__link { min-height: 86px; padding: 20px var(--gutter) 22px; color: #fff; }
  .amx-step__link + .amx-step__link { border-left: 1px solid rgba(255, 255, 255, .14); }
  .amx-step__link:active { background: rgba(255, 255, 255, .07); }
  .amx-step__dir { color: #fff; }
  .amx-step__label { color: rgba(255, 250, 240, .66); }
  .amx-step__spacer { display: none; }

  /* timeline: a sticky, swipeable year bar */
  nav:has(> .amx-years) { position: sticky; top: 52px; z-index: 20; margin: 0 calc(var(--gutter) * -1) 22px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
  .amx-years { flex-wrap: nowrap; margin: 0; padding: 4px var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .amx-years::-webkit-scrollbar { display: none; }
  .amx-years li { flex: 0 0 auto; scroll-snap-align: start; }
  .amx-years a { min-height: 44px; }
  .amx-timeline__year { scroll-margin-top: 112px; }

  .amx-btn { min-height: 48px; }
}
@media (max-width: 350px) { .amx-footer__mantra { font-size: 10.5px; } }

/* ---------- archive contribution form: warm, simple, phone-friendly ---------- */
.amx-contrib { max-width: 40rem; }
.amx-contrib__lead { margin: 0 0 22px; font-family: var(--amx-f-head, Georgia, serif); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.amx-contrib__steps { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: amxstep; }
.amx-contrib__steps li { position: relative; counter-increment: amxstep; padding: 0 0 16px 46px; line-height: 1.6; }
.amx-contrib__steps li::before { content: counter(amxstep); position: absolute; left: 0; top: -2px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 14px/1 var(--amx-f-head, Georgia, serif); }
.amx-contrib__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.amx-contrib__form { display: grid; gap: 18px; }
.amx-contrib__card { margin: 0; padding: 22px 22px 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .86); }
.amx-contrib__card legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; display: flex; align-items: center; gap: 12px; font-family: var(--amx-f-head, Georgia, serif); font-weight: var(--amx-w-head, 560); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.2rem; color: var(--ink); }
.amx-contrib__card legend + * { clear: both; }
.amx-contrib__num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--amx-paper-tone, #fbf6e8); border: 1px solid var(--line); font-size: 14px; color: var(--accent-ink); }
.amx-contrib__card--send { padding-bottom: 14px; background: var(--amx-paper-tone, #fbf6e8) var(--amx-paper, none) 0 0 / 260px 260px repeat; }
.amx-contrib__hint { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.amx-field { margin: 0 0 16px; }
.amx-field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.amx-field label span { color: var(--muted); font-size: 12.5px; }
.amx-contrib input[type="text"], .amx-contrib input[type="email"], .amx-contrib textarea, .amx-contrib select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 16px/1.4 var(--amx-f-body, Verdana, sans-serif); border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.amx-contrib textarea { min-height: 110px; resize: vertical; }
.amx-contrib select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23364' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 38px; }
.amx-contrib input:focus, .amx-contrib textarea:focus, .amx-contrib select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40, 90, 140, .15); }
.amx-contrib ::placeholder { color: #9aa1a8; }
.amx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.amx-check { margin: 0 0 14px; }
.amx-check label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.amx-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.amx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* file chooser */
.amx-drop { position: relative; display: grid; justify-items: center; gap: 6px; margin: 0 0 18px; padding: 26px 18px 22px; border: 1.5px dashed #b9b1a0; background: var(--amx-paper-tone, #fbf6e8); text-align: center; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.amx-drop:hover, .amx-drop:focus-within { border-color: var(--accent); }
.amx-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.amx-drop__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 300 28px/1 var(--amx-f-head, Georgia, serif); }
.amx-drop__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.amx-drop__text strong { color: var(--ink); font-weight: 600; }
.amx-drop__name { font-size: 13.5px; color: var(--accent-ink); word-break: break-all; }
.amx-drop__name:empty { display: none; }
.amx-drop__meta { font-size: 12px; color: var(--muted); }
.amx-drop.has-file { border-style: solid; border-color: var(--accent); background: #fff; }
.amx-drop.has-file .amx-drop__icon { background: #2e7d32; }

/* kind choices as large buttons */
.amx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.amx-choice { position: relative; cursor: pointer; }
.amx-choice input { position: absolute; opacity: 0; }
.amx-choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; line-height: 1.3; text-align: center; transition: all 180ms ease; }
.amx-choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.amx-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* notices */
.amx-contrib__notice { margin: 0 0 22px; padding: 16px 18px; border-left: 4px solid var(--accent); background: #eef3f8; }
.amx-contrib__notice p { margin: 0; font-size: 14px; line-height: 1.6; }
.amx-contrib__notice-title { margin-bottom: 4px !important; font-family: var(--amx-f-head, Georgia, serif); font-size: 1.1rem !important; color: var(--ink); }
.amx-contrib__notice--ok { border-left-color: #2e7d32; background: #eef6ee; }
.amx-contrib__notice--error { border-left-color: #b3261e; background: #fbeeec; }
.amx-contrib__submit { width: 100%; min-height: 52px; font-size: 15px; }
.amx-contrib__submit:disabled { opacity: .7; cursor: progress; }

@media (max-width: 700px) {
  .amx-contrib__card { margin-inline: calc(var(--gutter) * -1); padding: 20px var(--gutter) 4px; border-inline: 0; }
  .amx-contrib__card--send { padding-bottom: 12px; }
  .amx-field-row { grid-template-columns: 1fr; }
  .amx-contrib__lead { font-size: 1.1rem; }
  .amx-contrib__actions .amx-btn { flex: 1 1 100%; }
}

/* social sign-in inside the form */
.amx-contrib__social { margin: 0 0 6px; }
.amx-contrib__social .nsl-container { margin: 0 0 4px; }
.amx-contrib__social .nsl-container-buttons { display: grid !important; gap: 10px; }
.amx-contrib__social .nsl-button { width: 100% !important; min-height: 48px; border-radius: 0 !important; box-shadow: none !important; }
.amx-contrib__or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 13px; }
.amx-contrib__or::before, .amx-contrib__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =====================================================================
   ONE GROUND: the page is white with the rice paper beneath everything.
   Light surfaces are transparent or see-through tints, so the paper always
   shows through and its fade meets every element at the same pixel.
   Paper bands use the same texture fixed to the screen, so they line up exactly.
   ===================================================================== */
:root {
  --bg: transparent; --surface: transparent;
  --shade: rgba(70, 58, 36, .05); --shade-2: rgba(70, 58, 36, .09);
  --accent-tint: rgba(40, 90, 140, .08);
  --amx-paper-band: var(--amx-paper-tone) var(--amx-paper) 0 0 / 260px 260px repeat fixed;
}
html::before { background-attachment: fixed; }

/* header, chapter bar, search panel, menus */
.amx-header, .amx-id, .amx-bar, .amx-chapters, .amx-search, .amx-header.is-menu-open { background: transparent; }
.amx-chapters__link:hover, .amx-chapters__link[aria-current="page"],
.amx-chapters__book:hover, .amx-chapters__book[aria-current="page"],
.amx-tool:hover, .amx-tool--search[aria-expanded="true"] { background: rgba(30, 50, 80, .06); }

/* slider */
.amx-slider, .amx-slider__card, .amx-slider__dots { background: transparent; }

/* panels, cards, notices, quotes */
.amx-support-hero, .amx-empty, .amx-filter, .amx-notice, .amx-original, .amx-contrib__card,
.amx-prose blockquote, .amx-prose .wp-block-quote, .amx-prose .wp-block-pullquote { background: transparent; }
.amx-prose .has-white-background-color, .amx-prose .has-base-background-color { background-color: transparent !important; }
.amx-contrib__notice { background: rgba(40, 90, 140, .08); }
.amx-contrib__notice--ok { background: rgba(46, 125, 50, .09); }
.amx-contrib__notice--error { background: rgba(179, 38, 30, .07); }
.amx-video__badge { background: rgba(255, 255, 255, .78); }
.amx-video__placeholder::after { background-color: rgba(255, 255, 255, .7); }
.page-numbers, .amx-pagination a, .amx-pagination span { background: transparent; }

/* form fields sit on the ground; fields inside dark bands stay white for reading */
.amx-contrib input[type="text"], .amx-contrib input[type="email"], .amx-contrib textarea, .amx-contrib select,
.amx-form input[type="text"], .amx-form input[type="email"], .amx-form input[type="tel"], .amx-form input[type="number"],
.amx-form textarea, .amx-form select, .amx-searchform__field { background-color: transparent; }
.amx-band .amx-searchform__field, .amx-record-band .amx-searchform__field, .amx-footer input, .amx-footer textarea { background-color: #fff; }
.amx-choice span, .amx-drop, .amx-drop.has-file, .amx-contrib__num { background: transparent; }

/* paper bands: same texture, fixed to the screen like the edge strip */
.amx-contrib__card--send { background: var(--amx-paper-band); }

/* timeline dots: solid, so the line never shows through */
.amx-event::before { background: var(--accent); border-color: var(--accent); }

@media (max-width: 700px) {
  /* no sticky bars: nothing white slides over the paper */
  .amx-header, html.amx-scrolled .amx-header { position: relative; top: auto; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .amx-header.is-menu-open { background: transparent; }
  html:has(body.ambook-home) { scroll-padding-top: 0; }
  body.ambook-home .amx-home-book, body.ambook-home .amx-mosaic, body.ambook-home .amx-team,
  body.ambook-home .amx-record-band, body.ambook-home .amx-notes, body.ambook-home .amx-strip, body.ambook-home .amx-footer { scroll-margin-top: 0; }
  nav:has(> .amx-years) { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .amx-timeline__year { scroll-margin-top: 16px; }

  .amx-slider__card { background: transparent; box-shadow: none; }
  .amx-team, .amx-page-head { background: var(--amx-paper-band); }
}

/* =====================================================================
   SLIDER: one continuous row of photos, flush under the hero, no gaps.
   Pronounced round arrows over the first and last visible photos.
   ===================================================================== */
.amx-slider, .amx-home-book .amx-slider { margin-top: 0; padding-top: 0; }
.amx-slider__track { gap: 0; padding-inline: 0; scroll-padding-inline: 0; }
.amx-slider__slide { scroll-snap-align: start; opacity: 1; transform: none; }
.amx-slider.is-ready .amx-slider__slide:not(.is-active) { opacity: 1; transform: none; }
.amx-slider__card { box-shadow: none; }

.amx-slider__btn { width: clamp(64px, 5.4vw, 84px); background: linear-gradient(90deg, rgba(8, 16, 28, .55), rgba(8, 16, 28, 0)); font-size: 0; }
.amx-slider__btn--next { background: linear-gradient(270deg, rgba(8, 16, 28, .55), rgba(8, 16, 28, 0)); }
.amx-slider__btn span {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(12, 24, 42, .66); color: #fff;
  font: 400 42px/1 var(--amx-f-head, Georgia, serif); font-variation-settings: "SOFT" 100, "WONK" 1;
  padding-bottom: 5px; text-shadow: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transform: none; transition: background 200ms ease, color 200ms ease, transform 220ms cubic-bezier(.2, .7, .2, 1);
}
.amx-slider__btn--prev span { padding-right: 3px; }
.amx-slider__btn--next span { padding-left: 3px; }
.amx-slider__btn:hover span, .amx-slider__btn:focus-visible span { background: #fff; color: var(--navy); }
.amx-slider__btn--prev:hover span { transform: translateX(-3px); }
.amx-slider__btn--next:hover span { transform: translateX(3px); }
.amx-slider__btn:hover { background-color: transparent; }

@media (max-width: 700px) {
  /* compact hero again, slider straight beneath it */
  .amx-band--home { display: block; min-height: 0; }
  .amx-band--home::before { background: linear-gradient(90deg, rgba(20, 42, 70, .92) 0%, rgba(24, 52, 86, .8) 45%, rgba(29, 62, 101, .6) 100%); }
  .amx-band--home .amx-band__inner { padding-block: 24px 24px; }
  .amx-home-title { font-size: calc(clamp(1.9rem, 9.4vw, 2.4rem) * var(--amx-head-scale)); }
  .amx-band--home .amx-band__sub { margin-top: 6px; font-size: 13.5px; }
  .amx-band--home .amx-band__actions { margin-top: 14px; }
  .amx-band--home .amx-btn--invert { min-height: 44px; padding: 10px 18px; font-size: 13.5px; }

  /* photos edge to edge, the next one peeking in on the right */
  .amx-slider { padding-top: 0; }
  .amx-slider__track { gap: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .amx-slider__slide { flex: 0 0 84vw; scroll-snap-align: start; transition: none; }
  .amx-slider__media { aspect-ratio: 3 / 2; }
  .amx-slider__body { padding: 12px 16px 6px; }
  .amx-slider__btn { width: 56px; height: calc(84vw * 2 / 3); background: linear-gradient(90deg, rgba(8, 16, 28, .5), rgba(8, 16, 28, 0)); }
  .amx-slider__btn--next { background: linear-gradient(270deg, rgba(8, 16, 28, .5), rgba(8, 16, 28, 0)); }
  @supports (height: 1cqw) { .amx-slider__btn { height: calc(84cqw * 2 / 3); } }
  .amx-slider__btn span { width: 42px; height: 42px; font-size: 36px; padding-bottom: 4px; }
}

/* phones: no hero; the slider opens the page, the title stays for screen readers and search */
.amx-mobile-contribute { display: none; }
@media (max-width: 700px) {
  .amx-home-book { position: relative; }
  .amx-band--home { position: absolute !important; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .amx-band--home .amx-band__sub, .amx-band--home .amx-band__actions { display: none; }
  .amx-home-book .amx-slider__dots { padding-bottom: 12px; }
  .amx-mobile-contribute { display: flex; justify-content: center; margin: 0; padding: 0 var(--gutter) 24px; }
  .amx-mobile-contribute .amx-btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }
}

/* phones: the first screen is one composed page: menu bar, slider, bullets, contribute */
.amx-orn .amx-id__rule { flex-basis: 22px; height: 11px; background: url("../images/taa/ultra-minimalist-hippiedesign-option/bullets/level-1/front-of-each-paragraph--ornament-blueband-lilac-blossom.png") center / contain no-repeat; }
.amx-orn .amx-id__rule:last-child { transform: scaleX(-1); }
.amx-id__text { color: var(--accent-ink); }
@media (max-width: 700px) {
  .amx-id__text { padding: 9px 0 8px; font-size: 10.5px; letter-spacing: .26em; gap: 10px; }
  .amx-bar { border-bottom: 1px solid rgba(20, 30, 45, .08); }

  body.ambook-home { --amx-m-media-h: clamp(200px, calc(100svh - var(--amx-hb-top, 82px) - 352px), 470px); }
  body.ambook-home .amx-home-book { display: flex; flex-direction: column; min-height: calc(100svh - var(--amx-hb-top, 82px)); }
  body.ambook-home .amx-slider { flex: 0 0 auto; }
  body.ambook-home .amx-slider__media { aspect-ratio: auto; height: var(--amx-m-media-h); }
  body.ambook-home .amx-slider__btn { height: var(--amx-m-media-h); }
  body.ambook-home .amx-slider__dots { padding: 12px 12px 6px; }
  .amx-mobile-contribute { flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 120px; padding: 10px var(--gutter) 26px; text-align: center; }
  .amx-mobile-contribute::before { content: ""; display: block; width: 120px; height: 14px; background: var(--amx-divider, none) center / contain no-repeat; opacity: .9; }
  .amx-mobile-contribute__lead { margin: 0; max-width: 28ch; font-family: var(--amx-f-head, Georgia, serif); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.02rem; line-height: 1.4; color: var(--ink-2); }
  .amx-mobile-contribute .amx-btn { min-height: 46px; padding: 11px 24px; font-size: 14px; }
}

/* phones: the title line moves under the menu bar and becomes a small title block (replaces the hero) */
.amx-id__sub { display: none; }
@media (max-width: 700px) {
  .amx-header { display: flex; flex-direction: column; }
  .amx-bar { order: 1; }
  .amx-chapters { order: 2; }
  .amx-id { order: 3; border: 0; }
  .amx-id__inner { flex-direction: column; align-items: center; gap: 4px; padding-block: 16px 16px; }
  .amx-id__text { padding: 0; gap: 10px; font-family: var(--amx-f-head, Georgia, serif); font-weight: var(--amx-w-head, 560); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.12rem, 5.3vw, 1.38rem); line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .amx-id__link, .amx-id__link:visited, .amx-id__link:hover { color: var(--ink); }
  .amx-orn .amx-id__rule { flex-basis: 20px; height: 10px; }
  .amx-id__sub { display: block; margin: 0; font: 12px/1.4 var(--ui); letter-spacing: .06em; color: var(--muted); text-align: center; }
  .amx-bar { border-bottom: 1px solid rgba(20, 30, 45, .08); }
}
@media (max-width: 700px) {
  .amx-id__rule, .amx-orn .amx-id__rule { display: none; }
  .amx-id__text { font-size: clamp(1.08rem, 5.15vw, 1.4rem); white-space: nowrap; }
  .amx-id__sub::before, .amx-id__sub::after { content: ""; display: inline-block; width: 18px; height: 9px; margin: 0 8px; vertical-align: 1px; background: url("../images/taa/ultra-minimalist-hippiedesign-option/bullets/level-1/front-of-each-paragraph--ornament-blueband-lilac-blossom.png") center / contain no-repeat; }
  .amx-id__sub::after { transform: scaleX(-1); }
  body.ambook-home { --amx-m-media-h: clamp(180px, calc(100svh - var(--amx-hb-top, 130px) - 352px), 470px); }
}
@media (max-width: 700px) and (max-height: 720px) {
  .amx-id__inner { padding-block: 10px 10px; }
  .amx-id__sub { display: none; }
}
@media (max-width: 360px) { .amx-id__sub::before, .amx-id__sub::after { display: none; } }
@media (max-width: 700px) {
  .amx-id__sub { white-space: nowrap; letter-spacing: .02em; font-size: 12px; }
  .amx-id__sub::before, .amx-id__sub::after { width: 16px; margin: 0 6px; }
}
@media (max-width: 384px) { .amx-id__sub::before, .amx-id__sub::after { display: none; } }

/* tablets in landscape and small laptops (900-1099px): the chapter line stays visible as a compact row */
@media (min-width: 900px) and (max-width: 1099px) {
  html.js .amx-chapters, html.js .amx-header.is-menu-open .amx-chapters { display: block; }
  .amx-chapters__inner { flex-direction: row; align-items: stretch; padding-block: 0; }
  .amx-chapters__book { justify-content: center; gap: 0; width: 44px; margin: 0 0 0 -10px; padding: 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .amx-chapters__book-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
  .amx-book-icon { width: 26px; height: 20px; }
  .amx-chapters__list { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
  .amx-chapters__item { border-bottom: 0; }
  .amx-chapters__item + .amx-chapters__item { border-left: 1px solid var(--line-soft); }
  .amx-chapters__link { display: block; min-height: 0; height: 100%; padding: 8px 7px 9px; }
  .amx-chapters__num { display: block; flex: none; margin: 0 0 3px; font-size: 10px; }
  .amx-chapters__title { display: block; font-size: 10.5px; line-height: 1.28; -webkit-hyphens: auto; hyphens: auto; }
}

/* Archives page: the band speaks as an invitation; the page title stays for search engines and screen readers only */
.amx-archive-band .amx-band__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.amx-archive-band .amx-band__sub { max-width: 40rem; }
.amx-archive-band__hk { display: block; margin-bottom: .28em; font-family: var(--amx-f-head); font-size: calc(clamp(1.9rem, 3.4vw, 2.7rem) * var(--amx-head-scale, 1)); line-height: 1.05; letter-spacing: -.01em; color: #fff; }

/* phones, Archives page: invitation + Contribute button + slider fill one screen */
@media (max-width: 700px) {
  body:has(.amx-archive-band) { --amx-m-media-h: clamp(150px, calc(100svh - var(--amx-slider-top, 130px) - 386px), 470px); }
  body:has(.amx-archive-band) .amx-slider { margin-bottom: 0; border-bottom: 0; }
  body:has(.amx-archive-band) .amx-slider__media { aspect-ratio: auto; height: var(--amx-m-media-h); }
  body:has(.amx-archive-band) .amx-slider__btn { height: var(--amx-m-media-h); }
  body:has(.amx-archive-band) .amx-slider__dots { padding: 10px 12px; }
  .amx-archive-band .amx-band__inner { display: flex; flex-direction: column; min-height: 0; padding-block: 20px 22px; }
  .amx-archive-band .amx-band__sub { order: 1; max-width: none; margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 250, 240, .94); }
  .amx-archive-band__hk { font-size: 27px; margin-bottom: .22em; }
  .amx-archive-band .amx-band__actions { order: 2; margin-top: 14px; }
  .amx-archive-band .amx-band__actions .amx-btn { width: 100%; min-height: 46px; font-size: 14px; justify-content: center; }
  .amx-archive-band .amx-searchform { order: 3; max-width: none; margin-top: 14px; }
}

/* phones, front page: the invitation under the slider (Hare Krishna + one sentence + Contribute) */
@media (max-width: 700px) {
  body.ambook-home { --amx-m-media-h: clamp(170px, calc(100svh - var(--amx-hb-top, 130px) - 404px), 470px); }
  .amx-mobile-contribute { gap: 12px; padding: 12px var(--gutter) 24px; }
  .amx-mobile-contribute__lead { max-width: 34ch; font-family: var(--amx-f-body, Verdana, sans-serif); font-variation-settings: normal; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
  .amx-mobile-contribute__hk { display: block; margin-bottom: 4px; font-family: var(--amx-f-head, Georgia, serif); font-weight: var(--amx-w-head, 560); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.36rem; line-height: 1.1; color: var(--ink); }
}
@media (max-width: 700px) and (max-height: 700px) {
  body.ambook-home { --amx-m-media-h: clamp(150px, calc(100svh - var(--amx-hb-top, 96px) - 374px), 470px); }
  .amx-mobile-contribute { gap: 10px; padding: 10px var(--gutter) 18px; }
  .amx-mobile-contribute::before { display: none; }
  .amx-mobile-contribute__hk { font-size: 1.22rem; }
}

/* phones: the first screen is never pulled up under the menu; only the later sections snap */
@media (max-width: 860px) {
  body.ambook-home .amx-home-book { scroll-snap-align: none; scroll-margin-top: 0; }
  body.ambook-home .amx-slider { scroll-snap-align: none; }
}
