/* Report pages: typography, sizes, colours and spacing measured from reference/Al_Dhaid_Plot_Assessment.pdf (A4 at 96 dpi,
   794 x 1123 px, Arial throughout). The site around the report keeps its own design. */
body.route-report .announcement,body.route-report main>section:not(.report-root),body.route-report>footer{display:none}
.report-root{display:none;padding-top:24px;padding-bottom:64px}
body.route-report .report-root{display:block}
.report-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;max-width:210mm;margin:0 auto 18px}
.report-actions a.button-small{color:#fff}
.report-pages{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;justify-items:center}

.report-page,.report-page *{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;box-sizing:border-box}
.report-page{--green:#1f6f43;--green-dark:#14532d;--orange:#b45309;--slate:#334155;--ink:#1f2933;--muted:#6b7280;--text2:#4b5563;--card:#fbfbfa;--line:#e5e7eb;
  width:min(210mm,100%);max-width:100%;min-width:0;height:296.5mm;overflow:hidden;background:#fff;color:var(--ink);border:1px solid var(--line);
  padding:45px 49px 0;display:flex;flex-direction:column;box-shadow:0 6px 24px #173c2c14}
.report-page h2,.report-page h3,.report-page p,.report-page ul,.report-page ol{margin:0}
.page-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;margin-top:12px}

/* header: page 1 title with rule; pages 2-10 coloured band */
.page-head:not(.band){position:relative}
.page-head:not(.band) .page-titles{padding-right:150px}
.page-head:not(.band) .page-logo{position:absolute;top:0;right:0;height:78px;width:auto}
.page-head:not(.band){border-bottom:3px solid var(--green);padding-bottom:18px;margin-top:-4px}
.page-head:not(.band) small{display:block;color:var(--green);font-size:11.46px;font-weight:700;letter-spacing:1.7px}
.page-head:not(.band) h2{color:var(--green-dark);font-size:30.66px;line-height:1.15;margin:4px 0 6px;letter-spacing:0}
.page-head:not(.band) .page-sub{color:var(--muted);font-size:13.86px}
.page-head.band{display:flex;justify-content:space-between;align-items:center;gap:16px;height:77px;padding:0 19px;border-radius:8px;background:var(--band);color:#fff}
.band-green{--band:#1f6f43}.band-orange{--band:#b45309}.band-slate{--band:#334155}
.page-head.band small{display:none}
.page-head.band h2{color:#fff;font-size:22px;line-height:1.2;letter-spacing:0}
.page-head.band .page-sub{color:#fff;opacity:.9;font-size:12.5px;margin-top:3px}
.page-head.band .facts{display:flex;gap:36px;margin:0;flex:0 0 auto;flex-wrap:nowrap}
.page-head.band .stat-tile{background:none;padding:0;min-width:0;flex:none;text-align:right}
.page-head.band .stat-tile small{display:block;color:#fff;opacity:.85;font-size:9.73px;font-weight:700;letter-spacing:.7px;text-transform:uppercase}
.page-head.band .stat-tile strong{color:#fff;font-size:15.33px;font-weight:700}

/* page 1 */
.header-strip{display:flex;justify-content:space-between;gap:12px;background:#f2f8f3;border:1px solid #cfe3d4;border-radius:8px;padding:11px 14px;margin:0}
.stat-tile small{display:block;font-size:9.73px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
.stat-tile strong{display:block;font-size:12.26px;color:var(--ink);margin-top:4px}
.header-strip .stat-tile{background:none;padding:0;min-width:0;flex:none}
.headline{background:#fef3e2;border-left:4px solid var(--orange);border-radius:8px;padding:12px 16px 13px}
.headline h3{color:#7c2d12;font-size:16px;line-height:1.3;margin:0 0 5px}
.headline p{color:#5b3a1e;font-size:12.8px;line-height:1.4}
.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 10px}
.kpi-card{border:1px solid #dde3ec;background:#f4f6f9;border-radius:8px;padding:11px 11px 10px}
.kpi-card.tone-positive{background:#eff8f0;border-color:#cfe5d4}
.kpi-card.tone-caution{background:#fff9e8;border-color:#f1e2b4}
.kpi-card.tone-negative{background:#fdf1ec;border-color:#f3d2c4}
.kpi-card.tone-neutral,.kpi-card.tone-unknown{background:#f4f6f9;border-color:#dde3ec}
.kpi-card small{display:block;font-size:9.73px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
.kpi-card strong{display:block;font-size:20.66px;line-height:1.2;color:var(--ink);margin:6px 0 2px}
.kpi-card p{font-size:11.46px;line-height:1.3;color:var(--text2)}

/* cards and their titles */
.report-card,.callout,.chart-panel,.bullet-block{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:13px}
.report-card>h3,.callout h3,.bullet-block h3{color:var(--green-dark);font-size:11.73px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;margin:0 0 9px}
.callout,.bullet-block.accent,.report-page[data-page="2"] .bullet-block,.report-page[data-page="3"] .bullet-block{border-left:4px solid var(--green)}
.callout.callout-caution{border-left-color:var(--orange)}
.report-page[data-page="4"] .callout,.report-page[data-page="8"] .callout:not(.callout-caution){border-left-color:var(--orange)}
.callout p{font-size:13.6px;line-height:1.45;margin:0 0 6px;color:var(--ink)}
.callout p:last-child{margin-bottom:0}
.bullet-block ul{padding-left:18px;font-size:13.6px;line-height:1.5}
.bullet-block li{margin-bottom:4px}
.report-page[data-page="9"] .bullet-block,.report-page[data-page="10"] .callout{border-left:1px solid var(--line)}

/* tables */
.table-wrap{overflow-x:auto;max-width:100%}
.data-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.3}
.data-table th{text-align:left;font-size:9.86px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);border-bottom:1px solid var(--line);padding:6px 6px}
.data-table td{padding:6px 6px;border-bottom:1px solid #eef0f2;vertical-align:top;color:var(--ink)}
.data-table tr:last-child td{border-bottom:0}
.indicator-table td:nth-child(2),.evidence-table td:nth-child(2){font-weight:700}
.pill{display:inline;font-size:10.93px;font-weight:700;letter-spacing:0;text-transform:none;background:none;padding:0;border-radius:0;color:#475569}
.pill.tone-positive{color:#1f7a3d}.pill.tone-caution{color:#a16207}.pill.tone-negative{color:#b42318}.pill.tone-neutral{color:#475569}.pill.tone-unknown{color:#475569}

/* recommendations and next steps */
.action-list{margin:0;padding:0;list-style:none;counter-reset:step;display:grid;gap:6px}
.action-list li{counter-increment:step;position:relative;padding:9px 12px 9px 48px;min-height:51px;border-left:3px solid var(--green);border-radius:6px;background:#f2f8f3}
.action-list li.tone-caution,.action-list li.tone-negative{background:#fff9ef;border-left-color:var(--orange)}
.action-list li.tone-neutral,.action-list li.tone-unknown{background:#f6f7f9;border-left-color:#64748b}
.action-list li::before{content:counter(step);position:absolute;left:14px;top:12px;font-size:20px;font-weight:700;color:var(--green)}
.action-list li.tone-caution::before,.action-list li.tone-negative::before{color:var(--orange)}
.action-list li.tone-neutral::before,.action-list li.tone-unknown::before{color:#64748b}
.action-list strong{display:block;font-size:13.33px;color:var(--ink)}
.action-list p{font-size:11.86px;line-height:1.4;color:var(--text2);margin-top:3px}
.report-card .action-list li{margin:0}
.recommendations .action-list li{padding:11px 14px 11px 48px}

/* maps */
.map-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.map-figure{margin:0}
.map-svg{width:100%;height:auto;display:block;background:#2b3a2f;border-radius:6px}
.map-image-smooth{image-rendering:auto}
.map-image-discrete{image-rendering:pixelated}
.map-figure figcaption,.map-note{font-size:11.06px;line-height:1.4;color:var(--muted);margin-top:5px}

/* charts */
.chart-panel{padding:12px 13px}
.chart-panel>h3{font-size:13.6px;font-weight:700;color:var(--ink);text-transform:none;letter-spacing:0;margin:0 0 6px}
.chart-figure{margin:0;display:flex;flex-direction:column-reverse}
.chart{width:100%;height:auto;display:block}
.chart-legend{display:flex;gap:16px;list-style:none;margin:0 0 4px;padding:0;font-size:11.33px;color:var(--ink);flex-wrap:wrap}
.chart-legend li{display:flex;align-items:center}
.swatch{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:3px}
.chart-empty{font-size:12px;color:var(--muted)}
.stack{display:flex;height:16px;overflow:hidden;border-radius:3px}
.stack-segment{height:100%}
.page-body>.facts:not(.header-strip){display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0}
.page-body>.facts:not(.header-strip) .stat-tile{background:#f4f6f9;border:1px solid #dde3ec;border-radius:8px;padding:11px}
.page-body>.facts:not(.header-strip) .stat-tile strong{font-size:20.66px;margin-top:6px}
.source-unavailable{background:repeating-linear-gradient(135deg,#f3f5ee,#f3f5ee 10px,#eef1e8 10px,#eef1e8 20px);border:1px dashed #b7c2b3;border-radius:8px;padding:18px;text-align:center;font-size:12px;color:var(--muted)}
.source-unavailable strong{display:block;color:var(--ink)}
.source-unavailable.is-error{border-color:#b42318}
.source-unavailable p{margin:4px 0 0}
.source-name{display:block;font-size:11px}
.credits,.disclaimer{font-size:11.06px;line-height:1.4;color:var(--muted)}

/* footer: running line and page number */
.report-page .page-foot{display:flex;justify-content:space-between;align-items:baseline;flex:0 0 auto;background:none;border-top:1px solid var(--line);padding:11px 0 33px;margin:0;font-size:10.66px;color:var(--muted)}
.report-page .page-foot span:last-child{font-weight:700;color:var(--ink)}
@media(max-width:700px){.trees-top{grid-template-columns:1fr}.report-page{height:auto;overflow:visible;padding:14px}.kpi-grid,.map-pair,.page-body>.facts{grid-template-columns:1fr}.page-head.band{flex-direction:column;align-items:flex-start;height:auto;padding:14px}.page-head.band .facts{flex-wrap:wrap;gap:12px}.page-head.band .stat-tile{text-align:left}.header-strip{flex-wrap:wrap}}

/* page 4: map beside the fact cards and map key */
.trees-top{display:grid;grid-template-columns:minmax(0,1fr) 221px;gap:14px;align-items:start}
.trees-side{display:flex;flex-direction:column;gap:10px}
.trees-side .stat-tile{border:1px solid #dde3ec;border-radius:8px;padding:11px;background:#f4f6f9}
.trees-side .stat-tile:first-child{background:#fff9e8;border-color:#f1e2b4}
.trees-side .stat-tile strong{font-size:20.66px;margin-top:6px}
.stat-tile p{font-size:11.46px;line-height:1.3;color:var(--text2);margin-top:2px}
.map-key{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:12px}
.map-key h3{color:var(--green-dark);font-size:11.73px;text-transform:uppercase;letter-spacing:.6px;margin:0 0 9px}
.map-key p{display:flex;align-items:center;gap:8px;font-size:11.33px;color:var(--ink);margin:0 0 7px}
.key-tree{display:inline-block;width:12px;height:12px;border:2px solid;border-radius:50%}
.key-boundary{display:inline-block;width:12px;height:12px;border-radius:2px}
/* footnotes under charts and credits */
.chart-note{font-size:11.06px;line-height:1.4;color:var(--muted);margin-top:6px}
.credits-card .credits{font-size:11.06px;line-height:1.5;color:var(--muted)}
/* PDF download message under the report actions (screen only) */
.pdf-message{flex:1 1 100%;margin:0;font-size:13px;line-height:1.4;color:#334155}
