/* ==========================================================================
   Rolfsted IF – prototype stylesheet
   Tokens below map 1:1 to theme.json presets when moving to WordPress
   (settings.color.palette / settings.typography / settings.spacing).
   ========================================================================== */

:root {
  /* Colors – taken from the current site's global colors */
  --rif-red: #d62b34;
  --rif-red-dark: #b0222a;
  --rif-red-tint: #fbeaeb;
  --rif-dark: #292929;
  --rif-dark-2: #3c3c3c;
  --rif-gray: #6b6b6b;
  --rif-line: #e4e4e4;
  --rif-bg-soft: #f5f5f4;
  --rif-white: #ffffff;

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;

  /* Spacing & shape */
  --space-xs: .5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --radius: 10px;
  --radius-s: 6px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--rif-dark);
  background: var(--rif-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rif-red); text-underline-offset: 3px; }
a:hover { color: var(--rif-red-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rif-red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--rif-white); padding: .5rem 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--red { background: var(--rif-red); color: var(--rif-white); }
.btn--red:hover { background: var(--rif-red-dark); color: var(--rif-white); }
.btn--outline { border-color: currentColor; color: var(--rif-dark); background: transparent; }
.btn--outline:hover { background: var(--rif-dark); color: var(--rif-white); border-color: var(--rif-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: var(--rif-white); }
.btn--ghost-light:hover { background: var(--rif-white); color: var(--rif-dark); }
.btn--small { padding: .45rem .9rem; font-size: .9rem; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--rif-dark);
  color: #cfcfcf;
  font-size: .85rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__links { display: flex; gap: 1.25rem; }
@media (max-width: 640px) { .topbar__info { display: none; } .topbar .wrap { justify-content: flex-end; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--rif-white);
  border-bottom: 1px solid var(--rif-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--rif-dark); margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand__tag { display: block; font-size: .78rem; font-weight: 500; color: var(--rif-gray); margin-top: .2rem; font-family: var(--font-body); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius-s);
  color: var(--rif-dark); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--rif-red); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rif-red); border-radius: 0; }

/* Mega-ish dropdown for sports */
.has-sub > a::after { content: ""; display: inline-block; margin-left: .35rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub {
  position: absolute; top: 100%; left: -1rem;
  min-width: 440px;
  background: var(--rif-white);
  border: 1px solid var(--rif-line);
  border-top: 3px solid var(--rif-red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: .75rem;
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.sub--narrow { min-width: 260px; grid-template-columns: 1fr; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; padding: .5rem .75rem; }
.sub a:hover { background: var(--rif-bg-soft); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--rif-dark);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--rif-white);
    overflow-y: auto; padding: 1rem 16px 2rem;
    transform: translateX(100%); transition: transform .2s;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: .8rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--rif-line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--rif-red); padding-left: .9rem; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem;
    grid-template-columns: 1fr 1fr;
  }
  .sub a { font-size: 1rem; border-bottom: 0; }
  .has-sub > a::after { display: none; }
  .main-nav .mobile-cta { display: block; margin-top: 1rem; }
}
.mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--rif-dark);
  color: var(--rif-white);
  isolation: isolate;
}
/* Lighthouse beam */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  right: 8%; top: 50%; width: 1600px; height: 1600px;
  transform: translate(50%, -50%);
  background: conic-gradient(from 250deg at 50% 50%, transparent 0deg, rgba(214,43,52,.38) 12deg, transparent 34deg, transparent 180deg, rgba(214,43,52,.18) 192deg, transparent 214deg);
}
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-l); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__kicker { display: inline-block; font-weight: 700; color: #ffb3b7; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: .75rem; }
.hero h1 { color: var(--rif-white); }
.hero h1 em { font-style: normal; color: var(--rif-red); background: var(--rif-white); padding: 0 .2em; border-radius: 4px; }
.hero__lead { font-size: 1.2rem; color: #dcdcdc; max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }
.hero__badge {
  justify-self: center;
  width: min(320px, 70vw); aspect-ratio: 1;
  background: var(--rif-white); border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.04);
}
.hero__badge img { width: 72%; }
.hero__stats { display: flex; gap: var(--space-l); margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid rgba(255,255,255,.15); }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--rif-white); }
.hero__stats span { font-size: .9rem; color: #bdbdbd; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__badge { order: -1; width: 170px; }
  .hero__stats { gap: var(--space-m); }
}

