/*
 * Naaukri — one stylesheet, no build step, no framework.
 *
 * Two constraints shaped this. Most readers are on a mid-range Android phone
 * on a patchy connection, so there is no web font, no icon set and no
 * JavaScript needed to render anything. And the pages carry advertising, so
 * every ad slot has its height reserved before the ad arrives — otherwise the
 * content jumps as ads load, which readers hate and Core Web Vitals punishes.
 */

:root {
  --navy:        #12385c;
  --navy-dark:   #0d2a45;
  --navy-light:  #1d5286;
  --accent:      #c2410c;
  --green:       #146c43;
  --red:         #b42318;
  --amber:       #b45309;

  --ink:         #1c2430;
  --ink-soft:    #4b5563;
  --ink-faint:   #6b7280;
  --line:        #e2e6ec;
  --line-soft:   #eef1f5;
  --bg:          #f5f7fa;
  --panel:       #ffffff;

  --radius:      10px;
  --shadow:      0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lift: 0 4px 12px rgba(16, 24, 40, .08);

  --wrap:        1180px;
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--line-soft);
  padding: .1em .35em;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; margin: 0 auto; padding: 0 16px; }
.narrow-wide { max-width: 900px; margin: 0 auto; padding: 0 16px; }

.muted { color: var(--ink-faint); }
.lede { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 .5rem; }
.fineprint { font-size: .82rem; color: var(--ink-faint); margin: .6rem 0 0; }

/* ------------------------------------------------------------------ header */

