/* ==========================================================================
   TN Jobs Guide — site design system
   Clean & trustworthy: deep indigo brand, saffron accent, soft surfaces.
   Loaded after Bootstrap 5.3; restyles Bootstrap + legacy page classes so
   pages that have not been redesigned yet still match.
   ========================================================================== */

:root {
  --brand: #1f1b84;
  --brand-700: #18156a;
  --brand-600: #2c27a8;
  --brand-100: #e4e3ff;
  --brand-50: #f1f0ff;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --accent-50: #fff7e6;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8f0;
  --line-2: #eef0f5;
  --bg: #f5f6fb;
  --surface: #ffffff;

  --ok: #15803d;
  --ok-50: #ecfdf3;
  --warn: #b45309;
  --warn-50: #fff7ed;
  --bad: #c81e1e;
  --bad-50: #fef2f2;

  --wa: #16a34a;
  --tg: #0284c7;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  /* Bootstrap theme bridge */
  --bs-primary: var(--brand);
  --bs-primary-rgb: 31, 27, 132;
  --bs-link-color: var(--brand-600);
  --bs-link-color-rgb: 44, 39, 168;
  --bs-link-hover-color: var(--brand);
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
a { color: var(--brand-600); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-600) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1200px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(31, 27, 132, .3);
}
.brand__logo { width: 50px; height: 50px; border-radius: 50%; object-fit: contain; flex: none; display: block; }
.site-footer .brand__logo { width: 52px; height: 52px; background: #fff; }
.drawer .brand__logo { width: 38px; height: 38px; }
@media (max-width: 575.98px) { .brand__logo { width: 44px; height: 44px; } }
@media (max-width: 380px) { .brand__logo { width: 40px; height: 40px; } .brand__text small { display: none; } }
.brand__text small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; line-height: 1.1; }
.brand__text b { display: block; line-height: 1.1; }