/* Page hero (subpages) */
.page-hero { background: var(--rif-dark); color: var(--rif-white); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -80px; width: 420px; height: 420px;
  background: conic-gradient(from 200deg, transparent 0deg, rgba(214,43,52,.45) 18deg, transparent 40deg);
  border-radius: 50%;
}
.page-hero .wrap { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero h1 { color: var(--rif-white); margin-bottom: .25em; }
.page-hero p { color: #d6d6d6; max-width: 60ch; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: .75rem; color: #bdbdbd; }
.breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--soft { background: var(--rif-bg-soft); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: var(--space-m); flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head h2::before {
  content: ""; display: block; width: 44px; height: 5px; background: var(--rif-red); border-radius: 3px; margin-bottom: .6rem;
}
.section__link { font-weight: 700; text-decoration: none; }
.section__link::after { content: " →"; }

/* ---------- Sport grid ---------- */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-s); }
.sport-card {
  position: relative;
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--rif-white);
  border: 1px solid var(--rif-line);
  border-radius: var(--radius);
  text-decoration: none; color: var(--rif-dark);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  overflow: hidden;
}
.sport-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rif-red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.sport-card:hover { border-color: var(--rif-dark); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--rif-dark); }
.sport-card:hover::before { transform: scaleX(1); }
.sport-card__icon { width: 40px; height: 40px; color: var(--rif-red); }
.sport-card__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.sport-card__meta { font-size: .88rem; color: var(--rif-gray); line-height: 1.4; }
.sport-card__count { position: absolute; top: .9rem; right: .9rem; font-size: .75rem; font-weight: 700; background: var(--rif-red-tint); color: var(--rif-red-dark); padding: .1rem .5rem; border-radius: 999px; }

/* ---------- News + events layout ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-l); align-items: start; }
@media (max-width: 960px) { .news-layout { grid-template-columns: 1fr; } }

/* Filter chips */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--space-m); }
.chip {
  border: 1px solid var(--rif-line); background: var(--rif-white); color: var(--rif-dark);
  border-radius: 999px; padding: .4rem .9rem; font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .12s;
}
.chip:hover { border-color: var(--rif-dark); }
.chip[aria-pressed="true"] { background: var(--rif-dark); color: var(--rif-white); border-color: var(--rif-dark); }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* News cards */
.news-list { display: grid; gap: var(--space-s); }
.news-list--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  background: var(--rif-white); border: 1px solid var(--rif-line); border-radius: var(--radius);
  overflow: hidden; color: var(--rif-dark); text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
}
.news-card:hover { box-shadow: var(--shadow); border-color: #cfcfcf; color: var(--rif-dark); }
.news-card:hover .news-card__title { color: var(--rif-red); }
.news-card__media { position: relative; background: var(--rif-dark-2); min-height: 150px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-card__body { padding: 1rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.news-card__meta { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--rif-gray); flex-wrap: wrap; }
.news-card__title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; line-height: 1.2; margin: 0; transition: color .12s; }
.news-card__excerpt { font-size: .95rem; color: #4a4a4a; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card--featured { grid-template-columns: 1fr; }
.news-card--featured .news-card__media { min-height: 0; aspect-ratio: 16 / 7; }
.news-card--featured .news-card__title { font-size: 1.6rem; }
.news-card--featured .news-card__excerpt { -webkit-line-clamp: 3; }
.news-list--grid .news-card { grid-template-columns: 1fr; }
.news-list--grid .news-card__media { aspect-ratio: 16 / 9; min-height: 0; }
@media (max-width: 600px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card__media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Generated placeholder image (until real photos exist) */
.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(214,43,52,.85), rgba(41,41,41,.95)),
    var(--rif-dark);
  color: rgba(255,255,255,.9);
}
.ph svg { width: 56px; height: 56px; opacity: .9; }
.ph--dark { background: linear-gradient(135deg, var(--rif-dark-2), var(--rif-dark)); }
.ph--dark svg { color: var(--rif-red); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rif-red-dark); background: var(--rif-red-tint);
  padding: .15rem .5rem; border-radius: 4px; text-decoration: none;
}
.tag--dark { background: var(--rif-dark); color: var(--rif-white); }

