/* Simply Desserts article hubs (Blog, Press). Loaded after the theme's sd.css and the shared hub.css (the recipes
   hub's stylesheet: hero, filter bar, grid, slider, product panel, page colours). This file only adds what an
   article needs that a recipe does not: landscape cards, the topic row as a slider on every width, the article
   body, tables, the podcast player, the press contact. Same breakpoints: phone < 640, tablet 640 to 1023, desktop 1024+. */

/* ---------------------------------------------------------------- cards: article photos are landscape */
.rx-grid .ax-card { aspect-ratio: 1 / 1.1; }
.ax-card--plain .rcard__link { background: var(--ink); }
/* article photos often carry their own lettering: a deeper shade behind the title keeps it readable */
.ax-card .rcard__link::after { background: linear-gradient(to top, rgba(43, 24, 15, .94) 0%, rgba(43, 24, 15, .8) 32%, rgba(43, 24, 15, .28) 56%, rgba(43, 24, 15, 0) 74%); }
.rwall__grid .ax-card .rcard__body h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rwall__grid .rcard--feature .rcard__body h3 { max-width: 20ch; font-size: clamp(1.6rem, 2.5vw, 2.6rem); -webkit-line-clamp: 4; }

/* ---------------------------------------------------------------- the topic row */
.ax-tile .rx-line__plate { overflow: hidden; background: var(--rx-yellow); }
.ax-tile .rx-line__plate img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .ax-tile:hover .rx-line__plate img { transform: scale(1.08); } }
/* more than five tiles: the row is a slider on desktop too, arrows at each end, five tiles in view */
@media (min-width: 1024px) {
  .ax-lines--6 .rx-lines__rail { padding-inline: 64px; }
  .ax-lines--6 .rx-lines__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 5); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; scrollbar-width: none; }
  .ax-lines--6 .rx-lines__grid::-webkit-scrollbar { display: none; }
  .ax-lines--6 .rx-lines__grid li { scroll-snap-align: start; }
  .ax-lines--6 .rx-lines__btn { display: grid; top: calc(50% - 7px); }
  .ax-lines--3 .rx-lines__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin-inline: auto; }
  .ax-lines--4 .rx-lines__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- article hero */
.ax-hero .rx-rhero__mosaic--solo { max-width: none; }
.ax-hero .rx-rhero__media { aspect-ratio: 3 / 2; }
.ax-hero .rx-rhero__title { font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.08; }
.ax-hero .rx-by { font-weight: 500; }
.ax-hero--bare { display: none; }
/* a small original (a podcast's cover art) is shown at its own size, never blown up */
.ax-hero .ax-hero--small { max-width: 420px; width: 100%; margin-inline: auto; }
.ax-hero .rx-rhero__in:has(> .ax-hero--bare) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.ax-hero .rx-actions .btn .icon { margin-left: 4px; }