.nav-desk { display: none; align-items: center; gap: 2px; margin-left: auto; }
.nav-desk > a, .nav-dd > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-desk > a:hover, .nav-dd > button:hover, .nav-dd:focus-within > button, .nav-desk > a.is-active { background: var(--brand-50); color: var(--brand); }
.nav-dd { position: relative; }
.nav-dd > button .chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-dd__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 280px; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.nav-dd__panel--wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.nav-dd:hover .nav-dd__panel, .nav-dd:focus-within .nav-dd__panel, .nav-dd.is-open .nav-dd__panel { opacity: 1; visibility: visible; transform: none; }
.nav-dd:hover > button .chev, .nav-dd.is-open > button .chev { transform: rotate(180deg); }
.nav-dd__panel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.nav-dd__panel a:hover { background: var(--brand-50); color: var(--brand); }
.nav-dd__panel .dd-all { font-weight: 700; color: var(--brand); grid-column: 1 / -1; border-bottom: 1px solid var(--line-2); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.nav-dd__panel .dd-group { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 8px 10px 2px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.btn-alerts {
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: .9rem;
  background: var(--brand); color: #fff; text-decoration: none; white-space: nowrap;
}
.btn-alerts:hover { background: var(--brand-700); color: #fff; }

/* Header search */
.header-search { display: none; padding: 0 0 12px; }
.header-search.is-open { display: block; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field input {
  width: 100%; height: 48px; padding: 0 112px 0 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 1rem; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-field input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-50); }
.search-field > .ico { position: absolute; left: 14px; color: var(--muted); width: 20px; height: 20px; }
.search-field button {
  position: absolute; right: 5px; height: 38px; padding: 0 16px; border-radius: 9px; border: 0;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .92rem;
}
.search-field button:hover { background: var(--brand-700); }

@media (min-width: 1100px) {
  .nav-desk { display: flex; }
  .header-actions { margin-left: 8px; }
  .btn-alerts { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Drawer (mobile menu) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1040; opacity: 0; visibility: hidden; transition: .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); z-index: 1050; background: var(--surface);
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { overflow-y: auto; padding: 10px 12px 24px; flex: 1; overscroll-behavior: contain; }
.drawer__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 14px 6px 6px; }
.drawer a.drawer-link, .drawer summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.drawer details[open] summary .chev { transform: rotate(180deg); }
.drawer a.drawer-link:hover, .drawer summary:hover { background: var(--brand-50); color: var(--brand); }
.drawer .ico-bubble { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.drawer details .sub { padding: 2px 0 8px 56px; display: grid; gap: 2px; }
.drawer details .sub a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.drawer details .sub a:hover { background: var(--bg); color: var(--brand); }
.drawer details .sub a.all { font-weight: 700; color: var(--brand); }
.drawer__social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 0; background: none;
  color: var(--muted); font-size: .68rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.bottom-nav .ico { width: 22px; height: 22px; }
.bottom-nav a.is-active, .bottom-nav a:hover, .bottom-nav button:hover { color: var(--brand); }
.bottom-nav a.is-active .ico { color: var(--brand); }
.bottom-nav .bn-alert .ico { color: var(--tg); }
body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { .bottom-nav { display: none; } body { padding-bottom: 0; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700); --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand-100); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: var(--brand-100); --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand); --bs-btn-active-border-color: var(--brand-100); }
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 11px;
  font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.b-btn:active { transform: translateY(1px); }
.b-btn--primary { background: var(--brand); color: #fff; }
.b-btn--primary:hover { background: var(--brand-700); color: #fff; }
.b-btn--ghost { background: var(--surface); color: var(--brand); border-color: var(--brand-100); }
.b-btn--ghost:hover { background: var(--brand-50); color: var(--brand); }
.b-btn--wa { background: var(--wa); color: #fff; }
.b-btn--wa:hover { background: #15803d; color: #fff; }
.b-btn--tg { background: var(--tg); color: #fff; }
.b-btn--tg:hover { background: #0369a1; color: #fff; }
.b-btn--accent { background: var(--accent); color: #1f1300; }
.b-btn--accent:hover { background: var(--accent-600); color: #1f1300; }
.b-btn--sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.b-btn--block { width: 100%; }

/* ---------- Chips / pills / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--brand-50); color: var(--brand); text-decoration: none; white-space: nowrap; border: 1px solid transparent;
}
a.chip:hover { background: var(--brand-100); color: var(--brand); }
.chip--neutral { background: var(--line-2); color: var(--ink-2); }
.chip--feat { background: var(--accent-50); color: var(--warn); }
.chip--lg { padding: 8px 14px; font-size: .88rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill--bad { background: var(--bad-50); color: var(--bad); }
.pill--warn { background: var(--warn-50); color: var(--warn); }
.pill--ok { background: var(--ok-50); color: var(--ok); }
.pill--muted { background: var(--line-2); color: var(--muted); }
.pill--today { background: var(--bad); color: #fff; }
.pill--today::before { background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill--today::before { animation: none; } * { scroll-behavior: auto !important; } }

.badge { border-radius: 999px; font-weight: 600; padding: .4em .75em; }
.badge.bg-primary { background: var(--brand-50) !important; color: var(--brand) !important; }
.badge.bg-secondary { background: var(--line-2) !important; color: var(--ink-2) !important; }
.badge.bg-success { background: var(--ok-50) !important; color: var(--ok) !important; }
.badge.bg-danger { background: var(--bad-50) !important; color: var(--bad) !important; }
.badge.bg-warning { background: var(--warn-50) !important; color: var(--warn) !important; }
.badge.bg-info { background: #e0f2fe !important; color: #075985 !important; }
.badge-featured { background: var(--accent) !important; color: #1f1300 !important; }

/* ---------- Surfaces ---------- */
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section { margin-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.section-head h2 { font-size: 1.12rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .ico-bubble { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ico-bubble--bad { background: var(--bad-50); color: var(--bad); }
.ico-bubble--ok { background: var(--ok-50); color: var(--ok); }
.ico-bubble--brand { background: var(--brand-50); color: var(--brand); }
.ico-bubble--accent { background: var(--accent-50); color: var(--accent-600); }
.see-all { font-size: .88rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line-2); }

/* ---------- Job list item ---------- */
.job-list { list-style: none; margin: 0; padding: 0; }
.job-item { position: relative; display: flex; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); transition: background .12s; }
.job-item:hover { background: #fafbff; }
.job-item__body { min-width: 0; flex: 1; }
.job-item__title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 6px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-item__title a { color: inherit; text-decoration: none; }
.job-item__title a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.job-item__title a:hover { color: var(--brand); }
.job-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); }
.job-item__meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.job-item__meta .ico { width: 15px; height: 15px; }
.job-item__meta > span.q { max-width: 100%; flex: 0 1 auto; }
.job-item__meta .q > .q { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; flex: none; text-align: right; }
.job-item__date { font-size: .78rem; color: var(--muted); }
.job-item__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; position: relative; z-index: 1; }
.job-item--card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.job-item--card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); background: var(--surface); }
.job-item--card .job-item__desc { font-size: .9rem; color: var(--ink-2); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) {
  .job-item { flex-direction: column; gap: 8px; padding: 14px 16px; }
  .job-item__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
}
/* Narrow columns (sidebars) always stack the job row */
.side-card .job-item { flex-direction: column; gap: 8px; padding: 12px 16px; }
.side-card .job-item__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
.side-card .job-item__title { font-size: .94rem; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .ico { width: 40px; height: 40px; color: var(--brand-100); margin-bottom: 8px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: .86rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.tab .count { font-size: .72rem; background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab[aria-selected="true"] .count { background: rgba(255, 255, 255, .2); color: #fff; }
.tab-panel[hidden] { display: none; }

/* ---------- Side cards ---------- */
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.side-card h2, .side-card h3 { font-size: 1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.side-card h2 .ico, .side-card h3 .ico { color: var(--brand); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.link-list a:hover { background: var(--brand-50); color: var(--brand); }
.link-list .n { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 8px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 992px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 16px); } }

/* ---------- Page hero / breadcrumb banner ---------- */
.page-hero, .breadcrumb-banner {
  background: radial-gradient(1200px 400px at 85% -20%, rgba(124, 116, 255, .35), transparent 60%), linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 55%, var(--brand-600) 100%) !important;
  color: #fff; padding: 28px 0 30px !important; position: relative; overflow: hidden;
}
.page-hero h1, .breadcrumb-banner h1 { color: #fff !important; font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin: 10px 0 6px !important; }
.page-hero p, .breadcrumb-banner p { color: rgba(255, 255, 255, .85) !important; max-width: 760px; margin: 0; }
.breadcrumb { margin: 0; font-size: .84rem; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); flex-wrap: nowrap; overflow: hidden; }
.breadcrumb-item { white-space: nowrap; }
.breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.page-hero .breadcrumb a, .breadcrumb-banner .breadcrumb a { color: rgba(255, 255, 255, .85) !important; text-decoration: none; }
.page-hero .breadcrumb a:hover, .breadcrumb-banner .breadcrumb a:hover { color: #fff !important; }
.page-hero .breadcrumb-item.active, .breadcrumb-banner .breadcrumb-item.active { color: rgba(255, 255, 255, .7) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.breadcrumb-banner + .container.my-5, .breadcrumb-banner + .container.my-4 { margin-top: 24px !important; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-stat { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; color: #fff; }

/* ---------- Home hero ---------- */
.home-hero {
  background: radial-gradient(900px 380px at 90% -10%, rgba(124, 116, 255, .45), transparent 60%), radial-gradient(700px 300px at -10% 120%, rgba(245, 158, 11, .18), transparent 60%), linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 60%, var(--brand-600) 100%);
  color: #fff; padding: 36px 0 84px; position: relative;
}
.home-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.6vw, 2.6rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.home-hero h1 .hl { color: #ffd27a; }
.home-hero .lead { color: rgba(255, 255, 255, .85); font-size: clamp(.95rem, 2.2vw, 1.08rem); margin: 0 0 20px; max-width: 640px; }
.home-hero .search-field input { height: 56px; border: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 1.02rem; padding-right: 120px; }
.home-hero .search-field button { height: 46px; right: 5px; padding: 0 20px; background: var(--accent); color: #1f1300; }
.home-hero .search-field button:hover { background: var(--accent-600); }
.hero-quick { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hero-quick::-webkit-scrollbar { display: none; }
.hero-quick a { flex: none; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; }
.hero-quick a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; max-width: 560px; }
.home-stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 12px; }
.home-stat b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: #fff; }
.home-stat span { font-size: .76rem; color: rgba(255, 255, 255, .78); font-weight: 600; }

/* Tool tiles overlap the hero */
.tools-row { margin-top: -56px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .tools-row { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.tool {
  display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: var(--ink); }
.tool__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tool__ico .ico { width: 22px; height: 22px; }
.tool b { display: block; font-size: .92rem; line-height: 1.2; }
.tool small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
@media (max-width: 420px) { .tool small { display: none; } .tool { padding: 12px; gap: 10px; } .tool__ico { width: 38px; height: 38px; } }
.t-green { background: var(--ok-50); color: var(--ok); }
.t-sky { background: #e0f2fe; color: #0369a1; }
.t-amber { background: var(--accent-50); color: var(--accent-600); }
.t-indigo { background: var(--brand-50); color: var(--brand); }

/* Alert strip */
.alert-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; padding: 14px 18px; margin: 16px 0 20px;
  background: linear-gradient(90deg, #f0f9ff, #f0fdf4); border: 1px solid #d5ecf7; border-radius: var(--radius);
}
.alert-strip__text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.alert-strip__text b { display: block; font-size: 1rem; }
.alert-strip__text small { color: var(--muted); }
.alert-strip__btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 575.98px) { .alert-strip__btns { width: 100%; } .alert-strip__btns .b-btn { flex: 1; } }

/* Browse grid */
.browse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .browse-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .browse-grid { grid-template-columns: repeat(4, 1fr); } }
.browse-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); transition: .15s; min-width: 0; }
.browse-tile:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); }
.browse-tile__emoji { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.browse-tile b { font-size: .92rem; display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.browse-tile small { font-size: .75rem; color: var(--muted); }

/* Steps & FAQ */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 4px 18px 18px; }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { display: flex; gap: 12px; }
.step__n { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 800; display: grid; place-items: center; flex: none; }
.step h3 { font-size: .98rem; margin: 4px 0 4px; }
.step p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.faq { padding: 0 18px 12px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; position: relative; font-size: .97rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 14px; color: var(--ink-2); font-size: .94rem; }

/* Read-more (SEO copy stays in DOM) */
.readmore { position: relative; max-height: 220px; overflow: hidden; }
.readmore::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--surface)); }
.readmore.is-open { max-height: none; }
.readmore.is-open::after { display: none; }
.prose-sm { font-size: .94rem; color: var(--ink-2); }
.prose-sm h2 { font-size: 1.2rem; margin: 0 0 10px; }
.prose-sm h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.prose-sm a { font-weight: 600; text-decoration: none; }

/* ---------- Job page ---------- */
.job-head { padding: 20px; }
@media (min-width: 768px) { .job-head { padding: 26px 28px; } }
.job-head h1 { font-size: clamp(1.35rem, 3.4vw, 1.95rem); margin: 10px 0 14px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fact small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fact small .ico { width: 14px; height: 14px; }
.fact b { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.fact--bad { background: var(--bad-50); border-color: #fbd5d5; }
.fact--bad b { color: var(--bad); }
.fact--warn { background: var(--warn-50); border-color: #fde3c4; }
.fact--warn b { color: var(--warn); }
.fact--ok { background: var(--ok-50); border-color: #cdeedb; }
.fact--ok b { color: var(--ok); }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.kv dt { color: var(--muted); font-weight: 600; font-size: .88rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn2 { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; color: #fff; text-decoration: none; border: 0; cursor: pointer; }
.share-btn2:hover { color: #fff; filter: brightness(.92); }
.share-btn2 .ico { width: 20px; height: 20px; }
.s-wa { background: #16a34a; } .s-tg { background: #0284c7; } .s-fb { background: #1877f2; } .s-x { background: #0f172a; } .s-in { background: #0a66c2; } .s-copy { background: var(--line-2); color: var(--ink-2) !important; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.notice--bad { background: var(--bad-50); border: 1px solid #fbd5d5; color: #7f1d1d; }
.notice b { display: block; }
.notice a { font-weight: 700; color: inherit; }

/* Rich job description */
.prose { font-size: 1rem; color: var(--ink-2); overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.4em 0 .5em; }
.prose h1 { font-size: 1.4rem; } .prose h2 { font-size: 1.25rem; } .prose h3 { font-size: 1.1rem; } .prose h4 { font-size: 1rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose a { font-weight: 600; word-break: break-word; }
.prose img { border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; min-width: 110px; }
.prose table th, .prose table tr:first-child td strong { background: var(--brand-50); color: var(--brand); }
.prose table tr:nth-child(even) td { background: #fafbfe; }
.prose blockquote { border-left: 4px solid var(--brand-100); padding: 4px 0 4px 14px; color: var(--ink-2); margin: 0 0 1em; }
.prose > *:first-child { margin-top: 0; }

/* Ad slots: reserve space while loading (avoids layout shift), collapse when Google has no ad */
.ad-slot { margin: 18px 0; text-align: center; overflow: hidden; position: relative; }
.ad-label { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #a3a9bd; margin-bottom: 4px; }
.ad-slot ins.adsbygoogle:not([data-ad-status]) { min-height: 100px; background: repeating-linear-gradient(45deg, #fafbfe, #fafbfe 10px, #f5f6fb 10px, #f5f6fb 20px); border-radius: 10px; }
.ad-slot--rect ins.adsbygoogle:not([data-ad-status]) { min-height: 250px; }
.ad-slot--tall ins.adsbygoogle:not([data-ad-status]) { min-height: 600px; }
@media (max-width: 991.98px) { .ad-slot--tall ins.adsbygoogle:not([data-ad-status]) { min-height: 250px; } }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.job-list > .ad-slot { list-style: none; margin: 0; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.side-card + .ad-slot, .sticky-side > .ad-slot { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0b3d; color: rgba(255, 255, 255, .72); margin-top: 40px; padding: 44px 0 20px; font-size: .92rem; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-about { grid-column: auto; } }
.footer-about .brand { color: #fff; margin-bottom: 12px; }
.footer-about .brand small { color: rgba(255, 255, 255, .6); }
.footer-about p { line-height: 1.7; margin: 0 0 14px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: rgba(255, 255, 255, .18); }
.footer-bottom2 { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.footer-bottom2 a { color: rgba(255, 255, 255, .6); }

/* Back to top + floating alert (desktop) */
.to-top {
  position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1010; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1100px) { .to-top { bottom: 24px; right: 24px; } }

/* ==========================================================================
   Legacy bridge — restyles markup on pages not yet redesigned
   ========================================================================== */
main .card { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-sm) !important; overflow: hidden; }
main .card > .card-header, main .card-header[class*="bg-"] { background: var(--surface) !important; color: var(--ink) !important; border-bottom: 1px solid var(--line-2) !important; padding: 14px 16px; font-weight: 700; }
main .card-header *:not(.badge):not(.btn):not(.btn *) { color: var(--ink) !important; }
main .card-header .bi { color: var(--brand) !important; }
main .card-header .btn, main .card-header a.text-white { color: var(--brand) !important; }
main .job-card { transition: border-color .15s, box-shadow .15s; }
main .job-card:hover { border-color: var(--brand-100) !important; box-shadow: var(--shadow) !important; }
main .job-card .card-title a { color: var(--ink); font-weight: 700; }
main .job-card .card-title a:hover { color: var(--brand); }
main .category-card { transition: transform .15s, border-color .15s, box-shadow .15s !important; }
main .category-card:hover { transform: translateY(-2px); border-color: var(--brand-100) !important; box-shadow: var(--shadow) !important; }
.category-tag { display: inline-block; padding: 5px 12px; margin: 4px 4px 4px 0; background: var(--brand-50); border-radius: 999px; color: var(--brand); font-size: .85rem; font-weight: 600; text-decoration: none; }
.category-tag:hover { background: var(--brand-100); color: var(--brand); }
main .table { --bs-table-striped-bg: #fafbfe; --bs-table-hover-bg: var(--brand-50); font-size: .93rem; }
main .table > thead th, main .table-light th { background: var(--bg) !important; color: var(--muted) !important; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-width: 1px; }
.table-responsive { -webkit-overflow-scrolling: touch; }
main .alert { border-radius: var(--radius); }
main .list-group-item { border-color: var(--line-2); }
main .list-group-item-action:hover { background: var(--brand-50); }
main .accordion { --bs-accordion-border-color: var(--line-2); --bs-accordion-active-bg: var(--brand-50); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--brand-50); --bs-accordion-border-radius: 12px; }
main .form-control, main .form-select { border-radius: 10px; border-color: var(--line); min-height: 44px; }
main .form-control:focus, main .form-select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-50); }
.bg-primary:not(.badge) { background-color: var(--brand) !important; }
.text-primary { color: var(--brand-600) !important; }

/* Pagination */
.pagination { --bs-pagination-color: var(--ink-2); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-hover-bg: var(--brand-50); --bs-pagination-hover-color: var(--brand); --bs-pagination-border-color: var(--line); --bs-pagination-focus-box-shadow: 0 0 0 3px var(--brand-50); flex-wrap: wrap; gap: 4px; justify-content: center; margin: 20px 0 0; }
.page-link { border-radius: 10px !important; min-width: 42px; min-height: 42px; display: grid; place-items: center; font-weight: 600; }
nav[role="navigation"] .small.text-muted { text-align: center; }

@media print { .site-header, .bottom-nav, .drawer, .site-footer, .to-top, .ad-slot, .tools-row, .alert-strip { display: none !important; } body { padding: 0; background: #fff; } }

/* ---------- Hub pages (Latest / Tamil Nadu) ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; }
.filter-bar::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.fchip:hover { border-color: var(--brand-100); color: var(--brand); }
.fchip .n { font-size: .72rem; background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.fchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fchip.is-on .n { background: rgba(255, 255, 255, .2); color: #fff; }
.list-date { list-style: none; padding: 10px 18px; background: #fafbfe; border-top: 1px solid var(--line-2); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; flex-wrap: wrap; }
.list-head b { font-size: 1rem; }
.list-head small { color: var(--muted); }
.hub-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; max-width: 720px; }
@media (min-width: 768px) { .hub-stats { grid-template-columns: repeat(4, 1fr); } }
.hub-stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 12px; color: #fff; text-decoration: none; }
a.hub-stat:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hub-stat b { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.hub-stat span { font-size: .76rem; color: rgba(255, 255, 255, .8); font-weight: 600; }
.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 18px 18px; }
@media (min-width: 768px) { .dept-grid { grid-template-columns: repeat(3, 1fr); } }
.dept { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); min-width: 0; transition: .15s; }
.dept:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); }
.dept b { font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.dept .n { flex: none; font-size: .75rem; font-weight: 800; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 2px 9px; }
.dept.is-empty { color: var(--muted); background: #fbfbfd; }
.dept.is-empty .n { color: var(--muted); background: var(--line-2); }
.district-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.district-cloud a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: .84rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line-2); }
.district-cloud a:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.district-cloud a .n { font-size: .7rem; color: var(--brand); font-weight: 800; }

/* ---------- Mega menu (header) ---------- */
.site-header__bar { position: relative; }
.nav-dd.is-mega { position: static; }
.nav-dd.is-mega > button { position: relative; }
.nav-dd.is-mega > button::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 18px; } /* hover bridge */
.nav-dd__panel.mega { left: 0; right: 0; top: calc(100% - 2px); min-width: 0; max-height: min(78vh, 640px); overflow: auto; display: grid; gap: 6px 22px; padding: 18px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-dd__panel.mega--central { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; left: auto; right: 220px; }
.nav-dd__panel.mega--browse { grid-template-columns: 1fr 2fr; }
.nav-dd__panel.mega--exams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav-dd__panel.mega--states { grid-template-columns: 1fr; }
.mega-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; min-height: 28px; }
.mega-title a { font-size: .74rem; letter-spacing: 0; text-transform: none; color: var(--brand); font-weight: 700; padding: 0 !important; display: inline-flex !important; gap: 4px; }
.mega-title a:hover { background: none !important; text-decoration: underline; }
.mega-list, .mega-grid { display: grid; gap: 1px; }
.mega-col--split .mega-list { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.mega-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; }
@media (max-width: 1280px) { .mega-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mega-list a, .mega-grid a { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px !important; font-size: .88rem !important; }
.mega a .n { flex: none; font-size: .7rem; font-weight: 800; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 1px 7px; }
.mega a.is-zero { color: #9aa3b8 !important; }
.mega a.is-more { color: var(--brand) !important; font-weight: 600; }
.drawer details .sub .sub-title { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 2px; }
.drawer details .sub a { display: flex; justify-content: space-between; align-items: center; }
.drawer details .sub a .n { font-size: .7rem; font-weight: 800; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 1px 7px; }
.drawer details .sub a.is-zero { color: #9aa3b8; }

/* ---------- Tools widget: vibrant + animated ---------- */
.tools-row { gap: 12px; }
.tool { position: relative; overflow: hidden; isolation: isolate; border: 0 !important; color: #fff !important; padding: 16px; min-height: 96px; border-radius: 18px;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .45); background-size: 160% 160%; background-position: 0% 50%;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-position .6s ease;
  animation: toolIn .6s cubic-bezier(.2,.8,.2,1) both; }
.tool:nth-child(1) { background-image: linear-gradient(135deg, #16a34a 0%, #0d9488 55%, #0891b2 100%); animation-delay: .05s; }
.tool:nth-child(2) { background-image: linear-gradient(135deg, #0284c7 0%, #4f46e5 60%, #7c3aed 100%); animation-delay: .12s; }
.tool:nth-child(3) { background-image: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ef4444 100%); animation-delay: .19s; }
.tool:nth-child(4) { background-image: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%); animation-delay: .26s; }
.tool::before { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s ease; }
.tool::after { /* soft glow blob */
  content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: rgba(255,255,255,.18); z-index: -1; transition: transform .4s ease; }
.tool:hover, .tool:focus-visible { transform: translateY(-4px) scale(1.015); box-shadow: 0 18px 36px -12px rgba(15, 23, 42, .55); background-position: 100% 50%; color: #fff !important; }
.tool:hover::before, .tool:focus-visible::before { transform: translateX(120%); }
.tool:hover::after { transform: scale(1.25); }
.tool .tool__ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.22) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: toolFloat 3.2s ease-in-out infinite; }
.tool:nth-child(2) .tool__ico { animation-delay: .4s; } .tool:nth-child(3) .tool__ico { animation-delay: .8s; } .tool:nth-child(4) .tool__ico { animation-delay: 1.2s; }
.tool .tool__ico .ico { width: 24px; height: 24px; }
.tool b { color: #fff; font-size: .98rem; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.tool small { color: rgba(255,255,255,.88) !important; }
.tool > span:last-child::after { content: "Try now →"; display: block; margin-top: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; color: #fff; opacity: .9; transition: transform .2s; }
.tool:hover > span:last-child::after { transform: translateX(3px); }
.tools-row .tool > span:first-child + span { min-width: 0; }
.tool-badge { position: absolute; top: 10px; right: 10px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.95); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
@keyframes toolIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toolFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 420px) { .tool { min-height: 88px; padding: 12px; gap: 10px; } .tool .tool__ico { width: 40px; height: 40px; } .tool b { font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) { .tool, .tool .tool__ico { animation: none !important; } .tool::before { display: none; } .tool:hover { transform: none; } }

/* ---------- Tool pages ---------- */
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tool-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: .8rem; font-weight: 700; }
.tool-chips .ico { width: 15px; height: 15px; }
.tool-page { --tool-grad: linear-gradient(135deg, #2c27a8, #6d64ff); --tool-accent: var(--brand); margin-top: 24px !important; }
.tool-page--eligibility { --tool-grad: linear-gradient(135deg, #16a34a, #0d9488 55%, #0891b2); --tool-accent: #0d9488; }
.tool-page--photo { --tool-grad: linear-gradient(135deg, #0284c7, #4f46e5 60%, #7c3aed); --tool-accent: #4f46e5; }
.tool-page--age { --tool-grad: linear-gradient(135deg, #f59e0b, #f97316 55%, #ef4444); --tool-accent: #ea580c; }
.tool-page--cutoff { --tool-grad: linear-gradient(135deg, #7c3aed, #c026d3 55%, #db2777); --tool-accent: #a21caf; }
.tool-page--qualification { --tool-grad: linear-gradient(135deg, #0891b2, #2563eb 60%, #4f46e5); --tool-accent: #2563eb; }

/* Tool card: accent bar, pop-in, comfortable inputs (16px = no iOS zoom) */
.tool-page .tool-card { border: 0 !important; border-radius: 20px !important; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35) !important; position: relative; animation: toolIn .5s cubic-bezier(.2,.8,.2,1) both; }
.tool-page .tool-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tool-grad); border-radius: 20px 20px 0 0; }
.tool-page .tool-card > .card-body { padding: 26px !important; }
@media (max-width: 575.98px) { .tool-page .tool-card > .card-body { padding: 18px !important; } }
.tool-page .tool-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem !important; }
.tool-page .tool-card h2::before { content: ""; width: 10px; height: 26px; border-radius: 4px; background: var(--tool-grad); flex: none; }
.tool-page .form-control, .tool-page .form-select, .tool-page .custom-select { min-height: 48px; font-size: 16px; border-radius: 12px; border-color: var(--line); background-color: #fbfbfe; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.tool-page .form-control:focus, .tool-page .form-select:focus { background-color: #fff; border-color: var(--tool-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tool-accent) 18%, transparent); }
.tool-page label, .tool-page .form-label { font-weight: 700; font-size: .88rem; color: var(--ink-2); margin-bottom: 6px; }
.tool-page .tool-card .btn-primary, .tool-page .tool-card .btn-success, .tool-page .tool-card button[type="submit"] {
  background: var(--tool-grad) !important; border: 0 !important; color: #fff !important; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 20px -10px var(--tool-accent); background-size: 160% 160% !important; transition: transform .15s, box-shadow .2s, background-position .5s; }
.tool-page .tool-card .btn-primary:hover, .tool-page .tool-card button[type="submit"]:hover { transform: translateY(-2px); background-position: 100% 50% !important; box-shadow: 0 14px 26px -12px var(--tool-accent); }
.tool-page .tool-card .btn-primary:active, .tool-page .tool-card button[type="submit"]:active { transform: translateY(0); }
@media (max-width: 575.98px) { .tool-page .tool-card button[type="submit"], .tool-page .tool-card .btn-primary { width: 100%; } }
.tool-page .tool-card .btn-outline-secondary, .tool-page .tool-card .btn-secondary { border-radius: 12px; min-height: 44px; }

/* Results: animate in when the script reveals them */
.tool-page [id$="Result"], .tool-page [id$="Results"], .tool-page #resultContent, .tool-page #ageResultContent { animation: resultIn .45s cubic-bezier(.2,.8,.2,1) both; }
.tool-page [id$="Result"] .alert, .tool-page [id$="Results"] .alert { border-radius: 14px; border: 0; box-shadow: inset 4px 0 0 var(--tool-accent); background: color-mix(in srgb, var(--tool-accent) 7%, #fff); color: var(--ink); }
@keyframes resultIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

/* Info cards inside the tool area (e.g. size tables) */
.tool-page .tool-card .card { border-radius: 14px !important; }
.tool-page .table-responsive { border-radius: 12px; }

/* SEO article: calm, collapsed, after the tool */
.tool-page .tool-seo { border-radius: 18px !important; }
.tool-page .tool-seo .readmore { max-height: 260px; }
.tool-page .tool-seo .readmore.is-open { max-height: none; }
.tool-page .tool-seo h2 { font-size: 1.15rem !important; }

/* "More free tools" grid */
.tools-row--all { margin-top: 0 !important; grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 768px) { .tools-row--all { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1100px) { .tools-row--all { grid-template-columns: repeat(5, 1fr) !important; } }
.tool:nth-child(5) { background-image: linear-gradient(135deg, #0891b2 0%, #2563eb 60%, #4f46e5 100%); animation-delay: .33s; }
.tool.is-current { outline: 3px solid #fff; outline-offset: -3px; box-shadow: 0 0 0 3px var(--tool-accent, var(--brand)), 0 10px 24px -10px rgba(15,23,42,.45); }
@media (prefers-reduced-motion: reduce) { .tool-page .tool-card, .tool-page [id$="Result"], .tool-page [id$="Results"] { animation: none !important; } }
@media (max-width: 575.98px) {
  .tool-page .tool-card button[type="submit"], .tool-page .tool-card .btn-primary { margin-bottom: 10px; }
  .tool-page .tool-card .btn-outline-secondary, .tool-page .tool-card .btn-secondary, .tool-page .tool-card button[type="reset"] { width: 100%; margin-left: 0 !important; }
}
.tool-page .tool-card .row > [class*="col-"] > h5, .tool-page .tool-card .row > [class*="col-"] > h6 { margin-top: 6px; }

/* ==========================================================================
   Free tools v2 (config/tools.php) — tile colours, hub, widget, tool UI
   ========================================================================== */
.tool.tool--blue    { background-image: linear-gradient(135deg, #0284c7 0%, #4f46e5 60%, #7c3aed 100%); }
.tool.tool--teal    { background-image: linear-gradient(135deg, #0d9488 0%, #0891b2 55%, #2563eb 100%); }
.tool.tool--rose    { background-image: linear-gradient(135deg, #e11d48 0%, #db2777 55%, #9333ea 100%); }
.tool.tool--green   { background-image: linear-gradient(135deg, #16a34a 0%, #0d9488 55%, #0891b2 100%); }
.tool.tool--amber   { background-image: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ef4444 100%); }
.tool.tool--indigo  { background-image: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #a21caf 100%); }
.tool.tool--orange  { background-image: linear-gradient(135deg, #ea580c 0%, #dc2626 60%, #be123c 100%); }
.tool.tool--violet  { background-image: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%); }
.tool.tool--cyan    { background-image: linear-gradient(135deg, #0891b2 0%, #2563eb 60%, #4f46e5 100%); }
.tool.tool--emerald { background-image: linear-gradient(135deg, #059669 0%, #16a34a 50%, #65a30d 100%); }
.tool.tool--slate   { background-image: linear-gradient(135deg, #334155 0%, #4f46e5 70%, #6366f1 100%); }
.tool { background-size: 180% 180%; }

.tool-page--blue    { --tool-grad: linear-gradient(135deg, #0284c7, #4f46e5 60%, #7c3aed); --tool-accent: #4f46e5; }
.tool-page--teal    { --tool-grad: linear-gradient(135deg, #0d9488, #0891b2 55%, #2563eb); --tool-accent: #0891b2; }
.tool-page--rose    { --tool-grad: linear-gradient(135deg, #e11d48, #db2777 55%, #9333ea); --tool-accent: #db2777; }
.tool-page--green   { --tool-grad: linear-gradient(135deg, #16a34a, #0d9488 55%, #0891b2); --tool-accent: #0d9488; }
.tool-page--amber   { --tool-grad: linear-gradient(135deg, #f59e0b, #f97316 55%, #ef4444); --tool-accent: #ea580c; }
.tool-page--indigo  { --tool-grad: linear-gradient(135deg, #4338ca, #6d28d9 55%, #a21caf); --tool-accent: #6d28d9; }
.tool-page--orange  { --tool-grad: linear-gradient(135deg, #ea580c, #dc2626 60%, #be123c); --tool-accent: #dc2626; }
.tool-page--violet  { --tool-grad: linear-gradient(135deg, #7c3aed, #c026d3 55%, #db2777); --tool-accent: #a21caf; }
.tool-page--cyan    { --tool-grad: linear-gradient(135deg, #0891b2, #2563eb 60%, #4f46e5); --tool-accent: #2563eb; }
.tool-page--emerald { --tool-grad: linear-gradient(135deg, #059669, #16a34a 50%, #65a30d); --tool-accent: #059669; }
.tool-page--slate   { --tool-grad: linear-gradient(135deg, #334155, #4f46e5 70%, #6366f1); --tool-accent: #4f46e5; }

/* Hub */
.tools-hub { margin-top: 22px; }
.tools-hub__group { margin-bottom: 22px; }
.tools-hub__group > h2 { font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.tools-hub__group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tools-row--hub { margin-top: 0 !important; grid-template-columns: 1fr !important; }
@media (min-width: 576px) { .tools-row--hub { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 992px) { .tools-row--hub { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 768px) { .tools-row--all { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 1100px) { .tools-row--all { grid-template-columns: repeat(4, 1fr) !important; } }
.tool .tool-badge { color: var(--ink); }

/* Home: 8 tiles (7 tools + All tools); on phones show 5 + All */
.tools-row--home .tool--all { background-image: linear-gradient(135deg, #0f172a, #1f1b84 60%, #4338ca); }
@media (max-width: 767.98px) { .tools-row--home .tool.is-extra { display: none; } }

/* Sidebar widget */
.tools-widget h2 { display: flex; align-items: center; gap: 8px; }
.tw-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.tw-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink); transition: background .15s, transform .15s; }
.tw-list a:hover { background: var(--brand-50); transform: translateX(2px); }
.tw-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; background-size: 160% 160%; }
.tw-ico.tool--blue { background-image: linear-gradient(135deg, #0284c7, #7c3aed); } .tw-ico.tool--teal { background-image: linear-gradient(135deg, #0d9488, #2563eb); }
.tw-ico.tool--rose { background-image: linear-gradient(135deg, #e11d48, #9333ea); } .tw-ico.tool--green { background-image: linear-gradient(135deg, #16a34a, #0891b2); }
.tw-ico.tool--amber { background-image: linear-gradient(135deg, #f59e0b, #ef4444); } .tw-ico.tool--indigo { background-image: linear-gradient(135deg, #4338ca, #a21caf); }
.tw-ico.tool--orange { background-image: linear-gradient(135deg, #ea580c, #be123c); } .tw-ico.tool--violet { background-image: linear-gradient(135deg, #7c3aed, #db2777); }
.tw-ico.tool--cyan { background-image: linear-gradient(135deg, #0891b2, #4f46e5); } .tw-ico.tool--emerald { background-image: linear-gradient(135deg, #059669, #65a30d); }
.tw-ico.tool--slate { background-image: linear-gradient(135deg, #334155, #6366f1); }
.tw-ico .ico { width: 20px; height: 20px; }
.tw-txt { min-width: 0; flex: 1; }
.tw-txt b { display: block; font-size: .9rem; line-height: 1.25; }
.tw-txt small { display: block; color: var(--muted); font-size: .76rem; }
.tw-new { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: #dcfce7; color: #166534; padding: 2px 7px; border-radius: 999px; }
.tool-aside { position: sticky; top: 84px; }
@media (max-width: 991.98px) { .tool-aside { position: static; } }

/* Tool UI */
.tool-page { margin-top: 22px !important; margin-bottom: 30px; }
.tool-page .tool-card h2 { margin-bottom: 14px; }
.tool-steps { list-style: none; counter-reset: ts; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0 0 18px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tool-steps li { counter-increment: ts; display: inline-flex; align-items: center; gap: 6px; }
.tool-steps li::before { content: counter(ts); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tool-grad); color: #fff; font-size: .72rem; }
.seg { display: flex; gap: 4px; padding: 4px; background: #f1f3f9; border-radius: 12px; }
.seg--wrap { flex-wrap: wrap; }
.seg button { flex: 1 1 auto; min-height: 40px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; font-size: .86rem; color: var(--ink-2); padding: 0 10px; transition: background .15s, color .15s, box-shadow .15s; }
.seg button[aria-checked="true"] { background: #fff; color: var(--tool-accent); box-shadow: 0 2px 8px -2px rgba(15,23,42,.2); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.spec-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 6px; }
@media (min-width: 576px) { .spec-row { grid-template-columns: repeat(4, 1fr); } .spec-row--3 { grid-template-columns: repeat(3, 1fr); } .spec-row--2 { grid-template-columns: repeat(2, 1fr); } }
.spec-row--3, .spec-row--2 { grid-template-columns: 1fr; }
@media (min-width: 576px) { .spec-row--3 { grid-template-columns: repeat(3, 1fr); } .spec-row--2 { grid-template-columns: repeat(2, 1fr); } }
.spec-row label { font-size: .78rem !important; }
.spec-note { font-size: .86rem; color: var(--ink-2); background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0 14px; }
.dropzone { border: 2px dashed color-mix(in srgb, var(--tool-accent) 45%, var(--line)); background: color-mix(in srgb, var(--tool-accent) 5%, #fff); border-radius: 18px; padding: 26px 16px; text-align: center; cursor: pointer; display: grid; justify-items: center; gap: 6px; transition: background .2s, border-color .2s, transform .2s; }
.dropzone:hover, .dropzone.is-drag { background: color-mix(in srgb, var(--tool-accent) 11%, #fff); border-color: var(--tool-accent); transform: translateY(-1px); }
.dropzone > .ico { width: 44px; height: 44px; color: var(--tool-accent); animation: dzBob 2.4s ease-in-out infinite; }
.dropzone b { font-size: 1.05rem; }
.dropzone small { color: var(--muted); }
.dropzone__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
@keyframes dzBob { 50% { transform: translateY(-5px); } }
.editor { display: grid; gap: 16px; margin-top: 4px; }
@media (min-width: 768px) { .editor { grid-template-columns: auto 1fr; align-items: start; } .editor .tool-go { grid-column: 1 / -1; } }
.editor__stage { display: grid; justify-items: center; gap: 6px; }
.editor__stage canvas { max-width: 100%; border-radius: 8px; touch-action: none; cursor: grab; background: repeating-conic-gradient(#eef0f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; box-shadow: 0 0 0 1px var(--line), 0 12px 28px -14px rgba(15,23,42,.45); }
.editor__stage canvas:active { cursor: grabbing; }
.editor__hint { color: var(--muted); font-size: .76rem; display: inline-flex; gap: 4px; align-items: center; }
.editor__controls { display: grid; gap: 6px; min-width: 0; }
.editor__controls input[type=range] { width: 100%; accent-color: var(--tool-accent); }
.editor__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: #fbfbfe; }
.opt__check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; margin: 0; }
.opt__check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--tool-accent); flex: none; }
.stamp-fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 576px) { .stamp-fields { grid-template-columns: 1.4fr 1fr; } }
.tool-go { width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.tool-go.is-busy { opacity: .75; pointer-events: none; }
.tool-go.is-busy .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.tool-msg--ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.tool-msg--err { background: var(--bad-50); color: var(--bad); border: 1px solid #fecaca; }
.tool-msg--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.result { margin-top: 16px; display: grid; gap: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--line); animation: toolIn .45s cubic-bezier(.2,.8,.2,1) both; }
@media (min-width: 576px) { .result { grid-template-columns: auto 1fr; align-items: center; } }
.result__img { display: grid; place-items: center; }
.result__img img { max-width: 220px; max-height: 260px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -12px rgba(15,23,42,.5); background: #fff; }
.result__info { display: grid; gap: 10px; }
.result__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rchip { padding: 4px 10px; border-radius: 999px; background: #f1f5f9; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.rchip.is-ok { background: #dcfce7; color: #166534; }
.rchip.is-bad { background: var(--bad-50); color: var(--bad); }
.file-list, .page-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.file-row, .page-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; animation: toolIn .35s both; }
.file-row img, .page-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: #f1f5f9; }
.file-row__txt { flex: 1; min-width: 0; }
.file-row__txt b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row__txt small { color: var(--muted); font-size: .78rem; }
.file-row__act, .page-item__act { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.page-item__n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--tool-grad); color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.kb-picks { margin-top: 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: #f1f3f9; border-radius: 12px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; min-height: 42px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; font-size: .86rem; color: var(--ink-2); padding: 0 12px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--tool-accent); box-shadow: 0 2px 8px -2px rgba(15,23,42,.2); }
.rows { display: grid; gap: 8px; margin-bottom: 10px; }
.calc-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.calc-row > span { color: var(--muted); font-weight: 700; }
.big-result { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--tool-grad); color: #fff; display: grid; gap: 2px; text-align: center; box-shadow: 0 16px 30px -16px var(--tool-accent); }
.big-result span { font-size: .8rem; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.big-result b { font-size: 2.3rem; line-height: 1.1; }
.big-result small { opacity: .9; }
.big-result.pop b { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.08); } }
.pay-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .pay-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.pay-total { padding: 18px; border-radius: 16px; background: var(--tool-grad); color: #fff; display: grid; gap: 4px; box-shadow: 0 16px 30px -16px var(--tool-accent); }
.pay-total span { font-size: .8rem; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.pay-total b { font-size: 1.9rem; line-height: 1.1; }
.pay-total small { opacity: .9; }
.pay-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pay-table tr.is-total td { font-weight: 800; border-top: 2px solid var(--line); }
.tt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.tt-stats div { text-align: center; padding: 10px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }
.tt-stats b { display: block; font-size: 1.5rem; color: var(--tool-accent); font-variant-numeric: tabular-nums; }
.tt-stats span { font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.tt-text { max-height: 190px; overflow-y: auto; padding: 14px; border-radius: 14px; background: #fbfbfe; border: 1px solid var(--line); font-size: 1.05rem; line-height: 1.9; margin-bottom: 10px; user-select: none; position: relative; }
.tt-text[lang="ta"] { font-size: 1.1rem; line-height: 2.1; }
.tt-text span { border-radius: 4px; padding: 1px 1px; transition: background .1s; }
.tt-text span.ok { color: #15803d; }
.tt-text span.bad { color: var(--bad); background: var(--bad-50); text-decoration: underline wavy; }
.tt-text span.cur { background: color-mix(in srgb, var(--tool-accent) 18%, transparent); outline: 2px solid color-mix(in srgb, var(--tool-accent) 50%, transparent); }
.tt-input { font-size: 17px !important; min-height: 110px !important; }
.tt-final { display: grid; gap: 10px; }
@media (min-width: 576px) { .tt-final { grid-template-columns: auto 1fr; align-items: center; } .tt-final .spec-note { grid-column: 1 / -1; } }
.tt-final__big { width: 120px; height: 120px; border-radius: 50%; background: var(--tool-grad); color: #fff; display: grid; place-content: center; text-align: center; margin: 0 auto; }
.tt-final__big b { font-size: 2.4rem; line-height: 1; } .tt-final__big span { font-size: .72rem; font-weight: 700; }
.tt-final ul { margin: 0; padding-left: 18px; }
.cd-hero { text-align: center; padding: 20px 16px; border-radius: 18px; background: var(--tool-grad); color: #fff; display: grid; gap: 8px; box-shadow: 0 18px 34px -18px var(--tool-accent); margin-bottom: 14px; }
.cd-hero__label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.cd-hero__name { color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.cd-hero__name:hover { color: #fff; text-decoration: underline; }
.cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 4px auto; width: 100%; }
.cd-clock div { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 8px 4px; }
.cd-clock b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-clock span { font-size: .7rem; opacity: .85; }
.cd-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.cd-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cd-item__txt { min-width: 0; flex: 1; }
.cd-item__txt a, .cd-item__txt b { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; font-size: .92rem; }
.cd-item__txt small { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; }
.cd-days { width: 58px; height: 58px; border-radius: 14px; flex: none; display: grid; place-content: center; text-align: center; background: #f1f5f9; color: var(--ink-2); }
.cd-days b { font-size: 1.25rem; line-height: 1; } .cd-days span { font-size: .66rem; font-weight: 700; }
.cd-days.is-near { background: #fff7ed; color: #c2410c; } .cd-days.is-soon { background: var(--bad-50); color: var(--bad); }
.cd-mine { display: grid; gap: 8px; } .cd-mine__title { font-weight: 800; font-size: .86rem; margin-top: 4px; }
.cd-add { margin: 10px 0; } .cd-add summary { cursor: pointer; font-weight: 700; color: var(--tool-accent); }
.tool-about h2 { font-size: 1.15rem; } .tool-about h3 { font-size: 1rem; margin-top: 16px; }
.tool-about, .tool-page .section { padding: 20px 22px; }
.spec-table td, .spec-table th { font-size: .86rem; vertical-align: middle; }

/* Job page: "resize photo for this exam" */
.job-tool-cta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #fff !important; background-image: linear-gradient(135deg, #0284c7, #4f46e5 60%, #7c3aed); background-size: 180% 180%; transition: background-position .4s, transform .2s; margin: 12px 0; }
.job-tool-cta:hover { background-position: 100% 50%; transform: translateY(-2px); }
.job-tool-cta .ico { width: 26px; height: 26px; flex: none; }
.job-tool-cta b { display: block; } .job-tool-cta small { opacity: .9; }

/* Header "Tools" mega panel */
.mega--tools .tool-link { display: flex !important; align-items: center; gap: 10px; }
.mega--tools .tool-link .tw-ico { width: 30px; height: 30px; border-radius: 9px; }
.mega--tools .tool-link .tw-ico .ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .dropzone > .ico, .result, .file-row, .page-item { animation: none !important; } }
.nav-dd__panel.mega--tools { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; left: auto; right: 0; }
.nav-dd__panel.mega--tools .mega-list a { justify-content: flex-start; }
.tools-row--home .tool:nth-child(n) { animation-delay: calc(var(--i, 0) * .07s); }
@media (max-width: 575.98px) {
  .tools-row--home .tool, .tools-row--all .tool { padding-top: 28px; align-items: flex-start; }
  .tools-row--home .tool-badge, .tools-row--all .tool-badge { top: 7px; right: 8px; font-size: .56rem; padding: 1px 7px; }
}
@media (min-width: 576px) { .tool > span:last-child { padding-right: 44px; } }
.tw-list a.is-current { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); font-weight: 700; }
/* Footer safety notice */
.footer-notice { display: flex; gap: 14px; align-items: flex-start; margin: 26px 0 6px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid #f59e0b; }
.footer-notice__ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(245,158,11,.18); color: #fbbf24; }
.footer-notice__ico .ico { width: 22px; height: 22px; }
.footer-notice h2 { font-size: .95rem !important; margin: 2px 0 8px !important; color: #fff; text-transform: none !important; letter-spacing: 0 !important; }
.footer-notice p { font-size: .84rem; line-height: 1.6; margin: 0 0 6px; opacity: .88; }
.footer-notice p:last-child { margin-bottom: 0; }
.footer-notice strong { color: #fff; }
.footer-notice a { text-decoration: underline; }
@media (max-width: 575.98px) { .footer-notice { flex-direction: column; gap: 10px; padding: 14px; } }
.tools-widget a, .tools-widget a * { text-decoration: none !important; }
.tools-widget .tw-txt b { color: var(--ink); }
/* In-page camera (TJ.camera) */
body.cam-open { overflow: hidden; }
.cam { position: fixed; inset: 0; z-index: 2000; background: rgba(2,6,23,.82); display: grid; place-items: center; padding: 12px; animation: toolIn .25s both; }
.cam__box { width: min(560px, 100%); max-height: 100%; overflow: auto; background: #0b1020; color: #fff; border-radius: 20px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.cam__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.cam__x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; line-height: 1; }
.cam__view { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto; width: 100%; }
@media (min-width: 768px) { .cam__view { aspect-ratio: 4 / 3; } }
.cam__view video, .cam__view canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam__view video.is-mirror { transform: scaleX(-1); }
.cam__guide { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cam__guide i { display: block; height: 78%; aspect-ratio: 3 / 4; max-width: 86%; border: 2px dashed rgba(255,255,255,.75); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.cam__guide--face i { border-radius: 46% / 40%; height: 70%; }
.cam__view canvas:not([hidden]) ~ .cam__guide { display: none; }
.cam__count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,.6); animation: pop .9s ease infinite; }
.cam__msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; margin: 0; gap: 12px; font-size: .95rem; background: rgba(0,0,0,.6); }
.cam__msg[hidden] { display: none; }
.cam__tip { margin: 0; font-size: .82rem; opacity: .8; text-align: center; }
.cam__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 6px; }
.cam__bar--done { justify-content: center; }
.cam__bar[hidden] { display: none; }
.cam__btn { min-width: 84px; min-height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .85rem; }
.cam__btn[aria-pressed="true"] { background: #f59e0b; border-color: #f59e0b; color: #111; }
.cam__btn[hidden] { visibility: hidden; display: inline-block; }
.cam__shoot { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 4px; flex: none; }
.cam__shoot span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .12s; }
.cam__shoot:active span { transform: scale(.88); }

/* ===== Footer v2 ===== */
.site-footer { background: radial-gradient(1200px 400px at 10% -10%, #2a2391 0%, transparent 60%), radial-gradient(900px 400px at 100% 0%, #1d1670 0%, transparent 55%), #0b0a33; padding: 0 0 18px; margin-top: 56px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #f59e0b, #ec4899 35%, #6366f1 70%, #06b6d4); }
.f-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 20px; margin: 0 0 10px; transform: translateY(-28px); border-radius: 20px; background: linear-gradient(135deg, #ffffff, #eef2ff); color: var(--ink); box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .55); }
.f-cta__txt { display: flex; align-items: center; gap: 14px; min-width: 0; }
.f-cta__ico { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); animation: ringBell 3s ease-in-out infinite; }
.f-cta__ico .ico { width: 24px; height: 24px; }
@keyframes ringBell { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(12deg); } 88% { transform: rotate(-10deg); } 92% { transform: rotate(6deg); } }
.f-cta b { display: block; font-size: 1.05rem; } .f-cta small { color: var(--muted); font-size: .86rem; }
.f-cta__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.f-cta__btns .b-btn { min-height: 46px; padding: 0 18px; }
@media (max-width: 575.98px) { .f-cta { padding: 16px; } .f-cta__btns { width: 100%; } .f-cta__btns .b-btn { flex: 1; justify-content: center; } }
.site-footer .container > .f-grid:first-child { padding-top: 44px; }

.f-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 768px) { .f-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 28px; } .f-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .f-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } .f-brand { grid-column: auto; } }
.f-brand { margin-bottom: 18px; }
.f-brand .brand { color: #fff; margin-bottom: 12px; }
.f-brand .brand small { color: rgba(255, 255, 255, .6); }
.f-brand p { line-height: 1.7; margin: 0 0 14px; color: rgba(255, 255, 255, .72); }
.f-brand strong { color: #fff; }
.f-trust { display: grid; gap: 8px; margin: 0 0 16px !important; }
.f-trust li { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-size: .86rem; color: rgba(255, 255, 255, .82); }
.f-trust .ico { width: 16px; height: 16px; color: #34d399; flex: none; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; }
.f-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff !important; border: 1px solid rgba(255, 255, 255, .1); transition: transform .2s, background .2s; }
.f-social a:hover { transform: translateY(-3px); }
.f-social--whatsapp:hover { background: #16a34a; } .f-social--telegram:hover { background: #0284c7; } .f-social--facebook:hover { background: #1877f2; }
.f-social--youtube:hover { background: #dc2626; } .f-social--instagram:hover { background: #c026d3; } .f-social--twitter-x:hover { background: #000; } .f-social--linkedin:hover { background: #0a66c2; }
.f-phone { margin-top: 12px !important; display: flex; gap: 6px; align-items: center; }

.f-col { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.f-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 2px; cursor: pointer; color: #fff; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.f-col summary::-webkit-details-marker { display: none; }
.f-col summary span { display: inline-flex; align-items: center; gap: 8px; }
.f-col summary span .ico { width: 16px; height: 16px; color: #a5b4fc; }
.f-col__chev { width: 16px; height: 16px; transition: transform .2s; opacity: .7; }
.f-col[open] .f-col__chev { transform: rotate(180deg); }
.f-col ul { padding: 0 0 14px !important; display: grid; gap: 2px; }
.f-col li { margin: 0 !important; }
.f-col a { display: inline-block; padding: 5px 0; color: rgba(255, 255, 255, .72); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .15s, background-size .25s, transform .15s; }
.f-col a:hover { color: #fff; background-size: 100% 1px; transform: translateX(2px); }
@media (min-width: 768px) {
  .f-col { border: 0; }
  .f-col summary { pointer-events: none; padding: 0 0 12px; }
  .f-col__chev { display: none; }
}

.f-searches { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 10px; }
@media (min-width: 768px) { .f-searches { grid-template-columns: auto 1fr; align-items: start; gap: 16px; } .f-searches > b { padding-top: 5px; } }
.f-searches > b { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.f-searches div { display: flex; flex-wrap: wrap; gap: 6px; }
.f-searches a { padding: 5px 11px; border-radius: 999px; font-size: .8rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78); transition: background .15s, color .15s, border-color .15s; }
.f-searches a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }

.site-footer .footer-notice { margin: 24px 0 0; }
.f-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.f-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.f-bottom nav a { color: rgba(255, 255, 255, .65); }
.f-bottom nav a:hover { color: #fff; }
@media (max-width: 767.98px) { .f-bottom { flex-direction: column-reverse; align-items: flex-start; } .site-footer { padding-bottom: 86px; } }
@media (prefers-reduced-motion: reduce) { .f-cta__ico { animation: none; } }

/* ===== Exam calendar v2 ===== */
.ico.rot90 { transform: rotate(90deg); } .ico.rot-90 { transform: rotate(-90deg); }
.cal-wrap { margin-top: 20px; }
.cal-months { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.cal-arrow { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.cal-arrow:hover { border-color: var(--brand); color: var(--brand); }
.cal-months__scroll { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; scroll-snap-type: x proximity; }
.cal-months__scroll::-webkit-scrollbar { display: none; }
.cal-pill { position: relative; flex: none; min-width: 66px; padding: 8px 10px; border-radius: 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); scroll-snap-align: center; transition: transform .15s, border-color .15s; }
.cal-pill:hover { transform: translateY(-2px); border-color: var(--brand-100, #c7d2fe); color: var(--brand); }
.cal-pill b { display: block; font-size: .95rem; } .cal-pill small { color: var(--muted); font-size: .72rem; }
.cal-pill .n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f59e0b; color: #111; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.cal-pill.is-on { background: linear-gradient(135deg, #1f1b84, #4f46e5); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px #4f46e5; }
.cal-pill.is-on small { color: rgba(255,255,255,.8); }
.cal-card { padding: 16px; }
.cal-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-card__head h2 { font-size: 1.2rem; margin: 0; }
.cal-legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--exam { background: #7c3aed; } .dot--last { background: #f59e0b; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day { position: relative; min-height: 74px; border-radius: 12px; background: #f8fafc; border: 1px solid transparent; padding: 6px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.cal-day.is-blank { background: transparent; }
.cal-day.is-past { opacity: .55; }
.cal-day.has-ev { background: #fff; border-color: var(--line); box-shadow: 0 4px 12px -8px rgba(15,23,42,.35); transition: transform .15s, box-shadow .15s, border-color .15s; color: var(--ink); }
.cal-day.has-ev:hover { transform: translateY(-2px); border-color: #a5b4fc; box-shadow: 0 10px 22px -12px rgba(79,70,229,.6); }
.cal-day.is-today { border: 2px solid var(--brand); opacity: 1; }
.cal-day__n { font-weight: 800; font-size: .92rem; }
.cal-day__ev { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.cal-badge { font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 1px 6px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-badge--exam { background: #ede9fe; color: #6d28d9; } .cal-badge--last { background: #fef3c7; color: #b45309; }
@media (max-width: 575.98px) {
  .cal-card { padding: 12px 8px; } .cal-grid { gap: 3px; }
  .cal-day { min-height: 54px; padding: 4px; border-radius: 9px; }
  .cal-day__n { font-size: .8rem; }
  .cal-badge { font-size: .6rem; padding: 0 4px; text-align: center; } .cal-badge em { display: none; }
}
.cal-badge em { font-style: normal; font-weight: 700; }
.agenda { display: grid; gap: 0; }
.agenda-day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.agenda-day.is-past { opacity: .7; }
.agenda-day.is-today { background: linear-gradient(90deg, var(--brand-50), transparent); }
.agenda-day.flash { animation: calFlash 1.4s ease; }
@keyframes calFlash { 0%, 40% { background: #fef9c3; } 100% { background: transparent; } }
.agenda-date { text-align: center; border-radius: 14px; padding: 8px 4px; background: #f1f5f9; align-self: start; position: sticky; top: 80px; }
.agenda-date b { display: block; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.agenda-date span { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.agenda-date em { display: block; margin-top: 4px; font-style: normal; font-size: .64rem; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 4px; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.agenda-item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid; background: #fff; display: grid; gap: 6px; }
.agenda-item--exam { border-left-color: #7c3aed; } .agenda-item--last { border-left-color: #f59e0b; }
.agenda-item > a { font-weight: 700; color: var(--ink); line-height: 1.35; }
.agenda-item > a:hover { color: var(--brand); }
.agenda-tag { justify-self: start; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.agenda-item--exam .agenda-tag { background: #ede9fe; color: #6d28d9; } .agenda-item--last .agenda-tag { background: #fef3c7; color: #b45309; }
.agenda-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.adate { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-2); background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.adate .ico { width: 14px; height: 14px; }
.adate--last.is-this { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.adate--exam.is-this { background: #f5f3ff; border-color: #c4b5fd; color: #5b21b6; }
@media (max-width: 575.98px) { .agenda-day { grid-template-columns: 50px 1fr; gap: 8px; padding: 12px 10px; } .agenda-date b { font-size: 1.2rem; } .adate { font-size: .74rem; } }
.cal-nav-bottom { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cal-quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal-quick__grid a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); color: var(--ink); font-size: .8rem; font-weight: 700; text-align: center; transition: transform .15s, border-color .15s; }
.cal-quick__grid a:hover { transform: translateY(-2px); border-color: #a5b4fc; color: var(--brand); }
.cal-quick__grid .ico { width: 22px; height: 22px; color: var(--brand); }
/* Upcoming exam dates widget */
.ew-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ew-list a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: background .15s; }
.ew-list a:hover { background: var(--brand-50); }
.ew-date { width: 46px; height: 50px; flex: none; border-radius: 12px; display: grid; place-content: center; text-align: center; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }
.ew-date b { font-size: 1.1rem; line-height: 1; } .ew-date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; opacity: .9; }
.ew-txt { min-width: 0; } .ew-txt b { display: block; font-size: .86rem; line-height: 1.3; } .ew-txt small { color: var(--muted); font-size: .76rem; }
.ew-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fact b a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.cal-wrap a, .cal-wrap a * { text-decoration: none; }
.agenda-item > a:hover, .prose-sm a:hover { text-decoration: underline; }
.cal-wrap .prose-sm a, .cal-wrap .faq a { text-decoration: underline; text-underline-offset: 2px; }
.cal-months__scroll { padding-top: 10px; margin-top: -6px; }
.cal-pill:hover, .cal-pill.is-on:hover { color: inherit; }
.cal-pill.is-on:hover { color: #fff; }

/* ===== Home: app-icon tools row ===== */
.app-row { margin-top: -44px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45); padding: 12px 14px 10px; }
.app-row__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 6px; }
.app-row__head b { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.app-row__head b .ico { width: 15px; height: 15px; }
.app-row__head a { font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.app-row__head a .ico { width: 14px; height: 14px; }
.app-row__scroll { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.app { display: grid; justify-items: center; gap: 7px; padding: 8px 4px 6px; border-radius: 14px; color: var(--ink); text-decoration: none !important; animation: appIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 50ms); transition: background .15s; }
.app:hover { background: var(--brand-50); color: var(--ink); }
.app__ico { width: 54px !important; height: 54px !important; border-radius: 17px !important; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .55); transition: transform .2s cubic-bezier(.3,1.5,.6,1), box-shadow .2s; }
.app__ico .ico { width: 26px !important; height: 26px !important; }
.app:hover .app__ico { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 24px -12px rgba(15, 23, 42, .6); }
.app__name { font-size: .8rem; font-weight: 700; line-height: 1.2; text-align: center; }
.app--all .app__ico { display: grid; place-items: center; background: #f1f5f9; color: var(--brand); border: 1.5px dashed #c7d2fe; box-shadow: none; }
@keyframes appIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  .app-row { margin-top: -36px; padding: 10px 6px 6px; border-radius: 18px; }
  .app-row__head { padding: 0 8px 4px; }
  .app-row__scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 2px; padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .app-row__scroll::-webkit-scrollbar { display: none; }
  .app { flex: 0 0 21%; scroll-snap-align: start; }
  .app__ico { width: 50px !important; height: 50px !important; border-radius: 16px !important; }
  .app__name { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .app { animation: none; } .app:hover .app__ico { transform: none; } }
.app-row__head a { text-decoration: none !important; } .app-row__head a:hover { text-decoration: underline !important; }

/* ===== Exam guide pages ===== */
.exam-wrap { margin-top: 20px; }
.stage-track { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.stage-track::-webkit-scrollbar { display: none; }
.stage { flex: 1 0 auto; min-width: 118px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .84rem; text-decoration: none !important; position: relative; }
.stage__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; flex: none; }
.stage__dot .ico { width: 15px; height: 15px; }
.stage.is-done { color: var(--ink); border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4, #fff); }
.stage.is-done .stage__dot { background: #16a34a; color: #fff; }
.stage:hover { border-color: #a5b4fc; color: var(--brand); }
.exam-open { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; color: #fff !important; text-decoration: none !important; background: linear-gradient(135deg, #16a34a, #0d9488); box-shadow: 0 16px 30px -18px #0d9488; transition: transform .15s; }
.exam-open:hover { transform: translateY(-2px); }
.exam-open b { display: block; font-size: 1rem; } .exam-open small { display: block; opacity: .9; margin-top: 2px; }
.exam-open > span:nth-child(2) { flex: 1; min-width: 0; }
.exam-open__pulse { width: 12px; height: 12px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.exam-facts dl { margin: 0; padding: 0 18px 6px; display: grid; gap: 0; }
.exam-facts dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.exam-facts dl > div:first-child { border-top: 0; }
.exam-facts dt { color: var(--muted); font-weight: 700; font-size: .84rem; }
.exam-facts dd { margin: 0; font-size: .92rem; }
@media (max-width: 575.98px) { .exam-facts dl > div { grid-template-columns: 1fr; gap: 2px; } }
.exam-facts__note { margin: 0; padding: 10px 18px 16px; font-size: .8rem; color: var(--muted); }
.exam-stage { scroll-margin-top: 84px; }
.exam-empty { margin: 0; padding: 4px 18px 18px; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.exam-empty .ico { width: 16px; height: 16px; }
.exam-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 18px 18px; }
@media (min-width: 768px) { .exam-tools { grid-template-columns: repeat(3, 1fr); } }
.exam-tools a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .86rem; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.exam-tools a:hover { transform: translateY(-2px); border-color: #a5b4fc; color: var(--brand); }
.exam-tools .ico { width: 20px; height: 20px; color: var(--brand); flex: none; }
.exam-group { margin-bottom: 24px; }
.exam-group > h2 { font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.exam-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.exam-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 576px) { .exam-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .exam-cards { grid-template-columns: repeat(3, 1fr); } }
.exam-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #6366f1; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.exam-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(79,70,229,.5); color: var(--ink); }
.exam-card b { font-size: 1rem; } .exam-card small { color: var(--muted); }
.exam-card__meta { display: flex; gap: 12px; font-size: .78rem; color: var(--ink-2); font-weight: 700; margin-top: 4px; }
.exam-card__meta span { display: inline-flex; align-items: center; gap: 4px; } .exam-card__meta .ico { width: 13px; height: 13px; }
.exam-card__stages { font-size: .74rem; color: var(--muted); }
.exam-guide-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--brand-50); border: 1px solid #c7d2fe; color: var(--brand) !important; font-weight: 700; text-decoration: none !important; margin: 0 0 12px; }
.exam-guide-link .ico { width: 18px; height: 18px; flex: none; }
.home-exams .chip-cloud { padding: 0 18px 18px; }
/* Tamil summary on job pages */
.ta-sum { margin-top: 16px; border-radius: 14px; border: 1px solid #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); padding: 12px 14px; }
.ta-sum summary { cursor: pointer; font-weight: 800; color: #92400e; display: flex; align-items: center; gap: 8px; list-style: none; }
.ta-sum summary::-webkit-details-marker { display: none; }
.ta-sum summary::after { content: "▾"; margin-left: auto; transition: transform .2s; }
.ta-sum[open] summary::after { transform: rotate(180deg); }
.ta-sum dl { margin: 10px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.ta-sum dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
@media (max-width: 575.98px) { .ta-sum dl > div { grid-template-columns: 1fr; gap: 0; } }
.ta-sum dt { color: #92400e; font-weight: 700; } .ta-sum dd { margin: 0; }
.ta-sum p { margin: 10px 0 0; font-size: .88rem; color: var(--ink-2); }
.about-steps { padding-left: 20px; display: grid; gap: 10px; } .about-steps li { line-height: 1.6; }

/* ===== Blog ===== */
.blog-wrap { margin-top: 20px; }
.blog-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .blog-grid > .ad-slot { grid-column: 1 / -1; } }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; border-top: 4px solid #6366f1; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(79,70,229,.55); }
.blog-card--exam { border-top-color: #4338ca; } .blog-card--salary { border-top-color: #059669; } .blog-card--eligibility { border-top-color: #ea580c; }
.blog-card--tips { border-top-color: #db2777; } .blog-card--news { border-top-color: #dc2626; } .blog-card--guide { border-top-color: #0891b2; }
.blog-card__link { display: grid; gap: 8px; padding: 16px 18px 18px; color: var(--ink); text-decoration: none !important; }
.blog-card__img { width: calc(100% + 36px); margin: -16px -18px 4px; aspect-ratio: 1200 / 630; object-fit: cover; }
.blog-card__cat { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.blog-card h2 { font-size: 1.08rem; line-height: 1.35; margin: 0; }
.blog-card p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.blog-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.blog-card__meta .ico { width: 14px; height: 14px; }
.blog-article { padding: 22px 24px; }
@media (max-width: 575.98px) { .blog-article { padding: 16px; } }
.blog-article__cover { width: 100%; border-radius: 14px; margin-bottom: 16px; }
.blog-article__lead { font-size: 1.08rem; color: var(--ink-2); border-left: 4px solid var(--brand); padding-left: 14px; margin-bottom: 18px; }
.blog-body { font-size: 1.02rem; line-height: 1.75; }
.blog-body h2 { font-size: 1.3rem; margin: 26px 0 10px; }
.blog-body h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.blog-body ul, .blog-body ol { padding-left: 22px; } .blog-body li { margin-bottom: 6px; }
.blog-body table { font-size: .92rem; }
.blog-body a.auto-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: #c7d2fe; text-underline-offset: 3px; }
.blog-share { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.blog-mini { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.blog-mini li { padding: 0 18px; } .side-card .blog-mini li { padding: 0; }
.blog-mini a { font-weight: 700; color: var(--ink); line-height: 1.35; display: block; }
.blog-mini a:hover { color: var(--brand); } .blog-mini small { color: var(--muted); }
.guide-posts { font-size: .88rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.guide-posts .ico { width: 16px; height: 16px; color: var(--brand); }

/* ===== Random tool promo between jobs ===== */
.tool-promo { list-style: none; grid-column: 1 / -1; margin: 6px 0; }
.job-list > .tool-promo { padding: 0 12px; }
.tool-promo a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none !important; color: var(--ink); border: 1px dashed color-mix(in srgb, var(--promo, #4f46e5) 45%, #e2e8f0); background: linear-gradient(100deg, color-mix(in srgb, var(--promo, #4f46e5) 9%, #fff), #fff 70%); transition: transform .15s, box-shadow .15s; }
.tool-promo a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px var(--promo, #4f46e5); }
.tool-promo .tw-ico { width: 44px; height: 44px; border-radius: 13px; animation: promoBob 2.6s ease-in-out infinite; }
.tool-promo .tw-ico .ico { width: 22px; height: 22px; }
@keyframes promoBob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.tool-promo__txt { flex: 1; min-width: 0; display: grid; }
.tool-promo__txt small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--promo, #4f46e5); }
.tool-promo__txt b { font-size: .98rem; line-height: 1.25; }
.tool-promo__txt em { font-style: normal; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-promo__cta { flex: none; font-weight: 800; font-size: .84rem; color: #fff; padding: 8px 14px; border-radius: 999px; background: var(--promo, #4f46e5); }
@media (max-width: 420px) { .tool-promo__cta { padding: 7px 10px; font-size: .78rem; } }
.tool-promo--blue { --promo: #4f46e5; } .tool-promo--teal { --promo: #0891b2; } .tool-promo--rose { --promo: #db2777; } .tool-promo--green { --promo: #16a34a; }
.tool-promo--amber { --promo: #ea580c; } .tool-promo--indigo { --promo: #6d28d9; } .tool-promo--orange { --promo: #dc2626; } .tool-promo--violet { --promo: #a21caf; }
.tool-promo--cyan { --promo: #2563eb; } .tool-promo--emerald { --promo: #059669; } .tool-promo--slate { --promo: #475569; }
@media (prefers-reduced-motion: reduce) { .tool-promo .tw-ico { animation: none; } }
/* Header fits Latest · 5 menus · Tools · Blog · alerts down to 1200px */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .nav-desk { gap: 0 !important; }
  .nav-desk > a, .nav-dd > button { padding-left: 8px !important; padding-right: 8px !important; font-size: .86rem !important; }
  .nav-desk > a > .ico:not(.chev), .nav-dd > button > .ico:not(.chev) { display: none; }
  .site-header .brand__text small { display: none; }
}
.blog-facts { margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--brand-50), #fff); border: 1px solid #c7d2fe; }
.blog-facts h2 { font-size: 1.15rem; margin: 0 0 8px; }
.blog-facts dl { margin: 0; display: grid; }
.blog-facts dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid #e0e7ff; }
.blog-facts dl > div:first-child { border-top: 0; }
.blog-facts dt { color: var(--muted); font-weight: 700; font-size: .86rem; } .blog-facts dd { margin: 0; }
@media (max-width: 575.98px) { .blog-facts dl > div { grid-template-columns: 1fr; gap: 2px; } }
.blog-faq { margin-top: 22px; } .blog-faq h2 { font-size: 1.15rem; }
.blog-mini__item a { display: flex !important; gap: 12px; align-items: center; }
.blog-mini__item img { width: 120px; height: 63px; object-fit: cover; border-radius: 8px; flex: none; }
.blog-mini__item span { display: grid; } .blog-mini__item small { font-weight: 500; }
.blog-card__img { display: block; width: calc(100% + 36px) !important; max-width: none; height: auto; }
.cal-more { text-align: center; padding: 12px 16px 18px; }

/* ===== Ads v2 (Admin → Ads) — reserved space, no layout jump, mobile friendly ===== */
.ad-slot { margin: 18px auto; text-align: center; overflow: hidden; position: relative; max-width: 100%; contain: layout; }
.ad-slot .ad-label { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #a3a9bd; margin-bottom: 4px; }
.ad-slot ins.adsbygoogle:not([data-ad-status]), .ad-slot .ad-code:empty { min-height: 100px; border-radius: 10px; background: repeating-linear-gradient(45deg, #fafbfe, #fafbfe 10px, #f5f6fb 10px, #f5f6fb 20px); }
.ad-slot--rect ins.adsbygoogle:not([data-ad-status]) { min-height: 250px; }
.ad-slot--tall ins.adsbygoogle:not([data-ad-status]) { min-height: 600px; }
.ad-slot .ad-code { min-height: 90px; display: flex; justify-content: center; align-items: center; }
.ad-slot--rect .ad-code { min-height: 250px; } .ad-slot--tall .ad-code { min-height: 600px; }
.ad-slot.is-empty { display: none !important; }
.ad-slot .ad-code iframe, .ad-slot .ad-code img { max-width: 100%; }
@media (max-width: 991.98px) {
  .ad-slot--tall ins.adsbygoogle:not([data-ad-status]), .ad-slot--tall .ad-code { min-height: 250px; }
  .ad-desktop-only { display: none !important; }
}
@media (max-width: 575.98px) {
  .ad-slot { margin: 14px auto; }
  .ad-slot ins.adsbygoogle:not([data-ad-status]), .ad-slot .ad-code { min-height: 90px; }
  .ad-slot--rect ins.adsbygoogle:not([data-ad-status]), .ad-slot--rect .ad-code { min-height: 250px; }
}
.job-list > .ad-slot { list-style: none; margin: 0; padding: 14px 18px; border-top: 1px solid var(--line-2); }
/* Preview placeholders (admin "Preview ad positions") */
.ad-ph { display: grid; place-content: center; gap: 2px; min-height: 90px; border: 2px dashed #f59e0b; border-radius: 12px; background: #fffbeb; color: #92400e; padding: 10px; }
.ad-slot--rect .ad-ph { min-height: 250px; } .ad-slot--tall .ad-ph { min-height: 300px; } .ad-slot--sticky .ad-ph { min-height: 50px; }
.ad-ph b { font-size: .86rem; } .ad-ph small { font-size: .74rem; }
/* Mobile sticky bottom ad (phones only, closable, sits above the bottom menu) */
.ad-sticky { display: none; }
@media (max-width: 767.98px) {
  .ad-sticky { display: block; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 1030; background: #fff; box-shadow: 0 -6px 18px -10px rgba(15,23,42,.35); padding: 4px 8px 6px; }
  .ad-sticky .ad-slot { margin: 0; } .ad-sticky .ad-label { display: none; }
  .ad-sticky ins.adsbygoogle:not([data-ad-status]), .ad-sticky .ad-code { min-height: 50px; max-height: 60px; }
  .ad-sticky__x { position: absolute; top: -14px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #334155; color: #fff; font-size: 1rem; line-height: 1; z-index: 2; }
  body:has(.ad-sticky) { padding-bottom: 66px; }
}

/* ===== Exam books (Amazon / Flipkart affiliate) — partials/books ===== */
.books-box { padding: 18px 20px; }
.books-h { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0 0 12px; }
.books-row { list-style: none; margin: 0; padding: 2px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.book-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.book-cover { aspect-ratio: 3 / 4; max-height: 190px; display: flex; align-items: center; justify-content: center; background: #f6f7fb; padding: 10px; }
.book-cover img { max-width: 100%; max-height: 170px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .18)); }
.book-cover:not(:has(img)) { --h: 214; background: linear-gradient(150deg, hsl(var(--h) 70% 42%), hsl(calc(var(--h) + 30) 70% 30%)); color: #fff; padding: 14px; }
.book-cover__t { font-weight: 800; font-size: .9rem; line-height: 1.25; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.book-info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.book-title { font-size: .88rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-author { color: var(--ink-2); font-size: .78rem; }
.book-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.book-chip { font-size: .7rem; padding: 2px 7px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-weight: 600; }
.book-chip--note { background: var(--accent-50); color: var(--accent-600); }
.book-btns { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.book-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: .8rem; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: filter .15s ease; }
.book-btn:hover { filter: brightness(.95); }
.book-btn .icon, .book-btn svg { width: 14px; height: 14px; }
.book-btn--amz { background: #ffd814; color: #0f1111 !important; border: 1px solid #fcd200; }
.book-btn--fk { background: #2874f0; color: #fff !important; border: 1px solid #2874f0; }
.books-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: .88rem; color: var(--ink-2); }
.books-search span { font-weight: 600; flex-basis: 100%; }
.books-search .book-btn { flex: 0 1 160px; }
.books-disc { margin: 10px 0 0; font-size: .72rem; color: var(--ink-3, #64748b); }
/* sidebar variant */
.books-box--side { padding: 16px; }
.books-box--side .books-row { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 10px; padding: 0; }
.books-box--side .book-card { flex-direction: row; }
.books-box--side .book-cover { width: 76px; flex: 0 0 76px; aspect-ratio: auto; max-height: none; padding: 6px; }
.books-box--side .book-cover img { max-height: 100px; }
.books-box--side .book-cover__t { font-size: .62rem; -webkit-line-clamp: 5; }
.books-box--side .book-btn { min-height: 32px; padding: 4px 8px; font-size: .75rem; }
@media (max-width: 575.98px) {
  .books-box { padding: 16px 14px; }
  .books-row { grid-auto-columns: 46%; margin: 0 -14px; padding: 2px 14px 8px; scroll-padding: 0 14px; }
  .books-box--side .books-row { margin: 0; padding: 0; }
  .books-search .book-btn { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) { .book-card { transition: none; } .book-card:hover { transform: none; } }

/* ===== Referral promo card (Testbook etc.) — partials/referral ===== */
.ref-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 16px; border-radius: var(--radius); color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #22c1c3 0%, rgba(34, 193, 195, 0) 55%), linear-gradient(135deg, #1f1b84 0%, #2c27a8 60%, #0e7490 100%); box-shadow: var(--shadow-sm); }
.ref-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.ref-card__ico { flex: 0 0 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; }
.ref-card__ico svg, .ref-card__ico .icon { width: 24px; height: 24px; color: #fde68a; }
.ref-card__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.ref-card__tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fde68a; color: #78350f; padding: 2px 8px; border-radius: 99px; }
.ref-card__t { color: #fff; font-size: 1.08rem; line-height: 1.3; margin: 8px 0 4px; }
.ref-card__p { margin: 0 0 12px; color: rgba(255, 255, 255, .88); font-size: .9rem; }
.ref-card__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ref-code { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 6px 6px 12px; border-radius: 10px; border: 1.5px dashed rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; cursor: pointer; }
.ref-code small { font-size: .7rem; opacity: .8; text-transform: uppercase; }
.ref-code b { font-size: 1rem; letter-spacing: .06em; }
.ref-code__c { background: #fff; color: var(--brand); font-weight: 700; font-size: .78rem; padding: 6px 10px; border-radius: 7px; }
.ref-code.is-copied .ref-code__c { background: #bbf7d0; color: #166534; }
.ref-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 10px; background: #fbbf24; color: #1f1b84 !important; font-weight: 800; text-decoration: none !important; transition: transform .15s ease, filter .15s ease; }
.ref-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ref-cta svg, .ref-cta .icon { width: 16px; height: 16px; }
.ref-card--side { padding: 16px; }
.ref-card--side .ref-card__ico { display: none; }
.ref-card--side .ref-card__t { font-size: 1rem; }
.ref-card--side .ref-code, .ref-card--side .ref-cta { flex: 1 1 100%; justify-content: center; }
@media (max-width: 575.98px) {
  .ref-card { padding: 16px 14px; }
  .ref-card__ico { display: none; }
  .ref-code, .ref-cta { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ref-cta { transition: none; } .ref-cta:hover { transform: none; } }
/* blog shortcodes: [[buy q="…"]] and [[referral_link]] */
.buy-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; vertical-align: middle; }
.buy-links .book-btn { flex: 0 0 auto; min-height: 32px; padding: 4px 12px; font-size: .78rem; }
.prose .buy-links a, .prose .ref-card a, .prose .books-box a { text-decoration: none; }
.prose .ref-card, .prose .books-box { margin: 18px 0; }
.prose .ref-card h2, .prose .books-box h2 { margin-top: 0; }
.ref-inline { font-weight: 700; }
.prose .books-box .books-h, .prose .ref-card .ref-card__t { font-size: 1.08rem; }

/* ===== Direct ad campaigns (sold banners) — partials/ad ===== */
.ad-direct { display: block; border-radius: 10px; overflow: hidden; line-height: 0; transition: transform .15s ease, box-shadow .15s ease; }
.ad-direct:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ad-direct img { display: block; width: 100%; height: auto; max-width: 100%; }
.ad-slot--rect .ad-direct img, .ad-slot--tall .ad-direct img { max-width: 336px; margin: 0 auto; }
.ad-sticky .ad-direct img { max-height: 60px; width: auto; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .ad-direct { transition: none; } .ad-direct:hover { transform: none; } }

/* ===== /advertise ===== */
.adv-preview { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: #fef3c7; color: #92400e; font-weight: 600; font-size: .9rem; }
.adv-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.adv-btn-mail { background: #fff; color: var(--brand) !important; border: 1px solid var(--line); }
.adv-wrap { padding-bottom: 32px; }
.adv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: -28px 0 20px; position: relative; z-index: 1; }
.adv-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.adv-stat b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.adv-stat span { font-size: .82rem; color: var(--ink-2); }
.adv-wrap .surface.section { padding: 20px; margin-bottom: 16px; }
.adv-wrap h2 { font-size: 1.15rem; margin: 0 0 12px; }
.adv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.adv-list li { display: flex; gap: 8px; align-items: flex-start; }
.adv-list li > svg, .adv-list li > .icon { flex: 0 0 18px; width: 18px; height: 18px; color: #16a34a; margin-top: 3px; }
.adv-list--plain { list-style: disc; padding-left: 20px; display: block; } .adv-list--plain li { display: list-item; margin-bottom: 6px; }
.adv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.adv-opt { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--brand-50); }
.adv-opt > svg, .adv-opt > .icon { width: 22px; height: 22px; color: var(--brand); }
.adv-opt > b { display: block; margin: 6px 0 4px; }
.adv-opt p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.adv-note { margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); }
.adv-rates td, .adv-rates th { padding: 10px 12px; }
.adv-contact { border-top: 4px solid var(--accent); }
@media (max-width: 575.98px) { .adv-stats { grid-template-columns: 1fr 1fr; margin-top: -20px; } .adv-stat b { font-size: 1.3rem; } .adv-hero__cta .b-btn { flex: 1 1 100%; justify-content: center; } }
/* drawn book covers (no image) */
.book-cover:not(:has(img)) { background: #f6f7fb; padding: 12px 18px; }
.book-cover__art { --h: inherit; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; width: 100%; max-width: 120px; aspect-ratio: 3 / 4; padding: 12px 10px 10px 16px; border-radius: 3px 8px 8px 3px; color: #fff; text-align: left;
  background: linear-gradient(150deg, hsl(var(--h) 70% 44%), hsl(calc(var(--h) + 30) 70% 30%)); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), inset 8px 0 0 rgba(255, 255, 255, .12), 0 6px 14px rgba(15, 23, 42, .22); }
.book-cover__art::after { content: ""; position: absolute; left: 16px; right: 10px; top: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.book-cover__art .book-cover__t { margin-top: 6px; font-size: .78rem; text-align: left; -webkit-line-clamp: 6; }
.book-cover__a { font-size: .62rem; opacity: .85; font-weight: 600; line-height: 1.2; }
.books-box--side .book-cover:not(:has(img)) { padding: 6px; }
.books-box--side .book-cover__art { padding: 6px 4px 6px 9px; }
.books-box--side .book-cover__art .book-cover__t { font-size: .55rem; -webkit-line-clamp: 5; }
.books-box--side .book-cover__a, .books-box--side .book-cover__art::after { display: none; }
.book-cover__art .book-cover__t { overflow-wrap: anywhere; hyphens: auto; }

/* ===== Previous year question papers (/previous-year-question-papers) ===== */
.qp-hero { position: relative; overflow: hidden; color: #fff; padding: 22px 0 64px; background: radial-gradient(90% 120% at 100% 0%, rgba(245, 158, 11, .35) 0%, rgba(245, 158, 11, 0) 50%), linear-gradient(135deg, #1f1b84 0%, #2c27a8 55%, #0e7490 100%); }
.qp-hero--sm { padding-bottom: 40px; }
.qp-hero .breadcrumb a, .qp-hero .breadcrumb-item.active, .qp-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .85); }
.qp-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: 10px 0 8px; }
.qp-hero h1 span { color: #fde68a; }
.qp-hero p { color: rgba(255, 255, 255, .9); max-width: 640px; margin: 0; }
.qp-hero__ta { margin-top: 6px !important; font-size: .92rem; }
.qp-hero__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #fde68a; color: #78350f; padding: 4px 10px; border-radius: 99px; }
.qp-hero__tag svg, .qp-hero__tag .icon { width: 14px; height: 14px; }
.qp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; }
.qp-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 4px 6px 4px 14px; margin-top: 16px; max-width: 520px; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); }
.qp-search svg, .qp-search .icon { width: 18px; height: 18px; color: #64748b; flex-shrink: 0; }
.qp-search input { border: 0; outline: 0; flex: 1; min-width: 0; height: 42px; font-size: 16px; background: transparent; color: var(--ink); }
.qp-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qp-hero__chips a { color: #fff !important; text-decoration: none !important; font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.qp-hero__chips a:hover { background: rgba(255, 255, 255, .24); }
.qp-hero__art { position: relative; height: 220px; }
.qp-sheet { position: absolute; width: 160px; height: 210px; border-radius: 10px; background: #fff; box-shadow: 0 14px 30px rgba(15, 23, 42, .3); }
.qp-sheet--3 { right: 0; top: 12px; transform: rotate(9deg); background: #e0e7ff; }
.qp-sheet--2 { right: 34px; top: 6px; transform: rotate(-4deg); background: #f1f5f9; }
.qp-sheet--1 { right: 70px; top: 0; padding: 18px 14px; display: flex; flex-direction: column; gap: 9px; animation: qpFloat 5s ease-in-out infinite; }
.qp-sheet--1 b { color: var(--brand); font-size: .68rem; letter-spacing: .08em; }
.qp-sheet--1 i { display: block; height: 7px; border-radius: 4px; background: #e2e8f0; } .qp-sheet--1 i.s { width: 60%; }
.qp-sheet--1 span { position: absolute; right: -10px; bottom: 16px; background: #ef4444; color: #fff; font-weight: 800; font-size: .78rem; padding: 4px 9px; border-radius: 6px; box-shadow: 0 4px 10px rgba(239, 68, 68, .4); }
@keyframes qpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.qp-wrap { padding-bottom: 32px; }
.qp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -40px 0 20px; position: relative; z-index: 1; }
.qp-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.qp-stats b { display: block; font-size: 1.45rem; color: var(--brand); line-height: 1.1; }
.qp-stats span { font-size: .8rem; color: var(--ink-2); }
.qp-hero--sm + .qp-wrap { margin-top: -22px; position: relative; }
.qp-list { list-style: none; margin: 0; padding: 0 18px 12px; }
.qp-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.qp-item:first-child { border-top: 0; }
.qp-item__ico { flex: 0 0 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fee2e2; color: #dc2626; }
.qp-item--archive .qp-item__ico { background: var(--brand-50); color: var(--brand); }
.qp-item--answer_key .qp-item__ico { background: #dcfce7; color: #16a34a; }
.qp-item__ico svg, .qp-item__ico .icon { width: 20px; height: 20px; }
.qp-item__main { flex: 1; min-width: 0; }
.qp-item__main b { display: block; line-height: 1.35; color: var(--ink); }
.qp-item__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; }
.qp-item__meta small { color: var(--ink-3, #64748b); font-size: .76rem; }
.qp-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #f1f5f9; color: #475569; }
.qp-badge--ok { background: #dcfce7; color: #166534; } .qp-badge svg, .qp-badge .icon { width: 11px; height: 11px; }
.qp-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .84rem; background: var(--brand); color: #fff !important; text-decoration: none !important; white-space: nowrap; }
.qp-btn--pdf { background: #dc2626; }
.qp-btn svg, .qp-btn .icon { width: 15px; height: 15px; }
.qp-btn:hover { filter: brightness(1.08); }
.qp-note { margin: 0; padding: 0 18px 16px; font-size: .82rem; color: var(--ink-2); }
.qp-exams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 0 18px 18px; }
.qp-exam { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none !important; color: var(--ink) !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.qp-exam:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.qp-exam__ico { flex: 0 0 36px; height: 36px; border-radius: 9px; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; }
.qp-exam__ico svg, .qp-exam__ico .icon { width: 18px; height: 18px; }
.qp-exam__txt { flex: 1; min-width: 0; } .qp-exam__txt b { display: block; font-size: .92rem; line-height: 1.25; } .qp-exam__txt small { color: var(--ink-2); font-size: .76rem; }
.qp-exam > svg:last-child, .qp-exam > .icon:last-child { width: 16px; height: 16px; color: var(--ink-3, #94a3b8); }
.qp-steps { margin: 0; padding: 0 18px 16px 38px; display: grid; gap: 8px; }
.qp-none { padding: 0 18px 18px; } .qp-none p { margin: 0 0 12px; color: var(--ink-2); }
.qp-none__links { display: flex; flex-wrap: wrap; gap: 8px; }
.qp-empty p { margin: 0; padding: 16px 18px; }
/* promo banner used on other pages */
.qp-promo { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none !important; color: var(--ink) !important;
  background: linear-gradient(100deg, #fff1f2 0%, #fff7ed 100%); border: 1px solid #fecdd3; transition: transform .15s ease, box-shadow .15s ease; }
.qp-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.qp-promo__ico { position: relative; flex: 0 0 44px; height: 48px; border-radius: 6px 12px 6px 6px; background: #fff; border: 1px solid #fecaca; display: flex; align-items: center; justify-content: center; color: #dc2626; }
.qp-promo__ico svg, .qp-promo__ico .icon { width: 22px; height: 22px; }
.qp-promo__ico i { position: absolute; bottom: -6px; right: -8px; font-style: normal; font-size: .58rem; font-weight: 800; background: #dc2626; color: #fff; padding: 1px 5px; border-radius: 4px; }
.qp-promo__txt { flex: 1; min-width: 0; } .qp-promo__txt b { display: block; line-height: 1.3; font-size: .95rem; } .qp-promo__txt small { color: var(--ink-2); font-size: .78rem; }
.qp-promo__go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 9px; background: #dc2626; color: #fff; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.qp-promo__go svg, .qp-promo__go .icon { width: 14px; height: 14px; }
.qp-promo--side { flex-wrap: wrap; margin: 0 0 16px; padding: 14px; }
.qp-promo--side .qp-promo__go { flex: 1 1 100%; justify-content: center; }
@media (max-width: 767.98px) {
  .qp-hero__grid { grid-template-columns: 1fr; } .qp-hero__art { display: none; }
  .qp-stats { grid-template-columns: 1fr 1fr; margin-top: -44px; } .qp-stats b { font-size: 1.2rem; }
}
@media (max-width: 575.98px) {
  .qp-item { flex-wrap: wrap; } .qp-btn { flex: 1 1 100%; justify-content: center; }
  .qp-list { padding: 0 14px 10px; } .qp-exams { padding: 0 14px 14px; grid-template-columns: 1fr; }
  .qp-promo { flex-wrap: wrap; } .qp-promo__go { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .qp-sheet--1 { animation: none; } .qp-exam, .qp-promo { transition: none; } .qp-exam:hover, .qp-promo:hover { transform: none; } }
.qp-years { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 18px 6px; }
.qp-years a { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--brand-50); color: var(--brand) !important; text-decoration: none !important; }
.qp-year { font-size: 1rem; margin: 14px 18px 0; padding-top: 12px; border-top: 2px solid var(--brand-50); scroll-margin-top: 80px; }
.qp-year small { font-size: .75rem; color: var(--ink-2); font-weight: 600; margin-left: 6px; }
@media (max-width: 575.98px) { .qp-years { padding: 4px 14px 6px; } .qp-year { margin: 14px 14px 0; } }

/* ===== Study-material shop (/study-materials, Admin → Shop) ===== */
.sm-hero { color: #fff; padding: 22px 0 56px; background: radial-gradient(80% 120% at 100% 0%, rgba(245, 158, 11, .38) 0%, rgba(245, 158, 11, 0) 55%), linear-gradient(135deg, #1f1b84 0%, #2c27a8 60%, #4338ca 100%); }
.sm-hero .breadcrumb a, .sm-hero .breadcrumb-item.active, .sm-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .85); }
.sm-hero h1 { color: #fff; font-size: clamp(1.55rem, 4vw, 2.3rem); line-height: 1.15; margin: 10px 0 8px; }
.sm-hero p { color: rgba(255, 255, 255, .9); max-width: 680px; margin: 0; }
.sm-hero__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #fde68a; color: #78350f; padding: 4px 10px; border-radius: 99px; }
.sm-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.sm-trust span { display: inline-flex; align-items: center; gap: 6px; } .sm-trust svg, .sm-trust .icon { width: 16px; height: 16px; color: #fde68a; }
.sm-wrap { margin-top: -30px; position: relative; padding-bottom: 32px; }
.sm-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sm-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.sm-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.sm-plan--hot { border: 2px solid var(--accent); box-shadow: 0 10px 30px -14px rgba(245, 158, 11, .6); }
.sm-plan__badge { position: absolute; top: -11px; left: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #451a03; padding: 3px 10px; border-radius: 99px; }
.sm-plan h3 { font-size: 1.02rem; line-height: 1.3; margin: 4px 0 6px; }
.sm-plan h3 a { color: var(--ink) !important; text-decoration: none !important; }
.sm-plan h3 a::after { content: ""; position: absolute; inset: 0; }
.sm-plan p { font-size: .84rem; color: var(--ink-2); margin: 0 0 10px; }
.sm-plan__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.sm-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sm-price b { font-size: 1.6rem; line-height: 1; color: var(--brand); } .sm-price s { color: var(--muted); font-size: .9rem; }
.sm-save { font-size: .72rem; font-weight: 800; color: var(--ok); background: var(--ok-50); padding: 2px 8px; border-radius: 99px; }
.sm-count { font-size: .78rem; color: var(--muted); }
.sm-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.sm-filter a { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--brand-50); color: var(--brand) !important; text-decoration: none !important; }
.sm-filter a.is-on { background: var(--brand); color: #fff !important; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; padding: 0 18px 18px; }
.sm-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: var(--ink) !important; }
.sm-card__t { font-size: .88rem; font-weight: 700; line-height: 1.3; }
.sm-card .sm-price b { font-size: 1.15rem; }
.sm-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; overflow: hidden; background: linear-gradient(160deg, var(--c1, #2c27a8), var(--c2, #1f1b84)); box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .55), inset 6px 0 0 rgba(0, 0, 0, .15); color: #fff; transition: transform .15s; }
.sm-card:hover .sm-cover { transform: translateY(-3px) rotate(-.5deg); }
.sm-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-cover__art { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px 12px 10px 16px; }
.sm-cover__brand { font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sm-cover__title { margin-top: auto; font-weight: 800; font-size: .92rem; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.sm-cover__ed { margin-top: 6px; font-size: .62rem; font-weight: 700; background: rgba(255, 255, 255, .2); align-self: flex-start; padding: 2px 7px; border-radius: 99px; }
.sm-cover__pdf { position: absolute; top: 10px; right: 10px; font-size: .58rem; font-weight: 800; background: #dc2626; color: #fff; padding: 2px 6px; border-radius: 4px; }
.sm-cover--lg { max-width: 260px; }
.sm-cover--lg .sm-cover__title { font-size: 1.25rem; }
/* product page */
.sm-prod { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 18px; }
.sm-prod__info h2 { font-size: 1.05rem; margin: 0 0 8px; }
.sm-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.sm-facts span { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; color: var(--ink-2); }
.sm-facts svg, .sm-facts .icon { width: 14px; height: 14px; }
.sm-buy { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 16px; }
.sm-buy .sm-price b { font-size: 2rem; }
.sm-buy form { display: grid; gap: 8px; margin-top: 12px; }
.sm-buy input { height: 46px; font-size: 16px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; width: 100%; background: #fff; color: var(--ink); }
.sm-buy input:focus { outline: 2px solid var(--brand-600); outline-offset: 0; border-color: transparent; }
.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 12px; font-weight: 800; font-size: 1rem; background: var(--accent); color: #451a03 !important; text-decoration: none !important; cursor: pointer; transition: filter .15s; }
.sm-btn:hover { filter: brightness(1.05); } .sm-btn[disabled] { opacity: .65; cursor: wait; }
.sm-btn svg, .sm-btn .icon { width: 18px; height: 18px; }
.sm-btn--ghost { background: #fff; color: var(--brand) !important; border: 1px solid var(--brand-100); font-size: .92rem; min-height: 44px; }
.sm-btn--brand { background: var(--brand); color: #fff !important; }
.sm-buy__note { font-size: .76rem; color: var(--ink-2); margin: 6px 0 0; display: flex; gap: 6px; align-items: center; }
.sm-buy__note svg, .sm-buy__note .icon { width: 14px; height: 14px; color: var(--ok); flex-shrink: 0; }
.sm-err { display: none; font-size: .84rem; color: var(--bad); background: var(--bad-50); border-radius: 8px; padding: 8px 10px; }
.sm-err.is-on { display: block; }
.sm-toc { margin: 0; padding: 0 18px 16px 40px; columns: 2; column-gap: 28px; font-size: .9rem; }
.sm-toc li { break-inside: avoid; padding: 3px 0; }
.sm-desc { padding: 0 18px 16px; color: var(--ink-2); } .sm-desc :last-child { margin-bottom: 0; }
.sm-previews { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 18px; scroll-snap-type: x mandatory; }
.sm-previews a { flex: 0 0 auto; scroll-snap-align: start; }
.sm-previews img { height: 260px; width: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: block; }
.sm-inc { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 6px; }
.sm-inc li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; font-size: .9rem; }
.sm-inc li small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.sm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.sm-steps div { background: #f8fafc; border-radius: 12px; padding: 12px; font-size: .84rem; color: var(--ink-2); }
.sm-steps b { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 2px; }
.sm-sticky { display: none; }
/* order page */
.sm-order { max-width: 760px; margin: 0 auto; }
.sm-ok { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--ok-50); border: 1px solid #bbf7d0; color: #14532d; margin-bottom: 14px; }
.sm-ok svg, .sm-ok .icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--ok); }
.sm-ok--wait { background: var(--warn-50); border-color: #fed7aa; color: #7c2d12; } .sm-ok--wait svg, .sm-ok--wait .icon { color: var(--warn); }
.sm-ok--bad { background: var(--bad-50); border-color: #fecaca; color: #7f1d1d; } .sm-ok--bad svg, .sm-ok--bad .icon { color: var(--bad); }
.sm-dl { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.sm-dl:first-child { border-top: 0; }
.sm-dl .sm-cover { flex: 0 0 44px; height: 58px; aspect-ratio: auto; border-radius: 3px 6px 6px 3px; }
.sm-dl .sm-cover__art { padding: 4px; } .sm-dl .sm-cover__title { font-size: .44rem; } .sm-dl .sm-cover__brand, .sm-dl .sm-cover__ed, .sm-dl .sm-cover__pdf { display: none; }
.sm-dl__t { flex: 1; min-width: 0; } .sm-dl__t b { display: block; line-height: 1.3; } .sm-dl__t small { color: var(--muted); font-size: .78rem; }
.sm-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 18px 18px; }
.sm-meta div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; font-size: .78rem; color: var(--muted); }
.sm-meta b { display: block; color: var(--ink); font-size: .92rem; }
.sm-form { display: grid; gap: 10px; padding: 0 18px 18px; max-width: 460px; }
.sm-form input { height: 46px; font-size: 16px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; }
.sm-policy { padding: 4px 22px 22px; } .sm-policy h2 { font-size: 1.05rem; margin: 18px 0 6px; } .sm-policy p, .sm-policy li { color: var(--ink-2); }
/* promo card on other pages */
.sm-promo { position: relative; display: flex; gap: 14px; align-items: center; margin: 14px 0; padding: 14px; border-radius: var(--radius); background: linear-gradient(100deg, #eef2ff 0%, #fff7e6 100%); border: 1px solid var(--brand-100); }
.sm-promo .sm-cover { flex: 0 0 64px; height: 86px; aspect-ratio: auto; }
.sm-promo .sm-cover__art { padding: 6px 6px 6px 9px; } .sm-promo .sm-cover__title { font-size: .5rem; } .sm-promo .sm-cover__brand { font-size: .4rem; } .sm-promo .sm-cover__ed, .sm-promo .sm-cover__pdf { display: none; }
.sm-promo__txt { flex: 1; min-width: 0; }
.sm-promo__k { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); }
.sm-promo__txt b { display: block; line-height: 1.3; font-size: .98rem; margin: 2px 0; }
.sm-promo__txt b a { color: var(--ink) !important; text-decoration: none !important; } .sm-promo__txt b a::after { content: ""; position: absolute; inset: 0; }
.sm-promo__txt small { color: var(--ink-2); font-size: .8rem; }
.sm-promo__go { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sm-promo__go .sm-price b { font-size: 1.3rem; }
.sm-promo__go span.sm-go { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; background: var(--brand); color: #fff; padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
.sm-promo__go .sm-go svg, .sm-promo__go .sm-go .icon { width: 14px; height: 14px; }
.sm-promo--side { flex-wrap: wrap; margin: 0 0 16px; } .sm-promo--side .sm-promo__go { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; }
@media (max-width: 767.98px) {
  .sm-prod { grid-template-columns: 1fr; } .sm-prod .sm-cover--lg { max-width: 190px; margin: 0 auto; }
  .sm-steps { grid-template-columns: 1fr; } .sm-toc { columns: 1; }
  .sm-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .1); }
  .sm-sticky .sm-btn { min-height: 44px; flex: 1; }
  .sm-has-sticky { padding-bottom: 72px; }
}
@media (max-width: 575.98px) {
  .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 14px 14px; }
  .sm-promo { flex-wrap: wrap; } .sm-promo__go { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .sm-dl { flex-wrap: wrap; } .sm-dl .sm-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .sm-plan, .sm-cover { transition: none; } .sm-plan:hover, .sm-card:hover .sm-cover { transform: none; } }

/* ----- Store page v2 (/study-materials): search, pack row, sticky shelf chips, shelves ----- */
.sm-hero--store { padding-bottom: 46px; }
.sm-hero--store h1 { margin-bottom: 6px; }
.sm-hero--store h1 span { display: inline-block; font-size: .5em; vertical-align: middle; font-weight: 800; background: #fde68a; color: #78350f; padding: 3px 10px; border-radius: 99px; margin-left: 6px; }
.sm-find { display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 14px 0 0; padding: 4px 6px 4px 14px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); cursor: text; }
.sm-find svg, .sm-find .icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.sm-find input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; font-size: 16px; color: var(--ink); background: transparent; }
.sm-store { margin-top: -24px; }
.sm-block { margin-bottom: 22px; }
.sm-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.sm-block__head h2 { font-size: 1.15rem; margin: 0; }
.sm-block__note { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.sm-store > .sm-block:first-of-type .sm-block__head h2 { color: #fff; }
.sm-store > .sm-block:first-of-type .sm-block__note { color: rgba(255, 255, 255, .8); }
/* packs: grid on desktop, swipe row on phones */
.sm-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sm-pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none !important; color: var(--ink) !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sm-pack:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.sm-pack--hot { border: 2px solid var(--accent); background: linear-gradient(180deg, #fffbeb 0%, #fff 60%); }
.sm-pack__badge { position: absolute; top: -9px; left: 12px; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #451a03; padding: 2px 8px; border-radius: 99px; }
.sm-pack__t { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.sm-pack__n { font-size: .76rem; color: var(--muted); }
.sm-pack__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sm-pack .sm-price b { font-size: 1.25rem; }
/* sticky shelf chips */
.sm-chipbar { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 14px; padding: 8px 4px; background: rgba(245, 246, 251, .94); backdrop-filter: blur(6px); }
.sm-chipbar::-webkit-scrollbar { display: none; }
.sm-chipbar button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .84rem; padding: 7px 13px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.sm-chipbar button small { color: var(--muted); font-weight: 700; margin-left: 2px; }
.sm-chipbar button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; } .sm-chipbar button.is-on small { color: var(--brand-100); }
.sm-chipbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* shelves */
.sm-shelf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 16px; scroll-margin-top: 130px; }
.sm-store .sm-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; padding: 0; }
.sm-card { gap: 6px; }
.sm-card__link { display: block; text-decoration: none !important; }
.sm-card__t { font-size: .86rem; font-weight: 700; line-height: 1.3; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card__t a { color: var(--ink) !important; text-decoration: none !important; }
.sm-card__t a:hover { color: var(--brand) !important; }
.sm-card__meta { font-size: .74rem; color: var(--muted); }
.sm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.sm-card__foot .sm-price b { font-size: 1.1rem; }
.sm-card__sample { font-size: .74rem; font-weight: 700; color: var(--brand-600) !important; text-decoration: none !important; padding: 3px 8px; border-radius: 99px; background: var(--brand-50); white-space: nowrap; }
.sm-card__sample:hover { background: var(--brand-100); }
.sm-noresult { text-align: center; padding: 26px 10px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
/* how it works strip */
.sm-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: center; margin: 4px 0 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sm-how > div { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); }
.sm-how > div b { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.sm-how strong { display: block; color: var(--ink); font-size: .86rem; }
.sm-how__mine { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; white-space: nowrap; color: var(--brand) !important; }
.sm-how__mine svg, .sm-how__mine .icon { width: 16px; height: 16px; }
.sm-faq { margin-bottom: 14px; }
[hidden] { display: none !important; }
@media (max-width: 991.98px) { .sm-how { grid-template-columns: 1fr 1fr 1fr; } .sm-how__mine { grid-column: 1 / -1; justify-content: center; } }
@media (max-width: 767.98px) {
  .sm-packs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 10px 16px 6px; scrollbar-width: none; }
  .sm-packs::-webkit-scrollbar { display: none; }
  .sm-pack { flex: 0 0 72%; max-width: 260px; scroll-snap-align: start; }
  .sm-how { grid-template-columns: 1fr; gap: 8px; }
  .sm-shelf { padding: 12px 12px 14px; border-radius: 12px; }
  .sm-store .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .sm-pack { transition: none; } .sm-pack:hover { transform: none; } }
.sm-form input::placeholder { text-transform: none; }

/* ===== Under construction (maintenance.blade.php) + admin reminder bar ===== */
.uc-body { margin: 0; min-height: 100vh; background: radial-gradient(80% 60% at 100% 0%, rgba(245, 158, 11, .25) 0%, rgba(245, 158, 11, 0) 60%), linear-gradient(150deg, #1f1b84 0%, #2c27a8 55%, #0e7490 100%); font-family: var(--font); color: var(--ink); }
.uc { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.uc__card { width: 100%; max-width: 520px; background: #fff; border-radius: 20px; padding: 28px 24px; text-align: center; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
.uc__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--brand); }
.uc__brand img { border-radius: 50%; }
.uc__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.uc__art { position: relative; height: 70px; margin: 14px 0 4px; }
.uc__gear { position: absolute; top: 8px; border-radius: 50%; border: 8px dashed var(--accent); animation: ucSpin 6s linear infinite; }
.uc__gear--1 { width: 54px; height: 54px; left: calc(50% - 50px); }
.uc__gear--2 { width: 34px; height: 34px; left: calc(50% + 8px); top: 22px; border-color: var(--brand-600); animation-direction: reverse; animation-duration: 4s; }
@keyframes ucSpin { to { transform: rotate(360deg); } }
.uc h1 { font-size: 1.6rem; margin: 6px 0 8px; color: var(--ink); }
.uc__msg { color: var(--ink-2); margin: 0 0 10px; line-height: 1.55; }
.uc__eta { display: inline-block; background: var(--accent-50); color: #78350f; padding: 6px 12px; border-radius: 99px; font-size: .9rem; margin: 2px 0 10px; }
.uc__ta { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
@media (prefers-reduced-motion: reduce) { .uc__gear { animation: none; } }
.uc-adminbar { position: sticky; top: 0; z-index: 1100; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 7px 12px; background: #b91c1c; color: #fff; font-size: .85rem; font-weight: 600; text-align: center; }
.uc-adminbar a { color: #fff !important; text-decoration: underline !important; }
.sm-why { list-style: none; margin: 0; padding: 0 18px 10px; display: grid; gap: 10px; }
.sm-why li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); }
.sm-why svg, .sm-why .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.sm-why b { color: var(--ink); }
