/* AstraMoon botanical articles. Deliberately scoped: the app header, background
   and fixed navigation retain their existing layout and behaviour. */
.am-plant-detail {
  --pd-gold: #edca82;
  --pd-gold-light: #ffe8ad;
  --pd-cream: #fff6df;
  --pd-text: #eee4f2;
  --pd-muted: #cdbbd6;
  --pd-plum: #1b0b2e;
  --pd-border: #aa6f9a;
  --pd-branch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='240' viewBox='0 0 150 240' fill='none' stroke='%23deb978' stroke-width='1'%3E%3Cpath d='M80 230C95 176 80 112 42 20M80 198c-24-7-39-24-43-43 25 3 40 18 43 43Zm5-28c17-9 27-24 27-44-21 9-29 24-27 44Zm-5-31c-23-4-41-19-45-38 24 1 39 14 45 38Zm-9-28c16-12 20-27 17-43-19 11-24 26-17 43ZM58 75c-20-2-36-13-41-31 20-1 36 11 41 31Zm-9-33C61 28 59 16 52 5 40 20 40 31 49 42Z'/%3E%3Cpath d='m37 155 43 43m32-72-27 44m-50-69 45 38m8-71-17 43M17 44l41 31' stroke-opacity='.6'/%3E%3C/svg%3E");
  position: relative;
  width: 100%;
  max-width: 1050px;
  min-width: 0;
  margin: 0 auto 30px;
  color: var(--pd-text);
  font: 400 18px/1.65 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
.am-plant-detail *, .am-plant-detail *::before, .am-plant-detail *::after { box-sizing: border-box; }
.am-plant-detail [hidden] { display: none !important; }
.am-plant-detail :is(h1,h2,h3,p,figure) { margin: 0; }
.am-plant-detail :is(h1,h2,h3) { color: var(--pd-cream); font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.am-plant-detail img { display: block; max-width: 100%; }
.am-plant-detail a { color: var(--pd-gold-light); text-decoration: none; }
.am-plant-detail :is(a,button,summary) { touch-action: manipulation; }
.am-plant-detail :is(a,button,summary):focus-visible { outline: 3px solid var(--pd-gold-light); outline-offset: 4px; }
.am-plant-detail .am-pd-icon { display: inline-block; width: 30px; height: 30px; flex: 0 0 30px; color: var(--pd-gold); vertical-align: middle; }
.am-plant-detail .am-pd-icon svg { display: block; width: 100%; height: 100%; }
.am-plant-detail .am-pd-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0 0 12px; padding: 7px 3px; color: #f3dbb1; font-size: 16px; }
.am-plant-detail .am-pd-back:hover { color: #fff3d7; }

/* One shared catalogue image, dressed as a wide botanical cover. */
.am-plant-detail .am-pd-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #ddb37a;
  border-radius: 27px;
  background: #140a23;
  box-shadow: inset 0 0 0 1px #fff2cb16, 0 0 20px #a264ac30;
}
.am-plant-detail .am-pd-hero-image { position: absolute; z-index: -3; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: center; }
.am-plant-detail .am-pd-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(90deg, #170a26 0%, #190c27f2 34%, #180b25ac 48%, #17092510 75%), linear-gradient(0deg, #10061dd9, transparent 40%); }
.am-plant-detail .am-pd-hero::after { content: ''; position: absolute; z-index: -1; top: 6px; left: 32%; width: 115px; height: 190px; opacity: .35; background: var(--pd-branch) center/contain no-repeat; transform: rotate(-13deg); pointer-events: none; }
.am-plant-detail .am-pd-hero-copy { position: relative; width: 61%; padding: 23px 28px 18px; text-shadow: 0 2px 7px #12081dcc; }
.am-plant-detail .am-pd-category { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 19px; margin-bottom: 8px; border: 1px solid #b7896577; border-radius: 30px; background: linear-gradient(#4d294662,#24122b); color: #f5d590; font-size: 14px; line-height: 1.5; }
.am-plant-detail .am-pd-hero h1 { color: var(--pd-gold-light); font-size: clamp(36px,5vw,58px); line-height: 1.08; letter-spacing: -.9px; margin: 0 0 2px; }
.am-plant-detail .am-pd-latin { font: italic 25px/1.35 Georgia,serif; color: #f0e6cb; margin-bottom: 13px; }
.am-plant-detail .am-pd-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; text-shadow: none; }
.am-plant-detail .am-pd-tags span { display: inline-flex; align-items: center; padding: 4px 15px; border: 1px solid #5aaf91; border-radius: 22px; background: linear-gradient(#196353,#123c35); color: #fff8e9; font-size: 14px; line-height: 1.35; }
.am-plant-detail .am-pd-tags span:nth-child(2) { border-color: #ac863e; background: linear-gradient(#6d4e18,#3d2b0e); }
.am-plant-detail .am-pd-tags span:nth-child(3) { border-color: #a763b7; background: linear-gradient(#6f2b92,#401858); }
.am-plant-detail .am-pd-intro { color: #f1e7f2; font-size: 18px; line-height: 1.45; max-width: 450px; }
.am-plant-detail .am-pd-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); position: relative; gap: 18px; padding: 4px 28px 22px; max-width: 790px; }
.am-plant-detail .am-pd-fact { display: flex; align-items: center; gap: 12px; min-width: 0; color: #f8eedc; font-size: 16px; line-height: 1.35; }
.am-plant-detail .am-pd-fact > .am-pd-icon { display: grid; place-items: center; flex-basis: 52px; width: 52px; height: 52px; padding: 11px; border: 1px solid #d1a168; border-radius: 50%; background: radial-gradient(at 35% 25%,#653268a6,#24102de8); box-shadow: 0 0 12px #ddab6e22; }
.am-plant-detail .am-pd-fact :is(small,span:not(.am-pd-icon)) { display: block; }
.am-plant-detail .am-pd-fact small { color: #d6c8d8; font-size: 13px; margin-top: 2px; }
.am-plant-detail .am-pd-fact strong { display: block; font-size: 16px; font-weight: 500; }

/* These are section links, not a second app navigation bar. */
.am-plant-detail .am-pd-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; padding: 14px 2px 18px; margin: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #a678b0 transparent; }
.am-plant-detail .am-pd-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 89px; min-width: 0; padding: 9px 6px; border: 1px solid #9a5da4; border-radius: 14px; color: #f8e9f6; background: linear-gradient(#30123f9e,#180923e8); box-shadow: inset 0 1px 8px #e0b2e316; font-size: 14px; line-height: 1.25; text-align: center; }
.am-plant-detail .am-pd-tabs a > .am-pd-icon { width: 33px; height: 33px; flex-basis: 33px; color: #f4d286; }
.am-plant-detail .am-pd-tabs a[aria-current=location] { border-color: #ffe2a2; color: #fff4d5; background: radial-gradient(at 50% 0,#76417e55,transparent 80%),#291034; box-shadow: 0 0 10px #ffc17bc7,inset 0 0 9px #ffcf7840; }
.am-plant-detail .am-pd-tabs a:hover { border-color: #e0bb8a; background-color: #392046; }

/* Fine gold/plum cards and a shared hierarchy preserve the reference layout. */
.am-plant-detail .am-pd-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 17px;
  padding: 21px 25px 23px;
  scroll-margin-top: 18px;
  border: 1px solid var(--pd-border);
  border-radius: 23px;
  background: radial-gradient(ellipse at 0% 0%,#64335b69,transparent 50%), linear-gradient(125deg,#1b0b2fef,#140823f5);
  box-shadow: inset 0 1px 8px #f2bed329, 0 0 8px #be835e20;
}
.am-plant-detail .am-pd-section::after { content: ''; position: absolute; z-index: -1; top: 12px; right: 18px; width: 105px; height: 170px; opacity: .22; background: var(--pd-branch) center/contain no-repeat; transform: rotate(-11deg); pointer-events: none; }
.am-plant-detail .am-pd-section-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 11px 18px; position: relative; padding-bottom: 12px; margin-bottom: 13px; }
.am-plant-detail .am-pd-section-head::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,#b9916090,#edc27ba6 35%,#a56d9b25 84%,transparent); }
.am-plant-detail .am-pd-section-head h2 { display: flex; align-items: flex-start; gap: 11px; flex: 1 1 200px; min-width: 0; font-size: clamp(25px,3.5vw,34px); line-height: 1.2; }
.am-plant-detail .am-pd-section-head h2 .am-pd-icon { margin-top: 3px; filter: drop-shadow(0 0 7px #e6a95965); }
.am-plant-detail .am-pd-readtime { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 34px; padding: 4px 12px; border: 1px solid #ab7d6c; border-radius: 25px; color: #eadcc8; font-size: 14px; white-space: nowrap; background: #21102ba8; }
.am-plant-detail .am-pd-readtime .am-pd-icon { width: 19px; height: 19px; flex-basis: 19px; }
.am-plant-detail .am-pd-section-body { position: relative; min-width: 0; }
.am-plant-detail .am-pd-text { color: var(--pd-text); font-size: 18px; line-height: 1.6; }
.am-plant-detail .am-pd-text p + p { margin-top: 15px; }
.am-plant-detail .am-pd-text :is(ul,ol) { padding-left: 24px; margin: 12px 0; }
.am-plant-detail .am-pd-text li + li { margin-top: 9px; }
.am-plant-detail .am-pd-more { margin-top: 14px; min-width: 0; }
.am-plant-detail .am-pd-more > summary { cursor: pointer; color: #ffe1a3; font-size: 17px; line-height: 1.4; min-height: 44px; padding: 10px 0; }
.am-plant-detail .am-pd-more[open] > summary { margin-bottom: 13px; }
.am-plant-detail .am-pd-more :is(p,ul,ol) { color: var(--pd-text); font-size: 18px; line-height: 1.65; }
.am-plant-detail .am-pd-more p + p { margin-top: 15px; }
.am-plant-detail .am-pd-cta { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; max-width: 100%; padding: 10px 25px; border: 1px solid #edc886; border-radius: 30px; color: #ffe4ae; background: linear-gradient(#5c345f70,#281135da); box-shadow: 0 0 12px #ecaa6c50,inset 0 0 10px #e4a87720; font: 500 17px/1.35 system-ui,sans-serif; text-align: center; text-decoration: none; }
.am-plant-detail summary.am-pd-cta { list-style: none; display: flex; width: fit-content; min-height: 48px; padding: 10px 25px; }
.am-plant-detail summary.am-pd-cta::-webkit-details-marker { display: none; }
.am-plant-detail summary.am-pd-cta::after { content: '→'; flex: 0 0 auto; font-size: 23px; line-height: 1; }
.am-plant-detail .am-pd-more[open] > summary.am-pd-cta::after { content: '−'; }
.am-plant-detail .am-pd-cta:hover { background-color: #603764; border-color: #ffdf9e; }

/* Only available, honestly labelled species illustrations are shown. */
.am-plant-detail .am-pd-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 20px; }
.am-plant-detail .am-pd-gallery figure { position: relative; min-width: 0; margin: 0; border: 1px solid #aa7e756f; border-radius: 16px; overflow: hidden; background: #20142b; }
.am-plant-detail .am-pd-gallery img { width: 100%; height: 250px; object-fit: cover; object-position: center; }
.am-plant-detail .am-pd-gallery figure:last-child img { object-fit: contain; background: #23152b; }
.am-plant-detail .am-pd-gallery figcaption { position: relative; padding: 9px 12px 11px; color: #f4e8ee; font-size: 14px; line-height: 1.4; text-align: center; background: linear-gradient(#24112ee8,#1a0b28); border-top: 1px solid #bc97664f; }
.am-plant-detail .am-pd-gallery-note, .am-plant-detail .am-pd-media-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #d1bbd5; }

/* Wide editorial bands: text left, existing relevant imagery on the right. */
.am-plant-detail .am-pd-illustrated { min-height: 245px; padding-right: 39%; }
.am-plant-detail .am-pd-section-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 43%; overflow: hidden; border-radius: 0 22px 22px 0; }
.am-plant-detail .am-pd-section-art > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.am-plant-detail .am-pd-section-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#1b0c2efb,transparent 45%),linear-gradient(0deg,#180c2870,transparent 50%); pointer-events: none; }
.am-plant-detail .am-pd-illustrated .am-pd-section-head { width: calc(100% + 36%); }
.am-plant-detail .am-pd-illustrated .am-pd-section-head h2 { text-shadow: 0 2px 6px #10051f; }
.am-plant-detail .am-pd-illustrated .am-pd-section-body { max-width: 570px; }
.am-plant-detail .am-pd-section-art > .am-pd-icon { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; display: grid; place-items: center; padding: 35px; border: 1px solid #e3b679; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle,#5e315b77,#190b2e 70%); color: #f9d486; box-shadow: 0 0 18px #d8a26255,inset 0 0 22px #ae6b7844; filter: drop-shadow(0 0 6px #a97b4944); }
.am-plant-detail .am-pd-evidence .am-pd-section-art::after { background: linear-gradient(90deg,#1b0c2e,transparent 35%); }
.am-plant-detail .am-pd-warning { border-color: #bf9371; background: radial-gradient(at 0 0,#79504349,transparent 60%),linear-gradient(125deg,#28142d,#190e25); }
.am-plant-detail .am-pd-warning .am-pd-section-head h2 { color: #ffe1b4; }

/* Keep related recipes and sources inside the same visual family. */
.am-plant-detail .am-pd-related { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 16px 0 0; }
.am-plant-detail .am-pd-related a { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #a26f9b; border-radius: 17px; background: linear-gradient(#3b1b47,#1b0e2b); color: #f8e7bf; }
.am-plant-detail .am-pd-related img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.am-plant-detail .am-pd-related :is(span,h3) { display: block; padding: 12px 14px; font-size: 18px; line-height: 1.4; }
.am-plant-detail .am-pd-sources { color: var(--pd-muted); font-size: 15px; line-height: 1.6; }
.am-plant-detail .am-pd-sources a { display: block; min-height: 44px; padding: 9px 0; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.am-plant-detail .am-pd-sources small { display: block; font-size: 14px; color: var(--pd-muted); }
.am-plant-detail .am-pd-section .catalog-important { background: #5f354638; border-color: #d0a47888; color: #f9e4ca; font-size: 16px; }

@media (min-width: 760px) {
 .am-plant-detail .am-pd-portrait .am-pd-section-body { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 0 24px; align-items: start; }
 .am-plant-detail .am-pd-portrait .am-pd-text { grid-column: 1; }
 .am-plant-detail .am-pd-portrait .am-pd-more { grid-column: 1; }
 .am-plant-detail .am-pd-portrait .am-pd-gallery { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; gap: 10px; }
 .am-plant-detail .am-pd-portrait .am-pd-gallery img { height: 285px; }
 .am-plant-detail .am-pd-portrait :is(.am-pd-gallery-note,.am-pd-media-note) { grid-column: 2; }
}
@media (max-width: 759px) {
 .am-plant-detail .am-pd-hero-copy { width: 66%; padding: 21px 22px 17px; }
 .am-plant-detail .am-pd-hero h1 { font-size: clamp(33px,6vw,46px); }
 .am-plant-detail .am-pd-hero-image { width: 85%; object-position: 64% center; }
 .am-plant-detail .am-pd-latin { font-size: 23px; }
 .am-plant-detail .am-pd-facts { gap: 12px; padding: 6px 22px 20px; }
 .am-plant-detail .am-pd-fact { gap: 8px; font-size: 14px; }
 .am-plant-detail .am-pd-fact > .am-pd-icon { width: 43px; height: 43px; flex-basis: 43px; padding: 9px; }
 .am-plant-detail .am-pd-fact strong { font-size: 14px; }
 .am-plant-detail .am-pd-section { padding: 18px 20px 21px; }
 .am-plant-detail .am-pd-illustrated { padding-right: 36%; }
 .am-plant-detail .am-pd-section-head h2 { font-size: 28px; }
 .am-plant-detail .am-pd-gallery img { height: 240px; }
 .am-plant-detail .am-pd-section-art > .am-pd-icon { width: 115px; height: 115px; padding: 27px; }
 .am-plant-detail .am-pd-related { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
 .am-plant-detail { font-size: 18px; }
 .am-plant-detail .am-pd-back { font-size: 15px; margin-bottom: 9px; }
 .am-plant-detail .am-pd-hero { min-height: 0; border-radius: 23px; }
 .am-plant-detail .am-pd-hero-image { width: 100%; height: 330px; inset: 0 0 auto; object-position: center 42%; }
 .am-plant-detail .am-pd-hero::before { background: linear-gradient(0deg,#180b28 0%,#180b28 37%,#180b28ed 55%,#180b288f 68%,#180b2815 87%); }
 .am-plant-detail .am-pd-hero::after { top: 215px; left: auto; right: 0; width: 105px; height: 170px; opacity: .24; }
 .am-plant-detail .am-pd-hero-copy { width: 100%; padding: 180px 19px 19px; }
 .am-plant-detail .am-pd-category { font-size: 13px; min-height: 29px; padding: 3px 13px; margin-bottom: 9px; background: #2b1736e6; }
 .am-plant-detail .am-pd-hero h1 { font-size: clamp(34px,8.8vw,45px); line-height: 1.1; }
 .am-plant-detail .am-pd-latin { font-size: 23px; margin: 4px 0 14px; }
 .am-plant-detail .am-pd-tags { gap: 6px; margin-bottom: 14px; }
 .am-plant-detail .am-pd-tags span { font-size: 13px; padding: 4px 10px; }
 .am-plant-detail .am-pd-intro { font-size: 18px; line-height: 1.55; }
 .am-plant-detail .am-pd-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 0 13px 21px; }
 .am-plant-detail .am-pd-fact { flex-direction: column; align-items: center; text-align: center; gap: 7px; font-size: 14px; }
 .am-plant-detail .am-pd-fact > .am-pd-icon { width: 44px; height: 44px; flex-basis: 44px; padding: 10px; }
 .am-plant-detail .am-pd-fact small { font-size: 12px; line-height: 1.35; }
 .am-plant-detail .am-pd-tabs { display: flex; gap: 8px; padding: 15px 3px 20px; margin: 0 -2px; scroll-snap-type: inline proximity; }
 .am-plant-detail .am-pd-tabs a { flex: 0 0 94px; min-height: 88px; padding: 10px 6px; border-radius: 13px; scroll-snap-align: start; font-size: 14px; }
 .am-plant-detail .am-pd-tabs a > .am-pd-icon { width: 31px; height: 31px; flex-basis: 31px; }
 .am-plant-detail .am-pd-section { margin-bottom: 16px; padding: 18px 17px 21px; border-radius: 20px; }
 .am-plant-detail .am-pd-section-head { gap: 10px; padding-bottom: 12px; margin-bottom: 15px; }
 .am-plant-detail .am-pd-section-head h2 { gap: 8px; flex-basis: 100%; font-size: 28px; line-height: 1.2; }
 .am-plant-detail .am-pd-section-head h2 .am-pd-icon { width: 27px; height: 27px; flex-basis: 27px; margin-top: 4px; }
 .am-plant-detail .am-pd-readtime { margin-left: 35px; font-size: 13px; min-height: 32px; padding: 4px 10px; }
 .am-plant-detail .am-pd-text, .am-plant-detail .am-pd-more :is(p,ul,ol) { font-size: 18px; line-height: 1.65; }
 .am-plant-detail .am-pd-more { margin-top: 12px; }
 .am-plant-detail .am-pd-more > summary { font-size: 17px; }
 .am-plant-detail .am-pd-gallery { gap: 10px; margin-top: 18px; }
 .am-plant-detail .am-pd-gallery img { height: 190px; }
 .am-plant-detail .am-pd-gallery figure { border-radius: 13px; }
 .am-plant-detail .am-pd-gallery figcaption { padding: 8px 8px 10px; font-size: 13px; }
 .am-plant-detail .am-pd-gallery-note, .am-plant-detail .am-pd-media-note { font-size: 13px; }
 .am-plant-detail .am-pd-illustrated { display: flex; flex-direction: column; padding-right: 17px; }
 .am-plant-detail .am-pd-illustrated .am-pd-section-head { width: 100%; order: 0; }
 .am-plant-detail .am-pd-illustrated .am-pd-section-body { order: 2; }
 .am-plant-detail .am-pd-section-art { position: relative; z-index: 0; inset: auto; width: calc(100% + 34px); height: 190px; margin: -4px -17px 17px; border-radius: 0; order: 1; }
 .am-plant-detail .am-pd-section-art::after { background: linear-gradient(0deg,#190c2e85,transparent 45%),linear-gradient(90deg,#1b0c2e30,transparent 45%); }
 .am-plant-detail .am-pd-section-art > img { object-position: center; }
 .am-plant-detail .am-pd-section-art > .am-pd-icon { width: 113px; height: 113px; padding: 27px; }
 .am-plant-detail .am-pd-evidence .am-pd-section-art { height: 145px; margin-top: -2px; margin-bottom: 10px; background: var(--pd-branch) calc(50% + 65px) center/85px 140px no-repeat; }
 .am-plant-detail .am-pd-evidence .am-pd-section-art::after { background: none; }
 .am-plant-detail .am-pd-cta, .am-plant-detail summary.am-pd-cta { display: flex; width: 100%; padding: 11px 17px; min-height: 49px; font-size: 17px; margin-left: auto; margin-right: auto; }
 .am-plant-detail .am-pd-related { grid-template-columns: minmax(0,1fr); gap: 14px; }
 .am-plant-detail .am-pd-related :is(span,h3) { font-size: 18px; padding: 12px 15px; }
 .am-plant-detail .am-pd-related img { max-height: 230px; }
 .am-plant-detail .am-pd-sources { font-size: 15px; }
}
@media (max-width: 359px) {
 .am-plant-detail .am-pd-hero-copy { padding-left: 16px; padding-right: 16px; }
 .am-plant-detail .am-pd-section { padding-left: 15px; padding-right: 15px; }
 .am-plant-detail .am-pd-section-head h2 { font-size: 26px; }
 .am-plant-detail .am-pd-gallery img { height: 165px; }
 .am-plant-detail .am-pd-section-art { width: calc(100% + 30px); margin-left: -15px; margin-right: -15px; }
}
@media (prefers-reduced-motion: reduce) {
 .am-plant-detail, .am-plant-detail * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Renderer-specific refinements and the optional native image viewer. */
.am-plant-detail .am-pd-category { gap: 7px; }
.am-plant-detail .am-pd-category > .am-pd-icon { width: 20px; height: 20px; flex-basis: 20px; }
.am-plant-detail .am-pd-fact > div > span { color: #d6c8d8; font-size: 13px; line-height: 1.4; margin-top: 3px; }
.am-plant-detail .am-pd-gallery figure > a { display: block; position: relative; }
.am-plant-detail .am-pd-zoom { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ddb17f; border-radius: 50%; background: #20102dde; box-shadow: 0 2px 8px #0a041f70; color: #ffe0a1; }
.am-plant-detail .am-pd-zoom > .am-pd-icon { width: 22px; height: 22px; }
.am-plant-detail summary.am-pd-cta::after { display: none; }
.am-plant-detail summary.am-pd-cta > .am-pd-icon { width: 24px; height: 24px; flex-basis: 24px; transition: transform .15s ease; }
.am-plant-detail .am-pd-more[open] > summary.am-pd-cta > .am-pd-icon { transform: rotate(-90deg); }
.am-plant-detail .am-pd-expanded { padding: 2px 0 5px; }
.am-plant-detail .am-pd-section-art > .am-pd-symbol { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; display: grid; place-items: center; padding: 35px; border: 1px solid #e3b679; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle,#5e315b77,#190b2e 70%); color: #f9d486; box-shadow: 0 0 18px #d8a26255,inset 0 0 22px #ae6b7844; }
.am-plant-detail .am-pd-symbol > .am-pd-icon { width: 100%; height: 100%; filter: drop-shadow(0 0 9px #e3ae6f70); }
.am-plant-detail .am-pd-return { display: flex; width: fit-content; margin: 24px auto 0; }
.am-plant-detail .am-pd-sources ul { margin: 0; padding: 0 0 0 20px; }
.am-plant-detail .am-pd-related a > .am-pd-icon { width: 65px; height: 65px; margin: 30px auto 15px; }
.am-plant-detail .am-pd-related a > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-plant-detail .am-pd-related a > span > .am-pd-icon { width: 24px; height: 24px; flex-basis: 24px; }
.am-pd-lightbox { position: fixed; inset: 0; width: min(850px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; margin: auto; padding: 16px; overflow: auto; border: 1px solid #d6b277; border-radius: 22px; background: radial-gradient(at 50% 0,#43204b,#170b25 60%); color: #fff2d5; box-shadow: 0 20px 80px #0009; }
.am-pd-lightbox::backdrop { background: #080313e8; }
.am-pd-lightbox form { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; margin: 0 0 8px; }
.am-pd-lightbox button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #dfbf87; border-radius: 50%; color: #ffe5b1; background: #351b42; font: 34px/1 system-ui,sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.am-pd-lightbox button:focus-visible { outline: 3px solid #ffe6aa; outline-offset: 3px; }
.am-pd-lightbox figure { margin: 0; }
.am-pd-lightbox img { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(100dvh - 155px); object-fit: contain; margin: auto; border-radius: 12px; }
.am-pd-lightbox figcaption { padding: 13px 5px 2px; font: 400 15px/1.5 system-ui,sans-serif; text-align: center; }
@media (max-width: 759px) {
 .am-plant-detail .am-pd-section-art > .am-pd-symbol { width: 115px; height: 115px; padding: 27px; }
}
@media (max-width: 540px) {
 .am-plant-detail .am-pd-fact > div > span { font-size: 12px; }
 .am-plant-detail .am-pd-section-art > .am-pd-symbol { width: 113px; height: 113px; padding: 27px; }
 .am-plant-detail .am-pd-return { width: 100%; }
 .am-pd-lightbox { padding: 12px; border-radius: 18px; }
}
/* A compact phone cover leaves room for the section menu on first arrival. */
@media (max-width: 540px) {
 .am-plant-detail .am-pd-hero-copy { padding-top: 105px; padding-bottom: 14px; }
 .am-plant-detail .am-pd-hero-image { height: 275px; }
 .am-plant-detail .am-pd-hero::before { background: linear-gradient(0deg,#180b28 0%,#180b28 34%,#180b28ed 57%,#180b288f 75%,#180b2815 100%); }
 .am-plant-detail .am-pd-category { min-height: 25px; margin-bottom: 6px; padding: 2px 11px; font-size: 12px; }
 .am-plant-detail .am-pd-category > .am-pd-icon { width: 17px; height: 17px; flex-basis: 17px; }
 .am-plant-detail .am-pd-hero h1 { font-size: clamp(32px,8.6vw,40px); line-height: 1.08; }
 .am-plant-detail .am-pd-latin { font-size: 21px; line-height: 1.3; margin: 4px 0 10px; }
 .am-plant-detail .am-pd-tags { gap: 5px; margin-bottom: 10px; }
 .am-plant-detail .am-pd-tags span { font-size: 12px; padding: 3px 9px; }
 .am-plant-detail .am-pd-intro { font-size: 18px; line-height: 1.45; }
 .am-plant-detail .am-pd-facts { gap: 8px; padding: 0 13px 17px; }
 .am-plant-detail .am-pd-fact { gap: 5px; }
 .am-plant-detail .am-pd-fact > .am-pd-icon { width: 34px; height: 34px; flex-basis: 34px; padding: 7px; }
 .am-plant-detail .am-pd-fact strong { font-size: 14px; line-height: 1.3; }
 .am-plant-detail .am-pd-fact > div > span { font-size: 13px; line-height: 1.3; }
 .am-plant-detail .am-pd-illustrated:not(.am-pd-has-art) .am-pd-section-art { display: none; }
 .am-plant-detail .am-pd-evidence:not(.am-pd-has-art) .am-pd-section-art { display: block; height: 118px; margin-top: -4px; margin-bottom: 14px; }
 .am-plant-detail .am-pd-evidence .am-pd-section-art > .am-pd-symbol { width: 100px; height: 100px; padding: 23px; }
}

/* Tea recipes share the botanical article system, with tactile recipe cards. */
.am-tea-detail .am-pd-hero { min-height: 315px; }
.am-tea-detail .am-pd-hero-copy { padding-bottom: 25px; }
.am-tea-detail .am-pd-hero h1 { margin-bottom: 16px; }
.am-tea-detail .am-tea-ingredients { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.am-tea-detail .am-tea-ingredient { min-width: 0; overflow: hidden; border: 1px solid #b2849b; border-radius: 18px; background: radial-gradient(at 0 0,#64335b66,transparent 70%),#21102f; }
.am-tea-detail .am-tea-ingredient > img { width: 100%; height: 195px; object-fit: cover; }
.am-tea-detail .am-tea-ingredient-copy { padding: 17px; }
.am-tea-detail .am-tea-ingredient h3 { font-size: 26px; line-height: 1.2; margin-bottom: 11px; }
.am-tea-detail .am-tea-ingredient p { font-size: 18px; line-height: 1.55; }
.am-tea-detail .am-tea-ingredient .am-pd-cta { display: flex; margin-top: 17px; padding: 10px 15px; }
.am-tea-detail .am-tea-steps { display: grid; gap: 17px; padding: 0; margin: 0; list-style: none; }
.am-tea-detail .am-tea-step { display: flex; align-items: flex-start; gap: 18px; padding: 20px; border: 1px solid #9d6a95; border-radius: 18px; background: radial-gradient(at 0 0,#6133586b,transparent 65%),#21102f; }
.am-tea-detail .am-tea-step-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 0 52px; }
.am-tea-detail .am-tea-step-mark > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #efcb86; border-radius: 50%; background: linear-gradient(#6a3d6c,#291335); color: #ffe1a0; box-shadow: 0 0 12px #efb35d40; font: 26px/1 Georgia,serif; }
.am-tea-detail .am-tea-step-copy { min-width: 0; }
.am-tea-detail .am-tea-step h3 { font-size: 27px; line-height: 1.2; margin-bottom: 12px; }
.am-tea-detail .am-tea-step p { font-size: 18px; line-height: 1.65; }
.am-tea-detail .am-pd-related small { display: block; padding: 0 14px 15px; color: #d6c8d8; font-size: 16px; font-style: italic; line-height: 1.4; }
.am-tea-detail .am-pd-section > .am-pd-cta { margin-top: 18px; }
.am-tea-detail .am-tea-restricted p { font-size: 18px; line-height: 1.65; }
@media (max-width: 540px) {
 .am-tea-detail .am-pd-hero { min-height: 0; }
 .am-tea-detail .am-pd-hero-copy { padding-top: 115px; padding-bottom: 18px; }
 .am-tea-detail .am-pd-hero h1 { margin-bottom: 12px; }
 .am-tea-detail .am-tea-ingredients { grid-template-columns: minmax(0,1fr); gap: 15px; }
 .am-tea-detail .am-tea-ingredient > img { height: 165px; }
 .am-tea-detail .am-tea-ingredient-copy { padding: 16px; }
 .am-tea-detail .am-tea-ingredient h3 { font-size: 25px; }
 .am-tea-detail .am-tea-step { flex-direction: column; gap: 13px; padding: 17px; }
 .am-tea-detail .am-tea-step-mark { flex-direction: row; flex-basis: auto; gap: 15px; }
 .am-tea-detail .am-tea-step h3 { font-size: 25px; }
 .am-tea-detail .am-tea-step .am-pd-cta { width: 100%; padding-inline: 13px; }
 .am-tea-detail .am-pd-related { grid-template-columns: minmax(0,1fr); }
}
