/* ROGS website. REME colours: corps blue, yellow and red (the stable belt), on a light page. */
/* Fonts hosted here (security check 2026-12-06): loading them from Google sent every visitor's address to Google. */
@font-face { font-family: Oswald; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/oswald-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Oswald; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/oswald-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }
:root {
  --blue: #0b2458; --blue-2: #13357d; --yellow: #f5c518; --red: #c8102e;
  --page: #f4f1ea; --card: #ffffff; --ink: #18213a; --muted: #5d6680; --line: #e2ddd1;
  --radius: 14px; --shadow: 0 2px 10px rgba(11, 36, 88, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--blue-2); }
h1, h2, h3 { font-family: Oswald, Impact, "Arial Narrow", sans-serif; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 1.9rem; text-transform: uppercase; color: var(--blue); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.loading { padding: 60px 16px; color: var(--muted); }
main { min-height: 60vh; outline: none; }

/* header */
.top { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.brand b { display: block; font-family: Oswald, Impact, sans-serif; font-size: 1.5rem; letter-spacing: .08em; line-height: 1; }
.brand small { display: block; font-size: .72rem; color: var(--yellow); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button { color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button:hover, .nav a.on { background: rgba(255,255,255,.12); }
.nav .pill { background: var(--yellow); color: var(--blue); }
.nav .pill:hover { background: #ffd84a; }
.belt { display: flex; height: 6px; }
.belt i { flex: 1; } .belt i:nth-child(1) { background: var(--blue-2); } .belt i:nth-child(2) { background: var(--yellow); } .belt i:nth-child(3) { background: var(--red); }

/* hero */
.hero { position: relative; color: #fff; background: var(--blue) center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,36,88,.55), rgba(11,36,88,.92)); }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(3rem, 11vw, 6rem); margin: 0; letter-spacing: .1em; }
.hero .sub { font-size: clamp(1rem, 3.4vw, 1.35rem); color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: 0 0 18px; }
.hero p.lede { max-width: 560px; font-size: 1.05rem; margin: 0 0 24px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-y { background: var(--yellow); color: var(--blue); }
.btn-y:hover { background: #ffd84a; }
.btn-o { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-o:hover { background: rgba(255,255,255,.1); }
.btn-b { background: var(--blue); color: #fff; }
.btn-b:hover { background: var(--blue-2); }
.btn-r { background: var(--red); color: #fff; }
.btn-l { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-l:hover { border-color: var(--blue-2); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-sm { padding: 6px 11px; font-size: .85rem; border-radius: 8px; }

section.block { padding: 48px 0; }
section.block.alt { background: #fff; }
.kicker { font-size: .78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 4px; }

/* latest tour */
.latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.vid { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 380px; width: 100%; aspect-ratio: 9 / 16; justify-self: center; }
.vid video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.facts li b { min-width: 92px; color: var(--muted); font-weight: 600; }
.courses { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.courses li { background: var(--page); border-left: 4px solid var(--yellow); padding: 7px 12px; border-radius: 0 8px 8px 0; font-weight: 600; }
.champ-flag { display: flex; align-items: center; gap: 12px; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; }
.champ-flag .cup { font-size: 2rem; }
.champ-flag small { display: block; color: var(--yellow); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; }
.champ-flag b { font-family: Oswald, Impact, sans-serif; font-size: 1.5rem; letter-spacing: .04em; }

/* honours board */
.board { background: linear-gradient(180deg, #13357d, #0b2458); color: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border: 3px solid var(--yellow); max-width: 640px; }
.board h3 { text-align: center; color: var(--yellow); text-transform: uppercase; letter-spacing: .14em; font-size: 1.4rem; margin-bottom: 14px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed rgba(245,197,24,.35); font-family: Oswald, Impact, sans-serif; font-size: 1.25rem; letter-spacing: .04em; }
.board li:last-child { border-bottom: 0; }
.board li span:first-child { color: var(--yellow); }
.board li small { font-family: Inter, sans-serif; font-size: .8rem; color: #c8d3f0; align-self: center; }
.board li.first span:nth-child(2)::after { content: " 🏆"; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.next { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--red); }
.next p { margin: 0 0 8px; }
.next .courses { margin: 12px 0 0; }
.next .courses li { font-weight: 400; }
.next .courses b { font-weight: 700; color: var(--blue); }
.flink { color: var(--blue-2); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.flink:hover { color: var(--red); }
.next h3 { font-size: 1.8rem; color: var(--blue); margin-bottom: 6px; }
.champs-photo { margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; margin-top: 20px; box-shadow: var(--shadow); }
.champs-photo figcaption { background: var(--blue); color: #fff; padding: 8px 14px; font-size: .9rem; }

/* tour cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card:hover { border-color: var(--blue-2); }
.card .cover { aspect-ratio: 4 / 3; background: var(--blue) center / cover no-repeat; position: relative; }
.card .cover .yr { position: absolute; left: 12px; bottom: 10px; background: var(--yellow); color: var(--blue); font-family: Oswald, sans-serif; font-weight: 700; padding: 2px 10px; border-radius: 6px; font-size: 1.1rem; }
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; color: var(--blue); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }


/* tour page */
.tour-head { background: var(--blue); color: #fff; padding: 36px 0 30px; }
.tour-head h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); margin: 0; }
.tour-head p { margin: 4px 0 0; color: #d7def2; }
.tour-head .back { color: var(--yellow); text-decoration: none; font-weight: 700; font-size: .9rem; }
.gal-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.gal-head h2 { margin: 0; }
.grid { columns: 4 220px; column-gap: 10px; }
.grid figure { break-inside: avoid; margin: 0 0 10px; position: relative; border-radius: 10px; overflow: hidden; background: #ddd8cc; cursor: zoom-in; }
.grid img { width: 100%; height: auto; }
.grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.grid figure.pending img { opacity: .55; }
.grid .wait { position: absolute; top: 8px; left: 8px; background: var(--yellow); color: var(--blue); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs h2 { margin: 0; }
.tab { font: 700 1.25rem/1 Oswald, Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: #fff;
  border: 2px solid var(--line); border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.tab span { font: 700 .8rem Inter, sans-serif; background: var(--page); color: var(--muted); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab.on span { background: var(--yellow); color: var(--blue); }
.tab:hover:not(.on) { border-color: var(--blue-2); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(11,36,88,.8); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 4px; pointer-events: none; }
.pthumb { position: relative; display: block; }
.lb video { max-width: 100%; max-height: calc(100vh - 150px); background: #000; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pitem img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #ddd8cc; }
.pitem .hint { margin: 6px 0; font-size: .8rem; }
.empty { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--muted); }

.uploader { background: #fff; border-radius: var(--radius); border: 2px dashed var(--blue-2); padding: 18px; margin-bottom: 20px; }
.uploader.drag { background: #eef2fb; }
.queue { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.queue li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.queue img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.queue input { width: 100%; }
.queue .st { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.queue .st.ok { color: #18794e; } .queue .st.bad { color: var(--red); }

/* forms */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; max-width: 440px; margin: 40px auto; }
.panel.wide { max-width: none; margin: 0 0 20px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9c3b4; border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--yellow); border-color: var(--blue-2); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 12px 0; }
.msg { margin: 10px 0 0; font-size: .9rem; color: var(--red); min-height: 1.2em; }
.hint { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--page); color: var(--muted); }
.tag.y { background: var(--yellow); color: var(--blue); } .tag.r { background: #fde3e7; color: var(--red); }
.linkbox { background: var(--page); border-radius: 10px; padding: 12px; margin-top: 12px; word-break: break-all; font-size: .88rem; }
.meter { height: 10px; background: var(--page); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.meter i { display: block; height: 100%; background: var(--blue-2); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tblwrap { overflow-x: auto; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(5,12,30,.95); z-index: 50; display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100vw; max-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 50px 8px 90px; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lb figcaption { color: #fff; margin-top: 10px; text-align: center; font-size: .95rem; }
.lb figcaption small { display: block; color: #a9b5d6; }
.lb button { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; }
.lb-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-tools { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.lb-tools button { padding: 8px 14px; font: 600 .85rem Inter, sans-serif; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(120px); background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 60; transition: transform .25s; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.on { transform: translateX(-50%) translateY(0); }

.foot { background: var(--blue); color: #c8d3f0; margin-top: 40px; font-size: .85rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 22px; }

@media (max-width: 820px) {
  .latest, .split, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .board li { grid-template-columns: 58px 1fr; }
  .board li small { grid-column: 2; margin-top: -8px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
}
@media (max-width: 520px) {
  .top-in { padding-top: 6px; padding-bottom: 6px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a, .nav button { padding: 7px 8px; font-size: .88rem; }
  .grid { columns: 2; column-gap: 6px; } .grid figure { margin-bottom: 6px; }
  section.block { padding: 36px 0; }
  .queue li { grid-template-columns: 48px 1fr; } .queue .st { grid-column: 2; }
}
