/* Earth Learning Library, Little Earthkeepers and Publishing Studio.
   Brand values live in :root only; swap them to match the main site's exact palette and fonts. */
/* Earth Learning Library, Little Earthkeepers and Publishing Studio.
   Loaded after the site's own styles; uses the site's colour and font variables. */
:root {
  --wl-forest: var(--forest, #162c25);
  --wl-forest-2: #2a4a3e;
  --wl-moss: var(--sage, #637b68);
  --wl-cream: var(--cream, #f8f6ef);
  --wl-paper: #fffefa;
  --wl-sand: var(--line, #d8dcce);
  --wl-ink: var(--ink, #243329);
  --wl-muted: var(--muted, #6e786b);
  --wl-gold: var(--gold, #bfa783);
  --wl-danger: #8f2f2a;
  --wl-radius: 2px;
  --wl-serif: var(--serif, 'Playfair Display', Georgia, serif);
  --wl-sans: var(--sans, 'DM Sans', Arial, sans-serif);
  --wl-shadow: 0 1px 0 rgba(22, 44, 37, .06);
}
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--wl-gold); outline-offset: 2px; }
.wl-skip { position: absolute; left: -999px; top: 0; background: var(--wl-cream); color: var(--wl-forest); padding: .5rem 1rem; z-index: 100; }
.wl-skip:focus { left: 1rem; }
.wl-main { max-width: 1260px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(22px, 3vw, 34px) 80px; font-size: 16px; }
.wl-main h1 { font-family: var(--wl-serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; font-size: clamp(38px, 5vw, 64px); margin: 10px 0 18px; color: var(--wl-forest); }
.wl-main h2 { font-family: var(--wl-serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(26px, 3vw, 36px); margin: 1.6em 0 .6em; color: var(--wl-forest); max-width: none; }
.wl-main h3 { font-family: var(--wl-serif); font-weight: 400; color: var(--wl-forest); }
.wl-main a { color: var(--wl-forest); }
.wl-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .24em; font-weight: 700; color: var(--wl-moss); margin: 0 0 .5rem; }
.wl-hero { padding: 1rem 0 1.5rem; max-width: 760px; }
.wl-lede { font-size: 1.15rem; color: var(--wl-muted); }
.wl-subtitle { font-family: var(--wl-serif); font-size: 1.25rem; color: var(--wl-forest-2); margin-top: -.25rem; }
.wl-small, .wl-hint { font-size: .88rem; color: var(--wl-muted); }
.wl-hint { display: block; font-weight: 400; }
.wl-note { background: var(--wl-paper); border-left: 4px solid var(--wl-moss); padding: .7rem 1rem; border-radius: 0 8px 8px 0; font-size: .95rem; }
.wl-status { color: var(--wl-muted); }
.wl-error { color: var(--wl-danger); }
.wl-banner { background: #fff4d6; border: 1px solid #e6cf8f; padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; }
.wl-empty { text-align: center; padding: 3rem 1rem; }
.wl-narrow { max-width: 520px; margin: 0 auto; }

/* Filters */
.wl-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; background: var(--wl-paper); padding: 1rem; border-radius: var(--wl-radius); box-shadow: var(--wl-shadow); margin-bottom: 1rem; }
.wl-filters label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--wl-forest-2); gap: .25rem; }
.wl-filters .wl-search { flex: 1 1 240px; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--wl-ink); background: #fff; border: 1px solid var(--wl-sand); border-radius: 0; padding: .55rem .7rem; min-height: 44px; width: 100%; }
textarea { min-height: 0; resize: vertical; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--wl-forest-2); }
select[multiple] { min-height: 7rem; }

/* Cards */
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.wl-card { background: var(--wl-paper); border: 1px solid var(--wl-sand); overflow: hidden; transition: transform .15s ease; }
.wl-card:hover { transform: translateY(-2px); }
.wl-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.wl-card-cover { aspect-ratio: 10 / 13; background: var(--wl-sand); }
.wl-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.wl-card-nocover { display: grid; place-items: center; height: 100%; font: 3rem var(--wl-serif); color: var(--wl-moss); }
.wl-card-body { padding: .9rem 1rem 1.1rem; }
.wl-card-body h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 .35rem; }
.wl-card-summary { font-size: .92rem; color: var(--wl-muted); margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wl-price { font-weight: 700; color: var(--wl-forest-2); margin: 0; }
.wl-price-lg { font-size: 1.3rem; }

@media (max-width: 560px) {
  .wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .wl-card-body { padding: .7rem .75rem .9rem; }
  .wl-card-body h3 { font-size: 1rem; }
  .wl-card-summary { display: none; }
  .wl-filters label:not(.wl-search) { flex: 1 1 45%; }
}
/* Publication page */
.wl-crumbs { font-size: .9rem; margin-bottom: 1rem; }
.wl-item-head { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.wl-item-cover img { border-radius: var(--wl-radius); box-shadow: var(--wl-shadow); }
.wl-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.wl-tags span { background: #e3ecdc; color: var(--wl-forest-2); padding: .2rem .7rem; border-radius: 99px; font-size: .85rem; }
.wl-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0 .5rem; }
.wl-prose { max-width: 720px; margin-top: 2rem; }
.wl-prose h1, .wl-prose h2 { font-size: 1.45rem; }
.wl-video { aspect-ratio: 16 / 9; max-width: 860px; margin-top: 2rem; }
.wl-video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--wl-radius); }
.wl-sources { max-width: 720px; font-size: .92rem; }
@media (max-width: 720px) { .wl-item-head { grid-template-columns: 1fr; } .wl-item-cover { max-width: 300px; } }

/* Buttons: one system for the Library, account and Studio.
   Selectors include .wl-main a / button so the site's own link colours can't override them. */
.wl-btn, .wl-main a.wl-btn, .wl-main button.wl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .7rem 1.35rem; border-radius: 0;
  border: 1.5px solid var(--wl-forest); background: transparent; color: var(--wl-forest);
  font: 600 14px/1.2 var(--wl-sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.wl-btn:hover, .wl-main a.wl-btn:hover, .wl-main button.wl-btn:hover { background: #e6ebdf; color: var(--wl-forest); }
.wl-btn-primary, .wl-main a.wl-btn-primary, .wl-main button.wl-btn-primary {
  background: var(--wl-forest); border-color: var(--wl-forest); color: #fffdf6;
}
.wl-btn-primary:hover, .wl-main a.wl-btn-primary:hover, .wl-main button.wl-btn-primary:hover {
  background: #2f5446; border-color: #2f5446; color: #ffffff;
}
.wl-btn-danger, .wl-main button.wl-btn-danger { border-color: var(--wl-danger); color: var(--wl-danger); }
.wl-btn-danger:hover, .wl-main button.wl-btn-danger:hover { background: #f6e7e5; color: var(--wl-danger); }
.wl-btn:focus-visible, .wl-main a.wl-btn:focus-visible, .wl-main button.wl-btn:focus-visible {
  outline: 3px solid var(--wl-gold); outline-offset: 3px;
}
.wl-btn:disabled, .wl-main button.wl-btn:disabled, .wl-btn[aria-disabled=true] {
  opacity: .5; cursor: not-allowed; background: transparent; color: var(--wl-forest);
}
.wl-btn-primary:disabled, .wl-main button.wl-btn-primary:disabled { background: var(--wl-forest); color: #fffdf6; }
.wl-btn.is-busy { cursor: progress; opacity: .75; }
.wl-link, .wl-main button.wl-link { background: none; border: 0; padding: .3rem 0; color: var(--wl-forest); text-decoration: underline; font: inherit; cursor: pointer; min-height: 0; }
.wl-link:focus-visible { outline: 3px solid var(--wl-gold); outline-offset: 2px; }
.wl-danger, .wl-main button.wl-danger { color: var(--wl-danger); }

/* Forms */
.wl-form { display: flex; flex-direction: column; gap: 1rem; }
.wl-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; color: var(--wl-forest-2); }
.wl-form .wl-check, .wl-check { flex-direction: row; align-items: center; gap: .55rem; font-weight: 400; color: var(--wl-ink); }
.wl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; align-items: start; }
.wl-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .4rem 1rem; }
fieldset { border: 1px solid var(--wl-sand); background: var(--wl-paper); border-radius: var(--wl-radius); padding: 1rem 1.25rem 1.25rem; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
legend { font: 600 1.1rem var(--wl-serif); color: var(--wl-forest); padding: 0 .4rem; }
.wl-muted { opacity: .7; }
.wl-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.wl-tabs button { flex: 1; min-height: 44px; border: 1.5px solid var(--wl-forest-2); background: transparent; border-radius: 0; font: 600 13px var(--wl-sans); color: var(--wl-forest-2); cursor: pointer; }
.wl-tabs button[aria-selected=true] { background: var(--wl-forest-2); color: #fff; }

/* Studio */
.wl-studio { max-width: 980px; margin: 0 auto; }
.wl-studio-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; border-bottom: 1px solid var(--wl-sand); padding-bottom: .9rem; margin-bottom: 1.5rem; }
.wl-studio-nav a[aria-current=page] { font-weight: 700; text-decoration: none; color: var(--wl-forest); }
.wl-studio-nav .wl-btn { margin-left: auto; }
.wl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.wl-stats div { background: var(--wl-paper); border-radius: var(--wl-radius); padding: 1rem; box-shadow: var(--wl-shadow); }
.wl-stats strong { display: block; font: 2rem var(--wl-serif); color: var(--wl-forest); }
.wl-stats span { font-size: .88rem; color: var(--wl-muted); }
.wl-table-wrap { overflow-x: auto; }
.wl-table { width: 100%; border-collapse: collapse; background: var(--wl-paper); border-radius: var(--wl-radius); overflow: hidden; font-size: .95rem; }
.wl-table th, .wl-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--wl-sand); }
.wl-table th { background: #efe9da; font-size: .85rem; }
.wl-pill { display: inline-block; padding: .1rem .65rem; border-radius: 99px; font-size: .82rem; background: #eee; text-transform: capitalize; }
.wl-pill-published { background: #dcebd3; color: #24502a; }
.wl-pill-scheduled { background: #fff1c9; color: #6b4e00; }
.wl-pill-draft { background: #e8e4db; color: #4a4436; }
.wl-pill-archived { background: #eadcdc; color: #6b2d2d; }
.wl-editor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.wl-cover-edit { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: start; }
.wl-cover-preview { aspect-ratio: 10 / 13; background: var(--wl-sand); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--wl-muted); font-size: .85rem; }
.wl-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .wl-cover-edit { grid-template-columns: 1fr; } .wl-cover-preview { max-width: 160px; } }
.wl-credit { border-top: 1px dashed var(--wl-sand); padding-top: .75rem; }
.wl-body-preview { border: 1px dashed var(--wl-sand); padding: 1rem; border-radius: 10px; margin-top: 0; }
.wl-savebar { position: sticky; bottom: 0; background: rgba(247, 243, 234, .96); backdrop-filter: blur(4px); padding: .9rem 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; border-top: 1px solid var(--wl-sand); }
.wl-panel { background: var(--wl-paper); border-radius: var(--wl-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--wl-shadow); }
.wl-panel h2 { margin-top: 0; }
.wl-card-form { background: var(--wl-paper); padding: 1rem 1.25rem; border-radius: var(--wl-radius); margin-bottom: 1rem; }
.wl-history { list-style: none; padding: 0; }
.wl-history li { padding: .45rem 0; border-bottom: 1px solid var(--wl-sand); font-size: .95rem; }
.wl-history time { color: var(--wl-muted); font-size: .85rem; margin-right: .6rem; }
progress { width: 100%; }

.wl-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); max-width: min(92vw, 560px); padding: .85rem 1.2rem; border-radius: 12px; background: var(--wl-forest); color: #fff; box-shadow: var(--wl-shadow); z-index: 50; font-size: .98rem; }
.wl-toast-error { background: #7a2424; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Studio: founder-friendly editor ---- */
.wl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wl-studio-head { margin-bottom: 1.5rem; }
.wl-studio-head .wl-eyebrow { margin-bottom: .6rem; }
.wl-studio-nav { gap: .5rem 1.5rem; }
.wl-studio-nav a:not(.wl-btn) { color: var(--wl-forest); font-weight: 500; text-underline-offset: 5px; }
.wl-studio-nav a[aria-current=page]:not(.wl-btn) { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.wl-main a.wl-new { margin-left: auto; }
.wl-btn-small, .wl-main a.wl-btn-small, .wl-main button.wl-btn-small { min-height: 38px; padding: .45rem .95rem; font-size: 13px; }
.wl-studio h1 { font-size: clamp(32px, 4vw, 48px); margin-top: .25rem; }
.wl-editor-head { align-items: flex-end; margin-bottom: .5rem; }
.wl-editor-head h1 { margin-bottom: .25rem; }
.wl-step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--wl-forest); color: #fffdf6; font: 600 .85rem/1 var(--wl-sans); margin-right: .45rem; vertical-align: .1em; }
.wl-editor legend { font-size: 1.25rem; }
.wl-req, .wl-opt { display: inline-block; margin-left: .4rem; font-weight: 500; font-size: .78rem; letter-spacing: .02em; color: var(--wl-muted); }
.wl-req { color: #7a4a10; }
.wl-hint { font-size: .86rem; line-height: 1.45; margin-top: .1rem; }
.wl-form-col { display: flex; flex-direction: column; gap: 1rem; }
.wl-filepick input[type=file] { padding: .55rem; background: #fffefa; border-style: dashed; cursor: pointer; }
.wl-current-file { margin: 0; padding: .7rem .9rem; background: #eef3ea; border-left: 3px solid var(--wl-moss); }
.wl-choice { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.wl-choice .wl-check { padding: .65rem .9rem; border: 1px solid var(--wl-sand); background: #fffefa; min-height: 46px; }
.wl-choice .wl-check:has(input:checked) { border-color: var(--wl-forest); box-shadow: inset 0 0 0 1px var(--wl-forest); }
input[type=radio] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--wl-forest); }
.wl-urlbox { display: flex; align-items: stretch; flex-wrap: wrap; }
.wl-urlbox > span { display: flex; align-items: center; padding: 0 .6rem; background: #efeee6; border: 1px solid var(--wl-sand); border-right: 0; font-weight: 400; font-size: .85rem; color: var(--wl-muted); }
.wl-urlbox input { flex: 1; min-width: 12rem; }
.wl-editor details > summary { cursor: pointer; font-weight: 600; color: var(--wl-forest); padding: .4rem 0; }
.wl-extras { border: 1px dashed var(--wl-sand); padding: .5rem 1.25rem 1rem; background: #fdfcf6; }
.wl-extras > summary { font: 500 1.1rem var(--wl-serif); }
.wl-extras fieldset { margin-top: 1rem; }
.wl-checklist { background: #fffefa; border: 1px solid var(--wl-sand); padding: 1rem 1.25rem; }
.wl-checklist h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.wl-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.wl-checklist li { color: var(--wl-muted); }
.wl-checklist li span[aria-hidden] { display: inline-block; width: 1.3rem; font-weight: 700; color: #9a8f74; }
.wl-checklist li.is-done { color: var(--wl-ink); }
.wl-checklist li.is-done span[aria-hidden] { color: #2f6a3a; }
.wl-checklist .wl-ready-sum { margin-top: .4rem; font-weight: 600; color: var(--wl-forest); }
.wl-savebar { flex-direction: column; align-items: stretch; gap: .4rem; z-index: 5; }
.wl-savebar-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wl-savebar-msg { margin: 0; min-height: 1.3em; font-size: .9rem; color: var(--wl-muted); }
.wl-savebar .wl-link { align-self: flex-start; }
.wl-pill { text-transform: none; font-weight: 600; }
.wl-pill-live { background: #dcebd3; color: #1f4a26; }
.wl-pill-draft { background: #ece8dd; color: #4a4436; }
.wl-pill-scheduled { background: #fff1c9; color: #5e4400; }
.wl-pill-archived { background: #efe2e0; color: #6b2d2d; }
@media (max-width: 640px) {
  .wl-main a.wl-new { margin-left: 0; width: 100%; }
  .wl-savebar-buttons .wl-btn { flex: 1 1 auto; }
  .wl-table th:nth-child(4), .wl-table td:nth-child(4), .wl-table th:nth-child(5), .wl-table td:nth-child(5) { display: none; }
}

/* Layout fixes: hidden always hides; labels read as one line with their tag, fields line up */
.wl-main [hidden] { display: none !important; }
.wl-form label:not(.wl-check) { display: block; }
.wl-form label:not(.wl-check) > input:not([type=checkbox]):not([type=radio]),
.wl-form label:not(.wl-check) > select,
.wl-form label:not(.wl-check) > textarea,
.wl-form label:not(.wl-check) > .wl-urlbox { display: block; width: 100%; margin-top: .4rem; }
.wl-form label:not(.wl-check) > .wl-urlbox { display: flex; }
.wl-form .wl-hint { display: block; }
.wl-req, .wl-opt { display: inline; }
.wl-row { align-items: end; }
.wl-check > span { flex: 1; }

/* ---- Preview 2.3: purchases, bookshelf, formats ---- */
.wl-main .wl-btn-meta{font-weight:400;opacity:.8;margin-left:.35em;font-size:.88em}
.wl-main .wl-owned{font-weight:600;color:var(--forest,#162c25);margin:0 0 .5rem;display:flex;align-items:center;gap:.4rem}
.wl-main .wl-owned::before{content:"✓";display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;background:#162c25;color:#fffdf6;font-size:.8rem}
.wl-main .wl-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.wl-main .wl-bookshelf{margin:2rem 0}
.wl-main ul.wl-shelf{list-style:none;margin:0;padding:0;display:grid;gap:1.25rem}
.wl-main .wl-shelf-item{display:grid;grid-template-columns:96px 1fr;gap:1rem;align-items:start;padding:1rem;border:1px solid rgba(22,44,37,.15);border-radius:12px;background:#fffdf6}
.wl-main .wl-shelf-item h3{margin:0 0 .25rem;font-size:1.25rem}
.wl-main .wl-shelf-item h3 a{text-decoration:none}
.wl-main .wl-shelf-cover img{width:96px;height:auto;border-radius:6px;display:block}
.wl-main .wl-shelf-cover:empty{width:96px;aspect-ratio:3/4;border-radius:6px;background:#e9e4d6}
@media (max-width:480px){.wl-main .wl-shelf-item{grid-template-columns:64px 1fr}.wl-main .wl-shelf-cover img,.wl-main .wl-shelf-cover:empty{width:64px}}
.wl-main .wl-format{border:1px solid rgba(22,44,37,.15);border-radius:10px;padding:.75rem 1rem;margin:.75rem 0;background:#fffdf6}
.wl-main .wl-format-name{margin:0 0 .4rem}

/* ---- Studio: This Week in Wonder ---- */
.wl-main .wl-hero-preview{width:220px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#06131a;display:grid;place-items:center;color:#cfe;font-size:13px}
.wl-main .wl-hero-preview img{width:100%;height:100%;object-fit:cover}
.wl-main .wl-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:600px){.wl-main .wl-two{grid-template-columns:1fr}}
.wl-main .wl-feature-items{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px;max-height:420px;overflow:auto}
.wl-main .wl-feature-items li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 10px;border:1px solid rgba(22,44,37,.12);border-radius:8px;background:#fffdf6}
.wl-main .wl-order{width:72px;flex:none}

/* ---- Earth Encyclopedia ---- */
.wl-main .wl-ency-selects{display:contents}
.wl-main .wl-ency-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:28px;margin:24px 0 48px}
.wl-main .wl-ency-card a{display:block;color:inherit;text-decoration:none}
.wl-main .wl-ency-thumb{aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at 70% 60%,rgba(64,214,190,.35),transparent 70%),#0d211a}
.wl-main .wl-ency-thumb img{width:100%;height:100%;object-fit:cover}
.wl-main .wl-ency-type{margin:14px 0 4px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#4f6656}
.wl-main .wl-ency-card h3{margin:0;font-size:22px}
.wl-main .wl-ency-sci{margin:4px 0 0;color:#3f4d43}
.wl-main .wl-ency-hook{margin:8px 0 0;color:#3f4d43;line-height:1.55}
.wl-main .wl-ency-badge{display:inline-block;margin:10px 8px 0 0;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#efe9da;color:#4a3b14}
.wl-main .wl-ency-draft{background:#f3e3c3;color:#4a3b14}
.wl-main .wl-ency-id{background:#e6e3f3;color:#2e2459}
.wl-main .wl-hub{position:relative;border-radius:16px;overflow:hidden;min-height:420px;display:flex;align-items:flex-end;margin:8px 0 28px;color:#fff;background:#06131a}
.wl-main .wl-hub-media{position:absolute;inset:0}
.wl-main .wl-hub-media img{width:100%;height:100%;object-fit:cover}
.wl-main .wl-hub-glow{position:absolute;inset:0;background:radial-gradient(ellipse 60% 45% at 72% 62%,rgba(64,214,190,.35),transparent 70%),radial-gradient(ellipse 30% 25% at 82% 30%,rgba(110,170,255,.22),transparent 70%),#04121a}
.wl-main .wl-hub::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,14,19,.9),rgba(4,14,19,.45) 60%,rgba(4,14,19,.1))}
.wl-main .wl-hub-copy{position:relative;z-index:1;padding:40px clamp(20px,4vw,48px);max-width:640px}
.wl-main .wl-hub .eyebrow{color:#a8eadc}
.wl-main .wl-hub h1{color:#fff;margin:0}
.wl-main .wl-hub-sub{display:block;font-style:italic;font-size:.5em;color:#bfe9df;margin-top:8px;letter-spacing:0}
.wl-main .wl-hub .wl-lede,.wl-main .wl-hub .wl-lede p{color:#e4efeb}
.wl-main .wl-hub .wl-small{color:#c3d4cf}
.wl-main .wl-hub-pubs{margin:24px 0 48px}
.wl-main .wl-crumbs{font-size:14px;margin:8px 0 18px}
.wl-main .wl-entry-head h1{margin:6px 0 4px}
.wl-main .wl-entry-sci{font-size:20px;margin:0 0 6px;color:#3f4d43}
.wl-main .wl-entry-id{margin:12px 0}
.wl-main .wl-entry-id .wl-ency-badge{margin:0 8px 0 0}
.wl-main .wl-entry-hero{margin:24px 0}
.wl-main .wl-entry-hero img{width:100%;max-height:70vh;object-fit:cover;border-radius:12px}
.wl-main figcaption{font-size:13px;color:#4c5b50;margin-top:8px;line-height:1.5}
.wl-main .wl-media-kind{font-weight:600}
.wl-main .wl-entry-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}
@media (max-width:900px){.wl-main .wl-entry-grid{grid-template-columns:1fr}}
.wl-main .wl-entry-summary{font-size:19px;line-height:1.7}
.wl-main .wl-entry-sec{margin:40px 0}
.wl-main .wl-entry-sec h2{font-size:28px;margin:0 0 8px}
.wl-main .wl-sec-tradition{padding:24px;border-radius:12px;background:#f1ece4;border-left:4px solid #8a5a2b}
.wl-main .wl-sec-science{padding:24px;border-radius:12px;background:#eef2ec;border-left:4px solid #2f6b4f}
.wl-main .wl-claims{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:14px}
.wl-main .wl-claim{display:grid;grid-template-columns:28px 1fr;gap:12px}
.wl-main .wl-claim:target{outline:3px solid #c9a646;outline-offset:6px;border-radius:6px}
.wl-main .wl-claim-n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#162c25;color:#fffdf6;font-size:12px;font-weight:600}
.wl-main .wl-claim p{margin:6px 0 0}
.wl-main .wl-claim-src{font-size:13px;color:#4c5b50}
.wl-main .wl-evidence{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}
.wl-main .wl-ev-established{background:#dcefe2;color:#14452c}
.wl-main .wl-ev-emerging{background:#d9efee;color:#114545}
.wl-main .wl-ev-hypothesis{background:#f6ead0;color:#5a3d06}
.wl-main .wl-ev-unresolved{background:#e8e8e3;color:#3a3a35}
.wl-main .wl-ev-traditional_knowledge{background:#f0e0cf;color:#5b3313}
.wl-main .wl-ev-cultural_narrative{background:#ebe2f2;color:#41245a}
.wl-main .wl-ev-firsthand_observation{background:#dde8f5;color:#1d3b5e}
.wl-main .wl-cite a{font-size:12px;text-decoration:none;padding:0 2px}
.wl-main .wl-entry-side section{padding:20px;border:1px solid rgba(22,44,37,.15);border-radius:12px;background:#fffdf6;margin-bottom:18px}
.wl-main .wl-entry-side h2{font-size:18px;margin:0 0 10px}
.wl-main .wl-glance{margin:0;display:grid;gap:10px}
.wl-main .wl-glance dt{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#4f6656}
.wl-main .wl-glance dd{margin:2px 0 0}
.wl-main .wl-links,.wl-main .wl-credits,.wl-main .wl-sources{margin:0;padding-left:18px;display:grid;gap:10px}
.wl-main .wl-credits li{display:grid;gap:4px}
.wl-main .wl-entry-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.wl-main .wl-entry-fig{margin:0}
.wl-main .wl-entry-fig img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.wl-main .wl-realms{margin:0 0 18px}
.wl-main .wl-realms h2{font-size:20px;margin:0 0 10px}
.wl-main .wl-realms ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.wl-main .wl-realms label{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid #b9c4b2;border-radius:999px;background:#f8f6ef;cursor:pointer;font-size:14px}
.wl-main .wl-realms input{accent-color:#162c25}
.wl-main .wl-realms label:has(input:checked){background:#162c25;color:#fffdf6;border-color:#162c25}
.wl-main .wl-realms label:focus-within{outline:3px solid #c9a646;outline-offset:2px}

/* Studio: encyclopedia, batch import, media rights, permissions, creative queue */
.wl-steps { padding-left: 1.2rem; }
.wl-steps li { margin: .2rem 0; }
.wl-actions { gap: .6rem; align-items: center; }
.wl-badge { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; border: 1px solid var(--wl-sand); border-radius: 999px; font-size: .72rem; letter-spacing: .04em; color: var(--wl-forest-2); background: #fff; vertical-align: middle; }
.wl-badge-hold { border-color: var(--wl-gold); background: #f6efe2; }
.wl-note-error { border-left-color: var(--wl-danger); }
.wl-note-ok { border-left-color: var(--wl-moss); }
.wl-note ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.wl-report-errors li { color: var(--wl-danger); }
.wl-report-errors li, .wl-report-warnings li { margin: .25rem 0; }
.wl-claims { display: grid; gap: .75rem; }
.wl-claim { background: var(--wl-paper); padding: .8rem 1rem; box-shadow: var(--wl-shadow); }
.wl-claim p { margin: 0 0 .4rem; }
.wl-claim .wl-row, .wl-review-row { align-items: end; }
.wl-review-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.wl-review-row select, .wl-review-row input { width: auto; flex: 1 1 12rem; }
.wl-media h3, .wl-perm p, .wl-request p { margin-top: 0; }
.wl-manuscript { font-family: var(--wl-serif); font-size: 1.05rem; line-height: 1.7; white-space: pre-wrap; }
.wl-studio-nav { flex-wrap: wrap; }
.wl-verify { border-top: 1px solid var(--wl-sand); padding-top: .8rem; margin-top: 1rem; }
.wl-verify h2 { font-size: 1.1rem; }
.wl-studio form.wl-claim { display: block; }
.wl-claim > p { display: block; width: auto; }
