/*
Theme Name: Derby Lotto Result
Theme URI: https://derbylottoresult.today
Author: Derby Lotto Result Desk
Author URI: https://derbylottoresult.today
Description: Independent Nigeria results desk for Derby Lotto. Built to publish the daily derby lotto result — winning and machine numbers — with a topic cluster, internal links, and clean technical SEO.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: derby-lotto-result
Tags: news, blog, custom-menu, featured-images, accessibility-ready
*/

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #16241e;
  --ink-soft: #3e5147;
  --paper: #f4efe4;
  --paper-2: #e8e0cf;
  --sheet: #fbf8f1;
  --green: #1b4636;
  --green-deep: #10291f;
  --gold: #a67c3d;
  --gold-soft: #e6d3a4;
  --line: #d5ccb8;
  --focus: #a67c3d;
  --font-display: "Fraunces Variable", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Outfit Variable", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 72rem;
  --shadow: 0 1px 0 rgb(22 36 30 / 0.06);
  --radius: 0.4rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.dlr {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(166 124 61 / 0.18), transparent 8rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 430;
}

.dlr img { max-width: 100%; height: auto; }
.dlr button, .dlr input, .dlr textarea, .dlr select { font: inherit; color: inherit; }
.dlr a { color: var(--green); text-underline-offset: 0.16em; }
.dlr a:hover { color: var(--green-deep); }
.dlr :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--green);
  color: var(--sheet);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(46rem, calc(100% - 2rem)); margin-inline: auto; }

.ribbon {
  margin: 0;
  background: var(--green-deep);
  color: var(--gold-soft);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
}
.ribbon a { color: var(--sheet); }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.85rem;
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  min-height: 2.75rem;
}
.mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: grid;
  grid-template-rows: 1fr 0.7fr 1fr;
  border-radius: 0.2rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(16 41 31 / 0.4);
}
.mark span:nth-child(1),
.mark span:nth-child(3) { background: var(--green); }
.mark span:nth-child(2) { background: var(--gold); }
.brand-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 620;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.find { display: flex; gap: 0.4rem; }
.find input {
  width: 12.5rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  min-height: 2.75rem;
}
.find button,
.btn {
  appearance: none;
  border: 0;
  background: var(--green);
  color: var(--sheet);
  border-radius: var(--radius);
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn.gold { background: var(--gold); color: var(--green-deep); }
.btn.ghost {
  background: transparent;
  color: var(--sheet);
  box-shadow: inset 0 0 0 1px rgb(251 248 241 / 0.4);
}
.find button:hover, .btn:hover { filter: brightness(1.08); }

.nav { border-block: 1px solid var(--line); background: rgb(251 248 241 / 0.7); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: none;
  margin: 0.55rem 0;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  margin: 0;
  padding: 0.2rem 0;
  align-items: center;
}
.nav-links a, .nav-links summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 560;
  cursor: pointer;
}
.nav-links a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); }
.drop { position: relative; }
.drop summary { list-style: none; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: ""; margin-left: 0.4rem; border: 4px solid transparent; border-top-color: var(--gold); transform: translateY(2px); }
.drop ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 16rem;
}
.drop a { width: 100%; }

.stage {
  background: var(--green);
  color: var(--sheet);
  padding: 1.6rem 0 1.8rem;
  box-shadow: inset 0 3px 0 var(--gold);
}
.stage a { color: var(--gold-soft); }
.kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--gold-soft);
}
.eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--green);
}
.find-open { display: flex; margin: 1rem 0; max-width: 28rem; }
.stage h1, .page-hero h1, .doc h1 {
  font-family: var(--font-display);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.stage h1 { font-size: clamp(2.3rem, 5vw, 4rem); color: var(--sheet); max-width: 16ch; }
.lede { font-size: 1.08rem; max-width: 42rem; color: rgb(251 248 241 / 0.88); }
.stage-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: end;
}
.clock-card {
  background: var(--green-deep);
  color: var(--sheet);
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgb(230 211 164 / 0.28);
}
.clock-card p { margin: 0.2rem 0; }
.clock-time {
  font-family: var(--font-display);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
}
.muted { color: var(--ink-soft); }
.stage .muted, .clock-card .fine { color: rgb(251 248 241 / 0.72); font-size: 0.92rem; }

