/* 宁波城市地理 / 历史：城市档案式长页 */
.city-profile {
  --profile-ink: #173c47;
  --profile-paper: var(--color-bg);
  --profile-paper-deep: var(--color-bg-alt);
  --profile-line: rgba(23, 60, 71, .17);
  margin: 0;
  background: var(--profile-paper);
  color: #2d3436;
}

.city-profile--history {
  --profile-ink: #173c47;
  --profile-paper: var(--color-bg);
  --profile-paper-deep: var(--color-bg-alt);
  --profile-line: rgba(23, 60, 71, .17);
}

.city-profile main *, .city-profile main *::before, .city-profile main *::after { box-sizing: border-box; }
.city-profile main figure, .city-profile main dl, .city-profile main ol, .city-profile main ul { margin: 0; }
.city-profile main img { display: block; max-width: 100%; }

.history-hero {
  background:
    radial-gradient(circle at 78% 28%, rgba(196, 168, 124, .24), transparent 24%),
    linear-gradient(135deg, #173e48 0%, #245f70 52%, #1d3437 100%);
}

.knowledge-hero-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
}

.city-section {
  width: 100%;
  margin: 0 auto;
  padding: 96px var(--page-inset);
  scroll-margin-top: calc(var(--navbar-full-height, var(--navbar-height)) + 60px);
}

