/* SECTION 4 — CiberMandi Government Market Intelligence.
   Public content is entirely sourced from the bounded read-only API. */
.market-intelligence{padding:104px 0 100px;background:linear-gradient(175deg,#f3f8f3 0%,#f9faf7 48%,#fff 100%);color:var(--deep)}
.market-head{display:flex;justify-content:space-between;align-items:center;gap:48px;margin-bottom:36px}
.market-head>div:first-child{max-width:765px}
.market-eyebrow{font-size:11px;letter-spacing:.15em;color:#25724e;font-weight:850;display:inline-flex;align-items:center;gap:9px}
.market-eyebrow span{font-size:20px}
.market-head h2{font-size:clamp(43px,4.5vw,65px);font-weight:840;letter-spacing:-.065em;line-height:1.07;margin:14px 0 20px}
.market-head h2 em{font-style:normal;color:#a77a13}
.market-head p{font-size:16px;line-height:1.75;color:#52685d;max-width:630px;margin:0}
.market-head-note{background:linear-gradient(145deg,#064a35,#113d30);color:#fff;width:282px;min-width:250px;flex:none;padding:24px;border-radius:19px;box-shadow:0 18px 43px #08351f29;display:grid;gap:7px}
.market-head-icon{display:grid;place-items:center;width:45px;height:45px;border:1px solid #ffffff4d;border-radius:12px;background:#ffffff1b;font-size:25px;color:#eed18b;margin-bottom:7px}
.market-head-note strong{font-size:16px;line-height:1.36}.market-head-note>span:not(.market-head-icon){font-size:12px;color:#e9f6ed}.market-head-note small{font-size:11px;line-height:1.5;color:#c1ddce}
.market-workspace{background:#fff;border:1px solid #e1ece4;border-radius:24px;box-shadow:0 28px 70px #0c3a2316;padding:29px 29px 23px}
.market-workspace-top{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:23px}
.market-kicker{font-size:10px;letter-spacing:.12em;color:#428160;font-weight:870}
.market-workspace-top h3{font-size:24px;line-height:1.3;letter-spacing:-.04em;margin:5px 0 0}
.market-source-pill{border-radius:999px;border:1px solid #d7e6d9;background:#f1f8f2;padding:7px 12px;font-size:11px;font-weight:780;color:#356d4d;white-space:nowrap}
.market-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.market-filter{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px;font-weight:810;color:#22483a}
.market-filter>span small{font-size:10px;font-weight:550;color:#758a7e}
.market-filter select{min-width:0;width:100%;height:48px;padding:0 29px 0 13px;appearance:none;outline-offset:3px;font:600 13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;border:1.5px solid #d9e5dc;border-radius:11px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234d7560' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;color:#204233;cursor:pointer}
.market-filter select:focus-visible{outline:2px solid #e0a53b;border-color:var(--green)}.market-filter select:disabled{background-color:#f8faf8;color:#89988e;cursor:not-allowed}
.market-filter-help{margin:12px 0 0;color:#7d8c82;font-size:11px}
.market-feedback{margin:21px 0 0;border-radius:12px;padding:13px 16px;background:#f4f8f4;border:1px solid #e1eee6;color:#355d4b;font-size:13px;line-height:1.5}
.market-feedback.is-error{color:#8b332a;background:#fff2f0;border-color:#f4d3cd}
.market-feedback.is-loading{background:linear-gradient(90deg,#f4f8f4,#e9f3eb,#f4f8f4);background-size:220% 100%;animation:cm-price-load 1.5s infinite linear}
@keyframes cm-price-load{from{background-position:100%}to{background-position:-100%}}
.market-dashboard{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(264px,1fr);gap:19px;margin-top:20px}
.market-chart-card{border:1px solid #e5ede7;background:#fefefd;border-radius:18px;padding:24px 23px 17px;min-width:0}
.market-chart-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.market-chart-top h3{font-size:23px;letter-spacing:-.04em;margin:7px 0 4px}
.market-chart-top p{color:#6b8074;font-size:12px;margin:0}
.market-range{display:flex;gap:4px;border-radius:10px;background:#edf4ef;padding:4px;flex:none}
.market-range button{cursor:pointer;border:0;padding:7px 11px;border-radius:8px;background:transparent;font-size:11px;font-weight:850;color:#5d7b68;transition:background .15s}
.market-range button.is-active{background:var(--green);color:#fff;box-shadow:0 3px 9px #12462b2c}
.market-legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:24px;color:#637a6d;font-size:11px}
.market-legend>span{display:inline-flex;align-items:center;gap:7px}
.market-legend i{width:21px;height:0;border-top:3px solid var(--green)}.market-legend .min-line{border-color:#e7b25a;border-top-style:dashed}.market-legend .max-line{border-color:#91b8a1;border-top-style:dotted}
.market-chart-wrap{position:relative;margin-top:11px;min-height:285px}
#market-chart{width:100%;height:auto;display:block;overflow:visible;color:#6d8675}
#market-chart circle{cursor:crosshair;outline-offset:4px}
#market-chart circle:focus-visible{outline:2px solid #d6a43d}
.market-hover{position:absolute;top:3px;right:3px;background:#fff;color:#154433;border:1px solid #dce6df;border-radius:10px;padding:10px 13px;box-shadow:0 12px 26px #062d1b27;max-width:190px;pointer-events:none;font-size:12px;z-index:3}
.market-hover strong{display:block;margin-top:3px;font-size:15px}
.market-chart-foot{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e9efe9;padding-top:11px;margin-top:2px;color:#819086;font-size:10px}
.market-insights{display:flex;flex-direction:column;gap:13px;min-width:0}
.market-primary-stat{background:linear-gradient(145deg,#0b583e,#083a2d);color:#fff;border-radius:17px;padding:22px;position:relative;overflow:hidden}
.market-primary-stat:after{content:"";position:absolute;right:-45px;top:-30px;width:160px;height:160px;border:1px solid #ffffff20;border-radius:50%;pointer-events:none}
.market-primary-stat .market-kicker{color:#dbdcb0}
.market-primary-stat>strong{font-size:clamp(31px,2.85vw,44px);letter-spacing:-.05em;line-height:1.15;display:block;margin:11px 0 2px;font-weight:830;font-variant-numeric:tabular-nums}
.market-unit{font-size:12px;color:#d1e6d8}.market-primary-stat small{display:block;font-size:11px;color:#e4f2e9;margin-top:12px}
.market-change{margin-top:15px;border-radius:8px;border:1px solid #ffffff2a;background:#ffffff12;padding:10px;font-size:12px;line-height:1.45}
.market-change.positive{color:#c7f5d0}.market-change.negative{color:#ffd9bf}
.market-stat-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.market-stat-row>div{padding:16px 14px;border:1px solid #e3ece4;border-radius:13px;background:#f7faf7}
.market-stat-row span{display:block;font-size:11px;color:#76887c;margin-bottom:7px}
.market-stat-row strong{font-size:19px;letter-spacing:-.045em;white-space:nowrap}
.market-stat-detail{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 3px;font-size:11px;color:#687d71}
.market-stat-detail strong{font-size:15px;color:var(--green)}
.market-source-detail{background:#f3f6f0;border-radius:13px;padding:15px;display:flex;gap:11px;align-items:flex-start}
.market-source-detail>span{color:#538267;font-size:20px;line-height:1.2}
.market-source-detail p{font-size:11px;color:#728579;line-height:1.6;margin:0}.market-source-detail strong{color:#27533a}
.market-history{margin-top:22px;border:1px solid #e3ece5;border-radius:16px;overflow:hidden}
.market-history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px}
.market-history-heading h3{margin:4px 0 0;font-size:21px;letter-spacing:-.035em}
.market-history-heading button{border:1px solid #ccdcca;border-radius:10px;background:#f6faf7;color:#286743;padding:9px 13px;font-size:12px;font-weight:790;cursor:pointer}
.market-history-heading button:hover{background:#eaf4ed}
.market-table-scroll{overflow-x:auto}
.market-history table{width:100%;min-width:610px;border-collapse:collapse;font-size:13px;text-align:left}
.market-history thead{background:#f4f8f4;color:#53715c}
.market-history th{padding:12px 20px;font-weight:790;font-size:11px;white-space:nowrap}
.market-history td{padding:14px 20px;border-top:1px solid #edf1ed;color:#53695c;white-space:nowrap;font-variant-numeric:tabular-nums}
.market-history td:nth-child(3){color:#0b5037;font-weight:820}
.market-history tbody tr:hover{background:#f8fbf9}
.market-history-foot{padding:0 20px 15px;margin:0;font-size:11px;color:#788c7e}
.market-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.market-final-note{display:flex;align-items:center;gap:11px;padding:18px 7px 0;color:#718479;font-size:12px}
.market-final-note span{color:#b69138;font-size:20px}.market-final-note p{margin:0}
@media(max-width:1150px){.market-intelligence{padding:75px 0}.market-head{gap:25px}.market-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.market-dashboard{grid-template-columns:minmax(0,1.6fr) minmax(225px,1fr)}.market-chart-top{flex-direction:column}.market-chart-card{padding:20px 16px}.market-head-note{min-width:245px}}
@media(max-width:850px){.market-head{flex-direction:column;align-items:stretch}.market-head-note{width:100%;display:flex;gap:13px;align-items:center;flex-wrap:wrap}.market-head-note small{width:100%}.market-workspace{padding:20px}.market-dashboard{grid-template-columns:1fr}.market-insights{display:grid;grid-template-columns:1fr 1fr}.market-primary-stat{grid-row:span 2}.market-head h2{font-size:48px}}
@media(max-width:600px){.market-intelligence{padding:59px 0}.market-head h2{font-size:clamp(38px,9.5vw,48px)}.market-head p{font-size:14px}.market-head-note{padding:17px}.market-workspace{padding:16px 13px;border-radius:17px}.market-workspace-top{flex-direction:column;align-items:flex-start;gap:11px}.market-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.market-filter select{font-size:12px;padding-left:9px}.market-filter:last-child{grid-column:span 2}.market-chart-top h3{font-size:20px}.market-range button{padding:7px 10px}.market-chart-card{padding:17px 11px}.market-legend{gap:8px;font-size:10px}.market-chart-wrap{min-height:160px}.market-insights{display:flex}.market-primary-stat>strong{font-size:42px}.market-history-heading{padding:16px 12px}.market-history th,.market-history td{padding:11px 14px}.market-history-foot{padding:0 12px 13px}.market-chart-foot{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.market-feedback.is-loading{animation:none}}

/* Price explainer: no synthetic predictions; answers bind to the shown API rows. */
.market-companion{margin-top:22px;padding:23px 25px;border:1px solid #cfe5d5;border-radius:17px;background:linear-gradient(120deg,#eff8f0,#fbfdf9)}
.market-companion-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}
.market-companion-heading h3{margin:5px 0 7px;font-size:22px;letter-spacing:-.035em}
.market-companion-heading p{font-size:12px;line-height:1.6;color:#607b6a;margin:0;max-width:680px}
.market-companion-mark{display:grid;place-items:center;background:#e0f0e3;color:#256a48;border-radius:12px;height:43px;width:43px;font-size:24px;flex:none}
.market-questions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.market-questions button{font:750 12px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;background:#fff;color:#205d3f;border:1px solid #bcdac5;padding:10px 14px;border-radius:999px}
.market-questions button:hover{background:#f2f9f2}
.market-questions button[aria-pressed="true"]{background:#0a5039;color:#fff;border-color:#0a5039}
.market-answer{min-height:48px;margin:17px 0 0;border-left:3px solid #cca250;padding:10px 0 10px 14px;color:#385a46;font-size:13px;line-height:1.65}
.market-secondary-point{pointer-events:all}
.market-hover{max-width:240px}
.market-hover span{display:block;margin-top:3px;font-variant-numeric:tabular-nums}
#market-chart circle[data-series="modal"]{stroke:#fff}
@media(max-width:600px){
  .market-companion{padding:20px 16px}
  .market-companion-heading h3{font-size:19px}
  .market-questions button{font-size:11px;padding:9px 11px}
  .market-answer{font-size:12px}
}
