/* loughorrfc.site: a match-day programme (owner, 2026-11-19: "Heritage
   programme", "a total brand new website"). Cream paper, navy ink, gold
   rules, Fraunces headlines over Source Sans 3, and the crest of Leucarum. */

@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-opsz-italic.woff2) format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/source-sans-3-latin-wght-italic.woff2) format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f6f0e1;
  --paper-2: #efe6d0;
  --paper-3: #e5d9bd;
  --ink: #101b3d;
  --ink-2: #3c4566;
  --muted: #6b6a73;
  --navy: #0b1a44;
  --navy-2: #13286a;
  --blue: #1238a8;
  --gold: #c9a227;
  --gold-2: #f5c518;
  --green: #1e7a3a;
  --rule: #cdbd94;
  --win: #1e7a3a;
  --loss: #a63a2b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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 1.0625rem/1.65 var(--sans);
  /* Paper grain: two faint dot fields, no image. */
  background-image:
    radial-gradient(rgba(16, 27, 61, .035) 1px, transparent 1.2px),
    radial-gradient(rgba(201, 162, 39, .05) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .5em; font-variation-settings: 'opsz' 72; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.25em; border-radius: 2px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 2px 0 var(--gold); }
.btn-navy:hover { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--gold); }
.btn-ghost { color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-line { color: var(--navy); border-color: var(--rule); background: rgba(255, 255, 255, .4); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn-gold { background: var(--gold-2); color: var(--navy); }
.btn-gold:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---- The masthead: a gold-ruled strip over the bar ---------------------------- */
.masthead-bar { position: sticky; top: 0; z-index: 40; background: var(--paper); transition: box-shadow .3s; }
.masthead-bar.is-scrolled { box-shadow: 0 6px 18px -12px rgba(11, 26, 68, .5); }
.strip { background: var(--navy); color: #e9dfc2; font: 600 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; transition: max-height .3s var(--ease); max-height: 40px; overflow: hidden; }
.is-scrolled .strip { max-height: 0; }
.strip-in { display: flex; align-items: center; gap: .7em; padding: 10px 0; }
.strip .dot { color: var(--gold-2); }
.strip-members { margin-left: auto; color: var(--gold-2); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.strip-members:hover { color: #fff; }
.bar { display: flex; align-items: center; gap: 24px; padding: 12px 0; border-bottom: 3px double var(--rule); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.mark img { width: 52px; height: 52px; transition: transform .4s var(--ease); }
.mark:hover img { transform: rotate(-6deg) scale(1.05); }
.mark-words { display: flex; flex-direction: column; line-height: 1; }
.mark-words b { font: 700 1.6rem/1 var(--serif); letter-spacing: -.01em; }
.mark-words i { font: italic 500 .82rem/1.3 var(--serif); color: var(--ink-2); }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { position: relative; padding: 8px 10px; color: var(--ink); text-decoration: none; font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav .nav-menu { color: var(--blue); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--navy); color: var(--navy); padding: 8px 12px; font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.menu-lines { display: grid; gap: 5px; width: 18px; }
.menu-lines i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---- Section openers and rules ------------------------------------------------ */
.rule { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; color: var(--gold); font: 600 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--rule)); }
.rule::after { background: linear-gradient(90deg, var(--rule), transparent); }
.rule span { color: var(--ink-2); }
.opener { padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 3vw, 36px); text-align: center; position: relative; }
.opener-in { max-width: 860px; }
.opener-kicker { margin: 0 0 18px; display: flex; justify-content: center; }
.opener-kicker span { padding: 6px 16px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font: 600 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.opener h1 { margin-bottom: .25em; }
.opener-lead { font: italic 400 clamp(1.1rem, 2vw, 1.35rem)/1.5 var(--serif); color: var(--ink-2); max-width: 680px; margin: 0 auto; }
.sheet { padding: clamp(28px, 5vw, 56px) 0; }

/* ---- The cover (home) ------------------------------------------------------------ */
.cover { position: relative; padding: clamp(36px, 6vw, 72px) 0 0; overflow: hidden; }
.cover::before { content: ''; position: absolute; inset: 18px 16px auto; height: calc(100% - 140px); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 6px; pointer-events: none; }
.cover-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: 20px 0 30px; }
.cover-kicker { display: flex; gap: 14px; margin: 0 0 14px; font: 600 .8rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.cover-kicker span + span::before { content: '·'; margin-right: 14px; color: var(--rule); }
.cover h1 { margin: 0 0 .35em; }
.cover h1 .cw-1 { display: block; font-size: clamp(3.2rem, 9vw, 7rem); line-height: .92; letter-spacing: -.03em; }
.cover h1 .cw-2 { display: block; font: italic 500 clamp(1.3rem, 3vw, 2.1rem)/1.2 var(--serif); color: var(--blue); letter-spacing: 0; }
.cover-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cover-crest { position: relative; margin: 0; justify-self: center; width: min(420px, 100%); }
.cover-crest img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(11, 26, 68, .22)); animation: crest-breathe 7s ease-in-out infinite; }
.halo { position: absolute; inset: 6% 6% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 24, .32), rgba(18, 56, 168, .08) 55%, transparent 70%); animation: halo 7s ease-in-out infinite; }
@keyframes crest-breathe { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
.cover-stub { position: relative; z-index: 2; padding-bottom: 10px; }
.river { display: block; width: 100%; height: 90px; margin-top: -30px; }
.river path { will-change: transform; }
.river .r1 { fill: rgba(18, 56, 168, .14); animation: river 22s linear infinite; }
.river .r2 { fill: var(--navy); animation: river 15s linear infinite reverse; }
@keyframes river { from { transform: translateX(0); } to { transform: translateX(-1440px); } }

/* ---- The ticket stub: the next match ------------------------------------------------ */
.stub { display: grid; grid-template-columns: 1fr 26px 150px; background: #fffaf0; border: 1.5px solid var(--navy); border-radius: 6px; box-shadow: 0 10px 0 -4px var(--paper-3), 0 16px 30px -18px rgba(11, 26, 68, .45); overflow: hidden; margin: 0 0 18px; transition: transform .35s var(--ease); }
.stub:hover { transform: rotate(-.4deg) translateY(-2px); }
.stub-main { padding: 18px 22px; }
.stub-label { margin: 0 0 6px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.stub-label b { color: var(--blue); }
.stub-teams { margin: 0 0 6px; font: 700 clamp(1.3rem, 3vw, 1.9rem)/1.15 var(--serif); color: var(--navy); }
.stub-teams i { font-style: italic; font-weight: 400; color: var(--gold); padding: 0 .15em; }
.stub-meta { margin: 0; color: var(--ink-2); }
.stub-tear { position: relative; background: radial-gradient(circle at 50% 0, var(--paper) 11px, transparent 12px) top / 26px 26px no-repeat, radial-gradient(circle at 50% 100%, var(--paper) 11px, transparent 12px) bottom / 26px 26px no-repeat; }
.stub-tear::before { content: ''; position: absolute; left: 50%; top: 18px; bottom: 18px; border-left: 2px dashed var(--rule); }
.stub-side { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: var(--navy); color: #fff; text-decoration: none; padding: 12px; }
.stub-side span { font: 600 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.stub-side b { font: 700 1.25rem/1 var(--serif); }
.stub-side:hover { background: var(--blue); color: #fff; }
.stub-big .stub-teams { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.stub-empty .stub-teams { font-size: 1.3rem; }

/* ---- Contents (home) ------------------------------------------------------------------ */
.contents { background: var(--navy); color: #e9dfc2; padding: clamp(30px, 5vw, 54px) 0; }
.contents-title { color: #fff; text-align: center; font-style: italic; font-weight: 500; margin-bottom: 22px; }
.contents-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.contents-list a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; padding: 16px 0; border-bottom: 1px dotted rgba(233, 223, 194, .35); color: inherit; text-decoration: none; }
.contents-list .pg { grid-row: span 2; font: italic 500 1rem/1.4 var(--serif); color: var(--gold-2); }
.contents-list b { font: 600 1.2rem/1.3 var(--serif); color: #fff; transition: color .2s; }
.contents-list i { font-style: normal; font-size: .92rem; color: #b9b29c; }
.contents-list a:hover b { color: var(--gold-2); }

/* ---- News -------------------------------------------------------------------------------- */
.news-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); }
.news-lead-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); margin-bottom: 14px; }
.news-lead h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.news-lead h2 a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold-2), var(--gold-2)) 0 92% / 0 30% no-repeat; transition: background-size .45s var(--ease); }
.news-lead h2 a:hover { background-size: 100% 30%; }
.news-date { margin: 0 0 8px; font: 600 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.dropcap::first-letter { float: left; font: 700 4.1em/.8 var(--serif); padding: .06em .1em 0 0; color: var(--blue); }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; letter-spacing: .04em; }
.news-lines { list-style: none; margin: 0 0 20px; padding: 0; }
.news-lines a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.news-lines time { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.news-lines b { font: 600 1.15rem/1.3 var(--serif); color: var(--navy); }
.news-lines span { font-size: .95rem; color: var(--ink-2); }
.news-lines a:hover b { color: var(--blue); }
.news-lines a.has-img { grid-template-columns: 1fr 96px; column-gap: 14px; }
.news-lines a.has-img > * { grid-column: 1; }
.news-lines .line-img { grid-column: 2; grid-row: 1 / span 3; }
.news-lines .line-img img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--rule); }
.results-mini { border: 1px solid var(--rule); padding: 14px 18px; margin: 0 0 20px; background: rgba(255, 255, 255, .45); }
.results-mini h3 { font-size: 1rem; letter-spacing: .02em; }
.results-mini ul { list-style: none; margin: 0; padding: 0; }
.results-mini li { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px; padding: 6px 0; align-items: center; border-top: 1px dotted var(--rule); }
.results-mini li span { font-size: .85rem; color: var(--muted); }
.res { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 .78rem/1 var(--sans); color: #fff; background: var(--muted); }
.res-w { background: var(--win); } .res-l { background: var(--loss); } .res-d { background: var(--gold); }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.story { border-top: 3px double var(--rule); padding-top: 16px; }
.story a { color: inherit; text-decoration: none; display: block; }
.story h2 { font-size: 1.45rem; transition: color .2s; }
.story a:hover h2 { color: var(--blue); }
.story-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; filter: sepia(.15) saturate(.9); transition: filter .4s; }
.story a:hover .story-img img { filter: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 10px; }

/* ---- Honours band ------------------------------------------------------------------ */
.honours-band { background: var(--navy); color: #e9dfc2; padding: clamp(40px, 6vw, 72px) 0; text-align: center; position: relative; overflow: hidden; }
.honours-band::before { content: ''; position: absolute; inset: 0; background: url(/img/crest-512.png) center / 520px no-repeat; opacity: .05; }
.honours-band .wrap { position: relative; }
.band-kicker { font: 600 .8rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 22px; }
.honours { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0 0 30px; }
.honour { width: 210px; min-height: 170px; padding: 22px 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; border: 2px solid var(--gold); outline: 1px solid rgba(201, 162, 39, .5); outline-offset: 5px; border-radius: 50% / 46%; }
.honour b { font: 700 1.55rem/1 var(--serif); color: #fff; white-space: nowrap; }
.honour span { font-size: .92rem; color: #d6ccb0; }
.names { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.names li { padding: 12px 0; border-bottom: 1px dotted rgba(233, 223, 194, .3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.names b { font: 600 1.25rem/1.2 var(--serif); color: #fff; }

/* ---- Panels, two-up, features ---------------------------------------------------------- */
.two-up-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; }
.panel { background: #fffaf0; border: 1px solid var(--rule); padding: clamp(20px, 3vw, 30px); position: relative; margin: 0 0 20px; }
.panel::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--paper-3); pointer-events: none; }
.panel > * { position: relative; }
.panel-kicker { display: flex; align-items: center; gap: .5em; margin: 0 0 10px; font: 600 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.feature { padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feature-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold-2); margin-bottom: 12px; }
.feature h2 { font-size: 1.3rem; }
.hours table { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-size: .95rem; }
.hours td { padding: 5px 0; border-bottom: 1px dotted var(--rule); }
.hours tr.today td { font-weight: 700; color: var(--blue); }
.hours h3 { font-size: 1rem; margin: 10px 0 2px; }

/* ---- Members' card ---------------------------------------------------------------------- */
.member-card { position: relative; display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; width: min(360px, 100%); aspect-ratio: 1.586; padding: 22px; margin: 4px 0 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue) 70%, #2f62e0); box-shadow: 0 18px 30px -18px rgba(11, 26, 68, .7), inset 0 0 0 1px rgba(245, 197, 24, .45); overflow: hidden; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.member-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-100%); animation: sheen 6s ease-in-out infinite 2s; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.member-card img { grid-row: span 2; width: 64px; height: 64px; }
.mc-name { font: 700 1.35rem/1.1 var(--serif); align-self: end; }
.mc-sub { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); align-self: start; }
.mc-nfc { grid-column: 3; grid-row: 1 / span 2; color: var(--gold-2); animation: nfc 2.4s ease-in-out infinite; }
@keyframes nfc { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.member-card-lg { width: min(420px, 100%); }
.app-soon { border-left: 3px solid var(--gold); padding: 10px 16px; background: rgba(255, 255, 255, .5); font-size: .95rem; }
.app-soon p { margin: 0 0 .4em; }
.app-soon-tag { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--green); padding: 5px 8px; border-radius: 2px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.ticks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.ticks svg { color: var(--green); flex: none; margin-top: 4px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; display: grid; gap: 6px; padding-top: 14px; border-top: 3px double var(--rule); }
.steps li::before { content: counter(s, upper-roman); font: italic 700 2rem/1 var(--serif); color: var(--gold); }
.steps b { font: 600 1.25rem/1.2 var(--serif); color: var(--navy); }

/* ---- History, timeline, teams ------------------------------------------------------------- */
.history { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.history-text p { font-size: 1.12rem; }
.factfile { background: #fffaf0; border: 1px solid var(--rule); padding: 24px; text-align: center; position: sticky; top: 110px; }
.factfile img { width: 120px; margin-bottom: 8px; }
.factfile dl { margin: 0; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.factfile dt { font: 600 .72rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.factfile dd { margin: 0; border-bottom: 1px dotted var(--rule); padding-bottom: 6px; }
.years { list-style: none; margin: 0; padding: 0 0 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.years li { flex: 0 0 240px; scroll-snap-align: start; padding: 18px; border: 1px solid var(--rule); background: #fffaf0; position: relative; }
.years li::before { content: ''; position: absolute; left: 18px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.years b { display: block; font: 700 2rem/1 var(--serif); color: var(--blue); margin-bottom: 8px; }
.teamsheet { display: grid; gap: 0; border-top: 3px double var(--rule); }
.team { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.team-no { font: italic 700 3rem/1 var(--serif); color: var(--gold); }
.team h2 { margin-bottom: .2em; }

/* ---- Fixtures and tables ---------------------------------------------------------------------- */
.fx-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.fixtures { list-style: none; margin: 0 0 24px; padding: 0; }
.fx { display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--rule); }
.fx time { font: 600 .8rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fx-teams b { display: block; font: 600 1.15rem/1.25 var(--serif); color: var(--navy); }
.fx-teams b i { font-weight: 400; color: var(--gold); }
.fx-teams small { color: var(--muted); }
.fx .ha { font-weight: 700; color: var(--blue); }
.fx-end { display: flex; align-items: center; gap: 10px; }
.score { font: 700 1.15rem/1 var(--serif); }
.ko { font-weight: 600; color: var(--ink-2); }
.fx-buy { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .88rem; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fffaf0; }
.table caption { text-align: left; font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-bottom: 8px; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--paper-3); text-align: center; }
.table th[scope="row"], .table thead th:nth-child(2) { text-align: left; }
.table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .08em; }
.table tr.us { background: rgba(245, 197, 24, .2); font-weight: 700; }
.tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 2px; }
.notice { padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .55); }
.notice-error { border-color: var(--loss); }

/* ---- Tickets --------------------------------------------------------------------------- */
.ticket-types { list-style: none; margin: 0 0 14px; padding: 0; }
.ticket-types li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.ticket-types label { display: flex; justify-content: space-between; flex: 1; gap: 10px; }
.buy-who { display: grid; gap: 10px; margin: 0 0 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(245, 197, 24, .35); }
.ticket-qrs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.stub-qr { display: grid; justify-items: center; gap: 4px; padding: 18px; background: #fffaf0; border: 1.5px dashed var(--navy); }
.done h2 { color: var(--green); }

/* ---- What's on diary ---------------------------------------------------------------------- */
.diary { list-style: none; margin: 0; padding: 0; }
.diary a { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--rule); color: inherit; text-decoration: none; }
.diary-date { display: grid; place-items: center; width: 76px; height: 76px; border: 2px solid var(--navy); border-radius: 50%; }
.diary-date b { font: 700 1.8rem/1 var(--serif); color: var(--navy); }
.diary-date i { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.diary-body b { display: block; font: 600 1.2rem/1.3 var(--serif); color: var(--navy); }
.diary-body span { color: var(--muted); }

/* ---- Visit and plan ------------------------------------------------------------------------- */
.visit-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.visit-addr, .address { font: italic 400 1.2rem/1.5 var(--serif); color: var(--ink-2); font-style: italic; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.contact-list svg { color: var(--gold); }
.plan { display: block; text-decoration: none; color: var(--ink-2); }
.plan > svg { width: 100%; border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--paper-3); }
.pl-paper { fill: #fbf6ea; }
.pl-river { fill: none; stroke: #7fa2d8; stroke-width: 14; stroke-linecap: round; opacity: .7; }
.pl-road { stroke: var(--paper-3); stroke-width: 16; }
.pl-pitch { fill: #cfe3c0; stroke: var(--green); stroke-width: 2; }
.pl-line { fill: none; stroke: #fff; stroke-width: 2; }
.pl-posts { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.pl-house { fill: var(--navy); }
.pl-label { font: italic 500 13px var(--serif); fill: var(--ink-2); }
.pl-pin { fill: var(--loss); stroke: #fff; stroke-width: 1.5; animation: pin 2.6s ease-in-out infinite; transform-origin: 255px 76px; }
.pl-pin circle { fill: #fff; stroke: none; }
@keyframes pin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.plan-cap { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: italic 500 .95rem var(--serif); }

/* ---- Prose (articles, small print) ------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fffaf0; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--paper-3); text-align: left; vertical-align: top; }
.prose thead th { background: var(--navy); color: #fff; }
.article-img img { width: 100%; height: auto; border: 1px solid var(--rule); }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.event-note { border: 1.5px solid var(--navy); padding: 14px 18px; margin: 0 0 22px; background: #fffaf0; }
.back { margin-top: 28px; font-weight: 600; }
.app-legal-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }

/* ---- Colophon (footer) ----------------------------------------------------------------------- */
.colophon { background: var(--navy); color: #d9cfb3; margin-top: clamp(30px, 5vw, 60px); position: relative; }
.col-river { position: absolute; top: -58px; left: 0; width: 100%; height: 60px; fill: var(--navy); }
.col-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 28px; }
.colophon h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin: 6px 0 14px; }
.colophon a { color: #fff; text-decoration: none; }
.colophon a:hover { color: var(--gold-2); }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.col-crest { width: 96px; }
.col-name { font: 700 1.2rem/1.2 var(--serif); color: #fff; margin: 8px 0 2px; }
.col-welsh { font: italic 400 1rem var(--serif); color: var(--gold-2); }
.col-social { display: flex; gap: 16px; flex-wrap: wrap; }
.col-social a { display: inline-flex; align-items: center; gap: 6px; }
.col-base { border-top: 1px solid rgba(217, 207, 179, .2); padding: 16px 0 26px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.col-base p { margin: 0; }

/* ---- Ask the club ------------------------------------------------------------------------------ */
.ask { position: fixed; right: 16px; bottom: 16px; z-index: 50; }
.ask-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--gold); background: var(--navy); color: #fff; font: 600 .9rem/1 var(--sans); letter-spacing: .04em; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(11, 26, 68, .6); transition: transform .2s var(--ease); }
.ask-tab:hover { transform: translateY(-2px); }
.ask-tab svg { color: var(--gold-2); }
.ask-panel { position: absolute; right: 0; bottom: 60px; width: min(380px, calc(100vw - 32px)); max-height: min(560px, 75vh); display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--navy); box-shadow: 0 24px 50px -20px rgba(11, 26, 68, .6); }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; }
.ask-head h2 { color: #fff; font-size: 1.15rem; margin: 0; }
.ask-x { background: none; border: 0; color: #fff; cursor: pointer; }
.ask-log { padding: 14px; overflow-y: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.msg p { margin: 0 0 .4em; }
.msg.bot { background: #fffaf0; border: 1px solid var(--rule); padding: 10px 12px; }
.msg.me { justify-self: end; background: var(--navy); color: #fff; padding: 8px 12px; max-width: 85%; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--gold); animation: nfc 1s infinite; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.ask-chips button { font: 600 .82rem/1 var(--sans); padding: 8px 10px; border: 1px solid var(--rule); background: #fff; cursor: pointer; border-radius: 999px; }
.ask-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.ask-form input { flex: 1; }
.ask-form button { background: var(--navy); color: #fff; border: 0; padding: 0 14px; cursor: pointer; }
.ask-note { font-size: .75rem; color: var(--muted); padding: 0 14px 12px; margin: 0; }

/* ---- The opening: "Croeso" (owner, 2026-11-19: "another animation maybe
   opening better and very friendly for Loughor RFC"). Once a visit, a
   programme cover: the crest settles in, three crows fly off it, the club's
   name is written, the river flows, and the cover lifts like a page. Never
   for reduced motion or a crawler; site.js lifts it after 3.4s regardless. */
.curtain { display: none; }
.curtain-on .curtain { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--paper); overflow: hidden; animation: curtain-lift .9s var(--ease) 2.5s forwards; transform-origin: 50% 0; }
.curtain-on body { overflow: hidden; }
.curtain-in { text-align: center; position: relative; }
.curtain-crest { width: min(240px, 52vw); opacity: 0; transform: translateY(24px) scale(.85); animation: crest-in .9s var(--ease) .15s forwards; }
.curtain-hello { margin: 14px 0 4px; font: italic 600 clamp(1.8rem, 6vw, 3rem)/1 var(--serif); color: var(--blue); opacity: 0; animation: rise .6s var(--ease) .75s forwards; }
.curtain-name { margin: 0; font: 600 clamp(.8rem, 2.4vw, 1rem)/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--navy); clip-path: inset(0 100% 0 0); animation: write 1s steps(26) 1.05s forwards; }
.curtain-river { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; }
.curtain-river path { fill: var(--navy); opacity: .9; transform: translateY(110px); animation: flood .9s var(--ease) 1.2s forwards; }
.curtain-river path + path { fill: var(--blue); opacity: .35; animation-delay: 1.35s; }
.crow { position: absolute; width: 34px; height: 20px; left: 50%; top: 38%; opacity: 0; fill: var(--ink); }
.crow-1 { animation: fly-1 1.8s ease-in 1.1s forwards; }
.crow-2 { animation: fly-2 1.8s ease-in 1.25s forwards; }
.crow-3 { animation: fly-3 1.8s ease-in 1.4s forwards; }
.curtain-skip { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--rule); padding: 8px 12px; font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
@keyframes crest-in { 60% { opacity: 1; transform: translateY(-6px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes flood { to { transform: translateY(0); } }
@keyframes fly-1 { 0% { opacity: 0; transform: translate(-20px, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-46vw, -40vh) scale(1.2) rotate(-12deg); } }
@keyframes fly-2 { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(10vw, -50vh) scale(1.1) rotate(6deg); } }
@keyframes fly-3 { 0% { opacity: 0; transform: translate(20px, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(46vw, -36vh) scale(1.25) rotate(14deg); } }
@keyframes curtain-lift { to { transform: perspective(1400px) rotateX(-88deg) translateY(-20px); opacity: 0; visibility: hidden; } }

/* ---- Reveals: ink settling on paper, and the honours stamped ------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-stamp] { opacity: 0; transform: scale(1.35) rotate(-8deg); }
.js [data-stamp].in { animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.35) rotate(-8deg); } 70% { opacity: 1; transform: scale(.96) rotate(1deg); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stamp] { opacity: 1; transform: none; filter: none; }
  .curtain-on .curtain { display: none; }
}

/* ---- Small screens ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 3px double var(--rule); padding: 8px 16px 16px; box-shadow: 0 18px 24px -18px rgba(11, 26, 68, .5); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px dotted var(--rule); font-size: .95rem; }
  .nav a::after { display: none; }
  .menu-btn { display: inline-flex; }
  .bar { position: relative; }
}
@media (max-width: 860px) {
  .cover-in, .news-cols, .two-up-in, .history, .fx-grid, .visit-in { grid-template-columns: 1fr; }
  .cover-crest { width: min(280px, 70%); order: -1; }
  .cover::before { display: none; }
  .contents-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .col-grid { grid-template-columns: 1fr 1fr; }
  .factfile { position: static; }
  .strip-hide, .strip .dot:nth-of-type(2) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .stub { grid-template-columns: 1fr; }
  .stub-tear { height: 22px; background: none; }
  .stub-tear::before { left: 18px; right: 18px; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed var(--rule); }
  .stub-side { flex-direction: row; gap: 10px; }
  .fx { grid-template-columns: 1fr; gap: 4px; }
  .team { grid-template-columns: 56px 1fr; }
  .team-no { font-size: 2rem; }
  .col-grid { grid-template-columns: 1fr; }
  .mark-words b { font-size: 1.35rem; }
  .mark img { width: 44px; height: 44px; }
  .ask-tab span { display: none; }
}
