/* co2.css - CO2SIMULATOR pages on top of the IOBS styles (obs.css, layout1.css) - 2026-11-17 16:50 VN */
:root { --soft: #EEF3FA; --hd: var(--navy); --pos: #0C8548; --neg: #B81E2E; }
html[data-mode="dark"] { --pos: #4CC28A; --neg: #FF7A85; }
.btn-blue { background: #1F4FD1; }
.muted { color: var(--muted); }
.co2-note { font-size: 12.5px; margin: 8px 0 0; }
.co2-sec { padding: 24px 0 48px; }
.co2-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.co2-left, .co2-right { display: grid; gap: 16px; min-width: 0; }
.co2-left > *, .co2-right > * { min-width: 0; }
.co2-grid .card { padding: 16px 18px; }
.co2-grid label { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; }
.co2-grid input, .co2-grid select { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.co2-grid input:focus, .co2-grid select:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.co2-row { display: flex; gap: 10px; align-items: flex-end; }
.co2-row > * { flex: 1; min-width: 0; }
.co2-row > .btn { flex: 0 0 auto; }
.co2-full { width: 100%; justify-content: center; margin-top: 10px; }
.co2-qr { font-size: 13px; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
#co2map { height: 380px; border-radius: 10px; border: 1px solid var(--line); z-index: 1; }
.co2-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-top: 12px; }
.co2-fact { background: var(--soft); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.co2-fact b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co2-fact span { font-size: 11.5px; color: var(--muted); }
.co2-head { margin: 0 0 12px; }
.co2-big { font-family: Lora, Georgia, serif; font-size: 28px; font-weight: 700; color: var(--green); }
table.t td.pos { color: var(--pos); font-weight: 600; }
table.t td.neg { color: var(--neg); font-weight: 600; }
table.t td .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.co2-warn { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.co2-svg { display: block; margin-top: 14px; }
.co2-svg text { fill: var(--muted); font-size: 11px; font-family: Poppins, sans-serif; }
.co2-svg .axis { stroke: var(--line); stroke-width: 1.2; }
.co2-svg .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.co2-sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
tr.co2-pick { cursor: pointer; }
tr.co2-pick.sel td { background: var(--soft); font-weight: 600; }
.co2-tag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: var(--soft); font-weight: 600; }
.co2-tag.ok { color: var(--pos); } .co2-tag.mid { color: #B5801F; } .co2-tag.bad { color: var(--neg); }
.co2-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.co2-case { display: block; color: var(--ink) !important; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.co2-case:hover { transform: translateY(-2px); border-color: var(--gold); }
.co2-case h3 { font-family: Lora, Georgia, serif; font-size: 21px; margin: 6px 0 8px; }
.co2-case .kick { color: var(--royal); font-size: 11.5px; letter-spacing: .18em; }
.co2-case p { margin: 0 0 12px; font-size: 14px; }
.co2-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.co2-kv span { background: var(--soft); border-radius: 8px; padding: 6px 8px; font-size: 11px; color: var(--muted); }
.co2-kv b { display: block; color: var(--ink); font-size: 13px; }
.co2-case .go { color: var(--royal); font-weight: 600; font-size: 13.5px; }
.co2-view { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 14px; }
.co2-view button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 16px; border: 0; background: var(--card); color: var(--muted); cursor: pointer; }
.co2-view button.on { background: var(--gold); color: #10204a; }
table.co2-cl td.nw, table.co2-pl td.num { white-space: nowrap; }
.co2-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.co2-bar .co2-view { margin: 0; }
.co2-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.co2-tools input, .co2-tools select, .co2-tools button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.co2-tools input { flex: 1 1 180px; min-width: 0; }
.co2-tools select { max-width: 100%; }
.co2-tools button { cursor: pointer; font-weight: 700; min-width: 36px; }
.co2-tools .co2-n { font-size: 12.5px; white-space: nowrap; }
html[data-mode="dark"] .co2-tools input, html[data-mode="dark"] .co2-tools select, html[data-mode="dark"] .co2-tools button { background: var(--paper); }
/* header (user 2026-11-17): line 1 icons on the right, line 2 main menu centred on the page, user block on the right */
.top2 .top-in .lbox { margin-left: auto !important; }
.top2 .top-in .lbox ~ .nxw-ti { margin-left: 0 !important; }
@media (max-width: 640px) {
  .co2-tools { flex: 1 1 100%; }
  .co2-tools select { flex: 1 1 140px; min-width: 0; }
}
@media (min-width: 641px) {
  /* co2.js navCenter() adds html.co2-nogrid when the centred menu would touch the logo or the user block: then the kit layout applies */
  html.ws-navc:not(.co2-nogrid) .top-line2 > .wrap { display: grid !important; grid-template-columns: minmax(var(--co2-nav-l, var(--ws-nav-ml, 0px)), 1fr) minmax(0, auto) minmax(max-content, 1fr); align-items: center; }
  html.ws-navc:not(.co2-nogrid) .top-line2 #nav { grid-column: 2; margin-left: 0 !important; margin-right: 0 !important; min-width: 0; }
  html.ws-navc:not(.co2-nogrid) .top-line2 #ws-l2r { grid-column: 3; justify-self: end; }
  /* html.co2-midc: no room for the page centre, the menu is centred in the free space between the logo and the user block */
  html.ws-navc.co2-midc .top-line2 > .wrap { display: flex !important; align-items: center; }
  html.ws-navc.co2-midc .top-line2 #nav { flex: 1 1 auto; min-width: 0; justify-content: center !important; overflow: visible !important; margin-left: var(--co2-nav-l, 0px) !important; margin-right: 16px !important; -webkit-mask-image: none !important; mask-image: none !important; }
  html.ws-navc.co2-midc .top-line2 #ws-l2r { flex: none; }
  /* kit layout (no room to centre): the menu still starts at the real right edge of the logo, and scrolls sideways when too long */
  html.ws-navc.co2-nogrid .top-line2 > .wrap { flex-wrap: nowrap !important; }
  html.ws-navc.co2-nogrid .top-line2 #nav { order: 2; flex: 1 1 0; }
  html.ws-navc.co2-nogrid .top-line2 #ws-l2r { order: 3; flex: none; }
  .top-line2 #nav.co2-k { gap: 2px !important; }
  .top-line2 #nav.co2-k > a, .top-line2 #nav.co2-k > .nav-dd > a.nav-dt { padding-left: 10px !important; padding-right: 10px !important; letter-spacing: .07em !important; }
  html.co2-tight #ws-l2r .l1-who { font-size: 0 !important; gap: 0 !important; }
  html.co2-tight #ws-l2r .l1-who .dot { display: block; }
  html.ws-navc.co2-nogrid:not(.co2-midc) .top-line2 #nav { margin-left: var(--co2-nav-l, 0px) !important; margin-right: 16px !important; min-width: 0; overflow-x: auto !important; overflow-y: hidden !important; justify-content: flex-start !important; }
}
.co2-wip { text-align: center; padding: 48px 24px; }
.co2-wip .ico { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--gold); }
.co2-wip .ico svg { width: 100%; height: 100%; }
.co2-wip ul { display: inline-block; text-align: left; color: var(--muted); margin: 8px 0 0; }
/* plant name link with a border (plants table) and the plant page */
a.co2-plink { display: inline-block; font-weight: 700; color: var(--ink) !important; text-decoration: none !important; border: 1px solid var(--gold); border-radius: 8px; padding: 3px 10px; margin-bottom: 3px; transition: background .15s, color .15s; }
a.co2-plink:hover { background: var(--gold); color: #10204a !important; }
.co2-plant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.co2-plant > * { min-width: 0; }
.co2-plant .card { padding: 18px 20px; }
.co2-plant .ttl { margin-top: 0; }
.co2-photo { padding: 0 !important; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; }
.co2-photo img { display: block; width: 100%; height: 340px; object-fit: cover; }
.co2-ph-cr { display: block; padding: 8px 14px; font-size: 12px; color: var(--muted) !important; }
.co2-ph-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); min-height: 240px; }
.co2-ph-wait svg { width: 48px; height: 48px; color: var(--gold); opacity: .6; }
.co2-simbtn { margin-top: 14px; }
.co2-pchar, .co2-pcases, .co2-pnote { grid-column: 1 / -1; }
.co2-pros ul, .co2-cons ul { padding-left: 20px; margin: 0; }
.co2-pros li, .co2-cons li { margin: 8px 0; }
.co2-pros .ttl { color: var(--pos); } .co2-cons .ttl { color: var(--neg); }
@media (max-width: 900px) { .co2-plant { grid-template-columns: minmax(0, 1fr); } .co2-photo img { height: 240px; } }
/* recommendation box under the simulator (user 2026-11-17) */
.co2-reco { padding: 18px 20px; border: 1px solid var(--gold); }
.co2-reco-low { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(212, 164, 64, .14); color: var(--ink); font-size: 13.5px; }
.co2-reco > .kick { color: var(--gold); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.co2-grid .co2-reco-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1280px) { .co2-grid .co2-reco-cards { grid-template-columns: minmax(0, 1fr); } }
.co2-reco-h { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.co2-reco-h > div:first-child { flex: 1 1 420px; min-width: 0; }
.co2-reco-h .kick { color: var(--gold); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.co2-reco-h .ttl { margin: 4px 0 6px; }
.co2-reco-h p { margin: 0; font-size: 14px; }
.co2-reco-f { display: flex; gap: 12px; flex-wrap: wrap; }
.co2-reco-f label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.co2-reco-f select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
html[data-mode="dark"] .co2-reco-f select { background: var(--paper); }
.co2-reco-land { margin: 14px 0 12px; font-size: 14px; }
.co2-reco-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.co2-rc { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 1px solid transparent; }
.co2-rc.best { border-color: var(--gold); box-shadow: 0 8px 24px rgba(212, 164, 64, .18); }
.co2-rc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co2-rc-n { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.co2-rc.best .co2-rc-n { color: var(--gold); }
.co2-rc a.co2-plink { align-self: flex-start; margin-top: 4px; }
.co2-rc .sub { font-size: 12px; }
.co2-rc-k { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 6px 0; }
.co2-rc-k > div { min-width: 0; }
.co2-rc-k b { display: block; font-size: 16px; white-space: nowrap; }
.co2-rc-k b.pos { color: var(--pos); } .co2-rc-k b.neg { color: var(--neg); }
.co2-rc-k span { font-size: 11.5px; color: var(--muted); }
.co2-rc-pro, .co2-rc-con { margin: 0; font-size: 13px; }
.co2-rc-pro { color: var(--pos); } .co2-rc-con { color: var(--neg); }
.co2-rc-use { margin-top: auto; align-self: flex-start; }
.co2-rc-use[disabled] { opacity: .6; cursor: default; }
@media (max-width: 900px) { .co2-reco-cards { grid-template-columns: minmax(0, 1fr); } }
/* Market page: the price is a link to its detail page */
a.co2-price { font-weight: 700; color: var(--ink) !important; text-decoration: none !important; border-bottom: 1px dashed var(--gold); }
a.co2-price:hover { color: var(--gold) !important; }
table.co2-mk td .sub { display: block; }
/* sub menu (user 2026-11-17 16:30): the current page = gold background with dark text, like the main menu; hover = light gold tint */
.top-line2 .nav .nav-dm a:hover { color: #fff; background: rgba(212, 164, 64, .16); }
.top-line2 .nav .nav-dm a.on, .top-line2 .nav .nav-dm a.on:hover { color: #050C1E; background: var(--gold); }
/* Documents page (user 2026-11-17, menu SUPPORT): video, slides, brochures in the language of the page */
.co2-docs { display: grid; gap: 18px; }
.co2-docs > h2.ttl { margin: 10px 0 0; }
.co2-doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.co2-doc.wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.co2-docg { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.co2-docg .co2-doc { grid-template-columns: 150px minmax(0, 1fr); }
.co2-docimg { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.co2-docimg img { display: block; width: 100%; height: auto; }
.co2-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #050C1E; display: block; }
.co2-doct { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.co2-doct h3 { margin: 0; font-size: 19px; }
.co2-doct p { margin: 0; }
.co2-docb { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 760px) { .co2-doc, .co2-doc.wide { grid-template-columns: minmax(0, 1fr); } .co2-docg { grid-template-columns: minmax(0, 1fr); } .co2-docg .co2-doc { grid-template-columns: 110px minmax(0, 1fr); } }
/* Legal page: long texts wrap */
table.co2-legal td { white-space: normal !important; vertical-align: top; }
@media (min-width: 641px) { table.co2-legal td:first-child { white-space: nowrap !important; width: 110px; } table.co2-legal td:nth-child(2) { width: 28%; } }
th[data-k] { cursor: pointer; user-select: none; }
th[data-k].srt::after { content: ' ' attr(data-d); color: var(--gold); }
table.co2-cl td.go a { color: var(--royal); font-weight: 600; white-space: nowrap; }
.co2-method { display: grid; gap: 18px; }
.co2-method > * { min-width: 0; }
.co2-method ol, .co2-method ul { padding-left: 20px; overflow-wrap: anywhere; }
.co2-method li { margin: 6px 0; }
html[data-mode="dark"] .co2-grid input, html[data-mode="dark"] .co2-grid select { background: var(--paper); }
html[data-mode="dark"] .leaflet-container { background: #0b1a3a; }
.co2-grid .leaflet-control-layers label { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 13px; color: #1d2433; }
.co2-grid .leaflet-control-layers input { width: auto; padding: 0; margin: 0; }
@media (max-width: 900px) {
  .co2-grid { grid-template-columns: minmax(0, 1fr); }
  .co2-right { order: -1; }
  #co2map { height: 300px; }
}
@media (max-width: 640px) {
  table.co2-hz thead { display: none; }
  table.co2-hz, table.co2-hz tbody, table.co2-hz tr { display: block; width: 100%; }
  table.co2-hz tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  table.co2-hz td { display: block; border: 0 !important; padding: 3px 0 !important; text-align: left !important; white-space: normal; }
  table.co2-hz td.hz { grid-column: 1 / -1; font-size: 15px; }
  table.co2-hz td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
  .co2-kv { grid-template-columns: 1fr 1fr; }
  .co2-big { font-size: 23px; }
}
