/* Shared Rugatha theme: banner, palette, typography and rounded panels. */
html { -webkit-text-size-adjust: 100%; }
body { padding: 28px 18px 54px; background: var(--bg); color: var(--text); font-family: var(--font-body); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 16px; padding: 12px; background: #fff; color: #183126; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.atlas-header, .atlas-shell, .atlas-footer { width: min(1180px, 100%); margin-inline: auto; }
.atlas-header .banner { margin-bottom: 18px; }
.atlas-header .banner-link { width: min(320px, 80vw); }
.atlas-navigation { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.atlas-navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); font-size: 14px; font-weight: 700; }
.atlas-navigation a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.atlas-navigation [aria-current] { background: var(--accent-soft); border-color: var(--accent); }
.location-language-toggle { position: fixed; top: 16px; left: 16px; z-index: 1000; display: inline-flex; }
.location-language-button { display: inline-grid; place-items: center; width: 88px; height: 88px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; cursor: pointer; transition: transform 160ms ease; }
.location-language-button:hover { transform: translateY(-1px); }
.location-language-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.location-language-button .language-toggle__icon { display: block; width: 100%; height: 100%; object-fit: contain; }
.breadcrumbs { margin-block: 26px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 0; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: '/'; padding-inline: 12px; opacity: .5; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }
.location-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--accent); }
.eyebrow span { margin-inline: 8px; opacity: .6; }
h1 { font-family: var(--font-body); font-weight: 700; font-size: clamp(26px, 3.3vw, 36px); line-height: 1.35; margin: 0 0 16px; overflow-wrap: anywhere; }
.location-description { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.95; white-space: pre-line; }
.location-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; color: var(--accent); font-size: 13px; }
.location-meta span { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); line-height: 1.5; }
.parent-link { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.parent-link:hover { color: var(--accent); text-decoration: underline; }
.location-hero__image { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); border-radius: var(--radius); }
.location-hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.location-hero--overview { display: block; }
.location-hero--overview .eyebrow { margin-bottom: 8px; }
.location-hero--overview h1 { margin-bottom: 10px; }
.location-hero--overview .location-meta { margin-top: 16px; }
.location-hero--overview .parent-link { margin-top: 16px; }
.location-section { margin-top: 28px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { font-family: var(--font-body); font-size: 24px; margin: 0; }
.section-heading > span, .section-heading > a { font-size: 13px; line-height: 1.6; color: var(--muted); }
.section-heading > a:hover { text-decoration: underline; color: var(--accent); }
.location-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.location-grid > li { min-width: 0; }
.location-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.location-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.location-card__image { aspect-ratio: 16 / 9; width: 100%; background: rgba(255, 255, 255, .04); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.location-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.location-card__body { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.location-card__type { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--accent); margin: 0 0 13px; letter-spacing: .06em; }
.location-card__type span { color: var(--muted); letter-spacing: 0; }
.location-card h3 { font-family: var(--font-body); font-size: 22px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; margin: 0 0 16px; }
.location-card__desc { color: var(--muted); line-height: 1.85; font-size: 14px; white-space: pre-line; margin: 0 0 24px; }
.location-card__link { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; color: var(--accent); font-size: 13px; }
.location-empty { padding: 32px; background: var(--panel); border: 1px dashed rgba(255, 255, 255, .12); border-radius: var(--radius); line-height: 1.8; color: var(--muted); }
.location-story { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: var(--panel); }
.location-story__intro { margin: -10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.location-story__level { display: block; color: var(--accent); font-size: 11px; letter-spacing: .06em; margin-bottom: 6px; }
.location-campaign { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.025); }
.location-campaign + .location-campaign { margin-top: 16px; }
.location-campaign > summary { display: flex; align-items: center; gap: 16px; padding: 20px; cursor: pointer; list-style: none; }
.location-campaign > summary::-webkit-details-marker { display: none; }
.location-campaign > summary::after { content: '+'; color: var(--accent); font-size: 23px; margin-left: 4px; }
.location-campaign[open] > summary::after { content: '−'; }
.location-campaign > summary:hover { background: var(--accent-soft); border-radius: 14px; }
.location-campaign > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 14px; }
.location-campaign__heading { flex: 1; min-width: 0; }
.location-campaign h3 { font-size: 21px; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.location-campaign__count { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: right; }
.location-campaign__count > span { white-space: nowrap; }
.location-campaign__body { padding: 0 20px 22px; }
.location-campaign__link { display: inline-block; margin-bottom: 22px; color: var(--accent); font-size: 13px; }
.location-campaign__link:hover, .location-story-arc h4 a:hover { text-decoration: underline; }
.location-story-arc + .location-story-arc { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.location-story-arc__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-left: 14px; border-left: 2px solid var(--accent); }
.location-story-arc h4 { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.location-story-arc__heading > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.location-chapters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.location-chapters > li { min-width: 0; }
.location-chapter-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14); background: var(--panel); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.location-chapter-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.location-chapters__image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.12); }
.location-chapters__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.location-chapters__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 16px; }
.location-chapters__type { color: var(--accent); font-size: 11px; letter-spacing: .06em; margin-bottom: 13px; }
.location-chapters__title { margin: 0 0 12px; font-family: var(--font-body); font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.location-chapters__date { color: var(--muted); font-size: 12px; line-height: 1.85; margin-bottom: 20px; overflow-wrap: anywhere; }
.location-chapters__link { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; color: var(--accent); font-size: 13px; }
.atlas-footer { margin-top: 26px; }
.atlas-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; }
.atlas-footer .back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 12px; color: #9fe8c4; font-size: 20px; line-height: 1.6; transition: transform 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.atlas-footer .back-link:hover, .atlas-footer .back-link:focus-visible { transform: translateY(-2px); color: #c2fff5; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
@media (max-width: 960px) {
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-hero { grid-template-columns: 1.2fr 1fr; gap: 24px; }
  .location-chapters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .location-language-toggle { top: 12px; left: 12px; }
  .location-language-button { width: 44px; height: 44px; }
  .atlas-header, .atlas-shell, .atlas-footer { width: 100%; }
  body { padding: 22px 14px 40px; }
  .atlas-navigation { gap: 10px; }
  .atlas-navigation a { font-size: 13px; }
  .breadcrumbs { margin-block: 20px; font-size: 12px; }
  .breadcrumbs li + li::before { padding-inline: 8px; }
  .location-hero { grid-template-columns: 1fr; padding: 18px; }
  .location-hero__image { aspect-ratio: 16 / 7; }
  .location-grid { grid-template-columns: 1fr; gap: 20px; }
  .location-chapters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .location-chapter-card { border-radius: 12px; }
  .location-story { padding: 18px; }
  .location-campaign > summary { padding: 16px 12px; gap: 10px; }
  .location-campaign h3 { font-size: 18px; }
  .location-campaign__count { max-width: 90px; font-size: 11px; }
  .location-campaign__body { padding: 0 10px 16px; }
  .location-story-arc__heading { padding-left: 10px; gap: 10px; }
  .location-story-arc h4 { font-size: 16px; }
  .location-story-arc__heading > span { font-size: 11px; }
  .location-chapters__body { padding: 10px; }
  .location-chapters__type { margin-bottom: 8px; }
  .location-chapters__title { font-size: 15px; line-height: 1.5; }
  .location-chapters__date { font-size: 11px; margin-bottom: 16px; }
  .location-chapters__link { font-size: 12px; gap: 8px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 21px; }
  .location-card h3 { font-size: 22px; }
  .atlas-footer nav { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .location-chapter-card, .location-card, .atlas-footer .back-link, .location-language-button { transition: none; } .location-chapter-card:hover, .location-card:hover, .location-language-button:hover, .atlas-footer .back-link:hover, .atlas-footer .back-link:focus-visible { transform: none; } }
