/* World Media Organization — site theme
   Same design language as PR Aggregator: white masthead, black section bar with a red
   active underline, red kickers over serif headlines, and red-tabbed section rules. */

:root {
  --brand: hsl(359 74% 49%);            /* red #D92024 */
  --brand-hover: hsl(359 74% 44%);
  --brand-foreground: #fff;
  --ink: hsl(240 6% 10%);               /* masthead / nav black */
  --ink-foreground: #fff;

  --background: #fff;
  --foreground: hsl(240 6% 10%);
  --muted: hsl(30 8% 95%);
  --muted-foreground: hsl(240 4% 40%);
  --border: hsl(240 5% 88%);
  --meta: hsl(240 4% 42%);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;

  --content-width: 1240px;
  --radius: 0.25rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
figure { margin: 0; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute; left: 16px; top: -40px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Legacy helpers still used inside article bodies */
.img-responsive { display: block; max-width: 100%; height: auto; }
.clear { clear: both; }

/* ---------- Shared type ---------- */

/* Small red category label above headlines */
.kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}
a.kicker:hover { text-decoration: underline; }

/* Section heading: short red rule above an uppercase label, as on print/web news fronts */
.section-heading,
.news-front::after {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--foreground);
  padding-top: 12px;
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground);
}
.section-heading::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 48px;
  height: 5px;
  background: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s;
}
.btn-brand { background: var(--brand); color: var(--brand-foreground); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-lg { height: auto; padding: 12px 24px; font-size: 14px; }
.btn svg { width: 14px; height: 14px; }

/* ---------- Ads ---------- */

.ad-label {
  margin-bottom: 4px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}
.ad-slot img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* Top-of-page billboard: grey band above the masthead */
.billboard {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.billboard .ad-slot { max-width: 970px; margin: 0 auto; padding: 8px 16px; }

/* Leaderboard directly under the section bar */
.leaderboard { padding-top: 16px; }
.leaderboard .ad-slot { max-width: 970px; margin: 0 auto; }

/* Full-width banner between sections */
.ad-band { margin: 40px 0; }

/* In-article banner */
.ad-inline {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Google AdSense units */
.ad-google { margin: 40px auto 0; max-width: 970px; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.masthead-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead-logo { display: flex; align-items: center; }
.masthead-logo img { height: 52px; width: auto; display: block; }

@media (min-width: 768px) {
  .masthead-inner { height: 88px; }
  .masthead-logo img { height: 64px; }
}
@media (max-width: 420px) { .btn-label-long { display: none; } }
@media (min-width: 421px) { .btn-label-short { display: none; } }

/* ---------- Section bar ---------- */

.sections {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--background);
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.sections-inner { position: relative; display: flex; align-items: center; padding: 0; }
.sections-list {
  display: none;
  flex: 1;
  align-items: center;
  margin: 0 0 0 -12px;
  padding: 0;
  list-style: none;
}
.sections-list a {
  position: relative;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: hsl(240 6% 10% / 0.7);
  transition: color .15s;
}
.sections-list a:hover,
.sections-list a[aria-current="page"] { color: var(--foreground); }
.sections-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--brand);
}

.sections-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-right: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
}
.sections-toggle:hover { background: var(--muted); }
.sections-toggle svg { width: 20px; height: 20px; }
.sections-actions {
  margin-left: auto;
  padding: 0 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
/* Kept a step below the menu text so it doesn't outweigh the sections */
.sections-actions .btn { height: 28px; padding: 0 12px; font-size: 12px; }
@media (min-width: 1024px) { .sections-actions { padding: 0; } }

/* Mobile / tablet menu panel */
.sections-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 44px;
  width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -3px hsl(240 6% 10% / 0.12);
}
.sections.is-open .sections-menu { display: block; }
.sections-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.sections-menu a:hover { background: var(--muted); }
.sections-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; border-left-color: var(--brand); }

@media (min-width: 1024px) {
  .sections-inner { padding: 0 16px; }
  .sections-list { display: flex; }
  .sections-toggle, .sections-menu { display: none !important; }
}