.empty { padding: 2rem; text-align: center; color: var(--rif-gray); border: 1px dashed var(--rif-line); border-radius: var(--radius); }
.load-more { margin-top: var(--space-m); text-align: center; }

/* ---------- Events ---------- */
.events { background: var(--rif-white); border: 1px solid var(--rif-line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; }
.events__head { background: var(--rif-red); color: var(--rif-white); padding: 1rem 1.25rem; }
.events__head h2 { font-size: 1.35rem; margin: 0; color: var(--rif-white); }
.events__head h2::before { display: none; }
.events ol { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 56px 1fr; gap: .9rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rif-line); }
.event:last-child { border-bottom: 0; }
.event__date { text-align: center; border: 2px solid var(--rif-dark); border-radius: var(--radius-s); line-height: 1; padding: .35rem 0; height: fit-content; }
.event__date .d { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.event__date .m { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: var(--rif-red); margin-top: .15rem; }
.event__date--tba .d { font-size: .95rem; padding-block: .3rem; }
.event h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.event p { font-size: .87rem; color: var(--rif-gray); margin: 0 0 .4rem; }
.event a { font-size: .87rem; font-weight: 700; }
.events__foot { padding: .9rem 1.25rem; background: var(--rif-bg-soft); font-size: .87rem; }
@media (max-width: 960px) { .events { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--rif-red); color: var(--rif-white); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--space-m); align-items: center; padding-block: var(--space-l); }
.cta-band h2 { color: var(--rif-white); margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #ffe1e3; max-width: 60ch; }
.cta-band .btn { background: var(--rif-white); color: var(--rif-red); }
.cta-band .btn:hover { background: var(--rif-dark); color: var(--rif-white); }
@media (max-width: 700px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Info tiles (quick links) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-s); }
.tile { padding: 1.4rem; border-radius: var(--radius); background: var(--rif-dark); color: var(--rif-white); text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: background .15s; }
.tile:hover { background: var(--rif-dark-2); color: var(--rif-white); }
.tile strong { font-family: var(--font-head); font-size: 1.2rem; }
.tile span { color: #c9c9c9; font-size: .93rem; }
.tile::after { content: "→"; color: var(--rif-red); font-weight: 800; font-size: 1.3rem; margin-top: auto; }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-s); align-items: center; }
.sponsor { background: var(--rif-white); border: 1px solid var(--rif-line); border-radius: var(--radius); height: 100px; display: grid; place-items: center; padding: 1rem; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.sponsor:hover { filter: none; opacity: 1; }
.sponsor img { max-height: 64px; width: auto; object-fit: contain; }
.sponsor--text { font-weight: 800; font-family: var(--font-head); color: var(--rif-dark); text-align: center; text-decoration: none; line-height: 1.2; }
.sponsor-level { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--rif-gray); margin: var(--space-m) 0 var(--space-xs); }

/* ---------- Sport page ---------- */
.sport-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-l); align-items: start; }
@media (max-width: 960px) { .sport-layout { grid-template-columns: 1fr; } }
.subnav { display: flex; gap: .25rem; border-bottom: 1px solid var(--rif-line); overflow-x: auto; scrollbar-width: none; background: var(--rif-white); position: sticky; top: 77px; z-index: 10; }
.subnav a { padding: .9rem 1rem; text-decoration: none; color: var(--rif-dark); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--rif-red); border-bottom-color: var(--rif-red); }

