/* Mansfield Sister Cities: site styles. Mobile first. */
:root {
  --navy: #12324f;
  --navy-2: #1c4569;
  --sky: #3f8fc6;
  --sky-soft: #e6f1f9;
  --accent: #c8553d;
  --accent-dark: #a7412c;
  --paper: #ffffff;
  --cream: #f7f3ec;
  --ink: #1b2430;
  --muted: #5a6776;
  --line: #e1e4e8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 50, 79, .06), 0 8px 24px rgba(18, 50, 79, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  padding: .8em 1.3em; border-radius: 999px; border: 2px solid var(--accent); line-height: 1.2; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy); }
.btn-small { padding: .5em 1.05em; font-size: .95rem; }
.eyebrow { font: 600 .8rem/1.3 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .7em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 46em; }
.note { font-size: .92rem; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.logo-mark { width: 40px; height: 40px; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 1.12rem/1.1 var(--font-display); }
.brand-sub { font-size: .72rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

/* mobile drawer */
.site-nav { position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px); z-index: 49; background: #fff; overscroll-behavior: contain; overflow-y: auto; padding: 8px var(--gutter) 40px; display: none; border-top: 1px solid var(--line); }
.site-nav.open { display: block; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-btn, .nav-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 4px; font: 600 1.08rem var(--font-body);
  color: var(--navy); background: none; border: 0; text-decoration: none; cursor: pointer; text-align: left; }
.nav-btn svg { transition: transform .2s; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { display: none; padding: 0 4px 14px; }
.menu.open { display: block; }
.menu a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--accent-dark); }
.mega-head { font-weight: 700; color: var(--navy) !important; margin-top: 8px; }
.mega-col ul { padding-left: 12px !important; }
.mega-usa ul { columns: 2; column-gap: 16px; }
.menu-foot { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-dark) !important; margin-top: 8px; }
.nav-cta-item { border-bottom: 0 !important; padding-top: 18px; }
.nav-cta-item .btn { width: 100%; justify-content: center; padding: .85em 1em; font-size: 1.05rem; }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; height: auto; padding: 0; border: 0; overflow: visible; background: none; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-btn, .nav-link { width: auto; padding: 10px 11px; font-size: .97rem; font-weight: 500; border-radius: 8px; }
  .nav-btn:hover, .nav-link:hover, .nav-btn[aria-expanded="true"] { background: var(--sky-soft); color: var(--navy); }
  .nav-btn svg { width: 1em; height: 1em; }
  .nav-cta-item { padding: 0 0 0 8px; }
  .nav-cta-item .btn { width: auto; padding: .5em 1.1em; font-size: .95rem; }
  .menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 10px 18px 14px; }
  .menu a { padding: 7px 0; font-size: .95rem; }
  .mega { left: auto; right: -260px; width: min(900px, 92vw); padding: 22px 26px; }
  .mega-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
  .mega-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; align-content: start; }
  .mega-col ul { padding-left: 0 !important; }
  .mega-usa ul { columns: 2; }
  .mega-head { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem !important; }
  .menu-foot { border-top: 1px solid var(--line); padding-top: 12px !important; margin-top: 14px; display: flex !important; }
}

/* breadcrumbs */
.crumbs { padding-top: 14px; padding-bottom: 0; font-size: .86rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #b3bac3; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 36px 0 44px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin-bottom: .4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: 20px; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 30%; width: 100%; box-shadow: var(--shadow); }
.hero-photo figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 56px; }
  .hero-photo img { aspect-ratio: 4 / 4.6; }
}