/* ---------------------------------------------------------------- article body */
.ax-layout { grid-template-areas: "body panel"; }
.ax-body { grid-area: body; min-width: 0; max-width: 78ch; font-size: 1.0625rem; line-height: 1.7; }
.ax-body > :first-child { margin-top: 0; }
.ax-body p { margin: 0 0 1.15em; }
.ax-body h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.2; margin: 2.4rem 0 .8rem; }
.ax-body h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.25; margin: 2rem 0 .6rem; }
.ax-body h4, .ax-body h5, .ax-body h6 { font-size: 1.125rem; margin: 1.6rem 0 .5rem; }
.ax-body ul, .ax-body ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.ax-body li { margin-bottom: .45em; }
.ax-body li > ul, .ax-body li > ol { margin-top: .45em; }
.ax-body img { max-width: 100%; height: auto; border-radius: 20px; margin-block: .4rem; }
.ax-body figure { margin: 1.5rem 0; }
.ax-body figcaption { margin-top: .5rem; font-size: .875rem; color: var(--rx-ink-2); }
.ax-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ax-body blockquote { margin: 1.6rem 0; padding: 18px 24px; border-radius: 24px; background: var(--rp-chip); color: var(--rp-chip-ink, var(--ink)); }
.ax-body blockquote a { color: inherit; }
.ax-body blockquote > :last-child { margin-bottom: 0; }
.ax-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.ax-body .rx-yt { margin: 1.5rem 0; }
.ax-toc { margin: 1.6rem 0; padding: 20px 24px; border-radius: 24px; background: var(--soft); }
.ax-toc h2 { margin: 0 0 .6rem; font-size: 1.25rem; }
.ax-toc > :last-child { margin-bottom: 0; }
.ax-recipe { margin: 1.6rem 0; padding: 22px 24px; border-radius: 24px; border: 2px solid var(--line); }
.ax-recipe > :first-child { margin-top: 0; }
.ax-recipe > :last-child { margin-bottom: 0; }
.ax-note { padding: 14px 18px; border-radius: 16px; background: var(--soft); font-size: .9375rem; }
.ax-source { margin-top: 1.75rem; }
.ax-source .btn, .ax-listen .btn { text-decoration: none; }
.ax-source .btn .icon { margin-left: 4px; }
.ax-body a.btn { color: #fff; }
@media (hover: hover) { .ax-body a.btn:hover { color: var(--ink); } }

.ax-table { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: 16px; }
.ax-table:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ax-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.ax-table th, .ax-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ax-table th { background: var(--soft); font-weight: 700; }
.ax-table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- podcasts and press */
.ax-listen { display: grid; justify-items: start; gap: 10px; margin: 0 0 1.75rem; padding: 22px 24px; border-radius: 24px; background: var(--soft); }
.ax-listen p { margin: 0; }
.ax-listen iframe { width: 100%; border: 0; border-radius: 12px; }
.ax-listen.is-playing { display: block; padding: 12px; }
.ax-press-panel p { margin: 0 0 1rem; }
.ax-press-panel a:not(.btn) { color: inherit; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ax-contact__who { font-size: 1.125rem; }
.ax-contact__who a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.ax-contact .btn .icon { width: 1.1em; height: 1.1em; margin-right: 6px; }

/* ---------------------------------------------------------------- tablet and phone (tablet follows phone) */
@media (max-width: 1023px) {
  .ax-layout { grid-template-areas: "body" "panel"; }
  .ax-body { max-width: 720px; width: 100%; margin-inline: auto; }
  .ax-layout .rx-panel { max-width: 720px; width: 100%; margin-inline: auto; }
  .ax-hero .rx-by { text-align: center; }
}
@media (max-width: 639px) {
  .rx-grid .ax-card { aspect-ratio: 3 / 4.4; }
  .ax-hero .rx-rhero__media { border-radius: 24px; }
  .ax-body { font-size: 1rem; }
  .ax-toc, .ax-recipe, .ax-listen { padding: 16px 18px; border-radius: 20px; }
  .rwall__grid .rcard--feature .rcard__body h3 { font-size: 1.5rem; }
}

@media print {
  .ax-layout { display: block; }
  .ax-listen, .ax-source { display: none !important; }
}

/* The recipes a post points to (front matter "recipes"), above the shop panel in the right column (Pinterest hub, 26 Oct 2026) */
.rx-panel.ax-side { display: grid; gap: 16px; align-content: start; position: static; }
.ax-recs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ax-rec { display: grid; grid-template-columns: 72px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: 20px; background: #fff; color: var(--rp-ink); text-decoration: none; }
.ax-rec img { grid-row: 1 / 3; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.ax-rec__name { align-self: end; font-weight: 700; line-height: 1.25; }
.ax-rec__meta { align-self: start; font-size: .875rem; color: var(--rp-ink-2); }
.ax-rec .icon { grid-row: 1 / 3; grid-column: 3; }
.ax-rec:hover .ax-rec__name { text-decoration: underline; text-underline-offset: 3px; }
.ax-rec:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 2px; }
/* A roundup's recipe as a card: photo beside name, line and button; stacked on a phone (Shaun, 26 Oct) */
.ax-pick { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0; padding: 14px; border-radius: 32px; background: var(--rp-page); color: var(--rp-ink); }
.ax-pick img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; margin: 0; }
.ax-pick__text { padding-right: clamp(4px, 2vw, 20px); }
.ax-pick__text h2 { margin-top: 0; }
.ax-pick__text p:last-child { margin-bottom: 0; }
.ax-pick .btn { text-decoration: none; background: var(--rp-ink); border-color: var(--rp-ink); color: var(--rp-page); }
@media (hover: hover) { .ax-body .ax-pick a.btn:hover { background: transparent; border-color: var(--rp-ink); color: var(--rp-ink); } }
.ax-body .ax-pick a.btn:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 3px; }
@media (max-width: 640px) {
  .ax-pick { grid-template-columns: 1fr; gap: 18px; padding: 10px 10px 20px; border-radius: 26px; }
  .ax-pick img { aspect-ratio: 4 / 3; }
  .ax-pick__text { padding-inline: 10px; }
}

/* ---------------------------------------------------------------- recipe photo cards in a post body (Vaughan, 3 Nov 2026)
   Two tall photo cards a row (one on a phone), the recipe's name bottom-left, a round arrow bottom-right, the whole
   card one link. No tags and no time on the card (Shaun, 21 Oct). Markup (each article hub README, "Recipe cards and the video panel"):
   <ul class="ax-rcards"><li><a class="ax-rcard" href="https://simplydesserts.us/recipes/<handle>/">
     <img src="img/<slug>/recipe-<handle>-600.webp" alt="" width="600" height="900" sizes="(min-width: 1024px) 380px, (min-width: 640px) 45vw, 92vw">
     <span class="ax-rcard__title">Recipe name</span></a></li></ul> */
.ax-body .ax-rcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.ax-body .ax-rcards > li { margin: 0; min-width: 0; }
.ax-body a.ax-rcard { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; border-radius: 16px; background: #2B180F; color: #fff;
  text-decoration: none; box-shadow: 0 14px 30px -18px rgba(73, 47, 35, .55); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ax-body .ax-rcard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; transition: transform 1.1s var(--ease); }
.ax-rcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(43, 24, 15, .9) 0%, rgba(43, 24, 15, .55) 32%, rgba(43, 24, 15, 0) 62%); }
/* the round arrow: drawn here, so the markup needs no icon */
.ax-rcard::before { content: ""; position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23492F23' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .45s var(--ease), background-color .3s; }
.ax-rcard__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 76px 22px 22px; font-weight: 700; font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.2; color: #fff; text-shadow: 0 1px 14px rgba(30, 16, 8, .45); overflow-wrap: normal; }
.ax-body a.ax-rcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .ax-body a.ax-rcard:hover { transform: translateY(-6px); box-shadow: 0 30px 44px -22px rgba(73, 47, 35, .6); }
  .ax-body a.ax-rcard:hover img { transform: scale(1.07); }
  .ax-rcard:hover::before { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .ax-body a.ax-rcard, .ax-body .ax-rcard img, .ax-rcard::before { transition: none; } .ax-body a.ax-rcard:hover, .ax-body a.ax-rcard:hover img { transform: none; } }

/* ---------------------------------------------------------------- the video panel in a post body (Vaughan, 3 Nov 2026)
   A rounded panel in the post's colours (the product's light shade and its ink; cream on a post with no product):
   eyebrow, heading, a line with the creator's credit and a "Get the recipe" pill on the left, the upright video on the
   right; stacked on a phone, video under the words. .ax-video--wide for a landscape (16:9) video. Markup:
   <section class="ax-video" aria-labelledby="watch"><div class="ax-video__copy">
     <p class="ax-video__eyebrow">Recipe video</p><h2 id="watch">Watch It Made</h2>
     <p>What happens in the video. Recipe by <a href="..." rel="noopener" target="_blank">@creator</a>.</p>
     <p><a class="btn ax-video__btn" href="https://simplydesserts.us/recipes/<handle>/">Get the recipe</a></p></div>
   <div class="rx-yt" data-yt="<11-character YouTube id>" data-yt-title="Recipe name" data-yt-poster="img/<slug>/<photo>-720.webp"></div></section> */
.ax-body .ax-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: clamp(24px, 4vw, 48px); align-items: center;
  margin: 2.4rem 0; padding: clamp(24px, 3.5vw, 44px); border-radius: 28px; background: var(--rp-page, var(--rx-cream, #FFF6E5)); color: var(--rp-ink, var(--ink)); }
.ax-body .ax-video__copy > :last-child { margin-bottom: 0; }
.ax-body .ax-video__eyebrow { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ax-body .ax-video h2 { margin: 0 0 .8rem; color: inherit; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.ax-body .ax-video a:not(.btn) { color: inherit; font-weight: 600; }
.ax-body .ax-video a.btn { margin-top: .4rem; background: var(--rp-ink, var(--ink)); border-color: var(--rp-ink, var(--ink)); color: #fff; text-decoration: none; }
@media (hover: hover) { .ax-body .ax-video a.btn:hover { background: transparent; border-color: var(--rp-ink, var(--ink)); color: var(--rp-ink, var(--ink)); } }
.ax-body .ax-video a:focus-visible { outline: 2px solid var(--rp-ink, var(--ink)); outline-offset: 3px; }
.ax-body .ax-video .rx-yt { margin: 0; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(30, 16, 10, .7); }
.ax-body .ax-video .rx-yt img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.ax-body .ax-video .rx-yt__play { width: 72px; height: 72px; }
.ax-body .ax-video .rx-yt__play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ax-body .ax-video--wide { grid-template-columns: minmax(0, 1fr); }
.ax-body .ax-video--wide .rx-yt { aspect-ratio: 16 / 9; }
@media (max-width: 639px) {
  .ax-body .ax-rcards { grid-template-columns: minmax(0, 1fr); }
  .ax-rcard__title { padding: 16px 72px 20px 18px; font-size: 1.1875rem; }
  .ax-body .ax-video { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; border-radius: 24px; }
  .ax-body .ax-video .rx-yt { justify-self: center; width: min(100%, 300px); }
}
