:root {
  --page: #f2f1ed;
  --surface: #ffffff;
  --ink: #18232c;
  --muted: #5f6b73;
  --line: #d7d9d8;
  --header: #17242d;
  --lystikkala: #a95732;
  --lystikkala-soft: #f3e5dc;
  --ryhtila: #3e6678;
  --ryhtila-soft: #e2edf1;
  --shared: #49644f;
  --max-width: 1180px;
  --shadow: 0 12px 32px rgb(24 35 44 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #d69a45;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: #fff;
}

.site-header {
  color: #fff;
  background: var(--header);
  border-bottom: 4px solid #2d414e;
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.brand strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  margin-top: 0.35rem;
  color: #cbd4d9;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}

.main-nav a {
  padding: 0.65rem 0.75rem;
  color: #dce4e8;
  border-radius: 4px;
  font-size: 0.92rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: #314653;
}

main {
  min-height: 70vh;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #cfdae0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 6vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgb(255 255 255 / 50%);
}

.home-page {
  background: #eef0ed;
}

.home-hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  color: #fff;
  background: linear-gradient(125deg, #14232c 0%, #203943 54%, #365b68 100%);
  border-bottom: 1px solid #456b79;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 1.6rem;
  color: #e1e9ec;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.home-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2.25rem 0 0;
}

.home-hero-facts div {
  padding-top: 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 30%);
}

.home-hero-facts dt {
  color: #b9cbd2;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-facts dd {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 750;
}

.home-hero-map {
  overflow: hidden;
  margin: 0;
  background: #dceff4;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgb(0 0 0 / 28%);
}

.home-hero-map a {
  display: block;
}

.home-hero-map img {
  width: 100%;
  height: auto;
}

.home-hero-map figcaption {
  padding: 0.8rem 1rem;
  color: #dce7eb;
  background: #172832;
  border-top: 1px solid #38515e;
  font-size: 0.82rem;
}

.home-section-intro {
  max-width: 820px;
  margin-bottom: 1.7rem;
}

.home-section-label {
  margin-bottom: 0.45rem;
  color: var(--shared);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-section-intro h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.home-section-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.home-city-grid {
  gap: 1.25rem;
}

.home-city-card .city-card-body {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.home-city-card.lystikkala {
  background: linear-gradient(145deg, #fff 55%, var(--lystikkala-soft));
}

.home-city-card.ryhtila {
  background: linear-gradient(145deg, #fff 55%, var(--ryhtila-soft));
}

.home-city-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.home-city-card > .city-card-body > p {
  min-height: 5.1rem;
}

.home-city-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.home-city-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-city-facts dd {
  margin: 0.18rem 0 0;
  font-size: 0.92rem;
  font-weight: 750;
}

.home-network-copy {
  max-width: 900px;
}

.home-network-map {
  background: #d7edf2;
}

.home-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-portal-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--shared);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgb(24 35 44 / 5%);
}

.home-portal-card > span {
  display: block;
  margin-bottom: 1rem;
  color: #728078;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.home-portal-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.55rem;
}

.home-portal-card p {
  color: var(--muted);
}

.home-portal-card a {
  font-weight: 750;
}

.section {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.section.compact {
  padding: 2rem 0 0;
}

.section.white {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-heading a {
  color: var(--muted);
  font-weight: 700;
}

.map-frame {
  overflow: hidden;
  background: #132029;
  border: 1px solid #293944;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.map-frame img {
  width: 100%;
  height: auto;
}

.map-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-section {
  scroll-margin-top: 1rem;
}

.map-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.map-section-copy {
  max-width: 820px;
}

.map-section-label {
  margin-bottom: 0.45rem;
  color: var(--shared);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.map-section-copy h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.map-section-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.map-open-link {
  flex: 0 0 auto;
  padding-bottom: 0.15rem;
  color: var(--muted);
  font-weight: 750;
}

.map-figure {
  overflow: hidden;
  margin: 0;
  background: #dceff4;
  border: 1px solid #b7cbd2;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-figure > a,
.map-card-image {
  display: block;
}

.map-figure img {
  width: 100%;
  height: auto;
}

.map-figure figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.city-map-section {
  border-bottom: 0;
}

.city-grid,
.district-grid,
.map-grid,
.fact-grid {
  display: grid;
  gap: 1rem;
}

.city-grid,
.map-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.district-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 0;
}

.city-card,
.district-card,
.fact,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.city-card {
  overflow: hidden;
  border-top: 5px solid var(--shared);
  box-shadow: 0 8px 22px rgb(24 35 44 / 6%);
}

.city-card.lystikkala {
  border-top-color: var(--lystikkala);
}

.city-card.ryhtila {
  border-top-color: var(--ryhtila);
}

.city-card-body,
.district-card,
.fact,
.content-card {
  padding: 1.25rem;
}

.city-card h3,
.district-card h3 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.city-card p,
.district-card p,
.content-card p {
  color: var(--muted);
}

.card-link {
  font-weight: 750;
}

.tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.48rem;
  color: #fff;
  background: var(--shared);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag.lystikkala {
  background: var(--lystikkala);
}

.tag.ryhtila {
  background: var(--ryhtila);
}

.news-page {
  background: #eef0ed;
}

.news-header {
  background: linear-gradient(125deg, #1c2d37, #315363);
}

.news-feature {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid #7a1e2c;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.news-feature-image,
.news-feature-image picture {
  display: block;
  height: 100%;
}

.news-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.news-feature-copy {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  align-self: center;
}

.news-feature-meta {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-feature-meta span {
  color: #7a1e2c;
}

.news-feature-copy h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.news-feature-copy h2 a {
  text-decoration: none;
}

.news-feature-copy h2 a:hover,
.news-feature-copy h2 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.news-feature-copy > p:not(.news-feature-meta, .news-feature-byline) {
  color: var(--muted);
  font-size: 1.02rem;
}

.news-feature-byline {
  margin-bottom: 1rem;
  color: #7a1e2c;
  font-size: 0.86rem;
  font-weight: 750;
}

.news-archive-callout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
}

.news-archive-callout > div:first-child {
  max-width: 760px;
}

.news-archive-callout h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.news-archive-callout p:not(.map-section-label) {
  margin-bottom: 0;
  color: var(--muted);
}

.news-archive-links {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.7rem;
}

.news-archive-links a {
  font-weight: 750;
}

.page-header {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
  color: #fff;
  background: #263944;
}

.page-header.lystikkala {
  background: #743e28;
}

.page-header.ryhtila {
  background: #315363;
}

.page-header h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-header p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #edf2f3;
  font-size: 1.08rem;
}

.city-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.city-subnav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.city-subnav a {
  padding: 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.city-subnav a:hover,
.city-subnav a:focus-visible {
  color: var(--ink);
  background: var(--lystikkala-soft);
}

.city-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.lystikkala-page .map-section-label {
  color: var(--lystikkala);
}

.ryhtila-page .map-section-label {
  color: var(--ryhtila);
}

.city-profile-copy {
  max-width: 760px;
}

.city-profile-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.city-profile-copy p:not(.map-section-label) {
  color: var(--muted);
  font-size: 1.04rem;
}

.city-key-points {
  padding: 1.4rem;
  background: var(--lystikkala-soft);
  border: 1px solid #dfc3b3;
  border-radius: 6px;
}

.city-key-points h2 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.city-key-points ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #654a3d;
}

.city-key-points li + li {
  margin-top: 0.65rem;
}

.ryhtila-page .city-subnav a:hover,
.ryhtila-page .city-subnav a:focus-visible {
  background: var(--ryhtila-soft);
}

.ryhtila-page .city-key-points {
  background: var(--ryhtila-soft);
  border-color: #b8d0da;
}

.ryhtila-page .city-key-points ul {
  color: #365563;
}

.lystikkala-map {
  background: #f1dfd3;
  border-color: #d8b49e;
}

.interactive-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.interactive-map-toolbar > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-layer-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  color: #654a3d;
  background: #fff;
  border: 1px solid #d8b49e;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.map-layer-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.map-layer-toggle:hover,
.map-layer-toggle:focus-visible,
.map-layer-toggle[aria-pressed="true"] {
  color: #fff;
  background: #743e28;
  border-color: #743e28;
}

.map-layer-toggle:focus-visible,
.map-card-close:focus-visible,
.map-inline-action:focus-visible,
.map-back-action:focus-visible,
.map-person-marker:focus-visible {
  outline: 3px solid #d69a45;
  outline-offset: 3px;
}

.interactive-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.interactive-map-figure {
  min-width: 0;
}

.interactive-map-canvas {
  position: relative;
}

.interactive-map-canvas > img {
  width: 100%;
  height: auto;
  user-select: none;
}

.map-hit-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-region-hotspot {
  fill: transparent;
  stroke: transparent;
  stroke-linejoin: round;
  stroke-width: 0;
  cursor: pointer;
  pointer-events: all;
  touch-action: manipulation;
  transition: fill 140ms ease, stroke 140ms ease, stroke-width 140ms ease;
}

.map-region-hotspot:hover,
.map-region-hotspot:focus-visible {
  fill: rgb(116 62 40 / 16%);
  stroke: #743e28;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.map-region-hotspot:focus-visible {
  outline: none;
  stroke: #17212b;
  stroke-dasharray: 11 7;
}

.map-region-hotspot.is-selected {
  fill: rgb(116 62 40 / 20%);
  stroke: #743e28;
  stroke-dasharray: 16 8;
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
}

.map-person-marker {
  position: absolute;
  left: 65.4%;
  top: 41.7%;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #743e28;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  touch-action: manipulation;
}

.map-person-marker svg {
  overflow: visible;
  fill: #fff;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 2px rgb(24 35 44 / 32%));
}

.map-person-marker:hover svg,
.map-person-marker:focus-visible svg,
.map-person-marker.is-selected svg {
  fill: #743e28;
  stroke: #fff;
}

.map-info-column {
  min-width: 0;
}

.map-panel-placeholder,
.map-info-card {
  min-height: 230px;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid #d8b49e;
  border-top: 5px solid var(--lystikkala);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgb(24 35 44 / 7%);
}

.map-panel-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-panel-placeholder h3,
.map-info-card h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.map-panel-placeholder > p:last-child,
.map-info-lead {
  margin-bottom: 0;
  color: var(--muted);
}

.map-info-card {
  position: relative;
  scroll-margin-top: 1rem;
}

.map-info-card:focus {
  outline: none;
}

.map-card-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.map-info-card > .map-section-label {
  max-width: calc(100% - 4rem);
}

.map-info-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.map-info-list div {
  display: grid;
  gap: 0.16rem;
}

.map-info-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.map-inline-action,
.map-back-action {
  padding: 0;
  color: #743e28;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.map-card-primary-action {
  color: #fff;
  background: #743e28;
}

.map-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.3rem;
}

.district-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #743e28;
  font-weight: 750;
}

.area-page {
  background: #f2f1ed;
}

.area-page-header h1 {
  max-width: 760px;
}

.area-page-header p:not(.eyebrow) {
  max-width: 900px;
}

.area-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.area-intro-copy {
  max-width: 780px;
}

.area-intro-copy h2,
.area-story-section h2,
.area-yard-section h2,
.area-work-section h2,
.area-mobility-section h2,
.area-change-section h2,
.area-section-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.area-intro-copy p:not(.map-section-label),
.area-reading-width > p:not(.map-section-label) {
  color: var(--muted);
  font-size: 1.04rem;
}

.area-reading-width {
  max-width: 880px;
}

.area-reading-width > p:last-child,
.area-intro-copy > p:last-child {
  margin-bottom: 0;
}

.area-summary-card {
  padding: 1.4rem;
  background: var(--lystikkala-soft);
  border: 1px solid #dfc3b3;
  border-top: 5px solid var(--lystikkala);
  border-radius: 6px;
}

.area-summary-card h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.area-summary-card dl {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}

.area-summary-card dl div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dfc3b3;
}

.area-summary-card dt {
  color: #76594b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.area-summary-card dd {
  margin: 0.18rem 0 0;
  color: #4f392e;
  font-weight: 700;
}

.area-summary-card > a {
  color: #743e28;
  font-weight: 750;
}

.area-section-heading {
  max-width: 820px;
  margin-bottom: 1.35rem;
}

.subdistrict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subdistrict-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid #d5a58d;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgb(24 35 44 / 5%);
}

.subdistrict-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.subdistrict-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.factory-yard-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0;
  padding: 0;
  list-style: none;
}

.factory-yard-list li {
  padding: 1rem 1.1rem;
  color: var(--muted);
  background: #f7f4f0;
  border-left: 4px solid var(--lystikkala);
  border-radius: 0 4px 4px 0;
}

.factory-yard-list strong {
  color: var(--ink);
}

/* Kehraamon suuralue-esittelyn hillitty teollinen taustakerros */

.kehraamo-page {
  --kehraamo-brick: #984b31;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .kehraamo-page {
    overflow-x: clip;
  }
}

.kehraamo-page main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

@supports (overflow: clip) {
  .kehraamo-page main {
    overflow: clip;
  }
}

.kehraamo-page main > :not(.kehraamo-rail-thread) {
  position: relative;
  z-index: 1;
}

.kehraamo-page .container {
  position: relative;
  z-index: 3;
}

.kehraamo-art {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.kehraamo-hero-art {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.kehraamo-hero-mass {
  fill: var(--kehraamo-brick);
  opacity: 0.12;
}

.kehraamo-hero-line {
  fill: none;
  stroke: var(--lystikkala-soft);
  stroke-width: 2;
  opacity: 0.14;
  vector-effect: non-scaling-stroke;
}

.kehraamo-window-glow {
  fill: var(--lystikkala-soft);
  opacity: 0.11;
}

.kehraamo-history-art,
.kehraamo-district-art {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.kehraamo-history-art {
  -webkit-mask-image: linear-gradient(90deg, #000 0 11%, transparent 19% 81%, #000 89% 100%);
  mask-image: linear-gradient(90deg, #000 0 11%, transparent 19% 81%, #000 89% 100%);
}

.kehraamo-drawing-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  opacity: 0.12;
  vector-effect: non-scaling-stroke;
}

.kehraamo-drawing-dash {
  fill: none;
  stroke: var(--lystikkala);
  stroke-dasharray: 7 8;
  stroke-width: 1;
  opacity: 0.15;
  vector-effect: non-scaling-stroke;
}

.kehraamo-page .area-story-section .area-reading-width {
  background: var(--surface);
  box-shadow: 0 0 32px 26px var(--surface);
}

.kehraamo-district-fill {
  fill: var(--kehraamo-brick);
  opacity: 0.06;
}

.kehraamo-district-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  opacity: 0.10;
  vector-effect: non-scaling-stroke;
}

.kehraamo-district-rail {
  fill: none;
  stroke: var(--lystikkala);
  stroke-width: 2;
  opacity: 0.12;
  vector-effect: non-scaling-stroke;
}

.kehraamo-page .area-section-heading,
.kehraamo-page .subdistrict-card {
  position: relative;
  z-index: 2;
}

.kehraamo-page .area-section-heading {
  background: var(--page);
  box-shadow: 0 0 24px 20px var(--page);
}

.kehraamo-rail-thread {
  top: clamp(350px, 34vw, 460px);
  right: max(0px, calc((100vw - var(--max-width)) / 2 - 88px));
  bottom: 100px;
  z-index: 2;
  width: 96px;
  height: auto;
}

.kehraamo-rail-stroke,
.kehraamo-rail-ties {
  fill: none;
  stroke: var(--lystikkala);
  stroke-width: 1.3;
  opacity: 0.11;
  vector-effect: non-scaling-stroke;
}

.kehraamo-rail-ties {
  stroke-width: 1;
  opacity: 0.09;
}

@media (max-width: 850px) {
  .kehraamo-history-art,
  .kehraamo-district-art {
    display: none;
  }

  .kehraamo-hero-art {
    width: 100%;
    max-width: none;
    transform: none;
  }

  .kehraamo-rail-thread {
    top: 315px;
    right: -18px;
    bottom: 70px;
    width: 54px;
  }

  .kehraamo-page .area-story-section .area-reading-width,
  .kehraamo-page .area-section-heading {
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .kehraamo-hero-art {
    width: 100%;
    transform: none;
  }

  .kehraamo-hero-line {
    opacity: 0.119;
  }

  .kehraamo-window-glow {
    display: none;
  }

  .kehraamo-hero-mass {
    opacity: 0.102;
  }

  .kehraamo-rail-thread {
    right: -26px;
    width: 46px;
  }

  .kehraamo-rail-ties,
  .kehraamo-rail-stroke + .kehraamo-rail-stroke {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kehraamo-art {
    animation: none !important;
    transition: none !important;
  }
}

[data-map-panel-content][hidden],
[data-map-placeholder][hidden],
.map-person-marker[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .map-region-hotspot {
    transition: none;
  }
}

.ryhtila-map {
  background: #dcebf0;
  border-color: #a9c5d0;
}

.city-section-heading {
  align-items: flex-start;
}

.city-section-heading h2 {
  margin-bottom: 0;
}

.center-grid,
.city-life-grid {
  display: grid;
  gap: 1rem;
}

.center-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.center-card,
.city-life-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgb(24 35 44 / 5%);
}

.center-card {
  border-top: 5px solid var(--lystikkala);
}

.center-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--lystikkala);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ryhtila-page .center-card {
  border-top-color: var(--ryhtila);
}

.ryhtila-page .center-card span {
  color: var(--ryhtila);
}

.center-card h3,
.city-life-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.center-card p,
.city-life-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.district-section-intro {
  max-width: 760px;
  margin: -0.45rem 0 1.5rem;
  color: var(--muted);
}

.lystikkala-page .district-card {
  position: relative;
  padding-top: 1.55rem;
  border-top: 4px solid #d5a58d;
}

.lystikkala-page .district-card h3 {
  padding-right: 2.1rem;
  font-size: 1.22rem;
}

.lystikkala-page .district-card p {
  margin-bottom: 0;
}

.ryhtila-page .district-card {
  position: relative;
  padding-top: 1.55rem;
  border-top: 4px solid #8db0bf;
}

.ryhtila-page .district-card h3 {
  padding-right: 2.1rem;
  font-size: 1.22rem;
}

.ryhtila-page .district-card p {
  margin-bottom: 0;
}

.district-number {
  position: absolute;
  top: 1.05rem;
  right: 1.1rem;
  color: #b5795c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ryhtila-page .district-number {
  color: #557f91;
}

.city-life-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city-life-card {
  border-left: 4px solid var(--lystikkala);
}

.ryhtila-page .city-life-card {
  border-left-color: var(--ryhtila);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.fact strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.15rem;
}

.map-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.map-card-image {
  background: #dceff4;
  border-bottom: 1px solid var(--line);
}

.map-card-image img {
  width: 100%;
  height: auto;
}

.map-card-body {
  padding: 1rem 1.15rem 1.2rem;
}

.map-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.map-card-body p {
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.map-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.map-card-links a {
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0;
  color: #cbd4d9;
  background: var(--header);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

/* Mediaosasto */

.media-page {
  background: #ece9e2;
}

.media-intro {
  padding: clamp(2.8rem, 6vw, 5rem) 0 2rem;
}

.media-intro h1 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.media-intro > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.publication-card {
  min-height: 300px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid #7a1e2c;
  box-shadow: var(--shadow);
}

.publication-card.ryhtila-paper {
  border-top-color: var(--ryhtila);
}

.publication-card.kulissi-paper {
  border-top-color: #b73570;
}

.publication-name {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.publication-card p {
  color: var(--muted);
}

.publication-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paper-body {
  color: #171717;
  background: #f6f2e8;
}

.paper-body .site-header {
  border-bottom-color: #7a1e2c;
}

.paper-wrap {
  width: min(calc(100% - 2rem), 1220px);
  margin: 0 auto;
}

.paper-masthead {
  padding: 1.7rem 0 1.35rem;
  border-bottom: 3px double #7a1e2c;
  text-align: center;
}

.paper-masthead a {
  text-decoration: none;
}

.paper-masthead-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.paper-masthead-meta {
  display: block;
  margin-top: 0.8rem;
  color: #6b645b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.paper-nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem 1.3rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #cfc7b9;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paper-nav a {
  padding: 0.25rem;
  text-decoration: none;
}

.paper-nav a:hover,
.paper-nav a:focus-visible,
.paper-nav a[aria-current="page"] {
  color: #7a1e2c;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 1.2rem 0 0;
  color: #6b645b;
  font-size: 0.8rem;
}

.breadcrumb a {
  color: #7a1e2c;
}

.paper-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.paper-section-label,
.article-kicker {
  margin-bottom: 0.7rem;
  color: #7a1e2c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-section h1,
.paper-section h2,
.article-header h1,
.article-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.paper-home-title {
  margin-bottom: 1.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #cfc7b9;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
}

.lead-story-image {
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #2a251c;
}

.lead-story-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lead-story-copy h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lead-story-copy h2 a {
  text-decoration: none;
}

.lead-story-copy h2 a:hover {
  color: #7a1e2c;
}

.lead-story-copy > p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.6;
}

.story-meta {
  color: #6b645b;
  font-size: 0.82rem;
  font-weight: 700;
}

.archive-link-row {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #cfc7b9;
}

.archive-link-row a,
.paper-return-links a {
  color: #7a1e2c;
  font-weight: 750;
}

.archive-list {
  display: grid;
  gap: 1rem;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 1.3rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #cfc7b9;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.archive-card h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.archive-card h2 a {
  text-decoration: none;
}

.archive-card p {
  color: #4e4943;
}

.article-header {
  max-width: 1040px;
  padding: clamp(2rem, 5vw, 4.5rem) 0 1.5rem;
}

.article-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.article-deck {
  max-width: 900px;
  margin-bottom: 1.1rem;
  color: #302d29;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
}

.article-byline {
  margin: 0;
  color: #6b645b;
  font-size: 0.86rem;
}

.article-byline strong {
  color: #171717;
}

.article-figure {
  margin: 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 0.65rem 0 0;
  color: #4f4a44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.photo-credit {
  display: block;
  margin-top: 0.2rem;
  color: #6b645b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.article-copy {
  max-width: 72ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.16rem);
  line-height: 1.72;
}

.article-copy p {
  margin-bottom: 1.35rem;
}

.article-copy h2 {
  margin: 2.8rem 0 1rem;
  padding-top: 0.55rem;
  border-top: 2px solid #7a1e2c;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.article-copy .inline-figure {
  margin: 2.5rem 0 0;
}

.pull-quote {
  margin: 2.5rem 0;
  padding: 1.4rem 0 1.4rem 1.3rem;
  color: #7a1e2c;
  border-left: 5px solid #c9a227;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
}

.article-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.fact-box {
  padding: 1.25rem;
  color: #f6f2e8;
  background: #0a0a0a;
  border-top: 4px solid #c9a227;
}

.fact-box h2 {
  margin-bottom: 1rem;
  color: #e0c158;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.fact-box dl {
  margin: 0;
}

.fact-box dt {
  color: #cfc7b9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-box dd {
  margin: 0.1rem 0 0.75rem;
}

.fact-box ol {
  margin: 0;
  padding-left: 1.25rem;
}

.fact-box li + li {
  margin-top: 0.55rem;
}

.paper-return-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding: 1.25rem 0 3rem;
  border-top: 1px solid #cfc7b9;
}

.paper-footer {
  color: #ded8ce;
  background: #201e1b;
}

.paper-footer .footer-inner {
  padding: 1.5rem 0;
}

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 760px;
  }

  .publication-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .header-inner {
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .map-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .city-profile-grid,
  .center-grid,
  .interactive-map-layout,
  .area-intro-grid {
    grid-template-columns: 1fr;
  }

  .map-panel-placeholder,
  .map-info-card {
    min-height: 0;
  }

  .district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature-image,
  .news-feature-image picture {
    height: auto;
  }

  .news-feature-image img {
    height: auto;
    min-height: 0;
  }

  .news-archive-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main-nav {
    width: 100%;
  }

  .main-nav a {
    padding: 0.5rem 0.58rem;
  }

  .city-subnav .container {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .city-subnav a {
    flex: 0 0 auto;
    padding-inline: 0.7rem;
  }

  .city-grid,
  .city-life-grid,
  .map-grid,
  .district-grid,
  .fact-grid,
  .subdistrict-grid {
    grid-template-columns: 1fr;
  }

  .interactive-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-layer-toggle {
    width: 100%;
    justify-content: center;
  }

  .home-hero-facts,
  .home-city-facts {
    grid-template-columns: 1fr;
  }

  .home-city-card > .city-card-body > p {
    min-height: 0;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-grid,
  .lead-story,
  .archive-card,
  .article-aside {
    grid-template-columns: 1fr;
  }

  .paper-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .paper-nav a {
    flex: 0 0 auto;
  }

  .article-header h1 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media screen and (max-width: 850px) {
  .kehraamo-page .kehraamo-history-art,
  .kehraamo-page .kehraamo-district-art {
    display: none !important;
  }
}
