/* AI Navigators: mobile-first, matches forestglobaltrainingpartners.com (Poppins, #241817 / #a20300). */
:root { --ink: #212121; --muted: #5f5f5f; --line: #e3e0df; --bg: #f6f5f5; --brand: #241817; --accent: #a20300;
        --use: #1f6f50; --risk: #a20300; --hal: #6a3d9a; --radius: 10px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; color: var(--brand); }
h1 { font-size: 1.6rem; margin: .4em 0; font-weight: 600; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 500; margin: 0 0 .3em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; background: #fff; padding: 8px; z-index: 10; }
.count { color: var(--muted); font-size: .8em; font-weight: 400; }
.site-header { background: var(--brand); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; width: 170px; }
.fgtp-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; }
.fgtp-nav a { color: #fff; opacity: .85; }
.fgtp-nav a.current, .fgtp-nav a:hover { opacity: 1; color: #fff; border-bottom: 2px solid var(--accent); text-decoration: none; }
.kb-bar { background: #fff; border-bottom: 1px solid var(--line); }
.kb-row { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.kb-nav { display: flex; gap: 6px 16px; overflow-x: auto; white-space: nowrap; font-size: .92rem; }
.kb-nav a { color: var(--brand); }
.kb-search, .hero-search { display: flex; gap: 6px; }
.kb-search input, .hero-search input, .facets input, .facets select, .login input, .editor-controls input, .editor-controls select {
  flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border: 1px solid #cfcaca; border-radius: 999px; background: #fff; }
button, .button { font: inherit; font-weight: 500; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; display: inline-block; }
button:hover, .button:hover { background: #7e0200; text-decoration: none; color: #fff; }
button.link { background: none; color: var(--accent); padding: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.hero { padding: 28px 0 12px; }
.hero h1 { font-size: 2rem; }
.lead { color: #3f3f3f; font-size: 1.02rem; max-width: 70ch; }
.hero-search { max-width: 680px; margin-top: 14px; }
.hubs { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 18px 0; }
.hub { background: #fff; border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.hub-sombrero { border-top-color: var(--use); } .hub-acid { border-top-color: var(--hal); }
.hub h2 { margin-top: 0; }
.mini { list-style: none; padding: 0; margin: 0; }
.mini li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini time, .mini small { color: var(--muted); font-size: .8rem; display: block; }
.more { display: inline-block; margin-top: 10px; font-weight: 500; }
.block { margin: 26px 0; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.topic { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); display: flex; flex-direction: column; }
.topic:hover { border-color: var(--accent); text-decoration: none; }
.topic span { color: var(--muted); font-size: .82rem; }
.topic em { color: #3f3f3f; font-size: .85rem; font-style: normal; margin-top: 4px; }
.topic-grid.large { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr; }
.cloud a { display: inline-block; margin: 2px 6px 2px 0; font-size: .9rem; }
.cloud .w1 { font-size: 1rem; } .cloud .w2 { font-size: 1.15rem; } .cloud .w3 { font-size: 1.3rem; font-weight: 500; } .cloud .w4 { font-size: 1.45rem; font-weight: 600; }
.page-head { margin: 10px 0 14px; }
.layout { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card h3 a { color: var(--brand); }
.meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 6px; }
.summary { margin: 4px 0; color: #3f3f3f; font-size: .93rem; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; color: #fff !important; font-size: .75rem; background: var(--risk); }
.pill.cat-sombrero { background: var(--use); } .pill.cat-acid { background: var(--hal); }
.chips { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.chip { display: inline-block; background: #f1eeed; color: var(--brand); border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.chip.ent { background: #eef3f8; } .chip.tag { background: #f7f0e3; }
.sidebar .facet { background: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; border: 0; }
.sidebar h2, .facet legend { font-size: .95rem; margin: 0 0 6px; font-weight: 600; color: var(--brand); }
.sidebar ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.sidebar li { padding: 3px 0; display: flex; justify-content: space-between; gap: 8px; }
.sidebar .related li { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sidebar .related small { display: block; color: var(--muted); font-size: .78rem; }
.facets label { display: block; font-size: .85rem; margin: 4px 0; }
.facets input[type=date] { width: 100%; border-radius: 8px; }
.entity-list { list-style: none; padding: 0; columns: 1; }
.entity-list li { padding: 3px 0; break-inside: avoid; }
.entity-list small { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 30px; }
.pager a, .pager span { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .gap { border: 0; background: none; }
.item { background: #fff; border-radius: var(--radius); padding: 20px; }
.item h1 { font-size: 1.5rem; }
.snippet { border-left: 4px solid var(--accent); margin: 12px 0 18px; padding: 6px 14px; color: #3f3f3f; background: #fbf9f9; }
.facts { display: grid; grid-template-columns: 1fr; gap: 4px 12px; margin-top: 18px; }
.facts dt { font-weight: 600; font-size: .85rem; color: var(--brand); margin-top: 8px; }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.notice { background: #fff4e5; padding: 10px 14px; border-radius: 8px; } .notice.error { background: #fdecea; }
.login { max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tab { background: #e7e3e2; color: var(--brand); } .tab.active { background: var(--accent); color: #fff; }
.editor-controls { display: flex; gap: 8px; margin-bottom: 8px; }
.card.edit textarea { width: 100%; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid #cfcaca; }
.card.edit label { display: block; font-size: .85rem; font-weight: 500; }
.tag-list { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .rm { background: none; color: var(--accent); padding: 0 0 0 4px; }
.tag-add { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag-add select, .tag-add input { padding: 6px 10px; border-radius: 8px; border: 1px solid #cfcaca; font: inherit; }
.feedback { display: none; } .feedback.success { color: #1f6f50; } .feedback.error { color: var(--accent); }
.site-footer { background: var(--brand); color: #d8d2d1; margin-top: 40px; padding: 24px 0; font-size: .88rem; }
.site-footer a { color: #fff; }
@media (min-width: 720px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.4rem; }
  .hubs { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 2fr 1fr; }
  .kb-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .kb-search { width: 320px; }
  .entity-list { columns: 3; }
  .facts { grid-template-columns: 120px 1fr; } .facts dt { margin-top: 2px; }
}
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .results.narrow { max-width: 820px; }
}
button:disabled { opacity: .45; cursor: default; }
.card-title { font-size: 1.02rem; font-weight: 500; margin: 0 0 .3em; }
.card-title a { color: var(--brand); }
.lead a, .site-footer p a, .item p a:not(.button), .notice a { text-decoration: underline; }
