/* Shared layout for independent GEORUMA pages and the real-data demonstration. */
.page-section { padding-block: 70px; }
.page-section h1, .project-heading h1, .contact h1, .method h1 {
  max-width: 22ch;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.05em;
  margin-bottom: 25px;
}
.page-lead { max-width: 760px; font-size: 19px; color: var(--muted); }
.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.project-heading { padding-block: 35px 55px; }
.project-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 35px; }
.project-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: transform .22s, box-shadow .22s; }
.project-tile .project-art { width: 100%; height: 185px; border-radius: 0; }
.project-tile > div:last-child { padding: 27px; flex: 1; }
.project-tile h3 { font-size: 25px; font-weight: 500; margin-bottom: 15px; }
.project-tile p { color: var(--muted); font-size: 16px; }
.project-tile .project-meta { font-size: 12px; color: #08717c; }
.project-state { display: inline-block; border: 1px solid #91b8bc; padding: 7px 11px; font-size: 13px; border-radius: 20px; color: #245260; margin-top: 8px; }
.featured-demo { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 70px; padding-block: 70px; }
.featured-demo p { max-width: 620px; }
.featured-demo h2 { max-width: 19ch; }
.feature-visual { background: var(--deep); color: #fff; border-radius: 8px; padding: 40px; }
.feature-visual > p { color: var(--mint); font-size: 12px; letter-spacing: .12em; }
.feature-visual strong { display: block; font-size: clamp(25px,3vw,38px); font-weight: 500; }
.feature-visual > span { display: block; font-size: 15px; margin-top: 12px; color: #d7e5eb; }
.feature-bars { height: 90px; display: flex; align-items: end; gap: 20px; margin: 28px 0; }
.feature-bars i { width: 45px; height: 75%; background: #53bb91; }
.feature-bars i:nth-child(2) { height: 42%; background: #8ad77d; }
.feature-bars i:nth-child(3) { height: 92%; background: #009b9b; }
.feature-bars i:nth-child(4) { height: 60%; background: #008e9d; }
.fact-strip { display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 14px; color: #08717c; margin-top: 30px; }
.fact-strip span { border-left: 2px solid #53bb91; padding-left: 12px; }
.demo-area { background: #e9f3f4; padding-block: 35px 50px; }
.demo-controls { background: #fff; padding: 25px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 18px; align-items: end; margin-bottom: 25px; }
.demo-controls label { font-size: 14px; }
.demo-controls select { margin: 0; font-size: 16px; background-color: #f7fbfb; }
.demo-controls .button { min-height: 48px; }
.demo-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,1fr); gap: 25px; align-items: start; }
.map-panel, .comparison-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.panel-heading { padding: 26px 28px 0; }
.panel-heading h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px; }
.panel-heading p { font-size: 14px; color: var(--muted); margin: 0; }
#territory-map { display: block; width: 100%; height: auto; }
.map-grid { fill: none; stroke: #b7cbd2; stroke-width: .65; stroke-dasharray: 3 5; }
.department { stroke: #456978; stroke-width: 1.1; cursor: pointer; transition: fill .22s; }
.department:hover, .department:focus-visible { stroke: #102c40; stroke-width: 3; outline: none; }
.department[data-selected="a"] { stroke: #102c40; stroke-width: 3; }
.department[data-selected="b"] { stroke: #08717c; stroke-width: 3; stroke-dasharray: 5 2; }
.map-annotations { fill: #45616e; font-size: 15px; }
.map-annotations path { fill: none; stroke: #102c40; stroke-width: 2; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 15px 25px 8px; font-size: 13px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 22px; height: 14px; border: 1px solid #78949f; }
.map-note { margin: 15px 25px 25px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.comparison-panel { padding: 28px; }
.comparison-panel h2 { font-size: 26px; }
.comparison-values article { padding-block: 20px; border-bottom: 1px solid var(--line); }
.comparison-values h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.comparison-values strong { font-size: 40px; font-weight: 500; letter-spacing: -.04em; }
.comparison-values p { font-size: 14px; color: var(--muted); margin: 8px 0 15px; }
.comparison-bar { background: #e1edef; height: 10px; border-radius: 10px; overflow: hidden; }
.comparison-bar i { background: #102c40; display: block; height: 100%; transition: width .4s ease; }
.comparison-bar.secondary i { background: #009b9b; }
.comparison-summary { font-size: 17px; color: #102c40; padding: 17px; background: #edf6f2; border-left: 3px solid #53bb91; margin: 23px 0 18px; }
#province-summary { color: var(--muted); font-size: 14px; }
.comparison-panel .map-note { margin-inline: 0; margin-bottom: 0; }
.reading-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 70px; align-items: start; }
.reading-grid p, .reading-grid li { color: var(--muted); line-height: 1.75; }
.reading-grid h2 { font-size: clamp(2rem,3vw,2.8rem); }
.reading-grid h3 { font-weight: 500; font-size: 23px; }
.reading-grid li { margin-bottom: 14px; }
.scope-note { padding: 28px; background: #e9f3f4; border-left: 3px solid #009b9b; }
.scope-note p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; margin: 30px 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 15px; color: var(--muted); padding: 18px; background: #fff; }
th, td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: right; font-size: 15px; }
thead th { background: #e9f3f4; font-weight: 500; min-width: 115px; }
th:first-child { text-align: left; min-width: 160px; }
tbody th { font-weight: 500; }
tbody tr:nth-child(even) { background: #eff6f7; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px; }
.download-links a { font-size: 14px; padding: 11px 16px; border: 1px solid #8eb4ba; border-radius: 25px; }
.download-links a:hover { background: #e0f3ef; }
.evidence-section { background: #e9f3f4; padding-block: 65px; }
.project-cta { padding-block: 70px; }
.project-cta p { max-width: 700px; color: var(--muted); }
.project-cta .text-link { margin-left: 25px; }
.project-method h3 { color: #102c40; }
.project-method p { color: var(--muted); }
.project-method article { border-color: var(--line); }
@media (hover:hover) { .project-tile:hover { transform: translateY(-5px); box-shadow: 0 15px 30px #102c4015; } }
@media (max-width:1050px) { .project-tiles { grid-template-columns: 1fr 1fr; }.demo-controls { grid-template-columns: 1fr 1fr; }.demo-grid { grid-template-columns: 1fr; }.featured-demo,.reading-grid { gap: 35px; } }
@media (max-width:700px) {
  .page-section { padding-block: 50px; }
  .project-heading { padding-top: 25px; padding-bottom: 35px; }
  .page-lead { font-size: 17px; }
  .project-tiles,.featured-demo,.reading-grid { grid-template-columns: 1fr; }
  .featured-demo { padding-block: 45px; }
  .project-tile .project-art { height: 150px; }
  .demo-controls { grid-template-columns: 1fr; padding: 20px; }
  .comparison-panel { padding: 22px; }
  .map-legend { padding-inline: 18px; }
  .map-note { margin-inline: 18px; }
  .panel-heading { padding-inline: 18px; }
  .fact-strip { font-size: 13px; gap: 14px 20px; }
  .project-cta .text-link { display: block; width: fit-content; margin: 20px 0 0; }
}
@media (prefers-reduced-motion:reduce) { .project-tile,.department,.comparison-bar i { transition: none; }.project-tile:hover { transform: none; } }

.comparison-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.comparison-controls select { width: 100%; text-overflow: ellipsis; }
.comparison-source { margin: 0 0 15px; font-size: 14px; color: var(--muted); }
.comparison-controls + .demo-grid .comparison-bar[hidden] { display: none; }
#comparison-rows td:last-child { font-variant-numeric: tabular-nums; }
@media (max-width: 920px) {
  .comparison-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .comparison-controls { grid-template-columns: 1fr; }
}

.commerce-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.commerce-map svg { display: block; width: 100%; height: auto; }
.commerce-map[hidden], .commerce-map [hidden] { display: none; }
@media (max-width: 540px) {
  .commerce-controls { grid-template-columns: 1fr; }
}