.location-layout { display: grid; grid-template-columns: minmax(490px, 530px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.location-map { position: relative; z-index: 1; min-width: 0; overflow: hidden; border: 1px solid rgba(23, 60, 71, .28); background: #dfeceb; box-shadow: 0 16px 36px rgba(23, 60, 71, .14); }
.location-map__trigger { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.location-map__trigger:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -4px; }
.location-map img { width: 100%; height: 595px; object-fit: contain; }
.city-section--location .location-map img { object-fit: cover; object-position: center top; }
.location-map__hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(14, 38, 34, .8); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; opacity: .88; transition: opacity .2s ease, transform .2s ease; }
.location-map__trigger:hover .location-map__hint, .location-map__trigger:focus-visible .location-map__hint { opacity: 1; transform: translateY(-2px); }
.location-notes { display: grid; min-width: 0; min-height: 595px; grid-template-rows: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--profile-line); background: var(--color-white); box-shadow: 0 16px 36px rgba(23, 60, 71, .1); }
.location-note { display: grid; min-width: 0; grid-template-columns: minmax(185px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 28px; padding: 26px 30px; border-top: 1px solid var(--profile-line); background: var(--color-white); }
.location-note:first-child { border-top: 0; }
.location-note__heading { min-width: 0; padding-left: 14px; border-left: 3px solid rgba(107, 176, 200, .65); }
.location-note__heading span { display: block; color: var(--color-accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.5; }
.location-note h3 { margin: 7px 0 0; color: var(--profile-ink); font-family: var(--font-heading); font-size: 21px; line-height: 1.45; }
.location-note > p { margin: 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.82; }

.city-section--landform,
.city-section--rivers,
.city-section--coast,
.city-section--islands,
.city-section--resilience,
.city-profile--history .city-section--turning-points,
.city-profile--history .city-section--names { width: 100%; max-width: none; padding: 100px var(--page-inset); }
.landform-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.landform-story { min-width: 0; border: 1px solid var(--profile-line); background: var(--color-white); }
.landform-story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.landform-story figcaption { padding: 24px 24px 27px; }
.landform-story figcaption span { color: var(--color-accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.landform-story h3 { margin: 8px 0 8px; color: var(--profile-ink); font-size: 23px; }
.landform-story p { margin: 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.75; }

.terrain-transect { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px !important; padding: 0; overflow: hidden; border: 1px solid var(--profile-line); background: var(--color-white); list-style: none; }
.terrain-transect li { position: relative; min-width: 0; padding: 24px 22px 26px; border-left: 1px solid var(--profile-line); }
.terrain-transect li:first-child { border-left: 0; }
.terrain-transect li::before { position: absolute; top: 0; right: 0; left: 0; height: var(--terrain-level); background: linear-gradient(180deg, rgba(107, 176, 200, .18), transparent); content: ""; pointer-events: none; }
.terrain-transect li:nth-child(1) { --terrain-level: 18px; }
.terrain-transect li:nth-child(2) { --terrain-level: 13px; }
.terrain-transect li:nth-child(3) { --terrain-level: 8px; }
.terrain-transect li:nth-child(4) { --terrain-level: 4px; }
.terrain-transect span, .terrain-transect small { position: relative; display: block; color: var(--color-text-light); font-size: 10px; line-height: 1.55; }
.terrain-transect span { color: var(--color-accent); font-weight: 800; letter-spacing: .08em; }
.terrain-transect li > div { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 8px 0 7px; }
.terrain-transect strong { color: var(--profile-ink); font-family: var(--font-heading); font-size: 20px; }
.terrain-transect b { flex: 0 0 auto; color: var(--color-primary); font-family: var(--font-heading); font-size: 17px; }

.climate-strip { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 42px; margin-top: 18px; padding: 26px 30px; border: 1px solid var(--profile-line); background: var(--color-white); }
.climate-strip > div span { color: var(--color-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.climate-strip h3 { margin: 7px 0 0; color: var(--profile-ink); font-size: 22px; }
.climate-strip dl { display: grid; grid-template-columns: .8fr .8fr 1.4fr; }
.climate-strip dl div { padding: 2px 20px; border-left: 1px solid var(--profile-line); }
.climate-strip dt { color: var(--color-text-light); font-size: 10px; font-weight: 750; }
.climate-strip dd { margin: 6px 0 0; color: var(--color-text-secondary); font-size: 13px; font-weight: 700; line-height: 1.6; }

.island-feature__photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px 18px 14px; background: linear-gradient(transparent, rgba(14, 38, 34, .76)); color: rgba(255, 255, 255, .88); font-size: 11px; line-height: 1.6; pointer-events: none; }
.coast-change__intro > span, .island-feature__copy > span, .resilience-grid__content > span { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.river-overview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); border: 1px solid var(--profile-line); background: var(--color-white); }
.river-feature { display: flex; min-width: 0; }
.river-feature img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.river-overview__copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 34px 30px; border-left: 1px solid var(--profile-line); background: var(--profile-paper-deep); }
.river-overview__copy > p { margin: 16px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.85; }
.river-overview__copy .river-overview__lead { margin-top: 0; color: var(--profile-ink); font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1.55; }
.river-facts { margin-top: 26px !important; border-top: 1px solid var(--profile-line); }
.river-facts div { padding: 13px 0; border-bottom: 1px solid var(--profile-line); }
.river-facts dt { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.river-facts dd { margin: 5px 0 0; color: var(--profile-ink); font-size: 13px; font-weight: 700; line-height: 1.6; }
.river-route-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 50px 0 18px; }
.river-route-heading h3, .river-context > h3 { margin: 0; color: var(--profile-ink); font-size: 24px; }
.river-route-heading p { max-width: 470px; margin: 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.7; text-align: right; }
.river-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; border-top: 1px solid var(--profile-line); border-bottom: 1px solid var(--profile-line); }
.river-route li { position: relative; min-width: 0; padding: 30px 18px; border-left: 1px solid var(--profile-line); }
.river-route li:first-child { border-left: 0; }
.river-route li:not(:last-child)::after { position: absolute; z-index: 2; top: 50%; right: -11px; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--profile-line); border-radius: 50%; background: var(--profile-paper); color: #899194; font-size: 11px; content: "→"; transform: translateY(-50%); }
.river-route span, .river-route small { display: block; color: #8a9295; font-size: 10px; line-height: 1.5; }
.river-route strong { display: block; margin: 9px 0 8px; color: var(--profile-ink); font-family: var(--font-heading); font-size: 21px; }
.river-route__focus { background: var(--profile-ink); }
.river-route .river-route__focus span, .river-route .river-route__focus small { color: rgba(255, 255, 255, .58); }
.river-route .river-route__focus strong { color: #fff; }
.river-context { margin-top: 48px; }
.river-context__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 18px; border: 1px solid var(--profile-line); background: var(--profile-line); }
.river-context article { position: relative; min-width: 0; padding: 30px 27px 32px; background: var(--color-white); }
.river-context article > span { position: absolute; top: 22px; right: 24px; color: rgba(23, 60, 71, .12); font-family: var(--font-heading); font-size: 36px; font-weight: 700; }
.river-context h4 { max-width: calc(100% - 38px); margin: 0; color: var(--profile-ink); font-size: 18px; line-height: 1.5; }
.river-context article p { margin: 22px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.82; }

.coast-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); border: 1px solid var(--profile-line); background: var(--color-white); }
.coast-feature { display: flex; min-width: 0; }
.coast-feature img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.coast-intro { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 38px 34px; border-left: 1px solid var(--profile-line); background: var(--profile-paper-deep); }
.coast-intro > span, .coast-grid article > span { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.coast-intro h3 { margin: 10px 0 0; color: var(--profile-ink); font-size: 26px; line-height: 1.5; }
.coast-intro p { margin: 18px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.85; }
.coast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 24px; border: 1px solid var(--profile-line); background: var(--profile-line); }
.coast-grid article { min-width: 0; padding: 27px 24px 30px; background: var(--color-white); }
.coast-grid h3 { margin: 8px 0 0; color: var(--profile-ink); font-family: var(--font-heading); font-size: 21px; }
.coast-grid p { margin: 15px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.78; }

.coast-change { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 34px; align-items: center; margin-top: 24px; padding: 30px 32px; border: 1px solid var(--profile-line); background: var(--color-white); }
.coast-change__intro h3 { margin: 8px 0 0; color: var(--profile-ink); font-size: 23px; line-height: 1.5; }
.coast-change__intro p { margin: 14px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.8; }
.coast-change__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
.coast-change__steps li { min-width: 0; padding: 4px 20px; border-left: 1px solid var(--profile-line); }
.coast-change__steps span, .coast-change__steps b, .coast-change__steps small { display: block; }
.coast-change__steps span { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.coast-change__steps b { margin-top: 7px; color: var(--profile-ink); font-size: 14px; line-height: 1.55; }
.coast-change__steps small { margin-top: 6px; color: var(--color-text-secondary); font-size: 10px; line-height: 1.6; }

.island-feature { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); overflow: hidden; border: 1px solid var(--profile-line); background: var(--color-white); }
.city-section--islands .channel-section-heading__title { white-space: nowrap; }
.island-feature__media { display: grid; min-width: 0; min-height: 560px; grid-template-rows: 1fr; }
.island-feature__photo { position: relative; min-width: 0; }
.island-feature__photo .location-map__trigger { height: 100%; }
.island-feature__photo img { width: 100%; height: 100%; object-fit: cover; }
.island-feature__copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 40px 36px; border-left: 1px solid var(--profile-line); background: var(--profile-paper-deep); }
.island-feature__copy h3 { margin: 10px 0 0; color: var(--profile-ink); font-size: 27px; line-height: 1.48; }
.island-feature__copy > p { margin: 18px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.85; }
.island-feature__copy > small { margin-top: 12px; color: var(--color-text-light); font-size: 10px; line-height: 1.5; }
.island-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px !important; border-top: 1px solid var(--profile-line); border-bottom: 1px solid var(--profile-line); }
.island-counts div { padding: 18px 14px; border-left: 1px solid var(--profile-line); }
.island-counts div:first-child { padding-left: 0; border-left: 0; }
.island-counts dt { color: var(--color-primary); font-family: var(--font-heading); font-size: 27px; font-weight: 800; line-height: 1.2; }
.island-counts dd { margin: 5px 0 0; color: var(--color-text-secondary); font-size: 11px; line-height: 1.5; }
.island-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 24px; border: 1px solid var(--profile-line); background: var(--profile-line); }
.island-grid article { position: relative; min-width: 0; padding: 29px 24px 31px; overflow: hidden; background: var(--color-white); }
.island-grid article > span { position: absolute; top: 18px; right: 20px; color: rgba(23, 60, 71, .1); font-family: var(--font-heading); font-size: 32px; font-weight: 800; }
.island-grid h3 { max-width: calc(100% - 26px); margin: 0; color: var(--profile-ink); font-size: 18px; line-height: 1.5; }
.island-grid p { margin: 18px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.78; }

