/* articles.html — every magazine article, edition by edition (design "Variation 1 – Paper", 2026-11-11).
   Page built by tools/articles/build-overview.js. Theme colours only: site #F3F2EC #FFFEFB #C5A992 #74642F
   #EDEBE4 #2F2F2F and the cover colours set per edition in the page (--c, --bar, --num, --on). */

.ao {
  --page: #F3F2EC;
  --card: #FFFEFB;
  --ink: #2F2F2F;
  --body: #575757;
  --label: #6E6E6E;
  --line: #E2DBCD;
  --sand: #C5A992;
  --olive: #74642F;
  --light: #EDEBE4;
  --serif: "Prata", Georgia, serif;
  --sans: "Raleway", sans-serif;
  --caps: "Jost", sans-serif;
  --shadow: 0 1px 2px rgba(120, 96, 70, .05), 0 14px 40px -18px rgba(120, 96, 70, .25);
  --shadow-lift: 0 1px 2px rgba(70, 56, 40, .06), 0 18px 44px -14px rgba(70, 56, 40, .3);
  display: block;
  background: var(--page);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  padding-bottom: 96px;
}
.ao *, .ao *::before, .ao *::after { box-sizing: border-box; }
:where(.ao) p { margin: 0; }   /* :where keeps this weaker than the class rules below, which set their own margins */
.ao h1, .ao h2, .ao h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: 0; text-transform: none; margin: 0; }
.ao img { display: block; max-width: none; }
.ao-w { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.ao-i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ao-eyebrow { font-family: var(--caps); text-transform: uppercase; letter-spacing: .26em; font-size: 12.5px; color: var(--label); }

/* ---------- hero: the four covers fanned out ---------- */
.ao-hero { position: relative; padding: 78px 0 120px; background: radial-gradient(110% 90% at 78% 30%, #FFFEFB 0%, #F3F2EC 62%); }
.ao-hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 20px; align-items: center; }
.ao h1 { font-size: clamp(3.25rem, 2.2rem + 3.2vw, 5.75rem); line-height: 1.02; margin: 22px 0 26px; }
.ao h1 span { color: var(--olive); }
.ao-lede { font-size: 19px; line-height: 1.7; max-width: 470px; color: var(--body); }
.ao-fan { position: relative; width: 680px; height: 600px; }
.ao-fan-in { position: absolute; left: 0; top: 0; width: 680px; height: 600px; perspective: 1800px; transform-origin: 0 0; }
.ao-cv { position: absolute; width: 300px; border-radius: 3px; overflow: hidden; transform-style: preserve-3d; box-shadow: 0 40px 60px -24px rgba(70, 56, 40, .42), 0 10px 20px rgba(70, 56, 40, .16); }
.ao-cv img { width: 100%; height: auto; }
.ao-cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .05) 100%); }
.ao-cv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0)); z-index: 1; }
/* Edition Four, the newest, stands upright in front; the older three step back, smaller and paler (owner's pick E8, 2026-11-13) */
.ao-c1 { left: 0; top: 196px; width: 250px; transform: rotate(-14deg) rotateY(12deg); }
.ao-c2 { left: 78px; top: 150px; width: 250px; transform: rotate(-7deg) rotateY(9deg); }
.ao-c3 { left: 160px; top: 116px; width: 250px; transform: rotate(-1deg) rotateY(6deg); }
.ao-c1, .ao-c2, .ao-c3 { filter: saturate(.62) brightness(1.02); box-shadow: 0 26px 40px -22px rgba(70, 56, 40, .38), 0 6px 14px rgba(70, 56, 40, .12); }
.ao-c4 { left: 290px; top: 28px; width: 344px; transform: rotate(2.5deg); box-shadow: 0 50px 70px -26px rgba(70, 56, 40, .5), 0 14px 26px rgba(70, 56, 40, .2); }
/* "New edition / The Word of God" down the side of the newest cover */
.ao-new { position: absolute; left: 652px; top: 52px; display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl; white-space: nowrap; transform: rotate(2.5deg); transform-origin: 0 0; }
.ao-new::before { content: ""; height: 42px; border-left: 1.5px solid #447D6A; }
.ao-new small { font-family: var(--caps); text-transform: uppercase; letter-spacing: .3em; font-size: 12.5px; color: #447D6A; }
.ao-new b { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--ink); }
/* The hero eyebrow "For Christians in the Middle East" needs 344px at .26em: closer spacing (311px) when the text column
   itself is narrower (a container query, so a browser scrollbar can't shift the range), and a balanced two-line wrap when
   even that doesn't fit (phones under 343px wide) */
.ao-hero-tx { container-type: inline-size; }
.ao-hero .ao-eyebrow { text-wrap: balance; }
@container (max-width: 343px) {
  .ao-hero .ao-eyebrow { letter-spacing: .18em; }
}

/* ---------- search (in the floating dock) ---------- */
.ao-dock { position: relative; z-index: 3; margin: -46px auto 0; width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 24px 50px -18px rgba(70, 56, 40, .4); padding: 6px; }
.ao-tabs { display: flex; gap: 2px; }
.ao .ao-tabs button { display: inline-flex; align-items: center; gap: 9px; height: 46px; margin: 0; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--body); font: 15px/1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: color .3s ease, border-color .3s ease; }
.ao .ao-tabs button .ao-i { width: 18px; height: 18px; }
.ao .ao-tabs button:hover { background: transparent; color: #C5A992; border-color: #C5A992; }
.ao .ao-tabs button[aria-selected="true"], .ao .ao-tabs button[aria-selected="true"]:hover { background: var(--ink); border-color: var(--ink); color: #FFFEFB; cursor: default; }
.ao .ao-tabs button:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.ao-dock > .ao-search { width: 270px; height: 46px; padding: 0 8px 0 18px; border-left: 1px solid var(--line); }
.ao-dock > .ao-search:focus-within { box-shadow: inset 0 -2px 0 var(--olive); }
.ao[data-view="list"] .ao-dock > .ao-search { display: none; }
.ao-view[hidden] { display: none; }
.ao .ao-search { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 400; color: var(--label); }
.ao-search .ao-i { width: 18px; height: 18px; }
.ao .ao-search input[type="search"] { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0; font: 16px/1.4 var(--sans); color: var(--ink); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
.ao-search input::placeholder { color: #8a8a8a; }
.ao-search input::-webkit-search-cancel-button { display: none; }
.ao .ao-clear { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--label); cursor: pointer; transition: color .3s ease; }
.ao .ao-clear[hidden] { display: none; }
.ao .ao-clear:hover, .ao .ao-clear:focus-visible { background: transparent; color: #C5A992; }
.ao .ao-clear:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.ao-clear .ao-i { width: 18px; height: 18px; }
.ao-status { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--label); min-height: 23px; }
.ao-none { text-align: center; font-family: var(--serif); font-size: 22px; color: var(--ink); padding: 60px 20px 0; }
.ao-none[hidden] { display: none; }

/* ---------- an edition ---------- */
.ao-ch { padding: 74px 0 24px; }
.ao-ch[hidden] { display: none; }
/* edition heading (owner's pick 2026-11-13, mockup 9a-4b): the edition's cover, centred on the text beside it;
   "Read the whole edition" on the right, on the same line as the introduction's last line */
.ao-ch-h { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; margin-bottom: 40px; }
/* text + link in one block, so the cover is centred on it whether the text is taller or shorter than the cover */
.ao-ch-b { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: last baseline; }
.ao-cover { display: block; width: 116px; height: auto; border-radius: 2px; outline: 1px solid rgba(70, 56, 40, .06);
  box-shadow: 0 22px 32px -18px rgba(70, 56, 40, .58), 0 2px 6px rgba(70, 56, 40, .14); }
.ao-ch-t .ao-eyebrow { color: var(--num); }
.ao h2 { font-size: clamp(2.125rem, 1.6rem + 1.6vw, 3.25rem); line-height: 1.12; margin: 10px 0; }
.ao-ch-t h2 { margin: 10px 0 12px; }
.ao-in { font-size: 17.5px; line-height: 1.7; max-width: 600px; }
.ao .ao-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-bottom: 10px; white-space: nowrap; text-decoration: none; }
.ao .ao-more:hover { color: var(--olive); }
.ao .ao-ch-h .ao-more { color: var(--num); margin-bottom: 0; transition: color .3s ease; }
.ao .ao-ch-h .ao-more:hover { color: #C5A992; }
.ao-more .ao-i { width: 16px; height: 16px; }

/* ---------- the tiles ---------- */
.ao-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 256px; gap: 18px; grid-auto-flow: dense; }
.s-lead { grid-column: span 2; grid-row: span 2; }
.s-lead3 { grid-column: span 3; grid-row: span 2; }
.s-tall { grid-row: span 2; }
.s-wide { grid-column: span 2; }
.ao .ao-t { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .3s ease; }
.ao-t[hidden] { display: none; }
.ao .ao-t:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.ao-tx { display: flex; flex-direction: column; }
.ao-k { font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; line-height: 1.4; color: var(--olive); }
.ao h3 { font-size: 20px; line-height: 1.28; margin: 6px 0; }
.ao-sub { font-family: var(--serif); font-size: 14.5px; line-height: 1.4; color: #666; margin-bottom: 6px; }
.ao-d { font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; max-width: 520px; }
.ao-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13.5px; line-height: 1.5; color: var(--label); }
.ao-m b { font-weight: 600; color: var(--body); }
.ao-f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ao-web { font-weight: 600; color: var(--ink); }
.ao-aud { font-weight: 600; color: var(--olive); }
.s-lead h3, .s-lead3 h3 { font-size: 38px; line-height: 1.12; }
.s-small .ao-m, .s-tall.ao-text .ao-m { flex-direction: column; align-items: flex-start; gap: 1px; }

/* photo tiles */
.ao-ph { background: var(--ink); box-shadow: var(--shadow); }
.ao-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ao-ph:hover img { transform: scale(1.03); }
.ao-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; background: linear-gradient(180deg, rgba(47, 47, 47, .45) 0%, rgba(47, 47, 47, 0) 30%, rgba(47, 47, 47, .55) 55%, rgba(47, 47, 47, .92) 100%); }
.ao-ph .ao-k { color: #EDEBE4; }
.ao-ph h3 { color: #FFFEFB; font-size: 22px; }
.ao-ph.s-lead h3, .ao-ph.s-lead3 h3 { font-size: 38px; }
.ao-ph .ao-d { color: #EDEBE4; }
.ao-ph .ao-m, .ao-ph .ao-m b, .ao-ph .ao-web { color: #F3F2EC; }
.ao-ph .ao-aud { color: #EEAE32; }

/* text tiles */
.ao-text { background: var(--card); box-shadow: var(--shadow); border-top: 3px solid var(--bar); padding: 22px 22px 20px; }
.ao-text:hover, .ao-ph:hover { box-shadow: var(--shadow-lift); }

/* text tiles with the words from the article's opening page */
.ao .ao-echo { background: var(--c); color: var(--on); flex-direction: row; gap: 26px; padding: 22px; }
.ao-words { --tr: .32em; flex: 1; display: grid; grid-template-columns: max-content; align-content: center; gap: 2px; font-family: var(--serif); text-transform: uppercase; font-size: 15px; line-height: 1.5; color: var(--on); }
.ao-l { display: flex; justify-content: space-between; gap: var(--tr); white-space: nowrap; }
.ao-ends > span { letter-spacing: var(--tr); }
.ao-ends > span:last-child { margin-right: calc(-1 * var(--tr)); }
.ao-echo .ao-tx { flex: 1.2; justify-content: flex-end; }
.ao-echo h3, .ao-echo .ao-k, .ao-echo .ao-m, .ao-echo .ao-m b, .ao-echo .ao-web { color: var(--on); }
.ao .ao-echo.s-tall, .ao .ao-echo.s-small { flex-direction: column; gap: 16px; }
.ao-echo.s-tall .ao-words, .ao-echo.s-small .ao-words { flex: none; align-content: start; }
.ao-echo.s-tall .ao-words { --tr: .18em; font-size: 14px; }
.ao-echo.s-tall .ao-tx { flex: 1; }
.ao-echo.s-small .ao-words { display: none; }

/* while searching: every match the same size */
.ao-searching .ao-t { grid-column: span 1; grid-row: span 1; }
.ao-searching .ao-d, .ao-searching .ao-words { display: none; }
.ao-searching .ao-t h3 { font-size: 21px; }
.ao-searching .ao-echo { flex-direction: column; }
.ao-searching .ao-ch { padding-top: 48px; }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .ao-hero { padding: 64px 0 110px; }
  .ao-hero-in { grid-template-columns: 1fr; gap: 26px; }
  .ao-fan { width: 490px; height: 432px; margin: 0 auto; }
  .ao-fan-in { transform: scale(.72); }
  .ao-new small { font-size: 15px; }
  .ao-new b { font-size: 22px; }
  .ao-ch-h { column-gap: 32px; }
  .ao-cover { width: 100px; }
  .ao-ch-b { grid-template-columns: 1fr; }
  .ao .ao-ch-h .ao-more { justify-self: start; margin-top: 16px; }
  .ao-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .s-lead3 { grid-column: span 2; }
}

/* ---------- phone ---------- */
@media (max-width: 699px) {
  .ao-w { padding: 0 16px; }
  .ao-hero { padding: 44px 0 96px; }
  .ao h1 { margin: 16px 0 18px; }
  /* phones: each half of the title on one line (owner's choice 2026-11-14; desktop keeps the big title over four lines) */
  .ao .ao-hero h1 { font-size: 12.6cqi; white-space: nowrap; }
  .ao-lede { font-size: 17px; }
  .ao-fan { width: 320px; height: 282px; }
  .ao-fan-in { transform: translateX(8px) scale(.45); }
  .ao-new { left: 654px; top: 38px; gap: 18px; }
  .ao-new::before { display: none; }
  .ao-new small { font-size: 21px; }
  .ao-new b { font-size: 28px; }
  .ao-ch { padding-top: 56px; }
  /* phone (owner's pick, mockup m4): everything centred in one column */
  .ao-ch-h { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 0; margin-bottom: 26px; }
  .ao-cover { width: 88px; margin-bottom: 24px; }
  .ao-ch-b { justify-items: center; }
  .ao-ch-t h2 { font-size: 30px; line-height: 1.12; margin: 6px 0 0; }
  .ao-ch-t .ao-in { font-size: 15.5px; max-width: 320px; margin: 16px auto 0; }
  .ao .ao-ch-h .ao-more { justify-self: center; margin-top: 18px; }
  .ao-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 14px; }
  .ao .ao-t { grid-column: span 1; grid-row: span 1; }
  .ao-ph { min-height: 320px; }
  .ao-ph.s-lead, .ao-ph.s-lead3 { min-height: 440px; }
  .ao-ph.s-lead h3, .ao-ph.s-lead3 h3 { font-size: 30px; }
  .ao-text { min-height: 0; }
  .ao .ao-echo { flex-direction: column; }
  .ao-echo .ao-words { flex: none; --tr: .18em; font-size: 13.5px; }
}

/* the smallest phones (320px): the fan a little smaller, so the covers and the side label stay on screen */
@media (max-width: 359px) {
  .ao-fan { width: 288px; height: 254px; }
  .ao-fan-in { transform: translateX(4px) scale(.405); }
}

/* =========================================================================================
   The other views (picked 2026-11-11): List 7 "large picture rows", Questions 1 "grouped questions,
   numbered", Topics 1 "topic cards, then the chosen topic". Buttons hover like the site's
   "Read online" button: transparent, text and border #C5A992, no movement.
   ========================================================================================= */
.ao-list, .ao-qs, .ao-tp { padding-top: 56px; }
.ao .ao-sel { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; margin: 0; padding: 0 14px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--body); font-weight: 400; }
.ao .ao-sel select { -webkit-appearance: none; appearance: none; border: 0; background: transparent; margin: 0; padding: 0 22px 0 0; height: 44px; font: 15px var(--sans); color: var(--ink); cursor: pointer; }
.ao .ao-sel select:focus { outline: none; }
.ao .ao-sel:focus-within { outline: 2px solid var(--olive); outline-offset: 2px; }
.ao .ao-sel .ao-i { width: 16px; height: 16px; flex: none; }
.ao .ao-sel .ao-i:last-child { position: absolute; right: 14px; pointer-events: none; }
.ao .ao-btn, .ao .ao-showmore { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin: 0; padding: 0 15px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 14.5px/1 var(--sans); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .3s ease, border-color .3s ease, background-color .3s ease; }
.ao .ao-btn-dark { background: var(--ink); color: #FFFEFB; }
.ao .ao-btn:hover, .ao .ao-showmore:hover { background: transparent; color: #C5A992; border-color: #C5A992; }
.ao .ao-btn:focus-visible, .ao .ao-showmore:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.ao .ao-btn .ao-i, .ao .ao-showmore .ao-i { width: 16px; height: 16px; }

/* ---------- List ---------- */
.ao-lbar { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.ao .ao-bigsearch { display: flex; align-items: center; gap: 16px; height: 74px; margin: 0; padding: 0 22px 0 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 400; color: var(--label); }
.ao .ao-bigsearch:focus-within { box-shadow: 0 0 0 3px rgba(116, 100, 47, .35), var(--shadow); }
.ao .ao-bigsearch > .ao-i { width: 22px; height: 22px; }
.ao .ao-bigsearch input[type="search"] { flex: 1; min-width: 0; height: 72px; border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0; font: 21px/1.3 var(--sans); color: var(--ink); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
.ao .ao-bigsearch input::placeholder { color: #8a8a8a; }
.ao .ao-bigsearch input::-webkit-search-cancel-button { display: none; }
.ao-lbar .ao-sel { height: 74px; border-radius: 16px; padding: 0 18px 0 22px; }
.ao-try { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 18px 0 0; font-size: 15px; color: var(--label); }
.ao .ao-try button { height: auto; margin: 0; padding: 0 0 1px; border: 0; border-bottom: 1px solid var(--sand); border-radius: 0; background: transparent; color: var(--ink); font: 15px var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: color .3s ease; }
.ao .ao-try button:hover { background: transparent; color: #C5A992; }
.ao-lgrid { display: grid; grid-template-columns: 230px 1fr; gap: 44px; margin-top: 44px; align-items: start; }
.ao .ao-ftoggle { display: none; }
.ao-filters { position: sticky; top: 110px; padding-right: 26px; border-right: 1px solid var(--line); }
.ao-fg + .ao-fg { margin-top: 34px; }
.ao-fh { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; color: var(--ink); }
.ao-fh .ao-i { width: 15px; height: 15px; color: var(--label); }
.ao-fg ul { list-style: none; margin: 0; padding: 0; }
.ao-fg li { margin: 0; }
.ao .ao-fo span { flex: 1; min-width: 0; }
.ao .ao-fo small { flex: none; }
.ao .ao-fo { position: relative; display: flex; width: 100%; height: auto; white-space: normal; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 0 6px 24px; border: 0; border-radius: 0; background: transparent; color: var(--body); font: 15px/1.45 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; transition: color .3s ease; }
.ao .ao-fo small { font-size: 12.5px; color: var(--label); }
.ao .ao-fo:hover { background: transparent; color: #C5A992; }
.ao .ao-fo[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.ao .ao-fo[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 1.5px; background: var(--ink); }
.ao .ao-fo:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.ao-lmain .ao-status { text-align: left; margin: 0 0 14px; }
.ao-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.ao-row { display: grid; grid-template-columns: clamp(300px, 100% - 382px, 380px) 1fr; min-height: 380px; margin: 0; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.ao-row[hidden] { display: none; }
.ao-rpicw { position: relative; background: var(--light); }
.ao-rpic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ao-rpic.ao-pic-photo img { width: 100%; height: 100%; object-fit: cover; }
.ao-rpic.ao-pic-page { padding: 40px; }
.ao-rpic.ao-pic-page img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 18px 30px -16px rgba(70, 56, 40, .5), 0 2px 6px rgba(70, 56, 40, .12); }
.ao-pic-plain { flex-direction: column; gap: 12px; text-align: center; padding: 40px; }
.ao-rpic.ao-pic-plain { margin: 40px; position: absolute; inset: 0; background: var(--card); box-shadow: 0 18px 30px -16px rgba(70, 56, 40, .5); }
.ao-pic-plain .ao-pt { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ink); }
.ao-pic-plain i { width: 34px; height: 1px; background: var(--sand); }
.ao-rtx { display: flex; flex-direction: column; justify-content: center; padding: 40px 34px 40px 38px; container-type: inline-size; }
.ao-re, .ao-te { margin: 0 0 10px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; color: var(--num); }
.ao-rtx h3 { font-size: clamp(1.75rem, 1.4rem + .9vw, 2.25rem); line-height: 1.12; margin: 0 0 10px; }
.ao-rtx h3 a, .ao-ttx h3 a { color: var(--ink); text-decoration: none; transition: color .3s ease; }
.ao-rtx h3 a:hover, .ao-ttx h3 a:hover { color: var(--olive); }
.ao-rsub { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; line-height: 1.35; color: #666; }
.ao-rd { margin: 0 0 14px; font-size: 16.5px; line-height: 1.7; }
.ao-rby { margin: 0 0 22px; font-size: 15px; color: var(--label); }
.ao-rby b { color: var(--ink); font-weight: 600; }
.ao-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.ao-btns .ao-aud { font-size: 14px; margin-left: 4px; }
/* side by side the two buttons need ~392px; in a narrower text column (phones upright, tablets, iPads sideways,
   narrow windows) they drop their icons and get smaller text, which needs ~295px */
@container (width < 392px) {
  .ao-btns { gap: 8px; }
  .ao .ao-btns .ao-btn { padding: 0 10px; font-size: 13px; }
  .ao .ao-btns .ao-btn .ao-i { display: none; }
}
@supports not (container-type: inline-size) {   /* browsers without container queries (iOS before 16): phones at least */
  @media (max-width: 699px) {
    .ao-btns { gap: 8px; }
    .ao .ao-btns .ao-btn { padding: 0 10px; font-size: 13px; }
    .ao .ao-btns .ao-btn .ao-i { display: none; }
  }
}
.ao-morewrap { text-align: center; margin: 30px 0 0; }
.ao-morewrap .ao-showmore[hidden] { display: none; }

/* ---------- Questions ---------- */
.ao-qh { display: grid; grid-template-columns: 1fr 430px; gap: 48px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.ao-qh h2 { margin: 0; }
.ao-qlede { font-size: 17px; line-height: 1.7; padding-bottom: 8px; }
.ao-qs > .ao-status { text-align: left; margin: 18px 0 0; }
.ao-grp { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 34px 0 6px; }
.ao-grp[hidden] { display: none; }
.ao-gh { position: sticky; top: 110px; align-self: start; }
.ao-gh h3 { font-size: 32px; line-height: 1.2; margin: 0 0 18px; }
.ao-mini { display: flex; gap: 8px; }
.ao-mini img { width: 34px; height: auto; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(70, 56, 40, .45); }
.ao-ql { list-style: none; margin: 0; padding: 0; }
.ao-q { margin: 0; border-bottom: 1px dashed var(--dash, #d3c8b6); }
.ao-q[hidden] { display: none; }
.ao .ao-q a { display: grid; grid-template-columns: 1fr 44px; gap: 14px; align-items: start; padding: 26px 0 28px; color: inherit; text-decoration: none; }
.ao .ao-q a:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.ao-qt { display: block; font-family: var(--serif); font-size: clamp(1.75rem, 1.45rem + .8vw, 2.35rem); line-height: 1.2; color: var(--ink); transition: color .3s ease; }
.ao-q a:hover .ao-qt { color: var(--olive); }
.ao-qm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; font-size: 14px; color: var(--label); }
.ao-qm i { font-style: italic; }
.ao-qm b { font-weight: 600; color: var(--body); }
.ao-qm .ao-web { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 600; }
.ao-qm .ao-mag { display: inline-flex; align-items: center; gap: 5px; }
.ao-go { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); transition: color .3s ease, border-color .3s ease; }
.ao-q a:hover .ao-go { color: #C5A992; border-color: #C5A992; }

/* ---------- Topics ---------- */
.ao-tcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ao .ao-tcard { position: relative; display: flex; flex-direction: column; height: auto; white-space: normal; min-height: 210px; margin: 0; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--body); font: 15px var(--sans); letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; transition: border-color .3s ease, box-shadow .3s ease; }
.ao .ao-tcard:hover { background: var(--card); border-color: #C5A992; box-shadow: var(--shadow); }
.ao .ao-tcard[aria-pressed="true"] { border: 2px solid var(--ink); padding: 21px 21px 19px; box-shadow: var(--shadow); }
.ao .ao-tcard:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.ao-tn { margin: 0 30px 14px 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--ink); }
.ao-tex { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--dash, #d3c8b6); }
.ao-tex span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 1.45; color: var(--body); }
.ao-tick { position: absolute; right: 18px; top: 18px; display: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #FFFEFB; }
.ao-tick .ao-i { width: 15px; height: 15px; stroke-width: 2.2; }
.ao-tcard[aria-pressed="true"] .ao-tick { display: flex; }
.ao-th { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 64px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ao-th h2 { margin: 0; font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3.6rem); scroll-margin-top: 110px; }
.ao-tsels { display: flex; gap: 10px; margin-left: auto; align-self: center; }
.ao-tp > .ao-status { text-align: left; margin: 14px 0 0; }
.ao-tl { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ao-tc { display: grid; grid-template-columns: 190px 1fr; gap: 24px; margin: 0; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.ao-tc[hidden] { display: none; }
.ao-tpic { position: relative; display: flex; align-items: center; justify-content: center; height: 190px; overflow: hidden; border-radius: 10px; background: var(--light); }
.ao-tpic.ao-pic-photo img { width: 100%; height: 100%; object-fit: cover; }
.ao-tpic.ao-pic-page { padding: 10px; }
.ao-tpic.ao-pic-page img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 18px -10px rgba(70, 56, 40, .5); }
.ao-tpic.ao-pic-plain { background: var(--card); border: 1px solid var(--line); padding: 18px; }
.ao-tpic.ao-pic-plain .ao-pt { font-size: 19px; }
.ao-ttx h3 { font-size: 23px; line-height: 1.22; margin: 0 0 10px; }
.ao-td { margin: 0 0 12px; font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ao-ttx .ao-m { gap: 2px 12px; }

/* ---------- the other views on tablets ---------- */
@media (max-width: 1099px) {
  .ao-lgrid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .ao .ao-ftoggle { display: inline-flex; align-items: center; gap: 9px; justify-self: start; height: 42px; margin: 0; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 14.5px var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: color .3s ease, border-color .3s ease; }
  .ao .ao-ftoggle:hover { background: transparent; color: #C5A992; border-color: #C5A992; }
  .ao .ao-ftoggle .ao-i { width: 16px; height: 16px; }
  .ao-filters { display: none; position: static; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
  .ao-filters.ao-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
  .ao-fg + .ao-fg { margin-top: 0; }
  /* below ~762px the picture narrows (to ~220px at 700, with a scrollbar) so the text column keeps 310px for the buttons */
  .ao-row { grid-template-columns: clamp(220px, 100% - 382px, 300px) 1fr; min-height: 330px; }
  /* …and a title card in a narrowed picture gives up side space, so its text keeps the 140px it has at 300px */
  .ao-rpic.ao-pic-plain { margin: 40px min(40px, 25% - 35px); padding: 40px min(40px, 25% - 35px); }
  .ao-qh { grid-template-columns: 1fr; gap: 14px; }
  .ao-grp { grid-template-columns: 1fr; gap: 6px; }
  .ao-gh { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .ao-gh h3 { margin: 0; }
  .ao-tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ao-tl { grid-template-columns: 1fr; }
}

/* ---------- the other views on phones ---------- */
@media (max-width: 699px) {
  .ao-dock { flex-direction: column; align-items: stretch; width: calc(100% - 32px); border-radius: 22px; }
  .ao-tabs { justify-content: space-between; }
  .ao .ao-tabs button { flex: 1; flex-direction: column; justify-content: center; gap: 4px; height: 58px; padding: 0 6px; border-radius: 16px; font-size: 13px; }
  .ao-dock > .ao-search { width: auto; border-left: 0; border-top: 1px solid var(--line); padding: 0 6px 0 12px; }
  .ao-list, .ao-qs, .ao-tp { padding-top: 40px; }
  .ao-lbar { grid-template-columns: 1fr; gap: 12px; }
  .ao .ao-bigsearch { height: 60px; padding: 0 14px 0 18px; }
  .ao .ao-bigsearch input[type="search"] { height: 58px; font-size: 17px; }
  .ao-lbar .ao-sel { height: 48px; justify-self: start; }
  .ao-filters.ao-open { grid-template-columns: 1fr; }
  .ao-row { grid-template-columns: 1fr; min-height: 0; }
  .ao-rpicw { height: 260px; }
  .ao-rpic.ao-pic-page { padding: 24px 28px; }
  .ao-rpic.ao-pic-plain { margin: 24px 28px; padding: 40px; }
  .ao-rtx { padding: 24px 22px 28px; }
  .ao-rd { font-size: 15.5px; }
  .ao .ao-q a { grid-template-columns: 1fr; }
  .ao-go { display: none; }
  .ao-tcards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ao .ao-tcard { min-height: 0; padding: 16px 16px 14px; }
  .ao .ao-tcard[aria-pressed="true"] { padding: 15px 15px 13px; }
  .ao-tn { font-size: 20px; margin-right: 26px; }
  .ao-tex { display: none; }
  .ao-tick { right: 12px; top: 12px; width: 24px; height: 24px; }
  .ao-th { margin-top: 44px; }
  .ao-tsels { margin-left: 0; width: 100%; }
  .ao-tc { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .ao-tpic { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .ao-ph img, .ao .ao-t, .ao .ao-clear, .ao .ao-tabs button, .ao .ao-btn, .ao .ao-showmore, .ao .ao-fo, .ao .ao-tcard, .ao-go, .ao-qt { transition: none; }
  .ao-ph:hover img { transform: none; }
}