/* ---------- Promo band ---------- */

.promo {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.promo-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  align-items: center;
  gap: 20px;
}
.promo h2 {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}
.promo p { margin: 6px 0 0; font-size: 14px; color: var(--muted-foreground); }
.promo .btn { width: fit-content; }
@media (min-width: 768px) {
  .promo-inner { grid-template-columns: 1fr auto; padding-top: 32px; padding-bottom: 32px; }
  .promo h2 { font-size: 1.5rem; }
}

/* ---------- Page body ---------- */

.page { padding-top: 32px; }
.page-section + .page-section { margin-top: 40px; }

.page-heading {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.page-heading p { margin: 8px 0 0; color: var(--muted-foreground); max-width: 42rem; }
@media (min-width: 768px) { .page-heading h1 { font-size: 2.25rem; } }

/* ---------- News front ----------
   One flat list of identical story cards; position decides the look:
   1st = lead story, 2nd–5th = headline list beside it, 6th onwards = card grid
   under a "More news" heading. To add a story, paste a new <li class="story"> at the top. */

.news-front {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.story-link { display: flex; gap: 16px; height: 100%; }
.story-media {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--muted);
}
.story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .5s;
}
.story-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.story-title {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-underline-offset: 2px;
}
.story-link:hover .story-title { text-decoration: underline; }
.story-summary {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-meta { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--meta); }

