/* Lithaea-specific dimensions for the shared country article primitives. */
.lithaea-country {
  --country-wrap-width: min(calc(100% - 3rem), 1400px);
  --country-wrap-padding: clamp(2.5rem, 5vw, 5.5rem) 0 6rem;
  --country-hero-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
  --country-hero-gap: clamp(2.5rem, 6vw, 7rem);
  --country-hero-padding-bottom: clamp(3rem, 6vw, 6rem);
  --country-map-min-height: 420px;
  --country-map-padding: clamp(1rem, 2vw, 1.8rem);
  --country-map-frame-border: 1px solid var(--theme-rule-strong);
  --country-map-frame-background: var(--theme-paper-light);
  --country-map-frame-shadow: .65rem .65rem 0 var(--theme-shadow);
  --country-map-max-height: 650px;
  --country-map-object-fit: contain;
  --country-facts-columns: repeat(3, minmax(0, 1fr));
  --country-fact-min-height: 105px;
  --country-fact-padding: 1rem 1.15rem 1.1rem;
}

.lithaea-hero-copy { max-width: 720px; }
.country-kicker, .settlement-type { margin: 0 0 .7rem; color: var(--theme-accent); font: 800 .68rem Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.lithaea-hero h1, .country-section h2, .country-card h3, .settlement-card h3, .history-list h3, .movement-grid h3 { margin: 0; color: var(--theme-ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.lithaea-hero h1 { font-size: clamp(4.4rem, 8vw, 8.4rem); letter-spacing: -.055em; line-height: .86; }
.country-subtitle { margin: 1.25rem 0 1.6rem; color: var(--theme-accent); font-size: clamp(1.22rem, 2vw, 1.72rem); font-style: italic; line-height: 1.35; }
.lithaea-hero-copy > p:not(.country-kicker):not(.country-subtitle), .country-prose p, .country-card p, .settlement-card p, .movement-grid p, .history-list p { color: var(--theme-muted); font-size: 1.03rem; line-height: 1.72; }
.lithaea-hero-copy > p:not(.country-kicker):not(.country-subtitle) { margin: 0 0 1rem; }

.country-section { border-top: 1px solid var(--theme-rule); }
.country-profile { padding: 2.3rem 0 3rem; }
.country-section-heading { margin-bottom: 1.8rem; }
.country-section-heading .country-kicker { margin-bottom: .6rem; }
.country-section h2 { font-size: clamp(2.35rem, 4vw, 4.3rem); letter-spacing: -.042em; line-height: .95; }

.country-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.country-article { min-width: 0; }
.country-article > .country-section { padding: clamp(3rem, 5vw, 5rem) 0; }
.country-prose { max-width: 850px; }
.country-prose-wide { max-width: 900px; }
.country-prose p { margin: 0 0 1.15rem; }
.country-prose h3 { margin: 2rem 0 .85rem; color: var(--theme-ink); font-size: 1.6rem; font-weight: 400; }
.country-prose > :last-child { margin-bottom: 0; }
.country-columns { display: grid; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.7rem; }
.country-link { margin-top: 1.45rem !important; }
.country-link a { color: var(--theme-ink); font: 800 .68rem Arial, Helvetica, sans-serif; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.country-link a:hover { color: var(--theme-accent); }

.institution-grid, .settlement-grid, .movement-grid, .related-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--theme-rule-strong); border-left: 1px solid var(--theme-rule-strong); }
.country-card, .settlement-card, .movement-grid > section, .related-articles > a { min-width: 0; padding: 1.4rem 1.35rem 1.5rem; border-right: 1px solid var(--theme-rule-strong); border-bottom: 1px solid var(--theme-rule-strong); }
.country-card h3, .settlement-card h3, .movement-grid h3 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1; }
.country-card p, .settlement-card p, .movement-grid p { margin: .8rem 0 0; font-size: .92rem; line-height: 1.6; }
.settlement-card { min-height: 250px; }
.settlement-type { margin-bottom: 1.15rem; }
.settlement-index { display: flex; flex-wrap: wrap; gap: .55rem 1rem; padding: 1.4rem 0 0; }
.settlement-index a { color: var(--theme-ink); font: 800 .72rem Arial, Helvetica, sans-serif; letter-spacing: .055em; }

.history-list { display: grid; gap: 0; border-top: 1px solid var(--theme-rule-strong); }
.history-list > section { display: grid; grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr); gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--theme-rule); }
.history-list h3 { font-size: clamp(1.45rem, 2.2vw, 2.08rem); line-height: 1.04; }
.history-list p { margin: 0; }
.movement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.movement-grid > section { min-height: 180px; }
.country-related { padding-bottom: 0 !important; }
.related-articles > a { display: grid; gap: .55rem; color: var(--theme-ink); text-decoration: none; }
.related-articles > a:hover { color: var(--theme-paper-light); background: var(--theme-ink); }
.related-articles strong { font-size: 1.25rem; font-weight: 400; }
.related-articles span { color: var(--theme-muted); font-size: .9rem; line-height: 1.45; }
.related-articles > a:hover span { color: inherit; opacity: .78; }

.country-contents { position: sticky; top: 5.3rem; padding: 1.2rem 0 1.2rem 1.2rem; border-left: 1px solid var(--theme-rule-strong); font-family: Arial, Helvetica, sans-serif; }
.country-contents strong { color: var(--theme-accent); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.country-contents ol { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.country-contents a { color: var(--theme-muted); font-size: .76rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.country-contents a:hover { color: var(--theme-accent); }

@media (max-width: 1020px) {
  .lithaea-country { --country-hero-columns: minmax(0, 1fr) minmax(330px, .8fr); --country-hero-gap: 3rem; --country-facts-columns: repeat(2, minmax(0, 1fr)); }
  .country-layout { grid-template-columns: minmax(0, 1fr) 185px; gap: 2.6rem; }
}
@media (max-width: 760px) {
  .lithaea-country { --country-wrap-width: min(calc(100% - 2rem), 1400px); --country-wrap-padding: 2.4rem 0 6rem; --country-hero-columns: 1fr; --country-hero-gap: 2.2rem; --country-map-min-height: 0; }
  .country-layout { grid-template-columns: 1fr; }
  .country-columns { grid-template-columns: 1fr; gap: 0; }
  .country-contents { position: static; order: -1; padding: 1.15rem 0; border-left: 0; border-top: 1px solid var(--theme-rule); border-bottom: 1px solid var(--theme-rule); }
  .country-contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.1rem; }
  .institution-grid, .settlement-grid { grid-template-columns: 1fr; }
  .history-list > section { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 520px) {
  .lithaea-hero h1 { font-size: clamp(3.65rem, 18vw, 5.4rem); }
  .lithaea-country { --country-facts-columns: 1fr; }
  .movement-grid, .related-articles, .country-contents ol { grid-template-columns: 1fr; }
}