.section { padding: 1.6rem 0; }
.section h2, .prose h2, .doc h2 {
  font-family: var(--font-display);
  font-weight: 620;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin: 1.4rem 0 0.55rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.8rem;
}
.section-head h2 { margin: 0; }

.board { display: grid; gap: 0.55rem; }
.board-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.1fr) auto minmax(0, 1.6fr);
  gap: 0.75rem 1rem;
  align-items: center;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow);
}
.board-row.is-example { background: repeating-linear-gradient(-45deg, var(--sheet), var(--sheet) 8px, #f3ecdc 8px, #f3ecdc 9px); }
.game-name { font-weight: 650; text-decoration: none; color: var(--ink); }
.game-name:hover { color: var(--green); }
.game-time { color: var(--ink-soft); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.balls { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ball-col { display: flex; flex-direction: column; gap: 0.25rem; }
.ball-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 680;
}
.ball {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--sheet);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.ball.machine {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.ball.empty {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.stamp {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--gold-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 0.2rem;
}

.notice {
  border-left: 3px solid var(--gold);
  background: var(--sheet);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.notice strong { font-family: var(--font-display); }

.grid-3, .grid-2, .card-grid { display: grid; gap: 0.8rem; }
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 100%;
}
a.card:hover { border-color: var(--gold); }
.card h3, .prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.25rem 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .meta, .meta { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 680; }

.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.pills a:hover { border-color: var(--gold); color: var(--green); }

.prose p, .prose ul, .prose ol, .prose table, .prose .more-desk { margin: 0.75rem 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.28rem 0; }
.prose h2 { margin-top: 1.8rem; }
.prose .more-desk {
  background: var(--paper-2);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
}
.prose .more-desk ul { margin: 0.3rem 0 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 0.98rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }

.faq details {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0.9rem;
  margin: 0.45rem 0;
}
.faq summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 620; }
.faq details p { margin-top: 0; }

.checker {
  display: grid;
  gap: 0.8rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.checker label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.checker input {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  width: 100%;
}
.match-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.pill { padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--paper-2); font-variant-numeric: tabular-nums; }
.pill.hit { background: var(--green); color: var(--sheet); }

.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--gold); }

.page-hero { padding: 1.4rem 0 0.4rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 20ch; }
.doc { padding-bottom: 2rem; }
.byline { color: var(--ink-soft); margin-top: 0.45rem; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.list a { text-decoration: none; color: inherit; }
.list article {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.list h2 { font-size: 1.35rem; margin: 0.2rem 0; }
.list h2 a { color: inherit; text-decoration: none; }
.list h2 a:hover { color: var(--green); }

.site-footer {
  background: var(--green-deep);
  color: var(--gold-soft);
  padding: 2rem 0 1.2rem;
  margin-top: 1rem;
}
.site-footer a { color: var(--sheet); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 1.2rem; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.legal {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgb(230 211 164 / 0.25);
  font-size: 0.88rem;
  color: rgb(251 248 241 / 0.78);
}
.checker .search-note { grid-column: 1 / -1; }

.nav-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 16rem;
}
.nav-links .sub-menu a { width: 100%; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3, .card-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .drop ul,
  .nav-links .sub-menu { position: absolute; z-index: 5; top: 100%; left: 0; }
  .nav-links > li { position: relative; }
  .nav-links .sub-menu { display: none; }
  .nav-links li:hover > .sub-menu,
  .nav-links li:focus-within > .sub-menu { display: block; }
  .checker { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

@media (max-width: 860px) {
  .stage-grid, .board-row { grid-template-columns: 1fr; }
  .mast .find { display: none; }
  .find-open { display: flex; }
  .nav-btn { display: inline-flex; }
  .nav-links { display: none; padding-bottom: 0.6rem; }
  .nav-toggle:checked ~ .nav-links { display: grid; }
  .drop ul { position: static; }
  .brand-name { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
