/* IBAUC.CA — site styles. Kept class-scoped so the table fragments keep their own look. */
:root { --red:#b90012; --title-red:#cc0000; --grey:#f2f2f2; --ink:#212121; --footer:#262626; --wrap:1154px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:#fff; color:var(--ink); font-family:Bitter, Georgia, serif; font-size:16px; line-height:1.5; }
img { max-width:100%; }

/* header */
.site-header { position:sticky; top:0; z-index:50; display:flex; align-items:center; height:56px; padding:0 20px 0 28px; background:var(--red); color:#fff; }
.brand { display:flex; align-items:center; gap:16px; color:#fff; text-decoration:none; margin-right:auto; }
.brand img { height:40px; width:auto; display:block; }
.brand span { font-family:Montserrat, Arial, sans-serif; font-size:19px; letter-spacing:.2px; }
.site-nav { display:flex; height:56px; }
.site-nav a { position:relative; display:flex; align-items:center; padding:0 12px; color:#fff; text-decoration:none; font-size:16px; white-space:nowrap; }
.site-nav a:hover { background:rgba(255,255,255,.08); }
.site-nav a[aria-current="page"]::after { content:""; position:absolute; left:8px; right:8px; bottom:0; height:4px; background:#fff; }
.nav-toggle, .nav-button { display:none; }

/* page bands */
.wrap { max-width:var(--wrap); margin:0 auto; padding:0 16px; }
.band { padding:24px 0; }
.band-grey { background:var(--grey); }
.title-band { padding:30px 0 0; }
.title-band .wrap { padding-bottom:30px; }
.band-grey.title-band .wrap { border-bottom:0; }
.band-grey.title-band { border-bottom:0; }
.page-title { margin:0; font-family:Bitter, Georgia, serif; font-weight:700; font-size:28px; line-height:1.25; color:var(--title-red); }
.banner-band { padding:24px 0; }
.banner-band .wrap { border-bottom:2px solid var(--red); padding-bottom:30px; }

.cols { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:start; }
.col > * + * { margin-top:24px; }
.col { min-width:0; }
.embed { padding:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; }                 /* matches the 8px frame margin the tables were designed in */
.banner-band .embed { padding:0; }

.photo { margin:0; }
.photo img { display:block; width:100%; height:auto; }
.photo figcaption { font-family:Montserrat, Arial, sans-serif; font-size:12px; color:var(--ink); margin-top:10px; }

.note { padding:0 8px; font-size:14.67px; }
.note p { margin:0 0 14px; }
.note a { color:inherit; }

/* footer */
.site-footer { background:var(--footer); color:#fff; font-family:Montserrat, Arial, sans-serif; font-size:12px; padding:26px 0; }

/* title band sits directly under header: grey band with red rule below */
.band-grey.title-band { padding-bottom:0; }
.band-grey.title-band .wrap { padding-bottom:30px; border-bottom:2px solid var(--red); }

@media (max-width: 1000px) {
  .site-header { padding:0 8px 0 16px; }
  .nav-button { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; cursor:pointer; }
  .nav-button span { display:block; height:2px; background:#fff; margin:0 10px; }
  .site-nav { display:none; position:absolute; top:56px; left:0; right:0; height:auto; flex-direction:column; background:var(--red); padding:8px 0; box-shadow:0 6px 12px rgba(0,0,0,.2); }
  .site-nav a { padding:12px 20px; }
  .site-nav a[aria-current="page"]::after { left:0; right:auto; top:8px; bottom:8px; width:4px; height:auto; }
  .nav-toggle:checked ~ .site-nav { display:flex; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns:1fr; }
  .page-title { font-size:24px; }
  .brand span { font-size:17px; }
}

/* ---------- Home ---------- */
/* edge-to-edge hero video, directly under the header */
.hero { position:relative; display:grid; place-items:center; width:100%; height:clamp(260px, 52vw, 78vh); overflow:hidden;
        background:linear-gradient(160deg,#14141c 0%,#0d0d0d 55%,#1c0a0f 100%); }
.hero__media { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.hero__scrim { position:absolute; inset:0; background:rgba(0,0,0,.55); }
.hero__title { position:relative; z-index:2; margin:0; width:min(100% - 32px, 1000px); text-align:center; color:#fff;
               font-family:Arial, Helvetica, sans-serif; font-weight:700; font-size:clamp(1.5rem, 4.4vw, 3.4rem);
               line-height:1.14; letter-spacing:-.01em; text-wrap:balance; text-shadow:0 2px 10px rgba(0,0,0,.7); }

.cols-home { grid-template-columns:365fr 760fr; }
.textblock { padding:0 8px; font-size:14.67px; }
.textblock p { margin:0 0 14px; }
.section-title { margin:0 0 18px; font-family:Bitter, Georgia, serif; font-weight:700; font-size:28px; line-height:1.25; }
.section-title.dark { color:var(--ink); }
.section-title.light { color:#fff; }
.photo-plain img { display:block; width:100%; height:auto; }

.band-dark { background:#3b3b3b; color:#fff; }
.band-dark a { color:#fff; }
.about-row { display:flex; gap:36px; align-items:flex-start; padding-top:8px; padding-bottom:30px; border-bottom:2px solid var(--red); }
.framed { width:266px; height:auto; flex:0 0 auto; display:block; }
.dark-banner .wrap { border-bottom:0; padding-bottom:12px; }
.dark-banner { padding:24px 0 40px; }

@media (max-width: 860px) {
  .cols-home { grid-template-columns:1fr; }
  .about-row { flex-direction:column; align-items:center; }
  .framed { width:min(266px, 70vw); }
  .section-title { font-size:24px; }
}

.textblock a { overflow-wrap:anywhere; }

/* ---------- Inner pages ---------- */
.red { color:#e3001b; }
.h-red { margin:0 0 10px; font-family:Bitter, Georgia, serif; font-weight:700; font-size:20px; line-height:1.3; color:var(--title-red); }
.section-title.red { color:var(--title-red); }
.band-dark .h-red { color:#ff2a3a; }
.big-title { margin:0 0 22px; font-family:Montserrat, Arial, sans-serif; font-weight:700; font-size:40px; line-height:1.2; color:var(--title-red); }
.big-title.ruled { border-top:2px solid var(--red); padding-top:24px; margin-top:12px; }
.textblock ul, .textblock ol { margin:0 0 14px; padding-left:22px; }
.textblock li { margin:0 0 6px; }
.band-dark .textblock, .band-dark p { color:#fff; }

/* About */
.split-intro { display:grid; grid-template-columns:546fr 562fr; gap:46px; align-items:center; padding-top:8px; padding-bottom:8px; }
.lede { margin:0 0 22px; font-family:Bitter, Georgia, serif; font-weight:700; font-size:20px; line-height:1.3; color:var(--title-red); }
.intro-logo { width:100%; max-width:464px; height:auto; justify-self:center; }
.textcols p { font-size:14.67px; }
.statement { margin:0; font-family:Bitter, Georgia, serif; font-weight:700; font-size:20px; line-height:1.35; color:#fff; }
.bullets { padding-left:22px; }
.grid3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:30px; align-items:start; }
.card p { font-size:14.67px; margin:0 0 14px; }
.card img, .photos3 img { display:block; width:100%; height:auto; }
.person { margin-bottom:20px; }
.person .name { margin:0; font-size:13px; }
.person .aff { margin:0; font-size:11.5px; color:#444; }
.people { margin-top:26px; row-gap:16px; }

/* logo + text rows */
.logo-row { display:flex; gap:40px; align-items:flex-start; }
.logo-row > .textblock { flex:1; min-width:0; }
.side-logo { width:168px; height:auto; flex:0 0 auto; }
.side-logo.wide { width:266px; }
.side-logo.xwide { width:464px; }
.strip { align-items:center; }
.strip-logo { width:168px; height:auto; }
.strip .section-title { margin:0; }
.title-strip { padding:22px 0; }
.title-strip .section-title { margin:0; }
.card-row .card-img { width:365px; height:auto; flex:0 0 auto; }

/* CNUC */
.cols-bracket { grid-template-columns:661fr 465fr; }
.cols-format { grid-template-columns:546fr 448fr; gap:90px; }
.form-tile { text-align:center; }
.form-tile iframe { width:100%; height:365px; border:0; display:block; background:#fff; }
.form-empty { height:365px; border:1px dashed #c8c8c8; }
.form-tile .section-title { margin-top:14px; }

/* History */
.split-r { display:grid; grid-template-columns:645fr 365fr; gap:60px; align-items:start; }
.framed-r { width:100%; max-width:365px; height:auto; justify-self:end; }

/* Research */
.ref { margin-bottom:22px; }
.ref-title { margin:0 0 8px; font-family:Bitter, Georgia, serif; font-weight:700; font-size:22px; line-height:1.3; color:var(--ink); }
.ref .cite { font-size:13px; margin:0 0 10px; }
.ref p { margin:0 0 10px; }
a.more { color:var(--title-red); text-decoration:none; }

@media (max-width: 860px) {
  .split-intro, .split-r, .cols-bracket, .cols-format, .grid3 { grid-template-columns:1fr; gap:24px; }
  .logo-row { flex-direction:column; gap:18px; }
  .side-logo.xwide { width:min(331px, 80vw); }
  .card-row .card-img { width:min(365px, 100%); }
  .big-title { font-size:30px; }
  .framed-r { justify-self:center; }
}

/* ---------- Rankings ---------- */
.rk-intro { max-width:860px; }
.rk-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; margin-top:18px; }
.rk-table, .rk-points { border-collapse:collapse; width:100%; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; font-size:14px; color:#111827; border:1px solid #e5e7eb; }
.rk-table { min-width:640px; }
.rk-table caption { caption-side:top; text-align:left; font-size:12px; color:#6b7280; padding:0 0 8px; }
.rk-table th, .rk-points th { padding:9px 10px; background:#1f2937; color:#fff; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; text-align:center; }
.rk-table th:nth-child(2), .rk-points th:first-child { text-align:left; }
.rk-table td, .rk-points td { padding:8px 10px; border-bottom:1px solid #e5e7eb; background:#fff; vertical-align:middle; }
.rk-table tbody tr:nth-child(even) td, .rk-points tbody tr:nth-child(even) td { background:#f9fafb; }
.rk-rank { width:56px; text-align:center; font-weight:700; font-size:16px; }
.rk-teamwrap { display:flex; align-items:center; gap:10px; }
.rk-badge { width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.rk-badge img { width:21px; height:21px; object-fit:contain; display:block; }
.rk-initials { font-size:11px; font-weight:700; color:#374151; }
.rk-yr { text-align:center; width:120px; }
.rk-pts { display:block; font-weight:700; }
.rk-pts.rk-zero { color:#9ca3af; font-weight:400; }
.rk-fin { display:block; font-size:11px; color:#6b7280; line-height:1.3; }
.rk-avg { text-align:center; font-weight:700; font-size:16px; color:var(--title-red); width:96px; }
.rk-points td:last-child, .rk-points th:last-child { text-align:center; width:90px; }
.rk-method { align-items:start; }
@media (max-width: 640px) {
  .rk-table { min-width:0; font-size:13px; }
  .rk-table th, .rk-table td { padding:7px 4px; }
  .rk-table th { font-size:10px; letter-spacing:.02em; }
  .rk-rank { width:28px; font-size:14px; }
  .rk-yr { width:auto; }
  .rk-fin { display:none; }
  .rk-badge { width:24px; height:24px; }
  .rk-badge img { width:17px; height:17px; }
  .rk-teamwrap { gap:6px; }
  .rk-avg { width:auto; font-size:14px; }
  .rk-table caption { font-size:11px; }
}
/* Rankings: Notes column (hidden on phones) */
.rk-table th.rk-notes { text-align:left; }
.rk-table td.rk-notes { font-size:12.5px; color:#4b5563; line-height:1.35; }
.rk-table td.rk-team { white-space:nowrap; }
@media (max-width: 860px) { .rk-table .rk-notes { display:none; } .rk-table { min-width:0; } }
/* Rankings: declined berth (same grey as DNQ) */
.rk-x { color:#9ca3af; font-weight:400; }

/* Hero: YouTube background video, sized to cover the hero like object-fit:cover */
.hero__yt { overflow:hidden; pointer-events:none; }
.hero__yt iframe { position:absolute; top:50%; left:50%; border:0;
  width:max(100vw, calc(clamp(260px, 52vw, 78vh) * 1.7778));
  height:max(56.25vw, clamp(260px, 52vw, 78vh));
  transform:translate(-50%, -50%) scale(1.15); }
