/* GovtJobsRadar additions on top of theme.css (the owner's Blogger theme). */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-card-icon { color: var(--primary-color); display: inline-flex; }
.sr-card-icon svg { width: 18px; height: 18px; fill: currentColor; }
.search-chip { border: 0; font: inherit; }
.share-btn svg, .floating-nav-item svg, .btn-pill svg, .mobile-nav-toggle svg, .back-to-top-btn svg, .post-meta-item svg, .comm-icon-box svg { fill: currentColor; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--primary-color); padding: 8px 12px; z-index: 10000; border-radius: 4px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.brand-title { text-transform: none; }
/* Let wide tables scroll inside their own box instead of widening the page. */
.post-layout-grid > * { min-width: 0; }
/* theme.css sets `padding: 10px 0` here, which wipes the container's side gutter. */
.header-main { padding-left: 12px; padding-right: 12px; }
.brand-title span { color: #ffeb3b; }

/* Ticker without JS animation when the visitor asks for less motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none !important; padding-left: 0 !important; overflow-x: auto; }
}

/* Stage pills */
.stage-pill { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: #eef2f7; color: var(--text-muted); }
.stage-pill.is-open { background: #e6f4ea; color: #1e7a3c; }
.stage-pill.is-closing { background: #fef3e0; color: #a35a00; }
.stage-pill.is-closed { background: #fce8e6; color: #b3261e; }
.stage-pill.is-upcoming { background: var(--primary-light); color: var(--primary-color); }
.sr-card-meta { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-size: 0.75rem; color: var(--text-muted); }
.sr-card-text { display: block; }

/* Status bar on a job page */
.status-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--card-radius); margin: 0 0 14px; font-weight: 600; }
.status-bar svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.status-bar.is-open { background: #e6f4ea; color: #1e5f33; }
.status-bar.is-closing { background: #fef3e0; color: #8a4b00; }
.status-bar.is-closed { background: #fce8e6; color: #a1231b; }
.status-bar.is-upcoming, .status-bar.is-unknown { background: var(--primary-light); color: var(--primary-hover); }

/* Verified box */
.verify-box { border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: 12px 14px; margin: 0 0 16px; background: var(--card-hover-bg); font-size: 0.9rem; }
.verify-box strong { display: inline-flex; align-items: center; gap: 6px; }
.verify-box svg { width: 16px; height: 16px; fill: currentColor; }
.verify-box.is-verified strong { color: #1e7a3c; }
.verify-box.is-indicative strong { color: #a35a00; }
.verify-box p { margin: 4px 0 0; color: var(--text-secondary); }

/* Hindi summary */
.hindi-box { border-left: 0; background: var(--card-header-bg); border-radius: var(--card-radius); padding: 12px 14px; margin: 0 0 16px; }
.hindi-box h2 { font-size: 1rem; margin: 0 0 4px; }
.hindi-box p { margin: 0; line-height: 1.7; }

.post-content > p { margin-bottom: 14px; line-height: 1.65; }
.post-content h2 { font-size: 1.2rem; margin: 22px 0 10px; }
.post-content h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.job-table td ol { margin: 0; }

/* Kya badla */
.change-log { list-style: none; padding: 0 !important; margin: 0 0 16px !important; }
.change-log li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--card-border); margin: 0 !important; }
.change-log li::marker { content: none; }
.change-log time { color: var(--text-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* FAQs */
.faq-list details { border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: 10px 14px; margin-bottom: 8px; background: var(--card-bg); }
.faq-list summary { font-weight: 700; cursor: pointer; }
.faq-list details p { margin: 8px 0 0; color: var(--text-secondary); }

.site-note { font-size: 0.82rem; color: var(--text-muted); border-top: 1px dashed var(--card-border); padding-top: 12px; margin-top: 18px; }

/* List and hub pages */
.page-head { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: 16px 18px; margin: 16px 0; }
.page-head h1 { font-size: 1.45rem; line-height: 1.3; margin-bottom: 6px; }
.page-head p { color: var(--text-secondary); }
.job-rows { list-style: none; }
.job-rows li { border-bottom: 1px solid var(--card-border); }
.job-rows li:last-child { border-bottom: 0; }
.job-rows a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--text-main); }
.job-rows a:hover { background: var(--card-hover-bg); color: var(--primary-color); }
.job-rows .row-main { min-width: 0; }
.job-rows .row-title { font-weight: 600; display: block; }
.job-rows .row-sub { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.empty-note { padding: 18px 16px; color: var(--text-muted); }
.pagination { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; margin: 14px 0; }
.pagination li a, .pagination li span { display: block; padding: 6px 12px; border: 1px solid var(--card-border); border-radius: 6px; background: var(--card-bg); }
.pagination li.active a { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Static pages */
.page-body h2 { font-size: 1.15rem; margin: 18px 0 8px; }
.page-body p { margin-bottom: 12px; line-height: 1.7; }

/* Term chips in the footer and home */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.chip-list a { font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; background: var(--card-header-bg); color: var(--primary-color); font-weight: 600; }
.chip-list a span { color: var(--text-muted); font-weight: 400; }

.share-feedback { font-size: 0.8rem; color: var(--accent-green); margin-left: 6px; }

/* Brand mark beside the wordmark (public/assets/brand/ holds the image set) */
.brand-mark { display: inline-block; vertical-align: -0.2em; margin-right: 8px; }

/* Author box (job and update pages) and author page */
.author-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary-color); font-weight: 700; font-size: 1.4rem; }
.author-name { font-size: 1rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.author-role { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.author-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 0.82rem; }
.author-head { display: flex; gap: 16px; align-items: flex-start; }
.author-head .author-avatar { width: 72px; height: 72px; }
.author-head p { margin-top: 4px; }

/* Admit card / answer key / result page */
.update-cta { margin: 4px 0 6px !important; }
.update-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-color); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: var(--card-radius); }
.update-cta-btn:hover { background: var(--primary-hover); color: #fff; }
.update-cta-btn svg { width: 20px; height: 20px; fill: currentColor; }
.update-cta-note { font-size: 0.82rem; color: var(--text-muted); }
.update-job-link { background: var(--card-header-bg); border-radius: var(--card-radius); padding: 12px 14px; }

/* Contact page message form */
.contact-form-card { margin: 0 0 16px; padding: 20px; }
.cf-title { font-size: 1.2rem; margin: 0 0 12px; }
.cf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cf-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-wide { grid-column: 1 / -1; }
.cf-row label { font-weight: 600; font-size: .9rem; color: var(--text-main); }
.cf-optional { font-weight: 400; color: var(--text-muted); }
.cf-row input, .cf-row select, .cf-row textarea { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 6px; background: #fff; color: var(--text-main); width: 100%; }
.cf-row textarea { resize: vertical; min-height: 120px; }
.cf-row input:focus, .cf-row select:focus, .cf-row textarea:focus { outline: 2px solid var(--primary-color); outline-offset: 1px; border-color: var(--primary-color); }
.cf-row [aria-invalid="true"] { border-color: var(--secondary-color); }
.cf-error { color: var(--secondary-hover); font-size: .85rem; }
.cf-done { background: #e6f4ea; color: #137333; border-radius: 6px; padding: 12px 14px; margin: 0; }
.cf-submit { justify-self: start; background: var(--primary-color); color: #fff; border: 0; border-radius: 6px; padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.cf-submit:hover { background: var(--primary-hover); }
.cf-note { font-size: .82rem; color: var(--text-muted); margin: 8px 0 0; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .cf-form { grid-template-columns: 1fr; } }

/* Phone fixes (owner, 30 Oct 2026) */
/* Android Chrome reports the system button bar as a safe-area inset even without
   viewport-fit=cover, which left an empty strip under the bottom bar. */
.mobile-floating-bar { padding-bottom: 0; }
.floating-nav-item.active { color: var(--primary-color); box-shadow: inset 0 3px 0 var(--primary-color); }

/* Search box: the browser's own ✕ next to ours made two. */
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-input::-ms-clear { display: none; }

/* Touch targets of at least 32px */
.search-chip { padding: 6px 12px; min-height: 32px; }
.sr-card-more-btn { min-height: 32px; }

/* Footer: brand on top, Quick links and States side by side, About links in two columns.
   theme.css sets `padding: 30px 0 24px` on the grid, which wiped the container's side
   gutter, so the footer text touched the screen's left edge. */
.footer-widgets-grid { padding-left: 12px; padding-right: 12px; }
.footer-about-text { font-size: .82rem; line-height: 1.6; color: #94a3b8; }
@media (max-width: 540px) {
  .footer-widgets-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 24px 12px 18px; }
  .footer-about, .footer-pages { grid-column: 1 / -1; }
  .footer-pages .footer-links-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-links-list li { margin-bottom: 0; }
  .footer-links-list a { min-height: 32px; }
  .footer-bottom-inner { justify-content: center; }
}

/* Back to top floats over the page, see-through, once the visitor scrolls down */
.back-to-top-btn {
  position: fixed; right: 14px; bottom: 20px; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11, 87, 208, .7);
  background: color-mix(in srgb, var(--primary-color) 70%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, visibility 0s linear .2s;
}
.back-to-top-btn.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.back-to-top-btn:hover, .back-to-top-btn:focus-visible { background: var(--primary-color); }
.back-to-top-btn svg { width: 22px; height: 22px; }
@media (max-width: 768px) { .back-to-top-btn { bottom: 70px; } }

/* Job page: Important dates and Application fee one under the other on a phone */
@media (max-width: 540px) {
  .job-table.is-split thead { display: none; }
  .job-table.is-split tr, .job-table.is-split td { display: block; width: 100%; }
  .job-table.is-split td + td { border-top: 0; }
  .job-table.is-split td::before { content: attr(data-label); display: block; margin: -10px -12px 8px; padding: 8px 12px; background: var(--card-header-bg); color: var(--card-header-text); font-weight: 700; }
}

/* Phone menu: a drawer from the left */
.nav-drawer-head, .nav-backdrop { display: none; }
@media (max-width: 768px) {
  .main-nav, .main-nav.is-open {
    display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 2;
    width: min(82vw, 300px); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .main-nav .container { padding: 0; }
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 18px; color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .nav-drawer-close { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .nav-drawer-close svg { width: 24px; height: 24px; fill: currentColor; }
  .main-nav .nav-item a { padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid transparent; }
  .main-nav .nav-item.active a { border-left-color: #ffeb3b; border-bottom-color: rgba(255, 255, 255, .08); }
  .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .45); }
  /* The sticky header holds the drawer, so it must sit above the bottom bar while open. */
  body.nav-open .site-header { z-index: 10001; }
  body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav, .main-nav.is-open, .back-to-top-btn, .back-to-top-btn.is-visible { transition: none; }
}
