/*
 * Yadaj core stylesheet: design tokens, reset, shell, masthead, navigation, footer, advertising and shared components.
 *
 * Developer: MexTech Limited
 * Licenced: Yadaj software is officially licenced and authorized to be used from MexTech Limited
 * Copyright: © 2026 All Rights Reserved, MexTech Limited (https://mextechltd.name.ng)
 */

:root {
    --paper: #f6f3ec;
    --paper-2: #ede8dd;
    --paper-3: #e3dccd;
    --ink: #101116;
    --ink-2: #2b2d35;
    --ink-3: #6f7079;
    --line: #d9d2c3;
    --line-2: #c6bca8;
    --accent: #d0442c;
    --accent-2: #b33622;
    --accent-bg: #c8402a;
    --on-accent: #ffffff;
    --solid: #101116;
    --on-solid: #f6f3ec;
    --on-solid-muted: #b9b2a3;
    --bar: rgba(246, 243, 236, .97);
    --stripe: rgba(16, 17, 22, .045);
    --green: #1e5c4b;
    --serif: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sans: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gutter: 18px;
    --radius: 3px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --paper: #000000;
    --paper-2: #0a0a0c;
    --paper-3: #141416;
    --ink: #ffffff;
    --ink-2: #ffffff;
    --ink-3: #a9a9b2;
    --line: #24242a;
    --line-2: #35353d;
    --accent: #ff7a52;
    --accent-2: #ff9a78;
    --accent-bg: #c9452b;
    --on-accent: #ffffff;
    --solid: #141416;
    --on-solid: #ffffff;
    --on-solid-muted: #a9a9b2;
    --bar: rgba(0, 0, 0, .97);
    --stripe: rgba(255, 255, 255, .06);
    --green: #4fd0a0;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 62px;
}

body.sheet-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    margin: 0;
    color: var(--ink);
}

p {
    margin: 0;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

::selection {
    background: var(--accent-bg);
    color: var(--on-accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    margin-left: auto;
    margin-right: auto;
}

.mono {
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .085em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--solid);
    color: var(--on-solid);
    padding: 12px 18px;
}

.skip:focus {
    left: 8px;
    top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease;
}

.button--ink {
    background: var(--solid);
    color: var(--on-solid);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    transition: border-color .16s ease, color .16s ease;
}

.chip--ghost {
    border-color: var(--line);
    color: var(--ink-3);
}

.chip.is-active {
    border-color: var(--solid);
    background: var(--solid);
    color: var(--on-solid);
}

.rule {
    height: 1px;
    background: var(--line);
    margin-top: 40px;
    margin-bottom: 40px;
}

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 60;
    pointer-events: none;
}

.progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.mast {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.utility {
    display: none;
}

.mast__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 58px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__mono {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--solid);
    color: var(--on-solid);
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1;
}

.brand__stack {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__name {
    font-family: var(--serif);
    font-size: 1.15rem;
    letter-spacing: -.01em;
    color: var(--ink);
}

.mast__nav,
.mast__link sup {
    display: none;
}

.mast__tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px;
    color: var(--ink);
}

.tool__text {
    display: none;
}

.tool--theme svg {
    width: 20px;
    height: 20px;
}

.tool--theme {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tool--theme:hover {
    color: var(--accent);
}

.tool--menu svg {
    width: 22px;
    height: 22px;
}

.sections {
    display: none;
}

.sheet[hidden] {
    display: none;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--paper);
    overflow-y: auto;
    padding: 0 var(--gutter) 40px;
}

.sheet__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    border-bottom: 1px solid var(--line);
}

.sheet__close {
    padding: 8px;
    color: var(--ink);
}

.sheet__search {
    display: flex;
    gap: 8px;
    margin: 22px 0 8px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 10px;
}

.sheet__search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 1.05rem;
    padding: 6px 0;
}

.sheet__search input:focus {
    outline: none;
}

.sheet__nav {
    margin-top: 18px;
}

.sheet__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
}

.sheet__link .mono {
    width: 24px;
    font-size: .625rem;
}

.sheet__link em {
    margin-left: auto;
    font-style: normal;
    font-size: .625rem;
}

.sheet__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 28px;
    font-family: var(--mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bar);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}

.tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 56px;
    font-family: var(--mono);
    font-size: .5625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.tabbar__item.is-active {
    color: var(--ink);
}

.tabbar__item.is-active svg {
    color: var(--accent);
}

.ad {
    margin: 30px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ad__label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.ad__unit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    overflow: hidden;
}

.ad__unit ins {
    width: 100%;
}

.ad--sidebar .ad__unit {
    min-height: 260px;
}

.ad--mobile-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 62px;
    z-index: 44;
    margin: 0;
    padding: 8px 14px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 26px -20px rgba(16, 17, 22, .55);
}

.ad--mobile-sticky .ad__label {
    margin-bottom: 4px;
}

.ad--mobile-sticky .ad__unit {
    min-height: 60px;
}

.foot {
    margin-top: 64px;
    border-top: 1px solid var(--ink);
    padding-top: 30px;
    padding-bottom: 82px;
    background: var(--paper-2);
}

.foot__grid {
    display: grid;
    gap: 30px;
    padding-bottom: 30px;
}

.foot__mark {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
}

.foot__pitch {
    margin-top: 10px;
    max-width: 34ch;
    font-size: .875rem;
    line-height: 1.65;
    color: var(--ink-2);
}

.foot__small {
    margin-top: 12px;
    font-size: .75rem;
    color: var(--ink-3);
}