.table-wrap { overflow-x: auto; border: 1px solid var(--rif-line); border-radius: var(--radius); }
table.schedule { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.schedule th, .schedule td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--rif-line); vertical-align: top; }
.schedule thead th { background: var(--rif-dark); color: var(--rif-white); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.schedule tbody tr:nth-child(even) { background: var(--rif-bg-soft); }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule td strong { display: block; }
.schedule small { color: var(--rif-gray); }

.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-s); }
.team-card { border: 1px solid var(--rif-line); border-radius: var(--radius); padding: 1.25rem; background: var(--rif-white); }
.team-card h3 { margin-bottom: .2rem; }
.team-card .age { font-size: .85rem; color: var(--rif-red-dark); font-weight: 700; }
.team-card p { font-size: .95rem; margin: .6rem 0; }
.team-card dl { margin: .75rem 0 0; font-size: .9rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; }
.team-card dt { color: var(--rif-gray); }
.team-card dd { margin: 0; font-weight: 600; }

.side-box { border: 1px solid var(--rif-line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: var(--space-s); background: var(--rif-white); }
.side-box h3 { font-size: 1.1rem; }
.side-box--dark { background: var(--rif-dark); color: var(--rif-white); border-color: var(--rif-dark); }
.side-box--dark h3 { color: var(--rif-white); }
.side-box--dark p { color: #d0d0d0; }
.side-box .btn { width: 100%; justify-content: center; margin-top: .5rem; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.person { display: grid; grid-template-columns: 44px 1fr; gap: .75rem; align-items: start; font-size: .92rem; line-height: 1.45; }
.person__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--rif-red-tint); color: var(--rif-red-dark); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.person strong { display: block; }
.person span { color: var(--rif-gray); display: block; }
.person a { display: inline-block; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.25em; border-left: 4px solid var(--rif-red); font-size: 1.15rem; font-weight: 600; }
.callout { background: var(--rif-red-tint); border-left: 4px solid var(--rif-red); padding: 1rem 1.25rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }

/* ---------- Single post ---------- */
.post-hero { background: var(--rif-dark); color: var(--rif-white); }
.post-hero .wrap { max-width: 860px; padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.post-hero h1 { color: var(--rif-white); font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.post-meta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: #c9c9c9; margin-bottom: 1rem; }
.post-figure { position: relative; margin: var(--space-m) 0 -80px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; box-shadow: var(--shadow); }
.post-body { max-width: 860px; padding-top: calc(80px + var(--space-l)); }
.post-body .prose { font-size: 1.1rem; max-width: none; }
.post-share { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--rif-line); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; }
.form label { font-weight: 700; font-size: .92rem; display: block; margin-bottom: .3rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #cfcfcf; border-radius: var(--radius-s); background: var(--rif-white); color: var(--rif-dark);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--rif-red); border-color: var(--rif-red); }
.form textarea { min-height: 150px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .85rem; color: var(--rif-gray); }
.form__ok { display: none; background: #e8f5ec; border-left: 4px solid #2e7d4f; padding: .9rem 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rif-line); aspect-ratio: 16 / 10; background: var(--rif-bg-soft); display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--rif-gray); }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-s); }

/* ---------- Footer ---------- */
.site-footer { background: var(--rif-dark); color: #c6c6c6; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-l); padding-block: var(--space-xl) var(--space-l); }
.footer__brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 4px; }
.footer__brand strong { color: #fff; font-family: var(--font-head); font-size: 1.3rem; display: block; line-height: 1.1; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.1rem; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--rif-red); }
.social svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-l { margin-bottom: var(--space-l); }
.muted { color: var(--rif-gray); }
.stack > * + * { margin-top: var(--space-l); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
