/* ==========================================================================
   Akhbaar — Hindi newspaper front page. Print-like, light, almost no motion.
   ========================================================================== */

:root {
    --paper: #f5f2e8;
    --paper-2: #ece8da;
    --ink: #16150f;
    --ink-2: #45412f;
    --dim: #7b7562;
    --rule: #16150f;
    --hair: #c9c2ac;
    --red: #a81f12;
    --blue: #14417a;
    --wa: #1c7a45;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--paper);
    background-image: radial-gradient(rgba(0, 0, 0, .028) 1px, transparent 1px);
    background-size: 3px 3px;   /* faint newsprint grain */
    color: var(--ink);
    font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--blue); }
.sheet { max-width: 1040px; margin: 0 auto; padding: 0 18px 40px; }

/* --------------------------------------------------------------- masthead */

.masthead { padding: 20px 0 10px; text-align: center; border-bottom: 4px double var(--rule); }
.masthead .kicker { font-size: 11px; font-weight: bold; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); }

.masthead h1 {
    margin: 4px 0;
    font-size: 58px;
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 1.05;
    word-break: break-word;
}

.dateline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 7px 0;
    border-top: 1px solid var(--rule);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.dateline span + span { border-left: 1px solid var(--hair); padding-left: 18px; }

/* nav strip */
.paper-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border-bottom: 2px solid var(--rule); }
.paper-nav a { padding: 8px 20px; border-right: 1px solid var(--hair); color: var(--ink); font-size: 13px; font-weight: bold; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; }
.paper-nav a:last-child { border-right: 0; }
.paper-nav a:hover, .paper-nav a.on { background: var(--ink); color: var(--paper); }

/* ----------------------------------------------------------------- lead */

.lead { display: grid; grid-template-columns: 1fr; gap: 0; padding: 18px 0; border-bottom: 2px solid var(--rule); }

@media (min-width: 860px) { .lead { grid-template-columns: 2fr 1fr; gap: 26px; } }

.lead-main { min-width: 0; }
.lead-tag { display: inline-block; padding: 2px 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: bold; letter-spacing: 1.4px; text-transform: uppercase; }

.lead h2 { margin: 8px 0 4px; font-size: 42px; font-weight: bold; line-height: 1.1; letter-spacing: -.6px; }
.lead .byline { padding-bottom: 10px; border-bottom: 1px solid var(--hair); color: var(--dim); font-size: 12px; font-style: italic; }

/* The result set as a big figure, like a stock number in a paper. */
.figure { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; }
.figure .big { font-size: 76px; font-weight: bold; line-height: 1; letter-spacing: -3px; }
.figure .big.wait { font-size: 34px; letter-spacing: 1px; color: var(--red); }
.figure .meta { color: var(--ink-2); font-size: 14px; }
.figure .meta b { display: block; font-size: 20px; }

/* Drop cap on the opening paragraph. */
.lead-body { margin-top: 12px; column-gap: 24px; font-size: 15px; text-align: justify; }
@media (min-width: 620px) { .lead-body { column-count: 2; } }
.lead-body p { margin-bottom: 10px; }
.lead-body p:first-child::first-letter { float: left; margin: 4px 8px 0 0; font-size: 52px; font-weight: bold; line-height: .8; }

.lead-side { border-left: 1px solid var(--hair); padding-left: 22px; }
@media (max-width: 859px) { .lead-side { margin-top: 18px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--hair); } }

.side-h { padding-bottom: 6px; margin-bottom: 10px; border-bottom: 2px solid var(--rule); font-size: 13px; font-weight: bold; letter-spacing: 1.6px; text-transform: uppercase; }
.side-list { list-style: none; }
.side-list li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px dotted var(--hair); font-size: 14px; }
.side-list li i { flex: 1; border-bottom: 1px dotted var(--hair); }
.side-list b { font-weight: bold; }

/* ---------------------------------------------------------- results table */

