/* ISWA Cricket — public site styles (on top of Bootstrap 5.3) */
:root {
  --ink: #111111;
  --ink-2: #2a2a2a;
  --gold: #FFC20E;
  --gold-text: #8A6500;   /* gold that passes contrast on white */
  --paper: #ffffff;
  --mist: #f4f4f2;
  --line: #e2e2de;
  --muted: #5c5c5c;
  --muted-on-ink: #bdbdbd;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 17,17,17;
  --bs-link-hover-color: var(--gold-text);
  --bs-link-hover-color-rgb: 138,101,0;
}

body { font-family: var(--font-body); color: var(--ink); background: var(--paper); }
a { color: var(--ink); }
a:hover { color: var(--gold-text); }
img { max-width: 100%; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--gold); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Type */
.display-title, .section-title, .card-title-display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .01em;
}
.display-title { font-size: clamp(2.5rem, 6vw, 4.25rem); margin: 0; }
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin: .35rem 0 0; }
.card-title-display { font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
.eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.on-ink .eyebrow, .eyebrow.on-ink { color: var(--gold); }
.lead-muted { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.text-muted-ink { color: var(--muted-on-ink) !important; }

/* Buttons */
.btn { border-radius: 4px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding-inline: 1.15rem; }
.btn-brand { background: var(--gold); color: var(--ink); border: 2px solid var(--gold); font-weight: 700; }
.btn-brand:hover, .btn-brand:focus { background: #ffcf3d; border-color: #ffcf3d; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus { background: #333; border-color: #333; color: #fff; }
.btn-outline-ink { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-width: 2px; }
.btn svg { flex: 0 0 auto; }

/* Header */
.topbar { border-top: 4px solid var(--gold); border-bottom: 1px solid var(--line); background: #fff; }
.topbar .site-logo img { height: 84px; width: auto; display: block; }
@media (max-width: 575.98px) { .topbar .site-logo img { height: 64px; } .topbar .live-links .btn { padding-inline: .75rem; font-size: .9rem; } }
.main-nav { background: var(--ink); }
.main-nav .navbar-nav .nav-link {
  color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .9rem .9rem; min-height: 52px; display: flex; align-items: center;
}
.main-nav .navbar-nav .nav-link:hover { color: var(--gold); }
.main-nav .navbar-nav .nav-link.active { color: var(--gold); font-weight: 700; box-shadow: inset 0 -4px 0 var(--gold); }
.main-nav .navbar-toggler { border-color: #555; color: #fff; min-height: 44px; }
.main-nav .navbar-toggler-icon { filter: invert(1); }
@media (max-width: 991.98px) { .main-nav .navbar-nav .nav-link.active { box-shadow: inset 4px 0 0 var(--gold); padding-left: 1rem; } }

/* Live strip / band */
.live-band { background: var(--gold); }
.live-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-strip { background: var(--gold); font-size: .95rem; }

/* Heroes */
.home-hero { background: var(--ink); color: #fff; overflow: hidden; }
.home-hero .lead { color: #e6e6e6; }
.home-hero.has-bg { position: relative; background: var(--ink) var(--hero-bg) center 60% / cover no-repeat; }
.home-hero.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 38%, rgba(10,10,10,.25) 70%, rgba(10,10,10,.1) 100%); }
.home-hero.has-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }
.home-hero.has-bg > .container { position: relative; }
.home-hero.has-bg .hero-row { min-height: 520px; }
.home-hero.has-bg .display-title { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
@media (max-width: 991.98px) {
  .home-hero.has-bg { background-image: var(--hero-bg-mobile); background-position: 62% center; }
  .home-hero.has-bg::before { background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.88) 100%); }
  .home-hero.has-bg .hero-row { min-height: 0; }
}
.hero-photo { position: relative; padding: 0 16px 16px 0; }
.hero-photo::before { content: ''; position: absolute; right: 0; bottom: 0; width: 88%; height: 88%; background: var(--gold); }
.hero-photo img, .hero-photo .ph { position: relative; width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.page-hero { background: var(--ink); color: #fff; border-bottom: 6px solid var(--gold); }
.page-hero .lead { color: #d6d6d6; }
.page-hero.has-bg { position: relative; background: var(--ink) var(--hero-bg) center 30% / cover no-repeat; }
.page-hero.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.7) 40%, rgba(10,10,10,.3) 75%, rgba(10,10,10,.2) 100%); }
.page-hero.has-bg > .container { position: relative; }
.page-hero.has-bg .display-title { text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.teams-hero { background-position: center 28%; }
.teams-hero > .container { padding-top: 4.5rem !important; }
.teams-hero .div-tabs a:not(.active) { background: rgba(30,30,30,.88); }
.news-hero { background-position: center 62%; }
.news-hero > .container { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.news-hero .pill:not(.active):not([aria-current]) { background: rgba(17,17,17,.55) !important; }
.history-hero > .container { padding-bottom: 0 !important; }
.history-hero .div-tabs a:not(.active) { background: rgba(30,30,30,.88); }
.aussie-hero > .container { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
@media (max-width: 991.98px) {
  .page-hero.has-bg { background-image: var(--hero-bg-mobile); background-position: center 30%; }
  .page-hero.has-bg::before { background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.85) 100%); }
  .aussie-hero > .container { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .teams-hero > .container { padding-top: 3rem !important; }
  .news-hero > .container { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .history-hero > .container { padding-bottom: 0 !important; }
}

/* Placeholders & photos */
.ph { background: #ededea; color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: .9rem; }
.ph-ink { background: var(--ink-2); color: var(--muted-on-ink); }
.initials { display: flex; align-items: center; justify-content: center; background: #e2e2de; color: #555; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; width: 100%; height: 100%; }
.photo-frame { position: relative; padding: 0 14px 14px 0; }
.photo-frame::before { content: ''; position: absolute; right: 0; bottom: 0; width: 90%; height: 90%; background: var(--gold); }
.photo-frame > * { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }

/* Cards */
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; height: 100%; transition: box-shadow .15s, transform .15s; }
a.tile:hover { color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.tile .tile-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-bottom: 4px solid var(--gold); }
.tile .tile-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tile .more { font-weight: 600; font-size: .9rem; margin-top: auto; padding-top: .5rem; }
.tile-mist { background: var(--mist); border: 0; }
.tile-mist .tile-img { border-bottom: 0; }

.badge-ink { background: var(--ink); color: var(--gold); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .55rem; border-radius: 0; display: inline-block; }
.badge-gold { background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .55rem; border-radius: 0; display: inline-block; }
.chip { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 600; border: 1px solid #d0d0cc; border-radius: 999px; padding: .25rem .7rem; text-decoration: none; color: var(--ink); }
a.chip:hover { border-color: var(--ink); color: var(--ink); }

.meta-item { border-left: 4px solid var(--gold); padding-left: .85rem; }
.meta-item .label { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.meta-item .value { font-weight: 600; }

/* People */
.person-card .photo { position: relative; aspect-ratio: 4/5; background: #ededea; overflow: hidden; }
.person-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-card .photo .badge-ink { position: absolute; top: .75rem; left: .75rem; }
.person-card .tile-body { border-top: 4px solid var(--gold); }
.staff-card { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); background: var(--mist); border-radius: 6px; padding: 1rem; height: 100%; }
a.staff-card:hover { color: var(--ink); background: #ebebe7; }
.avatar { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); background: #e2e2de; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .initials { font-size: 1.4rem; }
.avatar-gold { border-color: var(--gold); }
.avatar-lg { width: 120px; height: 120px; }
.avatar-lg .initials { font-size: 2.2rem; }
.role-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-text); }

/* Tabs / selectors */
.div-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.div-tabs a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.3rem; background: var(--ink-2); color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px 4px 0 0; }
.div-tabs a:hover { background: #3a3a3a; color: #fff; }
.div-tabs a.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.age-bar { background: var(--mist); border-bottom: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid #bdbdbd; background: #fff; color: var(--ink); font-weight: 600; border-radius: 999px; text-decoration: none; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); color: var(--gold); border: 2px solid var(--ink); font-weight: 700; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.year-grid a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #d0d0cc; border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.year-grid a:hover { border-color: var(--ink); }
.year-grid a.active { background: var(--ink); color: var(--gold); border: 2px solid var(--ink); font-weight: 700; }

/* Tournament cards */
.tour-card { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.tour-date { flex: 0 0 150px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.1rem .75rem; border-right: 6px solid var(--gold); text-align: center; }
.tour-date .m { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.tour-date .d { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.tour-date .y { font-size: .8rem; color: var(--muted-on-ink); }
.tour-main { flex: 999 1 360px; min-width: 0; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.tour-actions { flex: 1 1 200px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; background: var(--mist); }
@media (max-width: 575.98px) { .tour-date { flex-basis: 100%; border-right: 0; border-bottom: 6px solid var(--gold); flex-direction: row; gap: .6rem; } }

/* Tables */
.table-ink thead th { background: var(--ink); color: #fff; font-weight: 600; border: 0; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.list-roster { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.list-roster li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.list-roster li:last-child { border-bottom: 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink a:not(.btn) { color: #fff; }
.prose { font-size: 1.05rem; line-height: 1.75; color: #2b2b2b; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin-top: 1.75rem; }
.prose img { height: auto; border-radius: 4px; }
.prose blockquote { border-left: 4px solid var(--gold); padding-left: 1rem; color: #444; }

/* Rules */
.rules-section { border-bottom: 1px solid var(--line); }
.rules-section summary { cursor: pointer; padding: .9rem 0; font-weight: 700; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; list-style: none; }
.rules-section summary::-webkit-details-marker { display: none; }
.rules-section summary::before { content: '+'; display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; background: var(--ink); color: var(--gold); font-weight: 800; flex: 0 0 auto; }
.rules-section[open] summary::before { content: '–'; }
.rules-section .rule-body { padding: 0 0 1rem 2.1rem; }
.modal-ink .modal-header { background: var(--ink); color: #fff; border-bottom: 6px solid var(--gold); }
.modal-ink .btn-close { filter: invert(1); opacity: .9; }
mark { background: #ffe58a; padding: 0 .1em; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; border-top: 4px solid var(--gold); }
.site-footer h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .footer-logo { background: #fff; border-radius: 6px; padding: 8px; display: inline-block; }
.site-footer .footer-logo img { height: 88px; width: auto; }
.footer-bottom { border-top: 1px solid #2e2e2e; color: var(--muted-on-ink); font-size: .85rem; }
.footer-bottom a { color: var(--muted-on-ink); }

/* Forms */
.form-control, .form-select { min-height: 48px; border-color: #bdbdbd; }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 .2rem rgba(255,194,14,.45); }
textarea.form-control { min-height: 160px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.pagination .page-link { color: var(--ink); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.pagination .active > .page-link { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.empty-state { border: 2px dashed #d0d0cc; border-radius: 6px; padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
