/* Onyedi Ajans v1.7.3 – Homepage editorial headings, contrast & card balancing.
   Only affects the homepage. Existing archive URLs, article templates and SEO stay intact. */
.oa27-home {
  --oa17-heading-navy: #102b46;
  --oa17-heading-red: #a80b30;
  --oa17-heading-purple: #533980;
  --oa17-readable-muted: #40566c;
}
/* Color-backed primary section headings: one visual system, high-contrast text. */
.oa27-home .oa27-section-heading,
.oa27-home .oa26-front-three .oa26-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:7px 10px;
  min-height:54px;
  padding:5px 8px 5px 12px;
  margin:0 0 12px;
  border:0;
  border-radius:9px;
  background:var(--oa17-heading-navy);
  box-shadow:0 3px 9px #102b4614;
}
.oa27-home .oa26-front-three .oa26-section-head::before {display:none}
.oa27-home .oa27-section-heading h2,
.oa27-home .oa26-front-three .oa26-section-head h2 {
  color:#fff!important;
  margin:0;
  border-left:4px solid #ff5970;
  padding:3px 0 3px 9px;
  font-size:clamp(.96rem,1.15vw,1.12rem);
  line-height:1.27;
  font-weight:900;
  min-width:0;
  flex:1 1 140px;
  overflow-wrap:break-word;
}
.oa27-home .oa27-section-heading>a,
.oa27-home .oa26-front-three .oa26-section-head>a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:44px;
  min-width:44px;
  padding:8px 10px;
  border:1px solid #e8f0f7;
  border-radius:7px;
  background:#fff;
  color:#102b46!important;
  font-size:.79rem;
  font-weight:850;
  line-height:1.25;
  text-decoration:none;
  white-space:nowrap;
}
.oa27-home .oa27-section-heading>a:hover,
.oa27-home .oa26-front-three .oa26-section-head>a:hover {
  color:#102b46!important;
  background:#eaf2fa;
  border-color:#fff;
}
.oa27-home .oa26-agenda .oa26-section-head,
.oa27-home .oa27-notices .oa27-section-heading {background:var(--oa17-heading-red)}
.oa27-home .oa27-streams--horoscope-only .oa27-section-heading {background:var(--oa17-heading-purple)}
/* Districts retain their distinctive red nameplate but gain a solid readable header strip. */
.oa27-home .oa27-district-heading {
  background:#fff0f3;
  border-bottom:1px solid #f2bfca;
  min-height:48px;
}
.oa27-home .oa27-district-heading h2 {background:var(--oa17-heading-red);color:#fff;font-size:1.15rem;line-height:1.25}
.oa27-home .oa27-district-heading p {color:#293f56;font-size:.79rem;line-height:1.35}
/* Decorative editorial cinema/travel hero headers already sit on tinted backgrounds;
   strengthen the contrast rather than painting over photos. */
.oa27-home .oa26-cinema-eyebrow {color:#a50c2f}
.oa27-home .oa26-bottom-explore-script {color:#a30c2a}
.oa27-home .oa26-bottom-explore-copy h2 {color:#102b46}
/* Two companion panels: video cards fill their grid, zodiac cards fit compactly. */
.oa27-home .oa27-video-stream-row {align-items:stretch}
.oa27-home .oa27-video-stream-row>.oa27-video,
.oa27-home .oa27-video-stream-row>.oa27-streams {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
}
.oa27-home .oa27-video-list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  flex:1 1 auto;
  align-items:stretch;
}
.oa27-home .oa27-video-list article {display:flex;min-width:0;min-height:0;height:100%}
.oa27-home .oa27-video-list article>a {display:flex;flex-direction:column;min-width:0;width:100%;height:100%;text-decoration:none}
.oa27-home .oa27-video-list .oa27-video-photo {height:128px;flex:0 0 128px}
.oa27-home .oa27-video-list .oa27-video-copy {display:flex;flex:1 1 auto;flex-direction:column;gap:5px;min-height:88px;padding:9px 9px 10px}
.oa27-home .oa27-video-list .oa27-video-copy>strong {
  font-size:.78rem;
  line-height:1.31;
  min-height:0;
  -webkit-line-clamp:3;
  color:#162f49;
}
.oa27-home .oa27-video-list .oa27-video-copy .oa27-home-summary {
  font-size:.74rem;
  line-height:1.4;
  min-height:0;
  -webkit-line-clamp:2;
  color:var(--oa17-readable-muted);
}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
  min-height:0;
  margin:0;
  padding:10px 11px;
  border-color:#dcd8eb;
  border-radius:9px;
  background:#faf9ff;
}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-head {gap:8px;margin-bottom:7px}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-head p {font-size:.76rem;line-height:1.35;color:#354563}
.oa27-home .oa27-stream-horoscope-head>a {display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:5px 7px;color:#a50d30;font-size:.78rem;text-decoration:underline;text-underline-offset:3px}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-sign {
  display:flex;
  min-height:54px;
  gap:1px;
  padding:5px 2px;
  border-color:#d8d4e7;
  border-radius:8px;
  background:#fff;
}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-symbol {font-size:1.32rem;line-height:1.12}
.oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-name {font-size:.75rem;line-height:1.25;color:#182c48}
/* Text on pale surfaces must not fade into the background. */
.oa27-home :is(.oa27-event-cards time,.oa27-notice-list time,.oa27-teaser-copy time,.oa27-daily-weather-source,.oa27-pharmacy-source-status) {color:var(--oa17-readable-muted)}
.oa27-home .oa27-home-summary {color:var(--oa17-readable-muted)}
.oa27-home .oa26-front-three :is(.oa26-authors small,.oa26-story-text .oa27-home-summary) {color:#3c5268}
.oa27-home :is(.oa27-event-cards strong,.oa27-notice-list strong,.oa27-video-copy>strong) {color:#162f49}
/* Keyboard visibility and practical tap targets, while keeping dense news cards. */
.oa27-home :is(a,button):focus-visible {
  outline:3px solid #f5a623;
  outline-offset:3px;
  border-radius:5px;
}
.oa27-home .oa27-info-card-head>a {min-width:44px;min-height:44px}
.oa27-home .oa27-pharmacy-map-btn {min-height:40px}
.oa27-home .oa27-hero-slider .oa-slider-controls button {min-height:44px;min-width:44px}
.oa27-home .oa27-notice-list a {min-height:48px}
.oa27-home .oa26-cinema-arrow {min-width:44px;min-height:44px}
.oa27-home .oa27-section-heading>a span {font-size:1rem}
@media(max-width:980px) {
  .oa27-home .oa27-video-list .oa27-video-photo {height:118px;flex-basis:118px}
  .oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-sign {min-height:51px}
}
@media(max-width:760px) {
  .oa27-home .oa27-video-stream-row {grid-template-columns:minmax(0,1fr)}
  .oa27-home .oa27-video-stream-row>.oa27-video,
  .oa27-home .oa27-video-stream-row>.oa27-streams {height:auto}
  .oa27-home .oa27-video-list .oa27-video-photo {height:136px;flex-basis:136px}
  .oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:540px) {
  .oa27-home .oa27-section-heading,
  .oa27-home .oa26-front-three .oa26-section-head {padding:5px 7px 5px 9px;gap:7px}
  .oa27-home .oa27-section-heading h2,
  .oa27-home .oa26-front-three .oa26-section-head h2 {font-size:.96rem}
  .oa27-home .oa27-video-list {grid-template-columns:repeat(2,minmax(0,1fr))}
  .oa27-home .oa27-video-list .oa27-video-photo {height:125px;flex-basis:125px}
  .oa27-home .oa27-video-list .oa27-video-copy {min-height:76px}
  .oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .oa27-home .oa27-streams--horoscope-only .oa27-stream-horoscope-sign {min-height:54px}
}
@media(max-width:420px) {
  .oa27-home .oa27-video-list {grid-template-columns:minmax(0,1fr)}
  .oa27-home .oa27-video-list .oa27-video-photo {height:160px;flex-basis:160px}
  .oa27-home .oa27-stream-horoscope-head {flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  .oa27-home .oa27-stream-horoscope-sign {transition:none}
}

/* v1.7.4 – taller district cards and colored micro-module headers */
.oa27-home .oa27-district-section.is-district-only .oa27-district-cards{align-items:stretch}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card{min-height:288px}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a,
.oa27-home .oa27-district-section.is-district-only .oa27-district-card-static{height:100%}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card-photo{height:104px;flex:0 0 104px}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a>strong,
.oa27-home .oa27-district-section.is-district-only .oa27-district-card-static>strong{padding:8px 8px 4px;min-height:74px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card .oa27-home-summary{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;padding:0 8px 12px;font-size:.73rem;line-height:1.42;color:#40566c;min-height:74px}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card .oa27-home-summary p{margin:0}

.oa27-home .oa27-daily-weather .oa27-info-card-head,
.oa27-home .oa27-merkez-pharmacy .oa27-info-card-head{margin:-2px -2px 10px;padding:9px 10px;border-radius:10px;background:var(--oa17-heading-navy);box-shadow:0 2px 8px #102b4614}
.oa27-home .oa27-merkez-pharmacy .oa27-info-card-head{background:var(--oa17-heading-red)}
.oa27-home .oa27-info-card-head h2{color:#fff}
.oa27-home .oa27-info-card-head small{color:#e9eef7}
.oa27-home .oa27-info-card-icon{color:#fff}
.oa27-home .oa27-info-card-head>a{background:#fff;color:#102b46;border-color:#edf3fa}

.oa27-home .oa27-sport-side-card h3{margin:-10px -10px 12px;padding:12px 12px 11px;border:0;border-radius:9px 9px 0 0;background:var(--oa17-heading-navy);color:#fff;line-height:1.25}
.oa27-home .oa27-sport-side-card:nth-child(2) h3{background:var(--oa17-heading-red)}

/* Safety net for older/legacy section heads shown on the homepage */
.home .oa26-front-three .oa26-section-head,
.home .oa27-home .oa26-front-three .oa26-section-head{background:var(--oa17-heading-navy)!important;border-radius:9px;padding:5px 8px 5px 12px}
.home .oa26-front-three .oa26-section-head h2,
.home .oa27-home .oa26-front-three .oa26-section-head h2{color:#fff!important}

@media(max-width:980px){
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card{min-height:274px}
}
@media(max-width:760px){
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card{min-height:262px}
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card-photo{height:110px;flex-basis:110px}
}
@media(max-width:540px){
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card{min-height:250px}
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card>a>strong,
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card-static>strong{min-height:68px}
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card .oa27-home-summary{min-height:66px;-webkit-line-clamp:4}
 .oa27-home .oa27-daily-weather .oa27-info-card-head,
 .oa27-home .oa27-merkez-pharmacy .oa27-info-card-head{padding:8px 9px}
 .oa27-home .oa27-sport-side-card h3{padding:10px 10px 9px}
}
@media(max-width:380px){
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card{min-height:236px}
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card-photo{height:92px;flex-basis:92px}
 .oa27-home .oa27-district-section.is-district-only .oa27-district-card .oa27-home-summary{-webkit-line-clamp:3;min-height:52px}
}

/* v1.7.5 – district news detail button */
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a{padding-bottom:10px}
.oa27-home .oa27-district-section.is-district-only .oa27-district-detail-btn{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin:0 8px 0;padding:8px 12px;border-radius:8px;background:var(--oa17-heading-red);color:#fff;font-size:.72rem;font-weight:900;line-height:1.2;text-decoration:none;box-shadow:0 2px 6px rgba(168,11,48,.14)}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a:hover .oa27-district-detail-btn{background:#8f0a28}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a:focus-visible .oa27-district-detail-btn{box-shadow:0 0 0 3px #f5a623}
@media(max-width:540px){.oa27-home .oa27-district-section.is-district-only .oa27-district-detail-btn{font-size:.7rem;padding:7px 10px;margin:0 8px 0}}

/* v1.7.6 – measured contrast corrections for Lighthouse flagged homepage elements.
   The light card surfaces below use #fff, #edf2f6, #f2f7fb or #f9fbfd.
   Foreground choices were checked against these colors at WCAG AA (4.5:1 minimum).
   Scoped to the homepage only; post dates, URLs and content remain unchanged. */
.oa27-home {
  --oa176-ink: #2d455e;
  --oa176-muted: #344c63;
  --oa176-secondary: #41566b;
}
/* Weather: the low temperature <small> was #658094 and failed on #f2f7fb. */
.oa27-home .oa27-daily-weather-day > strong small {
  color: var(--oa176-ink);
  font-size: .77rem;
  font-weight: 850;
  line-height: 1.35;
}
.oa27-home .oa27-daily-weather-day > strong {
  color: #112f49;
  font-size: .83rem;
  font-weight: 900;
}
.oa27-home .oa27-daily-weather-day > span:first-child {
  color: #294259;
  font-size: .73rem;
}
.oa27-home .oa27-daily-weather-main > span,
.oa27-home .oa27-daily-weather-source {
  color: var(--oa176-ink);
  font-size: .75rem;
  line-height: 1.4;
}
.oa27-home .oa27-daily-weather-day {background-color:#f2f7fb}
/* Editorial summaries: #708298 previously failed on sport-list's #edf2f6. */
.oa27-home .oa27-home-summary {color:var(--oa176-muted)}
.oa27-home .oa27-sport-list-copy .oa27-home-summary {
  color:var(--oa176-ink);
  font-size:.79rem;
  line-height:1.4;
  -webkit-line-clamp:2;
}
.oa27-home .oa27-sport-list-copy > strong {color:#142d46;font-size:.78rem;line-height:1.32}
.oa27-home .oa27-sport-list a {min-height:86px}
.oa27-home .oa27-sport-list a > .oa27-sport-list-copy {background:#f8fafc}
/* White-on-dark featured sport images keep their light text; not recolored globally. */
.oa27-home .oa27-sport-lead .oa27-home-summary {color:#f4f8fc}
/* Mini fixtures / PGL scores / table headings / dates: dark legible type on light panels. */
.oa27-home .oa27-sport-side-card :is(p, time) {color:var(--oa176-ink)}
.oa27-home .oa27-sport-side-card time,
.oa27-home .oa27-mini-fixtures time,
.oa27-home .oa27-mini-fixtures.is-results time {
  font-size:.76rem;
  line-height:1.4;
  font-weight:750;
  color:#304b63;
}
.oa27-home .oa27-mini-results-note {
  color:#a10d2b;
  font-size:.78rem;
  line-height:1.38;
  font-weight:850;
}
.oa27-home .oa27-mini-group {color:var(--oa176-ink);font-size:.76rem}
.oa27-home .oa27-mini-teams,
.oa27-home .oa27-mini-fixtures a {color:#18354e}
.oa27-home .oa27-mini-vs {color:var(--oa176-secondary);font-weight:850}
.oa27-home .oa27-sport-embed .oa27-mini-standings thead th {
  color:var(--oa176-ink);
  font-size:.75rem;
}
.oa27-home .oa27-sport-embed .oa27-mini-standings :is(td,tbody th) {color:#19364d}
.oa27-home .oa27-sport-mini-empty {color:var(--oa176-muted);font-size:.78rem}
/* The local-team green row and score badge keep accessible foreground colors. */
.oa27-home .oa27-mini-standings tr.is-local :is(td,th) {color:#066743}
.oa27-home .oa27-mini-fixtures .oa27-mini-score {color:#a10d2b}
/* Other previously pale homepage metadata in light boxes. */
.oa27-home :is(.oa27-notice-list time,.oa27-event-cards time,.oa27-pharmacy-source-status) {
  color:var(--oa176-muted);
  font-size:.75rem;
}
@media(max-width:540px) {
  .oa27-home .oa27-daily-weather-day > strong small {font-size:.8rem;margin-left:3px}
  .oa27-home .oa27-sport-list-copy .oa27-home-summary {font-size:.78rem}
  .oa27-home .oa27-sport-side-card time {font-size:.75rem}
}

/* v1.7.7 – homepage masthead strip & district detail accent only. */
.oa27-home .oa27-page-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 20px;
  min-height:60px;
  margin-bottom:12px;
  padding:12px 18px;
  border:1px solid #102b46;
  border-radius:10px;
  background:#102b46;
  box-shadow:0 3px 10px rgba(16,43,70,.12);
}
.oa27-home .oa27-page-intro h1 {
  color:#fff;
  font-size:clamp(1.02rem,1.3vw,1.22rem);
  font-weight:900;
  line-height:1.3;
}
.oa27-home .oa27-page-intro p {
  color:#e9f2fc;
  font-size:.84rem;
  line-height:1.45;
  margin:0;
}
.oa27-home .oa27-district-section.is-district-only .oa27-district-detail-btn {
  background:#087565;
  color:#fff;
  font-weight:900;
  font-size:.76rem;
  min-height:40px;
  padding:10px 14px;
  border-radius:8px;
  box-shadow:0 2px 7px rgba(8,117,101,.17);
}
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a:hover .oa27-district-detail-btn,
.oa27-home .oa27-district-section.is-district-only .oa27-district-card>a:focus-visible .oa27-district-detail-btn {
  background:#075e53;
  color:#fff;
}
@media(max-width:760px) {
  .oa27-home .oa27-page-intro {align-items:flex-start;flex-direction:column;gap:5px;padding:12px 14px}
  .oa27-home .oa27-page-intro p {font-size:.79rem}
}
@media(max-width:540px) {
  .oa27-home .oa27-district-section.is-district-only .oa27-district-detail-btn {
    font-size:.73rem;
    padding:9px 11px;
    min-height:40px;
  }
}