.resilience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--profile-line); background: var(--profile-line); gap: 1px; }
.resilience-grid article { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--color-white); }
.resilience-grid__media { min-width: 0; overflow: hidden; background: var(--profile-paper-deep); }
.resilience-grid__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.96) contrast(1.06); transition: transform var(--transition-slow); }
.resilience-grid article:hover .resilience-grid__media img { transform: scale(1.025); }
.resilience-grid__content { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 28px 28px 30px; }
.resilience-grid__content::before { display: block; width: 34px; height: 3px; margin-bottom: 20px; background: var(--color-primary); content: ""; }
.resilience-grid h3 { margin: 8px 0 0; color: var(--profile-ink); font-size: 21px; line-height: 1.5; }
.resilience-grid p { margin: 16px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.82; }
.resilience-focus { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--profile-line); }
.resilience-focus dt { color: var(--color-primary); font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1.65; white-space: nowrap; }
.resilience-focus dd { margin: 0; color: var(--color-text-light); font-size: 11px; line-height: 1.65; }

.city-section--balance { width: 100%; max-width: none; padding: 100px var(--page-inset); }
.balance-feature figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.balance-feature figcaption { margin-top: 11px; color: #7b8385; font-size: 12px; line-height: 1.6; }
.port-location-copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border: 1px solid var(--profile-line); background: var(--profile-paper); }
.port-location-copy__item { min-width: 0; padding: 28px 30px 30px; border-left: 1px solid var(--profile-line); }
.port-location-copy__item:first-child { border-left: 0; }
.port-location-copy__item span { display: block; margin-bottom: 16px; color: var(--profile-ink); font-family: var(--font-heading); font-size: 18px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.port-location-copy__item p { margin: 0; color: #5f686b; font-size: 14px; line-height: 1.85; }
.city-takeaway { margin: 34px 0 0; padding: 22px 24px; border-left: 4px solid var(--color-accent); background: var(--profile-paper-deep); color: #5f686b; font-size: 14px; line-height: 1.8; }
.city-takeaway b { color: var(--profile-ink); }

.city-section--districts { width: 100%; max-width: none; padding: 100px var(--page-inset); }
.district-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; border: 1px solid var(--profile-line); background: var(--color-white); }
.district-summary > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; min-width: 0; padding: 19px 22px; border-left: 1px solid var(--profile-line); }
.district-summary > div:first-child { border-left: 0; }
.district-summary strong { color: var(--profile-ink); font-family: var(--font-heading); font-size: 28px; line-height: 1; }
.district-summary > div span { color: var(--color-text-secondary); font-size: 12px; line-height: 1.5; }
.district-summary > p { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 24px; margin: 0; padding: 14px 22px; border-top: 1px solid var(--profile-line); background: var(--profile-paper-deep); color: var(--color-text-secondary); font-size: 12px; line-height: 1.65; }
.district-summary > p b { flex: 0 0 auto; color: var(--color-accent); }
.district-tabs { margin-bottom: 24px; }
.district-panels { min-height: 430px; }
.district-group-intro { display: flex; align-items: baseline; gap: 20px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--profile-line); }
.district-group-intro span { flex: 0 0 auto; color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.district-group-intro p { max-width: 820px; margin: 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.75; }
.district-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.district-fact { position: relative; display: flex; min-width: 0; min-height: 350px; flex-direction: column; padding: 26px 26px 24px; overflow: hidden; border: 1px solid var(--profile-line); background: var(--color-white); }
.district-fact::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); content: ""; }
.district-fact header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.district-fact header > div > span { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.district-fact h3 { margin: 5px 0 0; color: var(--profile-ink); font-family: var(--font-heading); font-size: 28px; line-height: 1.3; }
.district-fact__number { color: rgba(23, 60, 71, .1); font-family: var(--font-heading); font-size: 42px; font-weight: 800; line-height: 1; }
.district-fact dl { margin-top: 22px !important; }
.district-fact dl div { padding: 15px 0; border-top: 1px solid var(--profile-line); }
.district-fact dt { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.district-fact dd { margin: 6px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.78; }
.district-fact__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto !important; padding: 18px 0 0; list-style: none; }
.district-fact__tags li { padding: 5px 9px; border: 1px solid rgba(46, 110, 136, .18); border-radius: 999px; background: rgba(107, 176, 200, .08); color: var(--profile-ink); font-size: 10px; line-height: 1.4; }
.city-section--district-history .district-fact { background: linear-gradient(180deg, rgba(196, 168, 124, .055), transparent 34%), var(--color-white); }

.turning-list { display: grid; gap: 1px; background: var(--profile-line); }
.turning-point { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 440px; background: var(--profile-paper); }
.turning-point--reverse figure { order: 2; }
.turning-point figure { position: relative; min-width: 0; overflow: hidden; }
.turning-point figure::after { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .18); content: ""; pointer-events: none; }
.turning-point figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) contrast(1.03); }
.turning-point figure figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 20px 16px; background: linear-gradient(transparent, rgba(20, 17, 14, .72)); color: rgba(255, 255, 255, .82); font-size: 11px; }
.turning-point > div { --turning-point-number-space: 104px; position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 68px); }
.turning-point > div > span { position: absolute; top: 28px; right: 32px; color: rgba(23, 60, 71, .09); font-family: var(--font-heading); font-size: 72px; font-weight: 800; line-height: 1; pointer-events: none; }
.turning-point time { width: min(100%, calc(100% - var(--turning-point-number-space))); color: var(--color-accent); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.turning-point h3 { width: min(480px, calc(100% - var(--turning-point-number-space))); margin: 12px 0 0; color: var(--profile-ink); font-size: clamp(25px, 2.5vw, 34px); line-height: 1.45; }
.turning-point p { max-width: 520px; margin: 20px 0 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.85; }
.turning-point strong { max-width: 520px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--profile-line); color: var(--profile-ink); font-size: 12px; line-height: 1.7; }