.sec { padding: 20px 0; border-bottom: 2px solid var(--rule); }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-h h3 { font-size: 22px; font-weight: bold; letter-spacing: -.3px; white-space: nowrap; }
.sec-h .rule { flex: 1; height: 0; border-top: 3px double var(--rule); }
.sec-h .note { color: var(--dim); font-size: 12px; font-style: italic; white-space: nowrap; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { padding: 7px 10px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); font-size: 11px; font-weight: bold; letter-spacing: 1.2px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tbody tr:nth-child(even) { background: rgba(0, 0, 0, .022); }

.g-name { font-size: 20px; font-weight: 800; letter-spacing: .4px; }
.g-time { color: var(--dim); font-size: 12px; }
.n { font-family: Georgia, serif; font-size: 22px; font-weight: bold; text-align: center; }
.n.today { color: var(--red); }

/* Pending marker — a small printer's mark, not the word on every row. */
.wait-ico { display: inline-flex; color: var(--dim); }
.wait-ico svg { animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 50% { opacity: .35; } }

.tbl .link { color: var(--blue); font-size: 12px; text-decoration: underline; }

/* classified-style form grid */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 22px; }
.form-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--hair); font-size: 14px; }
.form-line .fn { flex: 0 0 auto; font-weight: bold; }
.form-line .fd { flex: 1; border-bottom: 1px dotted var(--hair); }
.form-line .fv { font-family: Georgia, serif; letter-spacing: 2px; }
.form-line .fv em { font-style: normal; color: var(--dim); }

/* --------------------------------------------------------------- notices */

.notice { margin: 14px 0; padding: 10px 14px; border: 2px solid var(--rule); font-size: 14px; font-weight: bold; text-align: center; }
.notice a { color: var(--red); }

.box { padding: 16px 18px; border: 2px solid var(--rule); text-align: center; }
.box h4 { margin-bottom: 4px; font-size: 18px; letter-spacing: .5px; }
.box .rate { margin-bottom: 10px; color: var(--red); font-size: 13px; font-weight: bold; }
.box .note { margin-top: 10px; color: var(--dim); font-size: 12px; }
.btn { display: inline-block; margin-top: 12px; padding: 9px 22px; background: var(--wa); color: #fff; font-size: 14px; font-weight: bold; text-decoration: none; }
.btn.alt { background: var(--blue); margin-left: 6px; }

/* ------------------------------------------------------------------- faq */

.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 0; background: none; border: 0; color: var(--ink); font-family: inherit; font-size: 16px; font-weight: bold; text-align: left; cursor: pointer; }
.faq-ico { font-style: normal; font-size: 18px; }
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* -------------------------------------------------------- article blocks */

.article { margin-bottom: 16px; }
.article h4 { margin-bottom: 6px; font-size: 19px; font-weight: bold; }
.article p { margin-bottom: 9px; font-size: 15px; text-align: justify; }
@media (min-width: 760px) { .article p { column-count: 2; column-gap: 24px; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 14px 0; border: 2px solid var(--rule); }
.step { padding: 14px; border-right: 1px solid var(--hair); text-align: center; }
.step:last-child { border-right: 0; }
.step-ico { display: block; font-size: 22px; }
.step b { display: block; margin: 4px 0 2px; font-size: 15px; }
.step span { color: var(--dim); font-size: 13px; }

/* recent record */
.rec { width: 100%; border-collapse: collapse; font-size: 14px; }
.rec th, .rec td { padding: 7px 9px; border: 1px solid var(--hair); text-align: center; white-space: nowrap; }
.rec thead th { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rt-date { font-weight: bold; }
.rt-dash { color: var(--hair); }

/* --------------------------------------------------------------- footer */

.foot { padding: 18px 0 6px; border-top: 4px double var(--rule); text-align: center; }
.foot .fname { font-size: 20px; font-weight: bold; letter-spacing: 1px; }
.foot p { max-width: 760px; margin: 6px auto; color: var(--ink-2); font-size: 13px; word-break: break-word; }
.foot .legal { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--dim); font-size: 12px; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--wa); border-radius: 50%; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }

/* ------------------------------------------------------------ chart page */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px; border: 2px solid var(--rule); }
.filters select, .filters input { padding: 7px 9px; background: #fff; border: 1px solid var(--rule); color: var(--ink); font-family: inherit; font-size: 14px; }
.btn-sm { display: inline-block; padding: 8px 16px; background: var(--ink); border: 0; color: var(--paper); font-family: inherit; font-size: 13px; font-weight: bold; text-decoration: none; cursor: pointer; }
.btn-sm.ghost { background: none; border: 1px solid var(--rule); color: var(--ink); }

@media (max-width: 640px) {
    .masthead h1 { font-size: 34px; }
    .lead h2 { font-size: 26px; }
    .figure .big { font-size: 52px; }
    .step { border-right: 0; border-bottom: 1px solid var(--hair); }
    .step:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