/* Phone: every story after the lead is a row with a thumbnail on the right */
.news-front > .story { padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-front > .story:not(:first-child) .story-link { flex-direction: row-reverse; }
.news-front > .story:not(:first-child) .story-media { width: 112px; height: 75px; }

/* Lead story */
.news-front > .story:first-child { padding-top: 0; }
.news-front > .story:first-child .story-link { flex-direction: column; gap: 0; }
.news-front > .story:first-child .story-media { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.news-front > .story:first-child .story-body { padding-top: 16px; }
.news-front > .story:first-child .story-title {
  margin-top: 6px;
  font-size: 1.25rem;
  line-height: 1.2;
  -webkit-line-clamp: unset;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.news-front > .story:first-child .story-summary {
  display: -webkit-box;
  margin-top: 10px;
  font-size: 15px;
  -webkit-line-clamp: 3;
}
.news-front > .story:first-child .story-link:hover .story-media img { transform: scale(1.02); }

/* "More news" heading between the top stories and the grid (a grid item of its own) */
.news-front::after {
  content: "More news";
  grid-row: 6;
  grid-column: 1 / -1;
  margin-top: 32px;
  background: linear-gradient(var(--brand), var(--brand)) 0 0 / 48px 4px no-repeat;
}
.news-front.no-more::after { display: none; }

/* In-feed ad: a full row inside the grid */
.news-front > .ad-feed {
  grid-column: 1 / -1;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .news-front { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .news-front > .story:nth-child(-n+5) { grid-column: 1 / -1; }
  .news-front > .story:nth-child(n+6) { padding: 0 0 40px; border-bottom: 0; }
  .news-front > .story:nth-child(n+6) .story-link { flex-direction: column; gap: 0; }
  .news-front > .story:nth-child(n+6) .story-media { width: auto; height: auto; aspect-ratio: 16 / 9; }
  .news-front > .story:nth-child(n+6) .story-body { padding-top: 12px; }
  .news-front > .story:nth-child(n+6) .story-title { font-size: 1rem; }
  .news-front > .story:nth-child(n+6) .story-summary { display: -webkit-box; }
  .news-front > .story:nth-child(n+6) .story-meta { margin-top: auto; padding-top: 12px; }
  .news-front > .story:nth-child(n+6) .story-link:hover .story-media img { transform: scale(1.03); }
  .news-front > .ad-feed { padding: 0 0 40px; border-bottom: 0; }
}

@media (min-width: 1024px) {
  .news-front { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .news-front > .story:first-child {
    grid-column: 1 / span 8;
    grid-row: 1 / span 4;
    padding: 0 32px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    margin-right: 8px;
  }
  .news-front > .story:first-child .story-title { font-size: 1.65rem; }
  .news-front > .story:nth-child(n+2):nth-child(-n+5) { grid-column: 9 / -1; }
  .news-front > .story:nth-child(2) { padding-top: 0; }
  .news-front > .story:nth-child(5) { border-bottom: 0; }
  .news-front > .story:nth-child(n+6) { grid-column: span 3; }
  .news-front::after { grid-row: 5; }
}

/* Collapsible grid: only the first row of "More news" shows until "View More" is pressed
   (it then reads "View Less"). A row is 4 cards from 1024px up and 2 below; the link
   appears only when the list has more than one row. */
.more-news {
  display: none;
  margin: 0 auto;
  padding: 4px 0;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-underline-offset: 3px;
}
.more-news:hover { text-decoration: underline; }
.more-news svg { width: 16px; height: 16px; transition: transform .2s; }
.more-news[aria-expanded="true"] svg { transform: rotate(180deg); }

.news-front.is-collapsed:not(.is-expanded) > :nth-child(n+8) { display: none; }
.news-front.is-collapsed:has(> :nth-child(8)) + .more-news { display: flex; }
@media (min-width: 1024px) {
  .news-front.is-collapsed:not(.is-expanded) > :nth-child(n+8) { display: revert; }
  .news-front.is-collapsed:not(.is-expanded) > :nth-child(n+10) { display: none; }
  .news-front.is-collapsed:has(> :nth-child(8)) + .more-news { display: none; }
  .news-front.is-collapsed:has(> :nth-child(10)) + .more-news { display: flex; }
}

/* ---------- Media partners ---------- */

.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.partners li { border: 1px solid var(--border); background: #fff; }
.partners img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) { .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* ---------- Article ---------- */

.article-layout {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

.article-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .article-title { font-size: 2.1rem; } }

.byline {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) { .byline { flex-direction: row; align-items: center; justify-content: space-between; } }
.byline-who { display: flex; align-items: center; gap: 12px; }
.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.byline-avatar img { width: 26px; height: 26px; object-fit: contain; }
.byline-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { font-size: 14px; font-weight: 600; }
a.byline-name:hover { color: var(--brand); }
.byline time { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-foreground); }

.share { display: flex; align-items: center; gap: 4px; }
.share-label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.share a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: hsl(240 6% 10% / 0.8);
  transition: background-color .15s, color .15s, border-color .15s;
}
.share a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.share svg { width: 14px; height: 14px; }

.article-media { margin-top: 24px; }
.article-media > img { display: block; width: 100%; max-height: 560px; object-fit: cover; background: var(--muted); }
.article-media figcaption,
.article-media .slidercolfont {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.article-media figcaption a,
.article-media .slidercolfont a { text-decoration: underline; text-underline-offset: 2px; }

/* Article body typography */
.article-body {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--foreground);
  overflow-wrap: break-word;
}
.article-body p { margin: 0 0 1em; }
.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: hsl(359 74% 49% / 0.4);
  transition: text-decoration-color .15s;
}
.article-body a:hover { text-decoration-color: var(--brand); }
.article-body h2, .article-body h3, .article-body h4 {
  margin: 24px 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
}
.article-body ul { list-style: disc; padding-left: 24px; }
.article-body ol { list-style: decimal; padding-left: 24px; }
.article-body blockquote {
  margin: 24px 0;
  border-left: 4px solid var(--brand);
  padding-left: 16px;
  font-style: italic;
  color: var(--muted-foreground);
}
.article-body img { margin: 16px auto; }
.article-body .ad-inline img { margin: 0 auto; }
.article-body iframe { max-width: 100%; }
.article-body .twitter-tweet { margin: 24px auto; }

/* "Sourced from a syndicated feed" note and other notices → disclaimer box */
.article-body .sourced,
.notice {
  margin: 32px 0 0;
  background: hsl(30 8% 95% / 0.6);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Author box on contributed articles */
.article-extras > hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0 0; }
.author-box {
  margin-top: 32px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
}
.author-box hr { display: none; }
.author-img { width: 72px; flex-shrink: 0; }
.author-img img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.author-info h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; }
.author-info p { margin: 4px 0 0; font-size: 14px; color: var(--muted-foreground); }

.sidebar-ads { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
  .sidebar-ads { position: sticky; top: 64px; }
}

/* Plain text pages (about, legal) */
.prose { max-width: 760px; }
.prose .article-body { margin-top: 0; }
.prose .section-heading { margin-top: 40px; }

/* Editor profile */
.profile { display: grid; gap: 32px; }
.profile + .profile { margin-top: 48px; }
.profile-card img { display: block; width: 100%; height: auto; }
.profile-card h2 { margin-top: 16px; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; }
.profile-card p { margin: 4px 0 0; color: var(--muted-foreground); }
.profile-card .share { margin-top: 12px; }
.profile .article-body { margin-top: 0; }
.profile-links { list-style: none; margin: 0; padding: 0; }
.profile-links li { border-bottom: 1px solid var(--border); }
.profile-links a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.4;
}
.profile-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) {
  .profile { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; }
  .profile.profile-lower { grid-template-columns: minmax(0, 1fr) 360px; }
}
.slidertext { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }

