/* Parallel 28 – Nordic tools / text contrast
   Load AFTER site.css on DoP, GeoJSON builder and Wood Species Risk Register.
   Excludes global navigation, leaflet map tiles and external document previews. */
body.p28-tool-page{--navy:#202321;--navy-deep:#202321;--navy-mid:#464d49;--navy-light:#767a78;
  --gold:#866b54;--gold-bright:#977a60;--gold-dark:#69523f;--beige:#f6f5f1;--ink:#202321;
  --bg-deep:#f6f5f1;--bg:#f6f5f1;--bg-mid:#e9ebe7;--text:#202321;--text-muted:#56615c;
  background:#f6f5f1!important;color:#202321!important;font-family:'DM Sans',sans-serif!important}
body.p28-tool-page .container{max-width:1240px}
body.p28-tool-page :is(.tool-main,.page-header,.tool-page-title,.tool-page-sub,.tool-header,.tool-title){color:#202321!important}
body.p28-tool-page :is(.tool-page-title,.page-header h1,.tool-main h1){font-family:'Manrope',sans-serif!important;letter-spacing:-.055em!important;font-weight:700!important}
body.p28-tool-page :is(.tool-page-sub,.page-header p,.tool-main p,.tool-main .subtitle){color:#56615c!important;line-height:1.7!important}
body.p28-tool-page :is(.step-panel,.form-section,.form-card,.step-card,.card,.panel,.result-box,.map-wrap,.geojson-preview,.controls,.legend-bar,.table-wrap,.tool-main){border-color:#dedfd9!important}
body.p28-tool-page :is(.step-panel,.form-section,.form-card,.step-card,.card,.panel,.result-box,.map-wrap,.geojson-preview,.controls,.legend-bar,.table-wrap){background:#fffefa!important;color:#202321!important;box-shadow:0 12px 30px rgba(32,35,33,.035)!important;border-radius:5px!important}
body.p28-tool-page :is(.step-panel,.form-section,.form-card,.step-card,.card,.panel,.result-box,.map-wrap,.geojson-preview,.controls) :is(p,small,.sub,.hint,.help-text){color:#56615c!important}
body.p28-tool-page :is(label,legend,.field-label,.result-key,.result-val,.result-coords){color:#29302d!important}
body.p28-tool-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fffefa!important;color:#202321!important;border:1px solid #b5bdb6!important;border-radius:4px!important;opacity:1}
body.p28-tool-page input::placeholder,body.p28-tool-page textarea::placeholder{color:#68746c!important;opacity:1}
body.p28-tool-page :is(.btn-primary,button.primary,.btn-fill,.btn-gold,.lang-btn.active,.lang-btn.selected){background:#202321!important;color:#fffefa!important;border-color:#202321!important}
body.p28-tool-page :is(.btn-outline,.btn-secondary,button.ghost){background:#f8f6f1!important;color:#202321!important;border:1px solid #adb6b0!important}
body.p28-tool-page :is(.btn-outline,.btn-secondary,button.ghost):hover{background:#e9e2d9!important}
body.p28-tool-page .tool-disclaimer-banner{background:#e9ebe7!important;color:#4d5652!important;border-bottom:1px solid #d8dbd9!important}
body.p28-tool-page :is(.table-wrap,.table-container){overflow-x:auto}
body.p28-tool-page :is(table,td,th){color:#202321}
body.p28-tool-page :is(thead,th){background:#e7e9e4!important;color:#29302d!important}
body.p28-tool-page tbody tr:nth-child(2n){background:#f6f5f1!important}
body.p28-tool-page tbody tr:hover{background:#eee9e1!important}
body.p28-tool-page :is(.stat,.status,.badge,.pill){font-weight:650}
/* Individual tool layouts */
body.p28-tool-dop .tool-main{background:#f6f5f1!important}
body.p28-tool-dop :is(.steps,.step-nav,.lang-grid){background:transparent!important}
body.p28-tool-dop .lang-btn{color:#202321!important;border-color:#c6c9c2!important}
body.p28-tool-dop .lang-btn.active{color:#fffefa!important}
body.p28-tool-geojson .tool-main{background:#f6f5f1!important}
body.p28-tool-geojson :is(.layout,.map-head,.result-box,.poly-list){color:#202321!important}
body.p28-tool-geojson :is(.map-head,.map-head-title){background:#e9ebe7!important;color:#29302d!important}
body.p28-tool-geojson #map{background:#d8dbd9!important;min-height:300px}
body.p28-tool-geojson .notice-info{background:#edf0ed!important;color:#394d43!important}
body.p28-tool-wood .page-header{background:#f6f5f1!important;color:#202321!important;border-bottom:1px solid #dedfd9!important}
body.p28-tool-wood .page-header :is(h1,p,.subtitle){color:#202321!important}
body.p28-tool-wood .page-header p{color:#56615c!important}
body.p28-tool-wood .legend-bar{padding:18px 24px!important;margin-top:18px!important}
body.p28-tool-wood .controls{padding:18px!important;gap:12px!important}
body.p28-tool-wood .table-wrap{background:#fffefa!important}
body.p28-tool-wood #drawer{background:#fffefa!important;color:#202321!important}
body.p28-tool-wood #drawer :is(h2,h3,p,dt,dd){color:#202321}
body.p28-tool-wood .drawer-overlay{background:rgba(32,35,33,.53)!important}
@media(max-width:750px){body.p28-tool-page :is(.controls,.legend-bar,.table-wrap){margin-left:16px!important;margin-right:16px!important}body.p28-tool-wood .table-wrap{overflow-x:auto!important}}


/* =============================================================
   Parallel 28 / Wood Species Tool — contrast and clarity patch
   21 October 2026
   Scoped to body.p28-tool-wood; does not affect other tools.
   ============================================================= */
body.p28-tool-wood {
  --bg-deep: #f6f5f1;
  --bg-mid: #e9ebe7;
  --bg-panel: #fffefa;
  --bg-row: #f5f4ef;
  --text-main: #202321;
  --text-dim: #424d47;
  --text-faint: #4e5853;
  --grid-line: #e2e2dc;
  --rule: #d5d7cf;
  --risk-high-bg: #f8e5e3;
  --risk-med-bg: #f6eddb;
  --risk-low-bg: #e4eee6;
  --gold-pale: #76563c;
  background: #f6f5f1 !important;
  background-image: none !important;
  color: #202321 !important;
}

/* Remove the legacy semi-transparent dark-blue tint / geometric grid. */
body.p28-tool-wood .page-header {
  background: #f6f5f1 !important;
  background-image: none !important;
}
body.p28-tool-wood .page-header::before { display: none !important; }
body.p28-tool-wood .page-header::after {
  background: linear-gradient(90deg, transparent, #b8a086, transparent) !important;
}
body.p28-tool-wood .page-header h1,
body.p28-tool-wood .page-header h1 em { color: #202321 !important; }
body.p28-tool-wood .page-header h1 em { color: #7b5f45 !important; }
body.p28-tool-wood .page-header .subtitle { color: #4b5651 !important; }
body.p28-tool-wood .header-eyebrow .eyebrow-text { color: #745a44 !important; }

/* The legend used 45%-opaque ivory text: practically invisible on Nordic white. */
body.p28-tool-wood .legend-bar {
  background: #eeeae2 !important;
  border-block: 1px solid #d4d0c7 !important;
  color: #202321 !important;
}
body.p28-tool-wood .legend-bar .legend-label {
  color: #433c34 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .11em;
}
body.p28-tool-wood .legend-bar .pip {
  color: #202321 !important;
  opacity: 1 !important;
  font-size: .79rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}
body.p28-tool-wood .legend-bar .pip-dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 1px rgba(32,35,33,.28);
}

/* Search, filters, count and table: no blue haze, stronger foreground. */
body.p28-tool-wood .controls {
  background: #f6f5f1 !important;
  color: #202321 !important;
  border-bottom: 1px solid #d4d7d0 !important;
}
body.p28-tool-wood .search-icon,
body.p28-tool-wood .stats-count { color: #4d5751 !important; }
body.p28-tool-wood :is(input[type='text'],select) {
  background-color: #fffefa !important;
  border-color: #9da8a0 !important;
  color: #202321 !important;
  font-weight: 500 !important;
}
body.p28-tool-wood .table-wrap { background: #fffefa !important; }
body.p28-tool-wood table { color: #202321 !important; }
body.p28-tool-wood thead th {
  background: #e4e6e0 !important;
  color: #333d37 !important;
  border-bottom: 1px solid #c0c6be !important;
  font-weight: 700 !important;
  font-size: .66rem !important;
}
body.p28-tool-wood tbody tr { border-bottom: 1px solid #e5e5df !important; }
body.p28-tool-wood tbody tr:nth-child(even) { background: #f8f7f2 !important; }
body.p28-tool-wood tbody tr:hover { background: #eee8de !important; }
body.p28-tool-wood tbody td { color: #26302b !important; font-weight: 500; }
body.p28-tool-wood tbody td.name { color: #202321 !important; font-weight: 700; }
body.p28-tool-wood tbody td.latin { color: #3e4842 !important; font-weight: 500; }
body.p28-tool-wood tbody td.region,
body.p28-tool-wood tbody td.code { color: #46534b !important; }

/* IUCN and EUDR-risk tags: legible dark text over restrained tints. */
body.p28-tool-wood .badge,
body.p28-tool-wood .risk {
  font-weight: 750 !important;
  font-size: .68rem !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}
body.p28-tool-wood .b-lc { background: #e5efe8 !important; color: #245238 !important; border-color: #b4cdbb !important; }
body.p28-tool-wood .b-nt { background: #f7eecb !important; color: #6d5316 !important; border-color: #d9c782 !important; }
body.p28-tool-wood .b-vu { background: #f9e6d8 !important; color: #8a4822 !important; border-color: #dcb89e !important; }
body.p28-tool-wood .b-en { background: #f7e1df !important; color: #8e2f2f !important; border-color: #deb3b0 !important; }
body.p28-tool-wood .b-dd { background: #e9eef4 !important; color: #305879 !important; border-color: #b3c8da !important; }
body.p28-tool-wood .b-ne { background: #e9eae7 !important; color: #38433d !important; border-color: #c1c9c0 !important; }
body.p28-tool-wood .risk-high { background: #f8e5e3 !important; color: #852a2c !important; border-color: #d6aaa9 !important; }
body.p28-tool-wood .risk-med { background: #f6eddb !important; color: #805a19 !important; border-color: #d8bf8f !important; }
body.p28-tool-wood .risk-low { background: #e4eee6 !important; color: #285c3c !important; border-color: #accbb8 !important; }

/* CITES, CITES Listing and Detail: explicitly correct legacy faint colors. */
body.p28-tool-wood .cites-yes { color: #67472b !important; font-weight: 800 !important; font-size: .72rem !important; }
body.p28-tool-wood .cites-no { color: #4c5750 !important; font-weight: 600 !important; }
body.p28-tool-wood .listing-badge { color: #493a2e !important; font-weight: 750 !important; font-size: .71rem !important; }
body.p28-tool-wood .detail-btn {
  background: #fffefa !important;
  color: #252b27 !important;
  border: 1px solid #8f9991 !important;
  font-family: 'Manrope',sans-serif !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  opacity: 1 !important;
}
body.p28-tool-wood .detail-btn:is(:hover,:focus-visible) {
  background: #202321 !important;
  border-color: #202321 !important;
  color: #fffefa !important;
}

/* Drawer details are also a light surface; remove residual light-on-light. */
body.p28-tool-wood #drawer {
  background: #fffefa !important;
  background-image: none !important;
  color: #202321 !important;
  border-left-color: #d3d6ce !important;
}
body.p28-tool-wood #drawer .drawer-name,
body.p28-tool-wood #drawer .drawer-latin,
body.p28-tool-wood #drawer .drawer-taxon,
body.p28-tool-wood #drawer .section-head { color: #202321 !important; }
body.p28-tool-wood #drawer .drawer-latin { color: #515b54 !important; }
body.p28-tool-wood #drawer .drawer-kv { background: #f4f2ec !important; border-color: #d8d9d1 !important; }
body.p28-tool-wood #drawer .drawer-kv label { color: #49554d !important; }
body.p28-tool-wood #drawer .drawer-kv .val { color: #202321 !important; }
body.p28-tool-wood #drawer .risk-block p { color: #2e3832 !important; font-weight: 500 !important; }
body.p28-tool-wood #drawer .risk-block.high { background: #f8e5e3 !important; border-color: #dfb8b5 !important; }
body.p28-tool-wood #drawer .risk-block.med { background: #f6eddb !important; border-color: #dfc89c !important; }
body.p28-tool-wood #drawer .risk-block.low { background: #e4eee6 !important; border-color: #b7d3c0 !important; }
body.p28-tool-wood #drawer .risk-block.high .risk-block-title { color: #852a2c !important; }
body.p28-tool-wood #drawer .risk-block.med .risk-block-title { color: #805a19 !important; }
body.p28-tool-wood #drawer .risk-block.low .risk-block-title { color: #285c3c !important; }
body.p28-tool-wood #drawer .drawer-close {
  color: #202321 !important;
  background: #f4f2ec !important;
  border-color: #b6bcb4 !important;
}
body.p28-tool-wood #drawer .drawer-close:is(:hover,:focus-visible) {
  background: #202321 !important; color: #fffefa !important;
}
body.p28-tool-wood #drawer .obligations-list li {
  color: #2e3832 !important;
  font-weight: 500 !important;
}
body.p28-tool-wood #drawer .drawer-rule { border-top-color: #d9dbd4 !important; }
body.p28-tool-wood :is(.empty,.empty p) { color: #47534a !important; }
body.p28-tool-wood footer .footer-note { color: #c7cfc9 !important; }


/* =============================================================
   Parallel 28 – Wood Tool detail drawer alignment & typography
   21 October 2026 | NL + EN | scoped only to Wood Species tools

   Legacy drawer started at top: 0 and sat behind the 76px fixed
   Nordic navigation; legacy display font used Cormorant Garamond.
   ============================================================= */
body.p28-tool-wood .drawer-overlay {
  z-index: 1600 !important;
  background: rgba(32, 35, 33, .52) !important;
}
body.p28-tool-wood #drawer {
  top: 76px !important;
  height: calc(100vh - 76px) !important;
  height: calc(100dvh - 76px) !important;
  max-height: calc(100dvh - 76px) !important;
  z-index: 1601 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.p28-tool-wood #drawer .drawer-inner {
  padding: 28px 30px 44px !important;
}
/* Keep the close control in the header area instead of floating
   over/alongside the species name. */
body.p28-tool-wood #drawer .drawer-close {
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 39px;
  margin: 0 0 24px auto !important;
  padding: 9px 13px !important;
  font: 700 .73rem/1.2 'Manrope', Arial, sans-serif !important;
  letter-spacing: .045em !important;
  border-radius: 4px !important;
}
body.p28-tool-wood #drawer .drawer-taxon {
  clear: none !important;
  margin: 0 0 9px !important;
  font: 750 .70rem/1.5 'Manrope', Arial, sans-serif !important;
  letter-spacing: .10em !important;
  color: #765c46 !important;
}
body.p28-tool-wood #drawer .drawer-name {
  display: block;
  margin: 0 0 8px !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: clamp(1.55rem, 2.2vw, 2rem) !important;
  font-weight: 750 !important;
  font-style: normal !important;
  letter-spacing: -.045em !important;
  line-height: 1.18 !important;
  color: #202321 !important;
  overflow-wrap: anywhere;
}
body.p28-tool-wood #drawer .drawer-latin {
  margin: 0 0 24px !important;
  font-family: 'DM Sans', Arial, sans-serif !important;
  font-size: .98rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  font-style: italic;
  letter-spacing: 0 !important;
  color: #59615b !important;
}
body.p28-tool-wood #drawer :is(.section-head, .drawer-kv label, .risk-block-title) {
  font-family: 'Manrope', Arial, sans-serif !important;
}
@media (max-width: 560px) {
  body.p28-tool-wood #drawer .drawer-inner {
    padding: 20px 20px 36px !important;
  }
  body.p28-tool-wood #drawer .drawer-close {
    margin-bottom: 20px !important;
  }
}
