/* Premium identifier pages (tools/content/*.json with "layout": "premium"; markup from scripts/tool_page_premium.py).
   Mobile first. Labels keep the capitalisation of the supplied copy (no text-transform). */

.identifier-page--premium body { background: #fbfaf6; }
.idp-glyph { display: block; width: 100%; height: 100%; }

/* ---------- Hero: H1 then the tool ---------- */
.idp-hero.hero {
  position: relative; min-height: 0; padding: calc(var(--nav-height) + 22px) 0 52px; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(124, 179, 66, 0.16), transparent 62%),
    radial-gradient(760px 420px at -12% 38%, rgba(212, 175, 55, 0.1), transparent 60%),
    linear-gradient(180deg, #fbfaf5 0%, #f2f7ee 100%);
  border-bottom: 1px solid rgba(74, 124, 89, 0.1);
}
/* Faint leaf line art behind the hero. */
.idp-hero::before, .idp-hero::after {
  content: ""; position: absolute; pointer-events: none; opacity: 0.55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' fill='none' stroke='%234A7C59' stroke-opacity='.16' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M100 8C150 50 176 112 166 168 156 222 124 248 100 252 76 248 44 222 34 168 24 112 50 50 100 8Z'/%3E%3Cpath d='M100 20V258M100 70 136 44M100 70 64 44M100 110 152 74M100 110 48 74M100 150 158 112M100 150 42 112M100 190 148 154M100 190 52 154M100 226 128 202M100 226 72 202'/%3E%3C/svg%3E");
}
.idp-hero::before { width: 300px; height: 390px; top: 40px; right: -70px; transform: rotate(22deg); }
.idp-hero::after { width: 220px; height: 286px; bottom: -60px; left: -70px; transform: rotate(-28deg); }
.idp-hero .container { position: relative; z-index: 1; }
.idp-crumbs { justify-content: center; margin-bottom: 18px; }
.idp-hero__head { max-width: 920px; margin: 0 auto 24px; text-align: center; }
.idp-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px 6px 8px; border: 1px solid rgba(74, 124, 89, 0.18);
  border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.78); color: var(--color-primary-dark); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
}
.idp-badge .idp-glyph { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #e3f0dc; }
.idp-title { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 6.4vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; color: #1c2a21; text-wrap: balance; }
.idp-title__sub { display: block; margin-top: 10px; font-size: 0.56em; font-style: italic; font-weight: 500; line-height: 1.25; color: var(--color-primary); }

/* The shared upload card, restyled. */
.idp-hero .tool-card {
  max-width: 820px; margin: 0 auto; padding: 18px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 26px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 34px 80px -46px rgba(28, 58, 38, 0.55), 0 2px 6px rgba(28, 58, 38, 0.04);
}
.idp-hero .upload-area { padding: 30px 18px 26px; border: 2px dashed rgba(74, 124, 89, 0.28); border-radius: 20px; background: linear-gradient(180deg, #fbfdf9 0%, #f1f7ec 100%); }
.idp-hero .upload-area:hover, .idp-hero .upload-area.drag-over { transform: none; border-color: var(--color-primary); box-shadow: inset 0 0 0 4px rgba(124, 179, 66, 0.12); }
.idp-hero .upload-area__icon { width: 68px; height: 68px; padding: 15px; background: #fff; color: var(--color-primary-dark); box-shadow: 0 10px 24px -14px rgba(28, 58, 38, 0.6), 0 0 0 6px rgba(232, 245, 233, 0.9); }
.idp-hero .upload-area:hover .upload-area__icon { animation: none; transform: translateY(-2px); }
.idp-hero .upload-area__title { font-size: clamp(1.25rem, 3.6vw, 1.5rem); color: #1c2a21; }
.idp-hero .upload-area__btn, .idp-hero .upload-area__camera-btn, .idp-hero .recent-searches__title { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* The Identify button stays hidden until a photo is chosen (app.js adds .visible). */
.idp-hero .identify-btn.visible { display: flex; align-items: center; justify-content: center; gap: 8px; }
.idp-hero .upload-area__btn { min-height: 46px; padding: 10px 22px; background: var(--color-primary-dark); font-size: 0.92rem; box-shadow: 0 10px 22px -12px rgba(46, 83, 57, 0.9); }
.idp-hero .upload-area__btn:hover { background: #24452f; }
.idp-hero .upload-area__camera-btn { min-height: 46px; padding: 10px 20px; border-color: rgba(74, 124, 89, 0.4); background: #fff; color: var(--color-primary-dark); font-size: 0.92rem; font-weight: 600; }
/* Line icons in place of the emoji the shared card used; app.js rewrites these labels, so the icons live in CSS. */
.idp-hero .upload-area__btn::before, .idp-hero .upload-area__camera-btn::before, .idp-hero .identify-btn::before, .idp-hero .recent-searches__title::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--idp-icon) center / contain no-repeat; mask: var(--idp-icon) center / contain no-repeat;
}
.idp-hero .upload-area__btn { --idp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E"); }
.idp-hero .upload-area__camera-btn { --idp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.idp-hero .identify-btn { --idp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E"); }
.idp-hero .recent-searches__title { --idp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.idp-hero .organ-selector { margin-top: 20px; }
/* All six plant-part choices stay on one row, phones included. */
.idp-hero .organ-selector__options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 470px; margin: 0 auto; }
.idp-hero .organ-btn { min-width: 0; width: auto; padding: 8px 2px; border-radius: 14px; }
.idp-hero .identify-btn { width: 100%; min-height: 54px; border-radius: 16px; background: linear-gradient(135deg, #3f7350, #2e5339); box-shadow: 0 16px 30px -18px rgba(46, 83, 57, 0.95); font-size: 1rem; }
.idp-hero .loading-spinner__leaf, .idp-hero .error-state__icon { display: inline-flex; width: 30px; height: 30px; color: var(--color-primary); }
.idp-hero .error-state__icon { width: 40px; height: 40px; color: #b5651d; }
.idp-lead { max-width: 760px; margin: 30px auto 0; text-align: center; font-size: 1.08rem; line-height: 1.85; color: #3d4b42; }
.idp-lead strong { color: #1f2d24; }

/* ---------- Guide with "On this page" ---------- */
.idp-layout.container { display: grid; gap: 22px; max-width: 1180px; padding-top: 36px; padding-bottom: 24px; }
.idp-toc { min-width: 0; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -26px rgba(28, 58, 38, 0.5); }
.idp-toc__toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #1f2d24; text-align: left; }
.idp-toc__chev { width: 20px; height: 20px; margin-left: auto; color: var(--color-primary); transition: transform var(--transition-fast); }
.idp-toc.is-open .idp-toc__chev { transform: rotate(180deg); }
.idp-toc__list { display: grid; gap: 2px; margin: 0; padding: 0 10px 12px; list-style: none; }
.idp-js .idp-toc:not(.is-open) .idp-toc__list { display: none; }
.idp-toc__list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 0.86rem; line-height: 1.4; color: var(--color-text-secondary); transition: background var(--transition-fast), color var(--transition-fast); }
.idp-toc__list a:hover { background: #f1f7ee; color: var(--color-primary-dark); }
.idp-toc__list a[aria-current="true"] { background: #e6f1e1; color: var(--color-primary-dark); font-weight: 600; }
.idp-toc__num { font-family: var(--font-display); font-style: italic; font-weight: 600; color: #b8972e; }

.idp-article { min-width: 0; max-width: 780px; }
.idp-section { padding: 34px 0; border-bottom: 1px solid rgba(74, 124, 89, 0.12); scroll-margin-top: calc(var(--nav-height) + 18px); }
.idp-section:first-child { padding-top: 8px; }
.idp-section:last-child { border-bottom: 0; }
.idp-section__num { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-display); font-size: 0.95rem; font-style: italic; font-weight: 600; color: #b8972e; }
.idp-section__num::after { content: ""; width: 36px; height: 1px; background: rgba(184, 151, 46, 0.5); }
.idp-section h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(1.5rem, 4.6vw, 2.15rem); font-weight: 700; line-height: 1.22; color: #1c2a21; text-wrap: balance; }
.idp-section p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.85; color: #44524a; }
.idp-section p:last-child { margin-bottom: 0; }
.idp-section a, .idp-lead a, .idp-faq__answer a { color: var(--color-primary-dark); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(74, 124, 89, 0.4); text-underline-offset: 3px; }
.idp-section a:hover, .idp-faq__answer a:hover { text-decoration-color: currentColor; }
.idp-section strong { color: #1f2d24; }
.idp-h3 { display: flex; align-items: center; gap: 10px; margin: 34px 0 12px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; color: #22412d; }
.idp-h3::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)); transform: rotate(45deg); }

.idp-definition { padding: 20px 22px; border: 1px solid rgba(74, 124, 89, 0.16); border-left: 4px solid var(--color-primary); border-radius: 16px; background: linear-gradient(135deg, #eef6ea, #f9fbf7); }
.idp-section .idp-definition { font-size: 1.06rem; color: #26342b; }

.idp-callout { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin: 18px 0; padding: 16px 18px; border: 1px solid; border-radius: 16px; }
.idp-callout__icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #fff; }
.idp-section .idp-callout p { margin: 0; font-size: 0.98rem; line-height: 1.75; }
.idp-callout--rule { border-color: #ecdfb3; background: linear-gradient(135deg, #fdf8e8, #fffdf6); }
.idp-callout--rule .idp-callout__icon { color: #a1801f; }
.idp-callout--note { border-color: rgba(74, 124, 89, 0.16); background: #f5f8f3; }
.idp-callout--note .idp-callout__icon { color: var(--color-primary); }
.idp-callout--safety { border-color: #f0d2a4; border-left: 4px solid #c27a26; background: linear-gradient(135deg, #fff5e6, #fffbf5); }
.idp-callout--safety .idp-callout__icon { color: #b5651d; }

/* Tables: cards on phones, tables from 700px. */
.idp-table { margin: 20px 0; }
.idp-table table { width: 100%; border-collapse: collapse; }
.idp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.idp-table tbody { display: grid; gap: 10px; }
.idp-table tr { display: block; padding: 14px 16px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 16px; background: #fff; }
.idp-table th[scope="row"], .idp-table td { display: block; text-align: left; }
.idp-rowhead { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #1c2a21; }
.idp-table td { margin-top: 8px; font-size: 0.93rem; line-height: 1.6; color: #44524a; }
.idp-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 0.76rem; font-weight: 600; color: var(--color-primary); }
.idp-num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--color-primary-dark); color: #fff; font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; }
.idp-cell-glyph { display: block; width: 46px; height: 46px; flex-shrink: 0; padding: 4px; border-radius: 12px; background: #eef6ea; color: var(--color-primary-dark); }
.idp-table--lookalike tr { border-left: 4px solid #d89a45; }
.idp-table--lookalike td:last-child { padding: 10px 12px; border-radius: 12px; background: #fff6ea; color: #6f4513; }
.idp-table--lookalike td:last-child::before { color: #a05a14; }

/* Five-question key and photo steps */
.idp-key, .idp-photo { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; counter-reset: idp-step; }
.idp-key__item, .idp-photo__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; align-content: start; padding: 16px 18px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 18px; background: #fff; counter-increment: idp-step; }
.idp-key__icon, .idp-photo__icon { position: relative; width: 56px; height: 56px; padding: 7px; border-radius: 16px; background: linear-gradient(135deg, #e7f2e2, #f5f9f2); color: var(--color-primary-dark); }
.idp-key__icon::after, .idp-photo__icon::after {
  content: counter(idp-step); position: absolute; top: -7px; left: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-primary-dark); color: #fff; font-size: 0.72rem; font-weight: 700; box-shadow: 0 0 0 3px #fff;
}
.idp-section .idp-key__item p, .idp-section .idp-photo__item p { margin: 0; font-size: 0.96rem; line-height: 1.7; }
.idp-key__label, .idp-photo__label { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1.06rem; line-height: 1.35; }

/* Accuracy figures */
.idp-stats { display: grid; gap: 12px; margin: 22px 0; padding: 18px 20px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 18px; background: #fff; }
.idp-stat { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.idp-stat__icon { width: 38px; height: 38px; padding: 4px; border-radius: 11px; background: #eef6ea; color: var(--color-primary-dark); }
.idp-stat--flower .idp-stat__icon { background: #fbf2e0; color: #a1801f; }
.idp-stat__bar { height: 12px; overflow: hidden; border-radius: var(--radius-full); background: #edf3ea; }
.idp-stat__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7cb342, #4a7c59); }
.idp-stat--flower .idp-stat__bar span { background: linear-gradient(90deg, #e6c65f, #b8972e); }
.idp-stat__value { min-width: 64px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #1c2a21; text-align: right; }

/* ---------- FAQ ---------- */
.idp-faq { padding: 56px 0; background: linear-gradient(180deg, #fbf6ea 0%, #f4f8f0 100%); border-top: 1px solid rgba(184, 151, 46, 0.18); }
.idp-faq h2 { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.6rem, 4.6vw, 2.3rem); text-align: center; color: #1c2a21; }
.idp-faq__list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.idp-faq__item { border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 16px; background: #fff; transition: box-shadow var(--transition-fast); }
.idp-faq__item[open] { box-shadow: 0 14px 30px -24px rgba(28, 58, 38, 0.55); }
.idp-faq__item summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.idp-faq__item summary::-webkit-details-marker { display: none; }
.idp-faq__item summary h3 { flex: 1; margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.45; color: #1f2d24; }
.idp-faq__icon { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #eef6ea; }
.idp-faq__icon::before, .idp-faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--color-primary-dark); transform: translate(-50%, -50%); transition: transform var(--transition-fast); }
.idp-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.idp-faq__item[open] .idp-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.idp-faq__answer { padding: 0 18px 18px; }
.idp-faq__answer p { margin: 0; font-size: 0.97rem; line-height: 1.8; color: #44524a; }
.idp-faq__item summary:focus-visible, .idp-toc__toggle:focus-visible, .idp-tool:focus-visible, .idp-section a:focus-visible, .idp-toc__list a:focus-visible, .idp-table:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 3px; }

/* ---------- Related tools ---------- */
.idp-related { padding: 56px 0 64px; }
.idp-related__head { max-width: 680px; margin: 0 auto 26px; text-align: center; }
.idp-related__head h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.6rem, 4.6vw, 2.2rem); color: #1c2a21; }
.idp-related__head p { color: var(--color-text-secondary); }
.idp-related__grid { display: grid; gap: 12px; }
.idp-tool { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 18px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 18px; background: #fff; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.idp-tool:hover { border-color: rgba(74, 124, 89, 0.4); box-shadow: 0 18px 36px -28px rgba(28, 58, 38, 0.6); transform: translateY(-2px); }
.idp-tool__icon { grid-row: span 3; width: 52px; height: 52px; padding: 7px; border-radius: 15px; background: linear-gradient(135deg, #e7f2e2, #f5f9f2); color: var(--color-primary-dark); }
.idp-tool h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.12rem; color: #1c2a21; }
.idp-tool p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.6; color: var(--color-text-secondary); }
.idp-tool__link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--color-primary-dark); }
.idp-tool__arrow { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.idp-tool:hover .idp-tool__arrow { transform: translateX(3px); }

/* ---------- Tablets and up ---------- */
@media (min-width: 700px) {
  .idp-hero.hero { padding-bottom: 64px; }
  .idp-hero .tool-card { padding: 24px; border-radius: 30px; }
  .idp-hero .upload-area { padding: 38px 28px 32px; }
  .idp-table { overflow-x: auto; border: 1px solid rgba(74, 124, 89, 0.16); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px -28px rgba(28, 58, 38, 0.5); }
  .idp-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .idp-table tbody { display: table-row-group; }
  .idp-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
  .idp-table th[scope="row"], .idp-table td { display: table-cell; }
  .idp-table thead th { padding: 13px 18px; background: #f1f6ee; color: var(--color-primary-dark); font-size: 0.82rem; font-weight: 600; text-align: left; white-space: nowrap; }
  .idp-table tbody th, .idp-table tbody td { padding: 15px 18px; border-top: 1px solid rgba(74, 124, 89, 0.1); vertical-align: top; }
  .idp-table tbody th { width: 27%; }
  .idp-table td { margin: 0; font-size: 0.94rem; }
  .idp-table td::before { content: none; }
  .idp-table tbody tr:hover > * { background: #fafcf8; }
  .idp-rowhead { font-size: 1rem; }
  .idp-table--lookalike { border-color: #efd6ae; }
  .idp-table--lookalike thead th { background: #fff3e2; color: #8a4b0f; }
  .idp-table--lookalike tr { border-left: 0; }
  .idp-table--lookalike td:last-child { border-radius: 0; }
  .idp-key__item, .idp-photo__item { grid-template-columns: 64px minmax(0, 1fr); padding: 18px 20px; }
  .idp-key__icon, .idp-photo__icon { width: 64px; height: 64px; padding: 9px; }
  .idp-photo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .idp-photo__item { grid-template-columns: 1fr; gap: 14px; }
  .idp-photo__icon { width: 100%; height: 96px; padding: 14px; }
  .idp-photo__icon .idp-glyph { width: auto; margin: 0 auto; }
  .idp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .idp-faq, .idp-related { padding: 72px 0; }
  .idp-faq__item summary { padding: 18px 22px; }
  .idp-faq__answer { padding: 0 22px 20px; }
}

/* ---------- Desktops: sticky contents beside the guide ---------- */
@media (min-width: 1024px) {
  .idp-layout.container { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 64px; }
  .idp-toc { position: sticky; top: calc(var(--nav-height) + 20px); align-self: start; max-height: calc(100vh - var(--nav-height) - 40px); overflow-y: auto; scrollbar-width: thin; }
  .idp-toc__toggle { cursor: default; pointer-events: none; }
  .idp-toc__chev { display: none; }
  .idp-js .idp-toc:not(.is-open) .idp-toc__list { display: grid; }
  .idp-section { padding: 44px 0; }
  .idp-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .idp-tool { grid-template-columns: 1fr; padding: 24px; }
  .idp-tool__icon { grid-row: auto; margin-bottom: 14px; width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .idp-toc__chev, .idp-faq__icon::before, .idp-faq__icon::after, .idp-tool, .idp-tool__arrow { transition: none; }
}

/* ---------- Shared components: timeline steps, shot list, photos, card groups ---------- */
.idp-timeline { position: relative; display: grid; gap: 0; margin: 24px 0; padding: 0; list-style: none; counter-reset: idp-step; }
.idp-timeline__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 22px; counter-increment: idp-step; }
.idp-timeline__item:not(:last-child)::before { content: ""; position: absolute; top: 60px; bottom: 4px; left: 27px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(74, 124, 89, 0.35), rgba(74, 124, 89, 0.08)); }
.idp-timeline__icon { position: relative; width: 56px; height: 56px; padding: 8px; border-radius: 50%; background: #fff; color: var(--color-primary-dark); box-shadow: 0 0 0 1px rgba(74, 124, 89, 0.18), 0 10px 22px -16px rgba(28, 58, 38, 0.6); }
.idp-timeline__icon::after {
  content: counter(idp-step); position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-primary-dark); color: #fff; font-size: 0.72rem; font-weight: 700; box-shadow: 0 0 0 3px #fbfaf6;
}
.idp-section .idp-timeline__item p { margin: 6px 0 0; font-size: 0.98rem; line-height: 1.75; }
.idp-timeline__label { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; }

.idp-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.idp-shots__item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 16px; background: #fff; }
.idp-shots__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.idp-shots__icon { width: 48px; height: 48px; padding: 6px; border-radius: 14px; background: #eef6ea; color: var(--color-primary-dark); }
.idp-section .idp-shots__item p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.idp-figure { margin: 26px 0 8px; overflow: hidden; border-radius: 22px; box-shadow: 0 26px 50px -36px rgba(28, 58, 38, 0.7); }
.idp-figure img { display: block; width: 100%; height: auto; }

.idp-cards { display: grid; gap: 12px; margin-top: 18px; }
.idp-card { padding: 18px; border: 1px solid rgba(74, 124, 89, 0.14); border-radius: 18px; background: #fff; }
.idp-card__icon { display: block; width: 50px; height: 50px; margin-bottom: 12px; padding: 6px; border-radius: 15px; background: #eef6ea; color: var(--color-primary-dark); }
.idp-section .idp-card__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.18rem; line-height: 1.3; color: #1c2a21; }
.idp-section .idp-card p { font-size: 0.95rem; line-height: 1.75; }

@media (min-width: 700px) {
  .idp-shots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .idp-shots__item { grid-column: span 2; }
  .idp-shots__item:nth-child(4) { grid-column: 2 / span 2; }
  .idp-shots__item:last-child:nth-child(odd) { grid-column: span 2; }
  .idp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .idp-card { padding: 22px; }
}

/* ---------- Flower theme: blush, rose and plum, and a two-panel tool ---------- */
.identifier-page--flower body { background: #fdf9f7; }
.identifier-page--flower .idp-hero.hero {
  background:
    radial-gradient(760px 420px at 92% -6%, rgba(232, 139, 170, 0.24), transparent 62%),
    radial-gradient(680px 420px at -8% 44%, rgba(242, 190, 120, 0.18), transparent 62%),
    linear-gradient(180deg, #fff8f5 0%, #fbeef1 100%);
  border-bottom-color: rgba(194, 80, 122, 0.12);
}
.identifier-page--flower .idp-hero::before, .identifier-page--flower .idp-hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23C2507A' stroke-opacity='.2' stroke-width='1.4'%3E%3Cg transform='translate(100 100)'%3E%3Cellipse rx='22' ry='46' cy='-50'/%3E%3Cellipse rx='22' ry='46' cy='-50' transform='rotate(72)'/%3E%3Cellipse rx='22' ry='46' cy='-50' transform='rotate(144)'/%3E%3Cellipse rx='22' ry='46' cy='-50' transform='rotate(216)'/%3E%3Cellipse rx='22' ry='46' cy='-50' transform='rotate(288)'/%3E%3Ccircle r='14'/%3E%3C/g%3E%3C/svg%3E");
}
.identifier-page--flower .idp-hero::before { width: 320px; height: 320px; top: 70px; right: -90px; transform: rotate(12deg); }
.identifier-page--flower .idp-hero::after { width: 230px; height: 230px; bottom: -70px; left: -80px; transform: rotate(-20deg); }
.identifier-page--flower .idp-badge { border-color: rgba(194, 80, 122, 0.22); color: #7d2f57; }
.identifier-page--flower .idp-badge .idp-glyph { background: #fbe3ea; color: #c2507a; }
.identifier-page--flower .idp-title { color: #2a1c22; }
.identifier-page--flower .idp-title__sub { color: #b2456f; }
.identifier-page--flower .idp-crumbs a:hover { color: #b2456f; }
.identifier-page--flower .idp-hero .tool-card { border-color: rgba(194, 80, 122, 0.16); box-shadow: 0 34px 80px -46px rgba(125, 47, 87, 0.55), 0 2px 6px rgba(125, 47, 87, 0.05); }
.identifier-page--flower .idp-hero .upload-area {
  border-color: rgba(194, 80, 122, 0.34); border-radius: 24px;
  background: radial-gradient(420px 220px at 50% 30%, #fff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, #fff6f2 0%, #fbe8ee 100%);
}
.identifier-page--flower .idp-hero .upload-area:hover, .identifier-page--flower .idp-hero .upload-area.drag-over { border-color: #c2507a; box-shadow: inset 0 0 0 4px rgba(232, 139, 170, 0.16); }
/* The drop icon sits in a petal-ringed badge. */
.identifier-page--flower .idp-hero .upload-area__icon {
  width: 84px; height: 84px; padding: 17px; border: 3px solid transparent; color: #7d2f57;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from 0deg, #e88baa, #f2be78, #c2507a, #e88baa) border-box;
  box-shadow: 0 0 0 8px rgba(251, 227, 234, 0.9), 0 16px 30px -18px rgba(125, 47, 87, 0.7);
}
.identifier-page--flower .idp-hero .upload-area__title { color: #2a1c22; }
.identifier-page--flower .idp-hero .upload-area__btn { background: #7d2f57; box-shadow: 0 10px 22px -12px rgba(125, 47, 87, 0.9); }
.identifier-page--flower .idp-hero .upload-area__btn:hover { background: #65244a; }
.identifier-page--flower .idp-hero .upload-area__camera-btn { border-color: rgba(194, 80, 122, 0.45); color: #7d2f57; }
.identifier-page--flower .idp-hero .upload-area__camera-btn:hover { background: #fdf0f3; }
.identifier-page--flower .idp-hero .organ-selector { padding: 16px; border: 1px solid rgba(194, 80, 122, 0.14); border-radius: 20px; background: linear-gradient(160deg, #fffaf8, #fdf1f4); }
.identifier-page--flower .idp-hero .organ-selector__label { color: #5d3a49; font-weight: 600; }
.identifier-page--flower .idp-hero .organ-btn { border-color: rgba(194, 80, 122, 0.16); background: #fff; }
.identifier-page--flower .idp-hero .organ-btn:hover { border-color: #e88baa; color: #7d2f57; }
.identifier-page--flower .idp-hero .organ-btn.active { border-color: #c2507a; background: #fde9ef; color: #7d2f57; box-shadow: 0 8px 18px -12px rgba(194, 80, 122, 0.8); }
.identifier-page--flower .idp-hero .identify-btn { background: linear-gradient(135deg, #c2507a, #7d2f57); box-shadow: 0 16px 30px -18px rgba(125, 47, 87, 0.95); }
.identifier-page--flower .idp-hero .loading-spinner__leaf { color: #c2507a; }
.identifier-page--flower .idp-lead { color: #4a3a41; }
.identifier-page--flower .idp-lead strong { color: #7d2f57; }

/* Guide accents */
.identifier-page--flower .idp-section__num, .identifier-page--flower .idp-toc__num { color: #c2507a; }
.identifier-page--flower .idp-section__num::after { background: rgba(194, 80, 122, 0.4); }
.identifier-page--flower .idp-section { border-bottom-color: rgba(194, 80, 122, 0.12); }
.identifier-page--flower .idp-section h2, .identifier-page--flower .idp-related__head h2, .identifier-page--flower .idp-faq h2 { color: #2a1c22; }
.identifier-page--flower .idp-section a, .identifier-page--flower .idp-lead a, .identifier-page--flower .idp-faq__answer a { color: #8a3460; text-decoration-color: rgba(194, 80, 122, 0.45); }
.identifier-page--flower .idp-h3 { color: #6a2a4c; }
.identifier-page--flower .idp-h3::before { background: linear-gradient(135deg, #e88baa, #c2507a); border-radius: 50% 0; }
.identifier-page--flower .idp-definition { border-color: rgba(194, 80, 122, 0.18); border-left-color: #c2507a; background: linear-gradient(135deg, #fdf0f3, #fffaf8); }
.identifier-page--flower .idp-toc, .identifier-page--flower .idp-table, .identifier-page--flower .idp-table tr, .identifier-page--flower .idp-shots__item, .identifier-page--flower .idp-card, .identifier-page--flower .idp-faq__item, .identifier-page--flower .idp-tool { border-color: rgba(194, 80, 122, 0.15); }
.identifier-page--flower .idp-toc__chev { color: #c2507a; }
.identifier-page--flower .idp-toc__list a:hover { background: #fdf2f5; color: #7d2f57; }
.identifier-page--flower .idp-toc__list a[aria-current="true"] { background: #fbe3ea; color: #7d2f57; }
.identifier-page--flower .idp-cell-glyph, .identifier-page--flower .idp-shots__icon, .identifier-page--flower .idp-card__icon, .identifier-page--flower .idp-tool__icon { background: linear-gradient(135deg, #fde6ec, #fff6f2); color: #8a3460; }
.identifier-page--flower .idp-table td::before { color: #b2456f; }
.identifier-page--flower .idp-timeline__icon { color: #8a3460; box-shadow: 0 0 0 1px rgba(194, 80, 122, 0.22), 0 10px 22px -16px rgba(125, 47, 87, 0.6); }
.identifier-page--flower .idp-timeline__icon::after { background: #7d2f57; box-shadow: 0 0 0 3px #fdf9f7; }
.identifier-page--flower .idp-timeline__item:not(:last-child)::before { background: linear-gradient(180deg, rgba(194, 80, 122, 0.4), rgba(194, 80, 122, 0.08)); }
.identifier-page--flower .idp-figure { box-shadow: 0 26px 50px -34px rgba(125, 47, 87, 0.65); }
.identifier-page--flower .idp-callout--note { border-color: rgba(194, 80, 122, 0.16); background: #fdf6f8; }
.identifier-page--flower .idp-callout--note .idp-callout__icon { color: #c2507a; }
.identifier-page--flower .idp-faq { background: linear-gradient(180deg, #fff4ee 0%, #fbeef1 100%); border-top-color: rgba(194, 80, 122, 0.16); }
.identifier-page--flower .idp-faq__icon { background: #fbe3ea; }
.identifier-page--flower .idp-faq__icon::before, .identifier-page--flower .idp-faq__icon::after { background: #7d2f57; }
.identifier-page--flower .idp-tool__link { color: #7d2f57; }
.identifier-page--flower .idp-tool:hover { border-color: rgba(194, 80, 122, 0.45); box-shadow: 0 18px 36px -28px rgba(125, 47, 87, 0.6); }

@media (min-width: 700px) {
  .identifier-page--flower .idp-table thead th { background: #fdf0f3; color: #7d2f57; }
  .identifier-page--flower .idp-table tbody tr:hover > * { background: #fffafb; }
  .identifier-page--flower .idp-table--lookalike thead th { background: #fff3e2; color: #8a4b0f; }
}

/* Two-panel tool from 900px: the drop zone on the left, the plant-part panel and Identify button on the right. */
@media (min-width: 900px) {
  .identifier-page--flower .idp-hero__head { max-width: 1080px; text-align: left; }
  .identifier-page--flower .idp-crumbs { justify-content: flex-start; max-width: 1080px; margin-left: auto; margin-right: auto; }
  .identifier-page--flower .idp-lead { max-width: 1080px; text-align: left; }
  .identifier-page--flower .idp-hero .tool-card {
    display: grid; max-width: 1080px; padding: 22px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas: "drop parts" "drop go"; grid-template-rows: auto 1fr; column-gap: 22px; align-items: start;
  }
  .identifier-page--flower .idp-hero .tool-card > * { grid-column: 1 / -1; }
  .identifier-page--flower .idp-hero .tool-card > .upload-area, .identifier-page--flower .idp-hero .tool-card > .image-preview { grid-column: auto; grid-area: drop; margin: 0; }
  .identifier-page--flower .idp-hero .tool-card > .organ-selector { grid-column: auto; grid-area: parts; margin: 0; padding: 22px; text-align: left; }
  .identifier-page--flower .idp-hero .tool-card > .identify-btn { grid-column: auto; grid-area: go; align-self: end; margin: 16px 0 0; }
  .identifier-page--flower .idp-hero .upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; }
  .identifier-page--flower .idp-hero .tool-card > .image-preview.visible { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 340px; padding: 20px; border-radius: 24px; background: linear-gradient(160deg, #fff6f2 0%, #fbe8ee 100%); }
  .identifier-page--flower .idp-hero .organ-selector__label { margin-bottom: 14px; font-size: 0.95rem; }
  .identifier-page--flower .idp-hero .organ-selector__options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; margin: 0; }
  .identifier-page--flower .idp-hero .organ-btn { min-height: 82px; padding: 12px 6px; font-size: 0.82rem; }
  .identifier-page--flower .idp-hero .organ-btn__icon img { width: 30px; height: 30px; }
}