.foot__small a {
    color: var(--ink-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.foot__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
}

.foot__group {
    min-width: 0;
}

.foot__title {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
}

.foot__group a {
    display: block;
    padding: 5px 0;
    font-size: .875rem;
    color: var(--ink-2);
    transition: color .15s ease;
}

.foot__group a:hover {
    color: var(--accent);
}

.foot__base {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 12px;
    padding-top: 16px;
    padding-bottom: 22px;
    border-top: 1px solid var(--line);
    font-size: .75rem;
    color: var(--ink-3);
    text-align: left;
}

.foot__built {
    order: 1;
}

.foot__built a {
    color: var(--ink-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.foot__copy {
    order: 2;
    text-align: center;
}

.foot__spacer {
    display: none;
}

.notice {
    margin: 14px 0;
    padding: 10px 14px;
    border-left: 2px solid var(--green);
    background: var(--paper-2);
    font-size: .875rem;
}

.notice--err {
    border-color: var(--accent);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--ink);
}

.pager__step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .625rem;
    color: var(--ink);
}

.pager__step.is-disabled {
    color: var(--line-2);
}

.pager__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pager__list a,
.pager__list span {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    font-family: var(--mono);
    font-size: .6875rem;
}

.pager__list .is-current {
    background: var(--solid);
    color: var(--on-solid);
}

.pager__gap {
    color: var(--line-2);
}

.pager__side--end {
    text-align: right;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: .5625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.crumbs a {
    color: var(--ink-3);
}

.crumbs li[aria-current] span {
    color: var(--ink-2);
    display: block;
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crumbs__sep {
    color: var(--line-2);
}

.empty {
    padding: 56px 0;
}

.empty__title {
    font-family: var(--serif);
    font-size: 1.75rem;
    letter-spacing: -.02em;
}

.empty__body {
    margin: 12px 0 20px;
    max-width: 52ch;
    color: var(--ink-3);
}

.empty__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
}

.rail-block {
    margin-bottom: 34px;
}

.rail-block__title {
    font-family: var(--sans);
    font-size: .625rem;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.rail-block__list li a {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: .9375rem;
    line-height: 1.35;
    color: var(--ink);
}

.rail-block__tags li a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: .875rem;
}

@media (min-width: 640px) {
    :root {
        --gutter: 26px;
    }

    body {
        padding-bottom: 0;
    }

    .utility {
        display: block;
        background: var(--solid);
        color: var(--on-solid);
    }

    .utility__in {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        height: 32px;
        font-size: .5625rem;
        letter-spacing: .12em;
    }

    .utility .mono {
        color: var(--on-solid-muted);
    }

    .utility__mid {
        display: none;
    }

    .mast {
        position: static;
    }

    .mast__in {
        height: 72px;
    }

    .brand__mono {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }

    .brand__name {
        font-size: 1.4rem;
    }

    .sections {
        display: block;
        border-top: 1px solid var(--line);
    }

    .sections__in {
        display: flex;
        align-items: center;
        gap: 20px;
        height: 44px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .sections__in::-webkit-scrollbar {
        display: none;
    }

    .sections__home,
    .sections__item,
    .sections__more {
        font-family: var(--mono);
        font-size: .625rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--ink-2);
    }

    .sections__item,
    .sections__home {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
    }

    .sections__num {
        font-size: .5rem;
        color: var(--accent);
    }

    .sections__home.is-active {
        color: var(--accent);
    }

    .sections__more {
        margin-left: auto;
        color: var(--ink-3);
    }

    .tabbar {
        display: none;
    }

    .ad--mobile-sticky {
        display: none;
    }

    .foot__grid {
        grid-template-columns: 1.1fr 1.4fr;
        gap: 40px;
    }

    .foot__nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .foot__base {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        text-align: left;
    }

    .foot__built {
        order: 1;
    }

    .foot__copy {
        order: 2;
        text-align: center;
    }

    .foot__spacer {
        display: block;
        order: 3;
    }

    .empty {
        padding: 72px 0;
    }
}

@media (min-width: 1024px) {
    :root {
        --gutter: 32px;
    }

    .wrap {
        max-width: 1180px;
    }

    .mast__in {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 32px;
        height: 92px;
    }

    .brand__mono {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .brand__name {
        font-size: 1.6rem;
    }

    .mast__nav {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 26px;
    }

    .mast__link {
        font-size: .875rem;
        color: var(--ink-2);
        display: inline-flex;
        align-items: baseline;
        gap: 5px;
        padding-bottom: 3px;
        border-bottom: 1px solid transparent;
        transition: color .16s ease, border-color .16s ease;
    }

    .mast__link sup {
        display: inline;
        font-family: var(--mono);
        font-size: .5rem;
        color: var(--accent);
    }

    .mast__link.is-active {
        color: var(--ink);
        border-color: var(--ink);
    }

    .tool {
        padding: 9px 12px;
        border: 1px solid var(--line-2);
    }

    .tool__text {
        display: inline;
        font-family: var(--mono);
        font-size: .625rem;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .tool--menu {
        display: none;
    }

    .sheet {
        display: none !important;
    }

    .utility__mid {
        display: block;
    }

    .utility__in {
        height: 34px;
    }

    .sections__in {
        gap: 26px;
        height: 46px;
        overflow: visible;
    }

    .sections__item,
    .sections__home {
        font-size: .6875rem;
    }

    .foot {
        margin-top: 84px;
        padding-top: 40px;
    }

    .foot__grid {
        grid-template-columns: 1.1fr 1.6fr;
        gap: 56px;
        padding-bottom: 44px;
    }

    .foot__mark {
        font-size: 2rem;
    }

    .ad--mobile-sticky {
        display: none;
    }

    .pager {
        margin-top: 40px;
    }
}

@media (min-width: 1500px) {
    :root {
        --gutter: 48px;
    }

    .wrap {
        max-width: 1420px;
    }

    .mast__in {
        height: 104px;
        gap: 44px;
    }

    .brand__name {
        font-size: 1.85rem;
    }

    .sections__in {
        gap: 34px;
    }
}

@media (hover: hover) {
    .button:hover {
        background: var(--solid);
        color: var(--on-solid);
    }

    .button--ink:hover {
        background: var(--accent-bg);
        border-color: var(--accent-bg);
        color: var(--on-accent);
    }

    .chip:hover {
        border-color: var(--ink);
        color: var(--ink);
    }

    .mast__link:hover,
    .sections__item:hover,
    .foot__col a:hover,
    .index__link:hover .index__title,
    .row__link:hover .row__title,
    .archive__link:hover .archive__name,
    .related__link:hover .related__name,
    .consulted__item a:hover .consulted__name,
    .rail-block__list a:hover {
        color: var(--accent);
    }

    .card__figure:hover img,
    .row__link:hover .row__thumb img,
    .archive__link:hover .archive__thumb img,
    .related__link:hover .related__thumb img {
        transform: scale(1.04);
    }

    .atlas__cell:hover {
        background: var(--paper-2);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