.name-guide { max-width: 900px; margin: 0 0 32px; padding: 19px 22px; border-left: 4px solid var(--color-accent); background: var(--profile-paper-deep); color: var(--color-text-secondary); font-size: 14px; line-height: 1.8; }
.name-guide b { color: var(--profile-ink); }
.name-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; padding: 0; border-top: 4px solid var(--profile-ink); border-bottom: 1px solid var(--profile-line); list-style: none; background: #fff; }
.name-timeline li { position: relative; display: flex; min-width: 0; min-height: 320px; flex-direction: column; padding: 28px 30px 30px; overflow: hidden; border-left: 1px solid var(--profile-line); }
.name-timeline li:nth-child(3n+1) { border-left: 0; }
.name-timeline li:nth-child(n+4) { border-top: 1px solid var(--profile-line); }
.name-timeline li:not(:last-child)::after { position: absolute; z-index: 2; top: 50%; right: -11px; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--profile-line); border-radius: 50%; background: #fff; color: var(--color-primary-dark); font-size: 11px; content: "→"; transform: translateY(-50%); }
.name-timeline li:nth-child(3n)::after { display: none; }
.name-timeline__meta { min-height: 22px; padding-right: 88px; }
.name-timeline time { color: var(--color-accent); font-size: 12px; font-weight: 800; line-height: 1.6; }
.name-timeline__meta span { position: absolute; top: 16px; right: 22px; width: 2em; color: rgba(23, 60, 71, .09); font-family: var(--font-heading); font-size: 48px; font-weight: 900; letter-spacing: 0; line-height: 1; text-align: right; white-space: nowrap; pointer-events: none; user-select: none; }
.name-timeline strong { position: relative; display: block; margin: 10px 0 12px; color: var(--profile-ink); font-family: var(--font-heading); font-size: 25px; }
.name-timeline > li > p { position: relative; margin: 0 0 22px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.78; }
.name-timeline small { display: grid; gap: 5px; margin-top: auto; padding: 13px 15px 14px; border-left: 3px solid var(--color-accent); background: var(--profile-paper-deep); line-height: 1.7; }
.name-timeline small b { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.name-timeline small span { color: var(--color-text-secondary); font-size: 12px; }

.city-section--territory { width: 100%; max-width: none; padding: 100px var(--page-inset); }
.territory-reading-note { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 26px; padding: 16px 19px; border-left: 4px solid var(--color-accent); background: var(--profile-paper-deep); color: var(--color-text-secondary); font-size: 12px; line-height: 1.75; }
.territory-reading-note b { flex: 0 0 auto; color: var(--profile-ink); font-size: 12px; }
.territory-era-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; border: 1px solid var(--profile-line); background: var(--color-white); }
.territory-era-tabs .tab-btn { display: flex; width: 100%; min-width: 0; min-height: 74px; flex-direction: column; gap: 3px; padding: 13px 10px; border: 0; border-left: 1px solid var(--profile-line); border-radius: 0; background: transparent; color: var(--color-text-secondary); }
.territory-era-tabs .tab-btn:first-child { border-left: 0; }
.territory-era-tabs .tab-btn:hover { background: var(--profile-paper-deep); }
.territory-era-tabs .tab-btn.active, .territory-era-tabs .tab-btn[aria-selected="true"] { background: var(--profile-ink); color: #fff; }
.territory-era-tabs .tab-btn span { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; }
.territory-era-tabs .tab-btn.active span, .territory-era-tabs .tab-btn[aria-selected="true"] span { color: #9fd0dd; }
.territory-era-tabs .tab-btn strong { color: inherit; font-family: var(--font-heading); font-size: 15px; line-height: 1.45; }
.territory-era-panels { min-height: 560px; }
.territory-panel.active { display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); min-height: 560px; border: 1px solid var(--profile-line); background: var(--color-white); }
.territory-panel__copy { display: flex; min-width: 0; flex-direction: column; padding: 38px 40px 34px; }
.territory-period-label { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.territory-panel h3 { margin: 9px 0 0; color: var(--profile-ink); font-size: 28px; line-height: 1.4; }
.territory-panel__copy > p { margin: 18px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.85; }
.territory-facts { margin: 26px 0 0; border-top: 1px solid var(--profile-line); }
.territory-facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--profile-line); }
.territory-facts dt { color: var(--color-accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.7; }
.territory-facts dd { margin: 0; color: var(--color-text-secondary); font-size: 12px; line-height: 1.7; }
.territory-current-compare { grid-column: 1 / -1; padding: 26px 30px 30px; border-top: 1px solid var(--profile-line); background: #fff; }
.territory-current-compare__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.territory-current-compare__heading h4 { margin: 0; color: var(--profile-ink); font-family: var(--font-heading); font-size: 17px; line-height: 1.4; }
.territory-current-compare__heading p { margin: 0; color: var(--color-text-secondary); font-size: 10px; letter-spacing: .05em; line-height: 1.6; }
.territory-current-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.territory-current-grid li { position: relative; display: flex; min-width: 0; min-height: 112px; flex-direction: column; padding: 15px 14px 14px; border: 1px solid var(--profile-line); border-top: 3px solid var(--color-primary); background: var(--profile-paper-deep); }
.territory-current-grid li::before { position: absolute; top: 16px; right: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); content: ""; }
.territory-current-grid li.is-partial { border-top-color: #b88943; background: #fbf7ee; }
.territory-current-grid li.is-partial::before { background: #b88943; }
.territory-current-grid li.is-out { border-top-color: #a65d50; background: #faf3f1; }
.territory-current-grid li.is-out::before { background: #a65d50; }
.territory-current-grid b { padding-right: 13px; color: var(--profile-ink); font-size: 13px; line-height: 1.5; }
.territory-current-grid em { margin-top: 6px; color: var(--color-primary-dark); font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.5; }
.territory-current-grid .is-partial em { color: #8b642d; }
.territory-current-grid .is-out em { color: #8f493d; }
.territory-current-grid span { margin-top: 5px; color: var(--color-text-secondary); font-size: 10px; line-height: 1.55; }
.territory-range-visual { display: flex; min-width: 0; flex-direction: column; margin: 0; padding: 28px 30px 22px; border-left: 1px solid var(--profile-line); background: linear-gradient(145deg, rgba(107, 176, 200, .12), rgba(196, 168, 124, .08)), var(--profile-paper-deep); }
.territory-range-visual__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--profile-line); }
.territory-range-visual__head span { color: var(--profile-ink); font-family: var(--font-heading); font-size: 15px; font-weight: 700; }
.territory-range-visual__head small { color: var(--color-text-secondary); font-size: 10px; letter-spacing: .08em; }
.territory-boundary { display: grid; grid-template: 68px minmax(220px, 1fr) 68px / minmax(94px, .7fr) minmax(180px, 1.6fr) minmax(94px, .7fr); gap: 12px; flex: 1; align-items: stretch; padding: 24px 0 18px; }
.territory-boundary__core { display: flex; grid-area: 2 / 2; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; border: 2px solid var(--color-primary); border-radius: 44% 56% 49% 51% / 54% 43% 57% 46%; background: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 7px rgba(107, 176, 200, .08), 0 16px 34px rgba(23, 60, 71, .09); text-align: center; }
.territory-boundary__core b { color: var(--profile-ink); font-family: var(--font-heading); font-size: 24px; line-height: 1.35; }
.territory-boundary__core span { margin-top: 9px; color: var(--color-text-secondary); font-size: 11px; line-height: 1.65; }
.territory-boundary__core .territory-boundary__added { margin-top: 6px; color: var(--color-accent); font-weight: 800; }
.territory-boundary__edge { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 9px; border: 1px solid rgba(23, 60, 71, .14); background: rgba(255, 255, 255, .55); text-align: center; }
.territory-boundary__edge span { color: var(--color-accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.territory-boundary__edge b { margin-top: 4px; color: var(--profile-ink); font-size: 10px; line-height: 1.5; }
.territory-boundary__edge--north { grid-area: 1 / 2; }
.territory-boundary__edge--east { grid-area: 2 / 3; }
.territory-boundary__edge--south { grid-area: 3 / 2; }
.territory-boundary__edge--west { grid-area: 2 / 1; }
.territory-range-visual figcaption { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--profile-line); color: var(--color-text-secondary); font-size: 10px; line-height: 1.65; }
.territory-range-visual--urban .territory-boundary__core { border-color: var(--color-accent); border-radius: 50%; }

.city-section--city-map { width: 100%; max-width: none; padding: 100px var(--page-inset); }
.city-map-layout { display: grid; grid-template-columns: minmax(380px, .88fr) minmax(0, 1.12fr); gap: 72px; align-items: center; }
.archive-map { padding: 18px; border: 1px solid var(--profile-line); background: var(--profile-paper-deep); }
.archive-map img { width: 100%; max-height: 700px; object-fit: contain; filter: saturate(.82) contrast(1.02); }
.archive-map figcaption { margin-top: 12px; color: var(--color-text-secondary); font-size: 11px; line-height: 1.65; }
.archive-map__copy ul { margin-top: 32px; padding: 0; list-style: none; }
.archive-map__copy li { padding: 18px 0; border-top: 1px solid var(--profile-line); color: var(--color-text-secondary); font-size: 14px; line-height: 1.8; }
.archive-map__copy li b { color: var(--profile-ink); }
.city-section--city-map.section-tone-deep .archive-map__copy li { border-top-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.city-section--city-map.section-tone-deep .archive-map__copy li b { color: #fff; }
.archive-map__links { display: grid; gap: var(--spacing-sm); margin-top: var(--spacing-lg); }
.archive-map__link { justify-content: flex-start; color: var(--color-white); border-color: rgba(255, 255, 255, .55); text-align: left; }
.archive-map__link:hover, .archive-map__link:focus-visible { background: var(--color-white); color: var(--profile-ink); border-color: var(--color-white); }
.archive-map__link:active { background: var(--color-bg-alt); color: var(--profile-ink); transform: none; }

@media (max-width: 980px) {
  .location-layout, .city-map-layout { grid-template-columns: 1fr; gap: 42px; }
  .location-map { width: min(100%, 440px); margin-inline: auto; }
  .city-section--location .location-map { width: min(100%, 500px); }
  .location-notes { width: min(100%, 680px); min-height: 500px; margin-inline: auto; }
  .landform-stories { grid-template-columns: 1fr 1fr; }
  .landform-story:last-child { display: grid; grid-column: 1 / -1; grid-template-columns: 1.1fr .9fr; }
  .landform-story:last-child img { height: 100%; aspect-ratio: auto; }
  .landform-story:last-child figcaption { display: flex; flex-direction: column; justify-content: center; }
  .climate-strip { grid-template-columns: 1fr; gap: 24px; }
  .island-feature, .coast-change { grid-template-columns: 1fr; }
  .island-feature__copy { border-top: 1px solid var(--profile-line); border-left: 0; }
  .island-feature__media { min-height: 620px; }
  .island-grid { grid-template-columns: 1fr 1fr; }
  .river-overview { grid-template-columns: 1fr; }
  .river-feature img { height: auto; }
  .river-overview__copy { border-top: 1px solid var(--profile-line); border-left: 0; }
  .river-context__grid { grid-template-columns: 1fr; }
  .coast-overview { grid-template-columns: 1fr; }
  .coast-feature img { height: auto; }
  .coast-intro { border-top: 1px solid var(--profile-line); border-left: 0; }
  .coast-grid { grid-template-columns: 1fr 1fr; }
  .resilience-grid { grid-template-columns: 1fr; }
  .resilience-grid article { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
  .resilience-grid__media img { height: 100%; aspect-ratio: auto; }
  .port-location-copy { grid-template-columns: 1fr; }
  .port-location-copy__item, .port-location-copy__item:first-child { border-top: 1px solid var(--profile-line); border-left: 0; }
  .port-location-copy__item:first-child { border-top: 0; }
  .turning-point { min-height: 380px; }
  .name-timeline { grid-template-columns: 1fr 1fr; }
  .name-timeline li, .name-timeline li:nth-child(3n+1) { border-left: 1px solid var(--profile-line); }
  .name-timeline li:nth-child(2n+1) { border-left: 0; }
  .name-timeline li:nth-child(n+3) { border-top: 1px solid var(--profile-line); }
  .name-timeline li:nth-child(3n)::after { display: grid; }
  .name-timeline li:nth-child(2n)::after { display: none; }
  .territory-era-panels { min-height: 0; }
  .territory-panel.active { grid-template-columns: 1fr; }
  .territory-range-visual { min-height: 500px; border-top: 1px solid var(--profile-line); border-left: 0; }
  .district-panels { min-height: 0; }
  .district-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .knowledge-hero-kicker { letter-spacing: .2em; }
  .city-section { width: 100%; padding: 64px var(--page-inset); }
  .city-section--landform, .city-section--rivers, .city-section--coast, .city-section--islands, .city-section--resilience, .city-profile--history .city-section--turning-points, .city-profile--history .city-section--names, .city-section--territory, .city-section--balance, .city-section--city-map { width: 100%; padding: 68px var(--page-inset); }
  .location-map img { height: auto; }
  .location-notes { min-height: 0; grid-template-rows: none; }
  .location-note { min-height: 170px; grid-template-columns: 1fr; align-content: center; gap: 14px; padding: 24px 22px; }
  .location-note__heading { padding-left: 12px; }
  .landform-stories { grid-template-columns: 1fr; }
  .landform-story:last-child { display: block; grid-column: auto; }
  .landform-story:last-child img, .landform-story img { height: auto; aspect-ratio: 4 / 3; }
  .terrain-transect { grid-template-columns: 1fr; }
  .terrain-transect li, .terrain-transect li:first-child { border-top: 1px solid var(--profile-line); border-left: 0; }
  .terrain-transect li:first-child { border-top: 0; }
  .climate-strip { padding: 24px 20px; }
  .climate-strip dl { grid-template-columns: 1fr; }
  .climate-strip dl div { padding: 13px 0; border-top: 1px solid var(--profile-line); border-left: 0; }
  .island-feature__copy { padding: 28px 22px; }
  .river-overview__copy { padding: 28px 22px; }
  .river-overview__copy .river-overview__lead { font-size: 21px; }
  .river-route-heading { display: block; margin-top: 40px; }
  .river-route-heading p { margin-top: 8px; text-align: left; }
  .river-route { grid-template-columns: 1fr; }
  .river-route li, .river-route li:nth-child(n) { border-top: 1px solid var(--profile-line); border-left: 0; }
  .river-route li:first-child { border-top: 0; }
  .river-route li:not(:last-child)::after { top: auto; right: 24px; bottom: -11px; transform: rotate(90deg); }
  .river-context { margin-top: 40px; }
  .river-context article { padding: 26px 22px 28px; }
  .coast-intro { padding: 28px 22px; }
  .coast-intro h3 { font-size: 23px; }
  .coast-grid { grid-template-columns: 1fr; }
  .coast-grid article { padding: 24px 22px 26px; }
  .coast-change { gap: 24px; padding: 26px 22px; }
  .coast-change__steps { grid-template-columns: 1fr; }
  .coast-change__steps li { padding: 16px 0; border-top: 1px solid var(--profile-line); border-left: 0; }
  .island-feature__media { min-height: 420px; }
  .island-grid, .resilience-grid { grid-template-columns: 1fr; }
  .island-grid article { padding: 25px 22px 28px; }
  .resilience-grid article { display: flex; }
  .resilience-grid__media img { height: auto; aspect-ratio: 16 / 10; }
  .resilience-grid__content { padding: 25px 22px 27px; }
  .port-location-copy__item { padding: 24px 22px 26px; }
  .turning-point, .turning-point--reverse { grid-template-columns: 1fr; }
  .turning-point figure, .turning-point--reverse figure { order: 0; min-height: 260px; }
  .turning-point > div { --turning-point-number-space: 72px; padding: 34px 24px 38px; }
  .turning-point > div > span { top: 18px; right: 22px; font-size: 58px; }
  .turning-point h3 { font-size: 26px; }
  .name-guide { margin-bottom: 24px; padding: 17px 18px; }
  .name-timeline { grid-template-columns: 1fr; }
  .name-timeline li, .name-timeline li:nth-child(n) { min-height: 0; padding: 24px 20px 26px; border-top: 1px solid var(--profile-line); border-left: 0; }
  .name-timeline__meta span { top: 15px; right: 18px; font-size: 42px; }
  .name-timeline li:first-child { border-top: 0; }
  .name-timeline li:nth-child(n)::after { display: grid; }
  .name-timeline li:last-child::after { display: none; }
  .name-timeline li:not(:last-child)::after { top: auto; right: 24px; bottom: -11px; transform: rotate(90deg); }
  .territory-reading-note { display: grid; gap: 5px; padding: 15px 17px; }
  .territory-era-tabs { display: flex; justify-content: flex-start; flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; overflow-x: auto; border: 0; background: transparent; scroll-padding-inline: 1px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .territory-era-tabs::-webkit-scrollbar { display: none; }
  .territory-era-tabs .tab-btn, .territory-era-tabs .tab-btn:first-child { flex: 0 0 142px; width: 142px; min-height: 66px; border: 1px solid var(--profile-line); scroll-snap-align: start; }
  .territory-panel__copy { padding: 28px 22px 26px; }
  .territory-panel h3 { font-size: 24px; }
  .territory-facts div { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .territory-current-compare { padding: 24px 20px 22px; }
  .territory-current-compare__heading { display: grid; gap: 3px; }
  .territory-current-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .territory-current-grid li { min-height: 120px; padding: 14px 12px 13px; }
  .territory-range-visual { min-height: 0; padding: 24px 20px 20px; }
  .territory-boundary { grid-template: auto auto auto / 1fr 1fr; gap: 8px; padding-top: 18px; }
  .territory-boundary__core { grid-area: 1 / 1 / 2 / -1; min-height: 190px; border-radius: 38% 62% 46% 54% / 52% 42% 58% 48%; }
  .territory-boundary__edge { min-height: 64px; }
  .territory-boundary__edge--north { grid-area: 2 / 1; }
  .territory-boundary__edge--east { grid-area: 2 / 2; }
  .territory-boundary__edge--south { grid-area: 3 / 2; }
  .territory-boundary__edge--west { grid-area: 3 / 1; }
  .city-map-layout { gap: 36px; }
  .archive-map { padding: 10px; }
  .city-section--districts { width: 100%; padding: 68px var(--page-inset); }
  .district-summary { grid-template-columns: 1fr 1fr; }
  .district-summary > div { grid-template-columns: auto 1fr; padding: 17px 16px; border-top: 1px solid var(--profile-line); }
  .district-summary > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .district-summary > div:nth-child(2) { border-left: 0; }
  .district-summary > p { display: grid; gap: 5px; padding: 14px 16px; }
  .district-group-intro { display: grid; gap: 7px; }
  .district-fact-grid { grid-template-columns: 1fr; }
  .district-fact { min-height: 0; padding: 24px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .city-profile { scroll-behavior: auto; }
  .location-map__hint, .resilience-grid__media img { transition: none; }
}
