/* Consumer wiki, layered after the unmodified SimplyPages stylesheet. */
:root {
    --site-paper: #f3f5f4;
    --site-surface: #ffffff;
    --site-ink: #202b27;
    --site-muted: #59665f;
    --site-leaf: #176441;
    --site-border: #d8dfda;
    --site-soft: #e9f1ec;
    --site-error: #943c35;
    --site-radius: .75rem;
    --site-space: clamp(1rem, 2.6vw, 2rem);
    --sp-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    --sp-color-text-primary: var(--site-ink);
}
* { box-sizing: border-box; }
body { background: var(--site-paper); color: var(--site-ink); font-family: var(--sp-font-family-base); line-height: 1.5; }
a { color: var(--site-leaf); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--site-leaf); outline-offset: 4px; }
h1, h2, h3 { color: var(--site-ink); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.045em; margin: 0 0 1.6rem; font-weight: 750; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; margin: 0 0 1rem; font-weight: 700; }
h3 { font-size: .85rem; margin: 0 0 .5rem; }
p { margin: 0 0 .8rem; }
.main-header { margin: 0; background: var(--site-surface); border-bottom: 1px solid var(--site-border); }
.main-header .header-top-nav-wrap { width: 100%; min-width: 0; max-width: none; margin: 0; }
.site-header { max-width: 80rem; margin-inline: auto; padding: .8rem var(--site-space); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -.07em; text-decoration: none; }
.site-brand::before { content: ''; display: inline-block; width: 1.7rem; height: 1.7rem; margin-right: .5rem; vertical-align: -.25rem; background-color: currentColor; mask: url('/images/cannabis-leaf.svg') center / contain no-repeat; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .8rem; border-radius: .4rem; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--site-muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { background: var(--site-soft); color: var(--site-leaf); }
.skip-link { position: fixed; left: 1rem; top: -10rem; padding: .75rem 1rem; background: var(--site-surface); z-index: 100; }
.skip-link:focus { top: 1rem; }
.main-container { display: block; padding: 0; min-height: 0; }
.content-wrapper { overflow: visible; min-width: 0; padding: 0; }
.site-page { max-width: 80rem; margin-inline: auto; padding: var(--site-space); }
#main-content { min-height: 70vh; padding-block: 1.2rem; overflow-wrap: anywhere; }
.site-row.row { margin: 0; gap: var(--site-space); align-items: start; }
.site-row.row > .col { padding: 0; min-width: 0; }
.landing-row > .col:first-child { flex: 1.6; }
.landing-row > .col:last-child { flex: 1; }
.hero { padding: 2rem 0; }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.6rem); max-width: 12ch; white-space: pre-line; }
.eyebrow { color: var(--site-leaf); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .65rem; }
.lead { font-size: 1.1rem; max-width: 48ch; color: var(--site-muted); line-height: 1.7; }
.landing-row > .col:last-child { padding-top: 2rem; }
.landing-row .site-card { padding: 1.8rem; background: #e7efea; border-color: #d0dfd6; }
.landing-row .site-card > a { display: block; margin-top: 1.6rem; font-weight: 750; text-decoration: none; font-size: 1.25rem; }
.landing-row .site-card > p { font-size: .95rem; color: var(--site-muted); margin-top: .3rem; }
.site-card { padding: 1.4rem; background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.muted { color: var(--site-muted); }
.error-state { max-width: 50rem; border-inline-start: .3rem solid var(--site-error); }
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; background: var(--site-leaf); color: white; border-radius: .4rem; font-weight: 600; }
.button-link:visited { color: white; }
.site-footer { border-top: 1px solid var(--site-border); margin-top: 2rem; padding-block: 1.5rem; color: var(--site-muted); font-size: .85rem; }
#main-content > div > section, #main-content > div > .site-row { margin-bottom: 1.5rem; }
.overview-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
.overview-stats > * { margin: 0; }
.fact strong { display: block; font-size: .75rem; font-weight: 600; color: var(--site-muted); margin-bottom: .3rem; }
.fact span, .fact a { font-weight: 600; font-size: .95rem; }
.heritage-estimate small { display: block; color: var(--site-muted); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.parent-summary { padding-top: 1rem; border-top: 1px solid var(--site-border); margin-top: 1rem; }
.parent-summary h3 { color: var(--site-muted); font-weight: 600; }
.parent-cross { font-size: .95rem; margin-bottom: .4rem; }
.parent-cross a { font-weight: 650; }
.cross-separator { color: var(--site-muted); padding-inline: .25rem; }
.variety-link { font-size: .9rem; }
.aliases { border-top: 1px solid var(--site-border); margin-top: 1rem; font-size: .85rem; }
.aliases summary { color: var(--site-muted); }
.aliases .related-table { margin-top: .5rem; }
.image-empty { min-height: 15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #e4eae6; border: 1px solid var(--site-border); border-radius: var(--site-radius); color: var(--site-muted); }
.image-empty span { font-size: 2.7rem; color: #819b8b; line-height: 1.5; }
.image-empty p { font-size: .8rem; margin: .2rem 0; }
.freshness { padding: .8rem 1rem; margin-bottom: 1rem; background: var(--site-soft); border-radius: .4rem; font-size: .9rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: .7rem; font-size: .85rem; }
.pagination a, button { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .75rem; }
.search-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 1.3rem 2rem; }
.search-form label { font-size: .85rem; font-weight: 600; }
.search-form input { flex: 1; width: 18rem; max-width: 32rem; min-width: 8rem; min-height: 46px; padding: .65rem .85rem; border: 1px solid #aab9af; border-radius: .45rem; background: var(--site-surface); color: var(--site-ink); font: inherit; }
.search-form button { background: var(--site-leaf); color: white; border: 0; border-radius: .45rem; font: inherit; font-weight: 600; padding-inline: 1.2rem; cursor: pointer; }
.hero-search { margin-top: 2rem; }
.hero-search label { width: 100%; }
.related-table { min-width: 0; }
.related-table h2 { margin-bottom: .35rem; }
.table-count { font-size: .8rem; color: var(--site-muted); margin-bottom: .8rem; }
.related-table td a { display: block; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--site-border); border-radius: .6rem; }
.table-scroll table { width: 100%; border-collapse: collapse; background: var(--site-surface); font-size: .85rem; }
.table-scroll th, .table-scroll td { padding: .8rem; text-align: start; border-bottom: 1px solid #e6ebe8; vertical-align: top; }
.table-scroll th { background: #e9eeeb; font-size: .73rem; font-weight: 650; color: var(--site-muted); white-space: nowrap; }
.table-scroll td:first-child { font-weight: 600; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: #f6f9f7; }
summary { cursor: pointer; padding-block: .7rem; min-height: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Each connector joins a child card to a parent card. Bridges never occupy a card. */
.visual-lineage { min-width: 0; max-width: 100%; }
.tree-help { font-size: .85rem; max-width: 65ch; }
.lineage-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--site-border); border-radius: .6rem; background: #f5f8f6; overscroll-behavior-inline: contain; }
.lineage-canvas { width: max-content; min-width: 100%; padding: 1.5rem; }
.lineage-branch { display: flex; align-items: center; width: max-content; position: relative; }
.lineage-card { position: relative; width: 11.5rem; flex: 0 0 11.5rem; background: white; border: 1px solid #b6c9be; border-radius: .6rem; padding: .85rem; box-shadow: 0 2px 5px #20392d08; overflow-wrap: anywhere; }
.lineage-canvas > .lineage-branch > .lineage-card { background: #e5f1e9; border-color: #67957a; }
.lineage-card > * { display: block; }
.node-generation { color: var(--site-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.node-name, .lineage-card > strong { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.node-context { color: var(--site-muted); font-size: .73rem; margin-top: .45rem; line-height: 1.4; }
.node-notice { color: var(--site-muted); font-size: .72rem; margin-top: .6rem; }
.lineage-card [data-tree-link], .lineage-card a:not(.node-name) { margin-top: .65rem; padding-block: .3rem; min-height: 32px; font-size: .75rem; font-weight: 650; }
.lineage-groups { padding-left: 2.5rem; position: relative; }
.genetic-background { padding: .8rem; border: 1px solid var(--border, #b4c6bb); border-radius: .5rem; max-width: 24rem; }
.lineage-groups:not(:has(> .lineage-combination))::before { display: none; }
.lineage-groups::before { content: ''; position: absolute; width: 1.25rem; left: 0; top: 50%; border-top: 2px solid #7f9e8c; }
.lineage-groups:has(> .lineage-combination + .lineage-combination)::after,
.lineage-groups:has(> .tree-more)::after,
.lineage-groups:has(> .lineage-combination > .tree-more)::after { content: ''; position: absolute; left: 1.25rem; top: 1.8rem; bottom: 1.3rem; border-left: 2px solid #7f9e8c; }
.lineage-combination { position: relative; padding-block: 1.3rem; }
.lineage-combination + .lineage-combination { margin-top: .6rem; border-top: 1px dashed #b4c6bb; }
.combination-label { position: absolute; top: 0; left: 0; font-size: .65rem; color: #4b6958; white-space: nowrap; }
.lineage-parents { display: flex; flex-direction: column; }
.lineage-edge { position: relative; padding-block: .45rem; }
.tree-connector { position: absolute; left: -1.25rem; top: 0; bottom: 0; border-left: 2px solid #7f9e8c; width: 1.25rem; }
.tree-connector::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid #7f9e8c; }
.lineage-edge:first-child > .tree-connector { top: 50%; }
.lineage-edge:first-child > .tree-connector::after { top: 0; }
.lineage-edge:last-child > .tree-connector { bottom: 50%; }
.lineage-edge:last-child:not(:first-child) > .tree-connector::after { top: 100%; }
.lineage-edge:only-child > .tree-connector { top: 50%; bottom: auto; height: 0; border-left: 0; }
.tree-more { display: block; font-size: .8rem; padding: .75rem 0; }
@media (min-width: 48.01rem) {
    .overview-row.row > .col:first-child { flex: 1; }
    .overview-row.row > .col:last-child { flex: 3; }
}
@media (max-width: 48rem) {
    .site-row.row { flex-direction: column; }
    .site-row.row > .col { flex: none; width: 100%; max-width: 100%; }
    #main-content { padding-block: .7rem; }
    .site-header { gap: .35rem; }
    .site-header nav { width: 100%; justify-content: space-between; }
    .site-header nav a { padding-inline: .45rem; font-size: .82rem; }
    .site-card { padding: 1rem; }
    .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .lineage-card { width: 10rem; flex-basis: 10rem; }
    .image-empty { min-height: 8rem; }
    .hero { padding-top: .7rem; }
    .landing-row > .col:last-child { padding-top: 0; }
    .lineage-canvas { padding: 1rem; }
    .search-form label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