/* stats */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 28px; padding-bottom: 28px; }
.stats strong { display: block; font: 600 clamp(1.9rem, 5vw, 2.6rem)/1 var(--font-display); color: #fff; }
.stats span { display: block; font-size: .9rem; color: #c3d4e3; margin-top: 6px; line-height: 1.35; }
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* sections */
.section { padding: 52px 0; }
.section-tight { padding-top: 8px; padding-bottom: 52px; }
.section-tint { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head p { color: var(--muted); }
@media (min-width: 900px) { .section { padding: 80px 0; } }

/* map */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sky-soft); }
.map { height: 380px; width: 100%; z-index: 0; }
.map-frame.tall .map { height: min(72vh, 680px); min-height: 420px; }
.map.mini { height: 240px; }
@media (min-width: 900px) { .map { height: 500px; } .map.mini { height: 260px; } }
.map-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; }
.map-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.pin { width: 16px; height: 16px; border-radius: 50%; background: var(--sky); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin.home { background: var(--accent); width: 22px; height: 22px; }
.pin.poi { background: #7a8794; width: 13px; height: 13px; }
.leaflet-popup-content { font: 15px/1.45 var(--font-body); margin: 12px 16px; }
.leaflet-popup-content strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); display: block; }
.leaflet-popup-content a { font-weight: 600; }
.leaflet-container { font-family: var(--font-body); }
.tiles-soft { filter: grayscale(.55) sepia(.1) brightness(1.03) contrast(.95); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tl-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 35px; top: 40px; bottom: -18px; width: 2px; background: #d9cdb8; }
.tl-item:last-child::before { display: none; }
.tl-year { font: 600 1.05rem/1 var(--font-display); color: #fff; background: var(--navy); border-radius: 999px; height: 40px; display: grid; place-items: center; font-size: .9rem; z-index: 1; white-space: nowrap; }
.tl-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.tl-card h3 { margin-bottom: .3em; }
.tl-card h3 a { text-decoration: none; color: var(--navy); }
.tl-card h3 a:hover { color: var(--accent-dark); }
.tl-card p:last-child { margin-bottom: 0; }
.tl-when { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .3em; }
.tl-card .video { margin: 14px 0 0; }
@media (min-width: 900px) {
  .timeline:not(.vertical) { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .timeline:not(.vertical) .tl-item { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; }
  .timeline:not(.vertical) .tl-item::before { left: 50px; right: -22px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .timeline:not(.vertical) .tl-item:nth-child(4n)::before { display: none; }
  .timeline:not(.vertical) .tl-year { width: 100px; }
  .timeline.vertical { max-width: 820px; }
  .timeline.vertical .tl-item { grid-template-columns: 90px 1fr; }
  .timeline.vertical .tl-item::before { left: 44px; }
  .timeline.vertical .tl-year { width: 90px; }
}

/* videos */
.video { margin: 0; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt svg { position: absolute; inset: 50% auto auto 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); transition: transform .2s; }
.yt:hover svg { transform: translate(-50%, -50%) scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.videos { margin: 36px 0; }
.video-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }

/* countries & place cards */
.country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.country-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.country-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.country-card img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.cc-name { font: 600 1.12rem/1.2 var(--font-display); color: var(--navy); padding: 12px 14px 0; }
.cc-count { font-size: .88rem; color: var(--muted); padding: 2px 14px 14px; }
@media (min-width: 700px) { .country-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.place-grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .place-grid { grid-template-columns: repeat(3, 1fr); } }
.place-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: 10px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.place-card:hover { box-shadow: var(--shadow); border-left-color: var(--accent); color: var(--ink); }
.place-card.is-home { border-left-color: var(--accent); background: #fffaf6; }
.pc-name { font: 600 1.1rem/1.25 var(--font-display); color: var(--navy); }
.pc-meta { font-size: .92rem; color: var(--muted); }
.pc-dist { font-size: .8rem; color: #8592a0; margin-top: 4px; }
.pl-group { margin-top: 34px; }
.pl-group h2 { display: flex; align-items: center; gap: 12px; }
.pl-group h2 img { width: 44px; height: 28px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.filter { display: block; margin-top: 22px; max-width: 520px; }
.filter input { width: 100%; font: inherit; padding: 14px 18px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.filter input:focus { border-color: var(--sky); outline: none; }
.no-results { color: var(--muted); padding: 20px 0; }

/* page heads */
.page-head { background: linear-gradient(180deg, var(--cream), #fff); padding: 28px 0 30px; }
.page-head h1 { margin-bottom: .3em; }
@media (min-width: 900px) { .page-head { padding: 48px 0 44px; } }
.ph-row { display: flex; gap: 20px; align-items: center; }
.ph-flag { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); flex: none; }
@media (max-width: 520px) { .ph-row { flex-direction: column; align-items: flex-start; } }

/* place page */
.place-head { background: linear-gradient(180deg, var(--cream), #fff); padding: 26px 0 0; }
.place-head h1 { margin-bottom: .45em; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { color: var(--accent); }
.facts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.place-banner { border-radius: var(--radius); overflow: hidden; max-height: 260px; box-shadow: var(--shadow); }
.place-banner img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.place-layout { display: grid; gap: 32px; padding-top: 34px; padding-bottom: 40px; }
.place-layout.no-pad { padding-top: 0; }
@media (min-width: 960px) {
  .place-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; }
}
.mini-map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 20px; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 960px) { .photos { grid-template-columns: 1fr; } }
.photos figure, .gallery figure { margin: 0; }
.photos img, .gallery img { border-radius: 10px; width: 100%; cursor: zoom-in; background: var(--cream); }
.photos figcaption, .gallery figcaption { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 50px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }

/* prose */
.prose { max-width: 720px; min-width: 0; }
.prose.wide { max-width: 100%; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .3em; }
.prose figure { margin: 1.5em 0; }
.prose figure img { border-radius: 10px; cursor: zoom-in; max-height: 560px; width: auto; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: .3em 0 .3em 1.2em; border-left: 4px solid var(--sky); color: var(--muted); }
.prose sup { line-height: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 480px; }
.table-wrap td, .table-wrap th { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.table-wrap tr:first-child td { background: var(--sky-soft); }
.table-wrap td p { margin: 0; }
.table-wrap h3, .table-wrap h4 { margin: 0; font-size: 1rem; font-family: var(--font-body); }
.content-wrap { padding-top: 34px; padding-bottom: 56px; }
.credit { font-size: .92rem; color: var(--muted); font-style: italic; }

/* legacy box */
.legacy { margin: 36px 0; border: 1px solid #e3d6c0; background: #fdf9f2; border-radius: var(--radius); }
.legacy summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); list-style: none; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.legacy summary::-webkit-details-marker { display: none; }
.legacy summary::after { content: "+"; margin-left: auto; font: 400 1.5rem/1 var(--font-body); color: var(--accent); }
.legacy[open] summary::after { content: "−"; }
.legacy-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 9px; border-radius: 999px; }
.legacy .prose { padding: 0 20px 8px; }

.know-box { margin: 40px 0 0; background: var(--sky-soft); border-radius: var(--radius); padding: 24px; }
.know-box h2 { font-size: 1.35rem; margin-top: 0; }

/* pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding: 26px 0 56px; }
.pager a { display: flex; flex-direction: column; text-decoration: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font: 600 1rem/1.3 var(--font-display); color: var(--navy); }
.pager a:hover { border-color: var(--sky); }
.pager span { font: 500 .78rem var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.pg-next { text-align: right; }

/* split + features */
.split { display: grid; gap: 34px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; } }
.link-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid #e3d6c0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px solid #e3d6c0; text-decoration: none; font: 600 1.08rem var(--font-display); color: var(--navy); }
.link-list a:hover { color: var(--accent-dark); }
.link-list svg { color: var(--accent); }
.feature-stack { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 120px 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.feature:hover { transform: translateY(-2px); color: var(--ink); }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 100px; }
.feature-text { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.feature-text strong { font: 600 1.12rem/1.25 var(--font-display); color: var(--navy); }
.feature-text span { font-size: .92rem; color: var(--muted); }
@media (min-width: 560px) { .feature { grid-template-columns: 180px 1fr; } }

.quote-block blockquote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote-block p { font: 500 clamp(1.5rem, 3.6vw, 2.3rem)/1.3 var(--font-display); color: var(--navy); }
.quote-block footer { color: var(--muted); font-size: .95rem; }

.cta-band { background: var(--navy); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c3d4e3; margin: 0; max-width: 40em; }
.cta-band .btn { align-self: flex-start; word-break: break-all; }
@media (min-width: 900px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } .cta-band .btn { align-self: center; } }

/* publications */
.pub-grid { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 700px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pub-grid { grid-template-columns: repeat(3, 1fr); } }
.pub-card { display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.pub-card:hover { border-color: #e3d6c0; box-shadow: var(--shadow); color: var(--ink); }
.pub-card h2 { font-size: 1.35rem; margin-bottom: .4em; }
.pub-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.pub-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-2); }
.pub-layout { display: grid; gap: 36px; }
@media (min-width: 960px) { .pub-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; } .pub-side { position: sticky; top: 96px; align-self: start; } }
.pub-side { background: var(--cream); border-radius: var(--radius); padding: 20px 22px; }
.pub-side h2 { font-size: 1.15rem; }
.pub-side ul { list-style: none; margin: 0; padding: 0; }
.pub-side a { display: block; padding: 7px 0; border-bottom: 1px solid #e8dfcf; text-decoration: none; }

/* contact */
.contact-grid { display: grid; gap: 14px; margin-bottom: 34px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--sky); box-shadow: var(--shadow); color: var(--ink); }
.contact-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
.cc-label { font-size: .85rem; color: var(--muted); }
.cc-value { font-weight: 600; color: var(--navy); word-break: break-word; }

/* world clock */
.clock-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.clock-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name time" "name day"; gap: 0 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.clock-row a { grid-area: name; text-decoration: none; display: flex; flex-direction: column; }
.cr-name { font: 600 1.08rem/1.25 var(--font-display); color: var(--navy); }
.cr-country { font-size: .86rem; color: var(--muted); }
.cr-time { grid-area: time; font: 600 1.4rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.cr-day { grid-area: day; font-size: .8rem; color: var(--muted); text-align: right; }
.cr-diff { display: none; }
.clock-row.is-night .cr-time { color: var(--navy-2); }
.clock-row.is-home { background: #fffaf6; }
@media (min-width: 760px) {
  .clock-row { grid-template-columns: 1fr 150px 110px 190px; grid-template-areas: "name time day diff"; }
  .cr-day { text-align: left; font-size: .9rem; }
  .cr-diff { display: block; font-size: .9rem; color: var(--muted); }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 20, 30, .85); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; margin: 0 auto; }
.lb-cap { color: #fff; text-align: center; margin: 10px 0 0; font-size: .95rem; }
.lb-close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; }

/* footer: brand on top, columns collapse to accordions on phones */
.site-footer { background: #0d263d; color: #c3d4e3; padding: 40px 0 0; margin-top: 0; }
.site-footer a { color: #e6eef5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-grid { display: grid; gap: 28px; }
.brand-light { color: #fff; }
.brand-light .logo-mark { color: #fff; }
.brand-light .brand-sub { color: #9fb4c7; white-space: normal; }
.f-about { margin: 14px 0 18px; max-width: 30em; }
.f-contact { display: grid; gap: 10px; }
.tap { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.07); font-weight: 600; font-size: 1.02rem; word-break: break-all; }
.tap:hover { background: rgba(255,255,255,.13); text-decoration: none !important; }
.tap svg { width: 22px; height: 22px; color: #f0a48f; }
.f-cols { border-top: 1px solid rgba(255,255,255,.12); }
.f-col { border-bottom: 1px solid rgba(255,255,255,.12); }
.f-head { margin: 0; font: 600 1rem var(--font-body); color: #fff; }
.f-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 54px; background: none; border: 0; color: #fff; font: 600 1.02rem var(--font-body); cursor: pointer; padding: 0 2px; }
.f-toggle svg { transition: transform .2s; }
.f-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.f-label { display: none; }
.f-links { list-style: none; margin: 0; padding: 0 2px 14px; display: none; }
.f-links.open { display: block; }
.f-links a { display: block; padding: 8px 0; }
.f-base { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; padding-bottom: 26px; font-size: .85rem; color: #8ea5b9; }
.f-base p { margin: 0; }
@media (min-width: 900px) {
  .site-footer { padding-top: 60px; }
  .f-grid { grid-template-columns: 1.1fr 2fr; gap: 56px; }
  .f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; border: 0; }
  .f-col { border: 0; }
  .f-toggle { display: none; }
  .f-label { display: block; margin-bottom: 10px; }
  .f-links, .f-links.open { display: block; padding: 0; }
  .f-links a { padding: 5px 0; font-size: .94rem; }
  .f-base { flex-direction: row; justify-content: space-between; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .place-side, .cta-band, .pager { display: none; } }