.site-head { background: var(--navy); color: #fff; }

.head-inner {
  display: flex; align-items: center; gap: 20px;
  padding-top: 12px; padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  background: #fff; color: var(--navy);
  border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem;
}

.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-text small { font-weight: 400; font-size: .72rem; opacity: .75; letter-spacing: 0; }

.head-search { display: flex; flex: 1 1 260px; max-width: 460px; }
.head-search input {
  flex: 1; min-width: 0;
  border: 0; border-radius: 7px 0 0 7px;
  padding: .6rem .8rem; font: inherit; font-size: .92rem;
}
.head-search button {
  border: 0; border-radius: 0 7px 7px 0;
  background: var(--accent); color: #fff;
  padding: 0 1rem; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer;
}
.head-search button:hover { background: #a5350a; }

.head-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.head-links a { color: #fff; font-size: .92rem; opacity: .92; }
.head-links .cta {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: .42rem .85rem; border-radius: 7px; opacity: 1; font-weight: 600;
}
.head-links .cta:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }

.inline { display: inline; }

.linkish {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.linkish.ok { color: var(--green); font-weight: 600; }
.linkish.danger { color: var(--red); }
.head-links .linkish { color: #fff; opacity: .92; font-size: .92rem; }

.site-nav { background: var(--navy-dark); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  color: rgba(255, 255, 255, .88);
  padding: .7rem .85rem;
  font-size: .9rem; font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-inner a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-alert { color: #ffd7a8 !important; }

.pill {
  display: inline-block; margin-left: 5px;
  background: rgba(255, 255, 255, .18);
  border-radius: 20px; padding: 0 .45em;
  font-size: .74rem; font-weight: 600;
}

/* ------------------------------------------------------------------- flash */

.flash {
  margin: 14px 0 0; padding: .8rem 1rem;
  border-radius: var(--radius); border-left: 4px solid;
  font-size: .94rem;
}
.flash-ok    { background: #eaf6ee; border-color: var(--green); color: #10492f; }
.flash-error { background: #fdecea; border-color: var(--red);   color: #8a1c14; }

/* -------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 2.4rem 0 2rem;
}
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .4rem; }
.hero-sub { max-width: 640px; margin: 0 auto 1.4rem; opacity: .9; font-size: 1rem; }

.hero-search { display: flex; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-lift); border-radius: 9px; }
.hero-search input {
  flex: 1; min-width: 0; border: 0; border-radius: 9px 0 0 9px;
  padding: .85rem 1rem; font: inherit;
}
.hero-search button {
  border: 0; border-radius: 0 9px 9px 0; background: var(--accent); color: #fff;
  padding: 0 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: #a5350a; }

.hero-stats { display: flex; justify-content: center; gap: 26px; margin: 1.3rem 0 .9rem; flex-wrap: wrap; font-size: .9rem; opacity: .92; }
.hero-stats strong { display: block; font-size: 1.35rem; }

.hero-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.hero-links a {
  color: #fff; font-size: .85rem;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .3rem .75rem; border-radius: 20px;
}
.hero-links a:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.hero-links .strong { background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------ layout */

main { display: block; padding-bottom: 2.5rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 20px; }
.col-main { min-width: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.page-head { margin: 4px 0 18px; }
.page-head h1 { margin-bottom: .2rem; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }

.block { margin: 0 0 30px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.block-head h2 { margin: 0; }
.block-head a { font-size: .88rem; white-space: nowrap; }

/* ------------------------------------------------------------------- cards */

.cards { display: grid; gap: 14px; }
.cards-two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: #cfd6e0; }

.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: .16rem .5rem; border-radius: 5px;
  background: var(--line-soft); color: var(--ink-soft);
  white-space: nowrap;
}
.badge-govt     { background: #e7f0fb; color: #14508f; }
.badge-private  { background: #eef0f3; color: #3f4a5a; }
.badge-type     { background: #f0ebfa; color: #5b3fa8; }
.badge-featured { background: #fff3d6; color: #8a5a00; }
.badge-soon     { background: #fdecea; color: var(--red); }
.badge-closed   { background: #eceff3; color: var(--ink-faint); }
.badge-cat      { background: #e9f5ee; color: var(--green); }
a.badge:hover   { text-decoration: none; filter: brightness(.96); }

.card-title { font-size: 1.08rem; margin: 0 0 3px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--navy-light); }
.card-org { margin: 0 0 6px; font-size: .88rem; color: var(--ink-soft); font-weight: 500; }
.card-summary { margin: 0 0 10px; font-size: .92rem; color: var(--ink-soft); }

.card-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; }
.card-facts div { min-width: 0; }
.card-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.card-facts dd { margin: 0; font-size: .88rem; font-weight: 600; }

.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: .84rem;
}
.card-when { color: var(--ink-faint); }
.card-go { font-weight: 600; white-space: nowrap; }

.card-compact { padding: 13px 15px; }
.card-compact .card-title { font-size: .98rem; }

/* --------------------------------------------------------------- mini list */

.mini { list-style: none; margin: 0; padding: 0; }
.mini li { border-bottom: 1px dashed var(--line); padding: .5rem 0; font-size: .93rem; }
.mini li:last-child { border-bottom: 0; }
.mini a { color: var(--ink); }
.mini a:hover { color: var(--navy-light); }
.mini em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.mini em.soon { color: var(--red); font-weight: 600; }

/* ------------------------------------------------------------------- board */

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 24px 0 30px; }
.board-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.board-col h2 { font-size: 1.05rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.board-col h2 a { color: var(--navy); }
.board-more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; }

/* -------------------------------------------------------------- tag grids */

.tag-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.tag-grid-tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tag-grid a {
  display: flex; justify-content: space-between; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .75rem; font-size: .9rem; color: var(--ink);
}
.tag-grid a:hover { border-color: var(--navy-light); color: var(--navy-light); text-decoration: none; }
.tag-grid span { color: var(--ink-faint); font-size: .8rem; font-weight: 600; }

.about-strip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.about-strip p { color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------------------------------------------ crumbs */

.crumbs { font-size: .82rem; margin: 0 0 12px; color: var(--ink-faint); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-faint); }

/* ----------------------------------------------------------------- filters */

.filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 18px;
}
.filters label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; }
.filters label.grow { flex: 2 1 220px; }
.filters span { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 600; }
.filters select, .filters input {
  font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 7px; padding: .42rem .55rem;
  background: #fff; color: var(--ink);
}
.filters button {
  font: inherit; font-size: .9rem; font-weight: 600;
  border: 0; border-radius: 7px; background: var(--navy); color: #fff;
  padding: .48rem 1rem; cursor: pointer;
}

/* --------------------------------------------------------------- post page */

.post-head { margin-bottom: 18px; }
.post-head h1 { font-size: clamp(1.4rem, 3.4vw, 1.95rem); }
.post-meta { font-size: .84rem; color: var(--ink-faint); margin: .5rem 0 0; }

.notice { padding: .85rem 1rem; border-radius: var(--radius); font-size: .93rem; margin: 0 0 18px; border-left: 4px solid; }
.notice-draft  { background: #fff8e6; border-color: var(--amber); }
.notice-closed { background: #f3f4f6; border-color: var(--ink-faint); color: var(--ink-soft); }

.kv {
  width: 100%; border-collapse: collapse;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0 22px; overflow: hidden; font-size: .93rem;
}
.kv caption {
  text-align: left; font-weight: 700; font-size: 1.05rem;
  padding: .7rem 1rem; background: var(--navy); color: #fff;
}
.kv th, .kv td { padding: .6rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { font-weight: 600; color: var(--ink-soft); width: 42%; background: #fafbfc; }
.kv td { font-weight: 500; }
.kv-note { font-style: italic; color: var(--ink-soft); }
.kv-links td a { font-weight: 700; color: var(--accent); }
.kv-links .row-primary th, .kv-links .row-primary td { background: #fff7ed; }

.apply-top { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }

.btn {
  display: inline-block; font-weight: 600; font-size: .95rem;
  padding: .68rem 1.35rem; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-align: center; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-apply  { background: var(--accent); color: #fff; }
.btn-apply:hover { background: #a5350a; }
.btn-ghost  { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c2bd; }
.btn-danger:hover { background: #fdecea; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }

.prose { font-size: 1rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.22rem; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: #2b3544; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose th { background: #fafbfc; }
.prose blockquote { margin: 1em 0; padding: .6em 1em; border-left: 4px solid var(--line); color: var(--ink-soft); }
.prose .notice { display: block; }
.howto { white-space: normal; }

.links-box { margin: 26px 0; }
.links-box h2 { border-bottom: 2px solid var(--accent); padding-bottom: 6px; }

.share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 22px 0; font-size: .9rem;
}
.share span { color: var(--ink-soft); }
.share a, .share button {
  font: inherit; font-size: .88rem; font-weight: 600;
  padding: .4rem .85rem; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
}
.share-wa { color: #10692f !important; border-color: #bfe3cb !important; }
.share-tg { color: #1c7fbd !important; border-color: #bcdcf0 !important; }
.share a:hover, .share button:hover { text-decoration: none; filter: brightness(.97); }

.related { margin-top: 30px; }

/* --------------------------------------------------------------- subscribe */

.subscribe {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; border-radius: var(--radius);
  padding: 22px 24px; margin: 26px 0;
}
.subscribe h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.subscribe p { margin: 0 0 1rem; opacity: .9; font-size: .93rem; }
.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-form input, .subscribe-form select {
  font: inherit; font-size: .93rem; border: 0; border-radius: 7px; padding: .6rem .8rem;
  flex: 1 1 190px; min-width: 0; color: var(--ink);
}
.subscribe-form button {
  font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 7px; padding: .6rem 1.3rem;
  background: var(--accent); color: #fff; flex: 0 0 auto;
}
.subscribe-form button:hover { background: #a5350a; }
.subscribe .fineprint { color: rgba(255, 255, 255, .75); }

/* ----------------------------------------------------------------- sidebar */

.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 1rem; margin: 0 0 10px; padding-bottom: 7px; border-bottom: 2px solid var(--line); }

.side-alert { background: #fff7ed; border-color: #fbdcc2; }
.side-alert p { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .7rem; }
.side-alert form { display: flex; flex-direction: column; gap: 7px; }
.side-alert input {
  font: inherit; font-size: .9rem; border: 1px solid var(--line); border-radius: 7px; padding: .5rem .7rem;
}
.side-alert button {
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 7px; padding: .55rem; background: var(--accent); color: #fff;
}

.side-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-tags a { display: flex; justify-content: space-between; gap: 8px; padding: .35rem 0; font-size: .89rem; color: var(--ink); border-bottom: 1px dashed var(--line); }
.side-tags a:hover { color: var(--navy-light); }
.side-tags span { color: var(--ink-faint); font-size: .8rem; }

/* -------------------------------------------------------------------- ads */

/*
 * Heights are reserved up front. An ad that arrives late and pushes the page
 * down is the single worst thing you can do to a reader mid-sentence, and it
 * wrecks the layout-shift score that Google measures.
 */
.ad { margin: 22px 0; text-align: center; }
.ad-label {
  display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em;
  color: #a3aab5; margin-bottom: 3px;
}
.ad ins { display: block; }
.ad-leaderboard { min-height: 100px; }
.ad-inline      { min-height: 280px; }
.ad-sidebar     { min-height: 250px; }
.ad-sticky      { position: sticky; top: 16px; min-height: 600px; }

@media (max-width: 900px) {
  .ad-leaderboard { min-height: 100px; }
  .ad-sticky { position: static; min-height: 280px; }
}

/* ------------------------------------------------------------------- pager */

.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 26px 0; justify-content: center; }
.pager a, .pager span {
  min-width: 38px; text-align: center;
  padding: .45rem .7rem; border-radius: 7px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: .9rem; color: var(--ink);
}
.pager a:hover { border-color: var(--navy-light); text-decoration: none; }
.pager .is-now { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.pager .is-off { opacity: .4; }
.pager .gap { border: 0; background: none; min-width: auto; padding: 0 2px; }
.pager-step { font-weight: 600; }

/* ------------------------------------------------------------------- forms */

.form { margin: 0 0 26px; }
.card-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }

fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 22px; padding: 18px 0 0; }
fieldset:first-of-type { border-top: 0; padding-top: 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0 .6rem 0 0; color: var(--navy); }

.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.field > span em { font-weight: 400; font-style: normal; color: var(--ink-faint); }
.field small { display: block; font-size: .8rem; color: var(--ink-faint); margin-top: 4px; }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .7rem; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; line-height: 1.5; font-size: .92rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-light); outline-offset: -1px; border-color: var(--navy-light);
}
.field input:disabled { background: var(--line-soft); color: var(--ink-faint); }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.field-check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.field-check input { width: auto; }
.field-check > span { margin: 0; font-weight: 500; font-size: .93rem; }

.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }

.honey { position: absolute; left: -9999px; }

.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 30px 0; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.4rem; }
.auth-alt { font-size: .88rem; color: var(--ink-soft); margin: 1rem 0 0; }

/* ------------------------------------------------------------------ tables */

.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.table thead th { background: #f8fafc; text-align: left; padding: .6rem .8rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfdfe; }
.table small { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.table .is-editing td { background: #fff8e6; }

.row-actions { white-space: nowrap; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .86rem; }
.stack-form { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.stack-form input, .stack-form select { font: inherit; font-size: .85rem; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .4rem; }

.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .12rem .5rem; border-radius: 5px; }
.status-published { background: #e6f4ea; color: var(--green); }
.status-pending   { background: #fff3d6; color: var(--amber); }
.status-draft     { background: var(--line-soft); color: var(--ink-soft); }
.status-rejected  { background: #fdecea; color: var(--red); }
.status-expired   { background: #eceff3; color: var(--ink-faint); }
.reason { display: block; font-size: .78rem; color: var(--red); margin-top: 3px; }

/* ------------------------------------------------------------------- misc */

.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.empty h2, .empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--ink-soft); margin: 0; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--ink-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.ranked { margin: 0; padding-left: 1.4rem; }
.ranked li { margin-bottom: .45rem; display: flex; justify-content: space-between; gap: 12px; }
.ranked span { color: var(--ink-faint); font-size: .84rem; white-space: nowrap; }

/* ---------------------------------------------------------- admin chrome */

body.app { background: #eef1f5; }

.admin-nav { background: var(--navy-dark); margin-bottom: 22px; }
.admin-nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.admin-nav-inner::-webkit-scrollbar { display: none; }
.admin-nav a { color: rgba(255, 255, 255, .8); padding: .65rem .8rem; font-size: .88rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.admin-nav a.on { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }
.admin-nav-out { margin-left: auto; opacity: .7; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.6rem; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--ink-faint); }
.stat-warn { border-color: #f5c97a; background: #fffaf0; }

.checklist { background: #fffaf0; border: 1px solid #f5d9a8; border-radius: var(--radius); padding: 16px 20px; }
.checklist h2 { font-size: 1.05rem; }
.checklist ul { margin: 0; padding-left: 1.2rem; }
.checklist li { margin-bottom: .45rem; font-size: .92rem; color: var(--ink-soft); }

.messages { display: flex; flex-direction: column; gap: 14px; }
.message { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 14px 18px; }
.message.is-done { opacity: .58; border-left-color: var(--line); }
.message header { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; font-size: .88rem; margin-bottom: .5rem; }
.message p { margin: 0; font-size: .93rem; }

.admin-form textarea { font-family: ui-monospace, Consolas, monospace; font-size: .87rem; }

/* ------------------------------------------------------------- composer */

/*
 * The writing screen. Two columns, and an action bar pinned to the bottom so
 * publishing never needs a scroll — the whole point is that a page goes live
 * without leaving the keyboard.
 */
.compose { padding-bottom: 84px; }

.compose-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: start;
}

.compose-source {
  position: sticky; top: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.compose-source h2 { font-size: 1rem; margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--line); }
.compose-source h3 { font-size: .92rem; margin: 0 0 6px; }
.source-head { font-size: .92rem; margin: 0 0 10px; }
.source-snippet {
  font-size: .85rem; color: var(--ink-soft);
  background: var(--line-soft); border-radius: 7px; padding: 9px 11px; margin: 0 0 12px;
}
.btn-block { display: block; width: 100%; margin-bottom: 10px; }

.paste-box { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.paste-box textarea {
  width: 100%; font: inherit; font-size: .82rem; line-height: 1.45;
  font-family: ui-monospace, Consolas, monospace;
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem;
  resize: vertical; margin-bottom: 8px;
}
.paste-box textarea:focus { outline: 2px solid var(--navy-light); outline-offset: -1px; }

.dropzone {
  display: block; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 9px;
  padding: 16px 14px; margin-bottom: 12px;
  background: #fafbfc; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: #fff7ed; }
.dropzone strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.dropzone span   { display: block; font-size: .8rem; color: var(--ink-faint); line-height: 1.45; }
.dropzone input  { display: none; }
.dropzone em {
  display: block; font-style: normal; font-size: .82rem; font-weight: 600;
  color: var(--ink-faint); margin-top: 8px;
}
.dropzone em.has-files { color: var(--green); }

.or-divider { text-align: center; margin: 0 0 10px; position: relative; }
.or-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line);
}
.or-divider span {
  position: relative; background: var(--panel); padding: 0 10px;
  font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em;
}

.paste-box .field { margin-bottom: 12px; }
.field-check.compact { margin: 4px 0 2px; }
.field-check.compact > span { font-size: .87rem; }

.compose-fields {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.compose-fields .field { margin-bottom: 13px; }
.compose-fields .field-row.tight { gap: 0 12px; }
.compose-fields textarea { font-size: .92rem; }
#body-field { font-size: .95rem; line-height: 1.6; }

#body-count { font-weight: 400; font-style: normal; float: right; font-size: .78rem; }
#body-count.short { color: var(--red); }
#body-count.ok    { color: var(--green); }

.compose-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--panel); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(16, 24, 40, .07);
}
.compose-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap;
}
.compose-status { font-size: .87rem; color: var(--ink-faint); display: flex; align-items: center; gap: 9px; }
.compose-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compose-actions .btn { padding: .5rem 1rem; font-size: .9rem; }

kbd {
  font-family: inherit; font-size: .72rem; opacity: .65;
  border: 1px solid currentColor; border-radius: 4px; padding: 0 .3em; margin-left: .4em;
}

@media (max-width: 1100px) {
  .compose-grid { grid-template-columns: 1fr; }
  .compose-source { position: static; max-height: none; }
}

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

.site-foot { background: var(--navy-dark); color: rgba(255, 255, 255, .8); padding: 34px 0 22px; font-size: .89rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.site-foot h3 { color: #fff; font-size: .95rem; margin-bottom: .7rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: rgba(255, 255, 255, .8); }
.site-foot a:hover { color: #fff; }
.site-foot p { margin: 0 0 .6rem; }
.foot-social { display: flex; gap: 14px; flex-wrap: wrap; }

.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.foot-legal strong { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .head-inner { gap: 12px; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .head-links { gap: 12px; }
  .brand-text { font-size: 1.1rem; }
  .hero { padding: 1.8rem 0 1.6rem; }
  .hero-stats { gap: 18px; }
  .kv th { width: 45%; }
  .card-facts { gap: 6px 14px; }
  .app-head { flex-direction: column; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .table td { border: 0; padding: .3rem .8rem; }
  .table td:empty { display: none; }
}

@media print {
  .site-head, .site-nav, .sidebar, .ad, .share, .subscribe, .site-foot, .pager, .filters { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