/* ---------- Image carousel (js/TAMcarousel.js) ---------- */

.TAMcarousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: auto;
  background: #fff;
}
.TAMcarousel img {
  max-width: 100%;
  margin: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.TAMcarousel .slide {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: -100%;
  padding-left: 36px;
  padding-right: 36px;
}
.TAMcarousel #slide1 { left: -100%; }
.TAMcarousel #slide2 { left: 0; }
.TAMcarousel #slide3, .TAMcarousel #slide4 { left: 100%; }
.TAMcarousel .left-container,
.TAMcarousel .right-container { position: absolute; top: 0; z-index: 2; width: 6%; height: 100%; }
.TAMcarousel .left-container { left: 0; }
.TAMcarousel .right-container { right: 0; }
.TAMcarousel .left-btn,
.TAMcarousel .right-btn { width: 100%; position: absolute; inset: 0; margin: auto; cursor: pointer; }
#carousel1 { max-width: 1000px; width: 100%; margin: 0 auto 1em; }
#carousel1 #slide2 { height: auto; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 4px solid var(--brand);
  background: hsl(30 8% 95% / 0.5);
}
/* Brand block, then the Sections, Legal and World Media Organization link columns */
.footer-grid {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 64px; width: auto; display: block; }
.footer-brand p { margin: 16px 0 0; max-width: 20rem; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.footer-contact { margin-top: 12px; font-size: 14px; }
.footer-contact a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: hsl(359 74% 49% / 0.4);
  transition: text-decoration-color .15s;
}
.footer-contact a:hover { text-decoration-color: var(--brand); }
.footer-social { margin-top: 20px; display: flex; gap: 8px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-foreground);
  transition: background-color .15s;
}
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 16px; height: 16px; }
.footer-heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { font-size: 14px; color: hsl(240 6% 10% / 0.75); transition: color .15s; }
.footer-links a:hover { color: var(--brand); }
.footer-bar { background: var(--ink); color: var(--ink-foreground); }
.footer-bar-inner {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-align: center;
}
.footer-bar p { margin: 0; color: rgb(255 255 255 / 0.7); }
.footer-bar p + p { color: rgb(255 255 255 / 0.5); }
@media (min-width: 640px) {
  .footer-bar-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); column-gap: 40px; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Popup ad (js/popup.js) ---------- */

#modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgb(0 0 0 / 0.55);
}
.modalPopup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -3px hsl(240 6% 10% / 0.3);
}
.modalPopup .headerBar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}
.modalContent { padding: 16px; text-align: center; }
.buttonStyle {
  margin-top: 16px;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.buttonStyle:hover { background: var(--brand); }
