:root {
    --primary-color: #2563eb;
    --secondary-color: #0f9f9a;
    --link-color: #1d4ed8;
    --button-color: #2563eb;
    --button-text-color: #ffffff;
    --header-color: #ffffff;
    --footer-color: #0b1220;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #111827;
    --muted: #667085;
    --line: #d9e2ef;
    --brand: var(--primary-color);
    --brand-dark: var(--link-color);
    --green: #159947;
    --orange: #f97316;
    --red: #c40000;
    --purple: #6d4aff;
    --teal: var(--secondary-color);
    --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--site-font-family, "Hind", "Noto Sans Devanagari", Arial, Helvetica, sans-serif);
    line-height: 1.5;
}

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

.wrap {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
}

.top-bar .wrap,
.site-footer .wrap {
    width: calc(100% - 32px);
}

#latest-jobs,
#categories,
#results,
#admit-card,
#footer,
.latest-updates-board {
    scroll-margin-top: 190px;
}

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

.top-bar {
    background: linear-gradient(90deg, #0f172a 0%, #173661 55%, #0f172a 100%);
    color: #eaf2ff;
    font-size: 0.82rem;
}

.top-bar__inner {
    min-height: 38px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.top-bar p {
    margin: 0;
    overflow: hidden;
    color: #dbeafe;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-bar nav {
    display: flex;
    gap: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.top-pill {
    padding: 3px 8px;
    border-radius: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-color);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 52%);
    align-items: center;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--secondary-color));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.brand-mark-image {
    padding: 2px;
    border: 1px solid #dbe7f7;
    background: #ffffff;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.header-row > .brand:only-child,
.header-row > .header-ad:only-child {
    grid-column: 1 / -1;
}

.brand strong,
.brand small {
    display: block;
    min-width: 0;
}

.brand strong {
    color: #0f172a;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.15;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.header-ad,
.ad-box {
    min-height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid #c8d8ef;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 159, 154, 0.08)),
        #f8fafc;
    color: #64748b;
    text-align: center;
}

.header-ad strong,
.ad-box strong {
    display: block;
    color: #334155;
    font-size: 1rem;
}

.header-ad span,
.ad-box span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.main-nav {
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.nav-shell {
    display: grid;
}

.mobile-nav-state,
.header-menu-toggle {
    display: none;
}

.header-menu-toggle {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--button-color), var(--secondary-color));
    color: var(--button-text-color);
    box-shadow: 0 12px 24px rgba(255, 107, 61, 0.24);
    cursor: pointer;
    user-select: none;
}

.nav-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-scroll a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.nav-scroll a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nav-scroll a.is-active {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 -3px 0 #ffffff;
}

.nav-toggle-icon {
    position: relative;
    width: 28px;
    height: 24px;
    display: block;
}

.nav-toggle-icon i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 23px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, opacity 140ms ease, width 180ms ease;
}

.nav-toggle-icon i:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-7px);
}

.nav-toggle-icon i:nth-child(3) {
    transform: translate(-50%, -50%) translateY(7px);
}

.site-header:has(.mobile-nav-state:checked) .nav-toggle-icon i:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-header:has(.mobile-nav-state:checked) .nav-toggle-icon i:nth-child(2) {
    opacity: 0;
    width: 0;
}

.site-header:has(.mobile-nav-state:checked) .nav-toggle-icon i:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
    padding: 24px 0 10px;
    background: linear-gradient(180deg, #e8f1ff 0%, rgba(232, 241, 255, 0) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.8fr);
    align-items: stretch;
    gap: 16px;
}

.hero-copy,
.hero-panel,
.section-block,
.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: clamp(20px, 4vw, 34px);
}

.section-kicker {
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.08;
}

.hero p {
    max-width: 640px;
    margin: 0 0 18px;
    color: #526071;
    font-size: 1rem;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 680px;
    padding: 6px;
    border: 1px solid #c8d8ef;
    border-radius: 8px;
    background: #ffffff;
}

.search-box input,
.search-box button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    font: inherit;
}

.search-box input {
    min-width: 0;
    padding: 0 12px;
    outline: none;
}

.search-box button {
    padding: 0 18px;
    background: var(--button-color);
    color: var(--button-text-color);
    font-weight: 900;
    cursor: pointer;
}

.hero-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.hero-panel div {
    padding: 18px;
    border-radius: 8px;
    background: #eff6ff;
}

.hero-panel span {
    display: block;
    color: var(--brand-dark);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.hero-panel p {
    margin: 6px 0 0;
    color: #475569;
    font-weight: 800;
}

.alert-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.feature-tile {
    min-height: 84px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

.tile-green {
    background: #98a300;
}

.tile-blue {
    background: #153bdc;
}

.tile-orange {
    background: #df4a00;
}

.tile-red {
    background: #c90000;
}

.tile-purple {
    background: var(--purple);
}

.tile-teal {
    background: var(--teal);
}

.section-block {
    margin-top: 18px;
    padding: 18px;
}

.latest-updates-board {
    margin-top: 18px;
    padding: 18px 14px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
}

.latest-board-head {
    position: relative;
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--line);
}

.latest-board-head h1 {
    margin: 6px 0 0;
    color: #172033;
    font-size: clamp(1.45rem, 3vw, 1.65rem);
    line-height: 1.15;
}

.latest-board-head a {
    position: absolute;
    top: 0;
    right: 4px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.latest-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.update-column {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f7;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.update-column-head {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 1px solid #cfd8e6;
    background: #ffffff;
}

.update-column-head h2 {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.2;
}

.update-column-head a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.update-list {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.update-card {
    display: grid;
    gap: 12px;
    min-height: 72px;
    padding: 11px;
    border: 1px solid #cbd6e5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.job-update-card {
    min-height: 80px;
}

.update-card-top,
.update-card-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.update-card h3 {
    margin: 0;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.24;
}

.update-card p {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 900;
}

.update-card p strong {
    color: #111827;
}

.days-left {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.date-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 2px solid var(--brand);
    border-radius: 3px;
}

.date-icon::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: currentColor;
    color: var(--brand);
}

.date-icon-orange {
    border-color: var(--orange);
}

.date-icon-orange::before {
    color: var(--orange);
}

.date-icon-green {
    border-color: var(--green);
}

.date-icon-green::before {
    color: var(--green);
}

.section-title,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.section-title {
    padding-bottom: 14px;
}

.section-title h2,
.panel-head h2 {
    margin: 0;
    color: #172033;
    line-height: 1.2;
}

.section-title a,
.panel-head a {
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.category-card {
    min-height: 172px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-card span {
    width: 46px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
}

.card-green span {
    background: var(--green);
}

.card-blue span {
    background: var(--brand);
}

.card-orange span {
    background: var(--orange);
}

.card-red span {
    background: var(--red);
}

.card-purple span {
    background: var(--purple);
}

.card-teal span {
    background: var(--teal);
}

.category-card h3 {
    margin: 12px 0 6px;
    font-size: 1rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.category-card small {
    display: block;
    margin-top: 12px;
    color: #344054;
    font-weight: 900;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.content-main {
    display: grid;
    gap: 18px;
}

.panel {
    overflow: hidden;
}

.panel-head {
    min-height: 58px;
    padding: 0 16px;
    background: #ffffff;
}

.blue-head {
    background: var(--brand);
    color: #ffffff;
}

.blue-head h2 {
    color: #ffffff;
}

.job-list {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.job-row,
.compact-update {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.job-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 14px;
}

.job-row h3,
.compact-update h3 {
    margin: 0;
    color: #182234;
    font-size: 1rem;
    line-height: 1.25;
}

.job-row p {
    margin: 5px 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.job-row p span::before {
    content: "/";
    margin: 0 6px;
    color: #a0aec0;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-meta span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.status {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-new,
.status-open {
    background: var(--brand);
}

.status-closing_soon {
    background: var(--orange);
}

.status-closed {
    background: #64748b;
}

.status-published {
    background: var(--orange);
}

.status-download {
    background: var(--green);
}

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

.mini-panel {
    min-width: 0;
}

.compact-update {
    position: relative;
    margin: 12px;
    padding: 12px;
}

.compact-update p {
    margin: 0;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.compact-update .status {
    justify-self: start;
}

.sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 132px;
}

.ad-box {
    min-height: 250px;
}

.ad-slot {
    min-width: 0;
    overflow: hidden;
}

.ad-slot iframe,
.ad-slot ins,
.ad-slot img {
    max-width: 100%;
}

.footer-ad-slot {
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    text-align: center;
}

.ad-box--small {
    min-height: 120px;
}

.date-panel dl {
    margin: 0;
    padding: 12px;
}

.date-panel dl div {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
}

.date-panel dl div:last-child {
    border-bottom: 0;
}

.date-panel dt,
.date-panel dd {
    margin: 0;
    padding: 12px;
}

.date-panel dt {
    border-left: 4px solid var(--brand);
    background: #edf5ff;
    font-weight: 900;
}

.date-panel dd {
    color: #111827;
}

.empty-state {
    padding: 24px;
    border: 1px dashed #b8c7dc;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    color: #111827;
}

.gallery-page {
    display: grid;
    gap: 18px;
    padding: 18px 0 10px;
}

.gallery-section {
    padding: 14px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.gallery-section-description {
    margin: -4px 0 12px;
    color: #64748b;
    font-size: 0.94rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid #d7e2f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.gallery-card-media,
.gallery-view-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e8eef7;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-card-media {
    aspect-ratio: 9 / 16;
}

.gallery-card-media img,
.gallery-view-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.gallery-watermark {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.64);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.gallery-watermark-large {
    right: 14px;
    bottom: 14px;
    font-size: 0.78rem;
}

.gallery-card-body {
    display: grid;
    gap: 10px;
    padding: 11px;
}

.gallery-card-body h3 {
    min-height: 42px;
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.28;
}

.gallery-view-btn {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
}

.gallery-view-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.gallery-empty {
    margin: 0;
}

.gallery-view-page {
    max-width: 980px;
}

.gallery-view-card {
    overflow: hidden;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.gallery-view-card header {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.gallery-breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
}

.gallery-breadcrumb a {
    color: #2563eb;
}

.gallery-view-card h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.gallery-view-media {
    max-width: 560px;
    aspect-ratio: 9 / 16;
    margin: 18px auto;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
}

.gallery-view-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px 16px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 800;
}

.site-footer {
    margin-top: 24px;
    padding: 24px 0 14px;
    background: var(--footer-color);
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    align-items: start;
}

.footer-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.footer-brand strong {
    color: #ffffff;
}

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.footer-brand > span:not(.brand-mark) {
    min-width: 0;
}

.footer-brand .brand-mark-image {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.96);
}

.footer-about-block {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer p {
    max-width: 380px;
    margin: 0;
    color: #aab8ca;
    font-size: 0.92rem;
}

.site-footer h3 {
    position: relative;
    margin: 0 0 8px;
    padding-bottom: 8px;
    color: #ffffff;
    font-size: 0.96rem;
}

.site-footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #38bdf8;
}

.site-footer a {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    max-width: none;
    margin: 0;
    color: #dce7f5;
    font-size: 0.84rem;
    font-weight: 900;
}

.post-page {
    display: grid;
    gap: 18px;
    padding-top: 18px;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.post-main {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.post-hero-card,
.post-section-card,
.post-side-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.post-hero-card {
    border-top: 5px solid var(--brand);
    padding: clamp(16px, 3vw, 28px);
}

.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.post-breadcrumb span:last-child {
    color: #475569;
}

.post-hero-kicker {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
}

.post-hero-card h1 {
    max-width: 820px;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(1.65rem, 4vw, 2.55rem);
    line-height: 1.12;
}

.post-lead {
    max-width: 820px;
    color: #526071;
    font-size: 1rem;
    font-weight: 700;
}

.post-lead p {
    margin: 0 0 14px;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.post-meta-line span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #24415f;
    font-size: 0.82rem;
    font-weight: 900;
}

.post-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 18px;
}

.post-section-card {
    border-top: 4px solid var(--brand);
}

.post-section-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
}

.post-section-head span {
    width: 34px;
    height: 30px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.post-section-head h2 {
    margin: 0;
    color: #102033;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.18;
}

.post-section-blue {
    border-top-color: var(--brand);
}

.post-section-blue .post-section-head {
    background: #eff6ff;
}

.post-section-blue .post-section-head h2 {
    color: var(--brand-dark);
}

.post-section-orange {
    border-top-color: var(--orange);
}

.post-section-orange .post-section-head {
    background: #fff7ed;
}

.post-section-orange .post-section-head span {
    background: #c05600;
}

.post-section-orange .post-section-head h2 {
    color: #b45309;
}

.post-section-violet {
    border-top-color: var(--purple);
}

.post-section-violet .post-section-head {
    background: #f5f3ff;
}

.post-section-violet .post-section-head span {
    background: var(--purple);
}

.post-section-violet .post-section-head h2 {
    color: var(--purple);
}

.post-section-green {
    border-top-color: var(--green);
}

.post-section-green .post-section-head {
    background: #ecfdf5;
}

.post-section-green .post-section-head span {
    background: var(--green);
}

.post-section-green .post-section-head h2 {
    color: var(--green);
}

.post-content {
    padding: 16px;
    color: #1f2937;
    overflow-x: auto;
    font-weight: 500;
}

.post-content :first-child {
    margin-top: 0;
}

.post-content :last-child {
    margin-bottom: 0;
}

.post-content ul,
.post-content ol {
    padding-left: 22px;
}

.post-content table,
.post-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.post-content td,
.post-content th,
.post-table-wrap td,
.post-table-wrap th {
    padding: 10px;
    border: 1px solid var(--line);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.post-table-wrap th,
.post-content th {
    background: #edf5ff;
    color: #0f172a;
    font-weight: 900;
    text-align: left;
}

.post-data-table td:first-child {
    background: #f8fbff;
    color: #0f172a;
    font-weight: 900;
}

.post-table-wrap {
    padding: 16px;
    overflow-x: auto;
}

.post-link-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.post-step-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.post-step-list div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.post-step-list span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
}

.post-step-list p {
    margin: 4px 0 0;
    color: #1f2937;
    font-weight: 700;
}

.post-sidebar {
    min-width: 0;
    position: sticky;
    top: 132px;
    display: grid;
    gap: 16px;
}

.post-side-card {
    padding: 16px;
}

.post-side-card h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: #0f172a;
    font-size: 1.08rem;
}

.post-summary-card {
    border-top: 4px solid var(--orange);
}

.post-summary-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.post-summary-card dl div {
    display: grid;
    grid-template-columns: minmax(100px, 0.85fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.post-summary-card dl div:last-child {
    border-bottom: 0;
}

.post-summary-card dt,
.post-summary-card dd {
    margin: 0;
    font-size: 0.84rem;
}

.post-summary-card dt {
    color: var(--muted);
    font-weight: 900;
}

.post-summary-card dd {
    color: #111827;
    font-weight: 900;
}

.post-sidebar-ad {
    min-height: 250px;
}

.related-list {
    display: grid;
    gap: 10px;
}

.related-list a {
    display: grid;
    gap: 5px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.related-list strong {
    color: #111827;
    font-size: 0.9rem;
    line-height: 1.25;
}

.related-list span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
}

.legal-page {
    padding: 22px 0 28px;
}

.legal-card {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--line);
    border-top: 5px solid var(--brand);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin: 6px 0 10px;
    color: #0f172a;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.12;
}

.legal-lead {
    max-width: 760px;
    margin: 0 0 18px;
    color: #526071;
    font-weight: 700;
}

.about-author-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #bfd0ea;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 159, 154, 0.1)),
        #ffffff;
}

.about-author-photo {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    font-size: 1.6rem;
    font-weight: 900;
}

.about-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-author-copy span {
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-author-copy h2 {
    margin: 4px 0 2px;
    color: #102033;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.12;
}

.about-author-copy strong {
    display: block;
    color: var(--brand-dark);
    font-size: 0.92rem;
}

.about-author-copy p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #405064;
    font-weight: 700;
}

.about-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.about-color-card {
    min-height: 148px;
    padding: 14px;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.about-color-card span {
    width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 900;
}

.about-color-card h2 {
    margin: 14px 0 6px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.about-color-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 700;
}

.about-card-blue {
    background: linear-gradient(135deg, #1d4ed8, #0f4aa8);
}

.about-card-green {
    background: linear-gradient(135deg, #159947, #0f766e);
}

.about-card-orange {
    background: linear-gradient(135deg, #f97316, #b45309);
}

.legal-section,
.legal-contact-box,
.legal-link-list {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.legal-section h2,
.legal-contact-box h2,
.legal-link-list h2 {
    margin: 0 0 8px;
    color: #102033;
    font-size: 1.08rem;
}

.legal-section p,
.legal-contact-box p {
    margin: 0;
    color: #334155;
    font-weight: 600;
}

.legal-contact-box {
    display: grid;
    gap: 12px;
    background: #eff6ff;
}

.legal-contact-box div {
    display: grid;
    gap: 3px;
}

.legal-contact-box span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-contact-box a {
    color: var(--brand-dark);
    font-weight: 900;
}

.legal-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-link-list h2 {
    width: 100%;
}

.legal-link-list a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.listing-page {
    padding: 18px 0 24px;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.listing-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.listing-hero-card,
.listing-panel,
.listing-sidebar-card,
.listing-job-card,
.category-wide-card,
.important-link-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.listing-hero-card {
    padding: clamp(16px, 3vw, 24px);
    border-top: 5px solid var(--brand);
}

.listing-hero-card h1 {
    margin: 6px 0 8px;
    color: #0f172a;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    line-height: 1.12;
}

.listing-hero-card p {
    max-width: 780px;
    margin: 0;
    color: #526071;
    font-weight: 700;
}

.listing-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-top: 16px;
}

.listing-search input,
.listing-search button,
.listing-search a {
    min-height: 42px;
    border-radius: 8px;
    font: inherit;
}

.listing-search input {
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #c8d8ef;
    background: #ffffff;
    outline: none;
}

.listing-search button,
.listing-search a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    background: var(--brand);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.listing-search a {
    background: #eef4ff;
    color: var(--brand-dark);
}

.listing-panel {
    overflow: hidden;
}

.listing-panel-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
}

.listing-panel-head h2 {
    margin: 2px 0 0;
    color: #102033;
    font-size: 1.22rem;
    line-height: 1.2;
}

.listing-stack,
.category-wide-stack {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.listing-job-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.05), transparent 48%),
        #ffffff;
}

.listing-job-card__top,
.listing-job-card__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.listing-job-card h2 {
    margin: 0;
    color: #102033;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.24;
}

.listing-job-card__summary {
    max-width: 760px;
    margin: 0;
    color: #526071;
    font-size: 0.9rem;
    font-weight: 700;
}

.listing-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-job-card__meta span,
.listing-job-card__meta a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 7px;
    background: #eef4ff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.listing-job-card__meta a {
    color: var(--brand-dark);
}

.listing-job-card__bottom p {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 900;
}

.listing-job-card__bottom strong {
    color: #111827;
}

.public-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: #f8fbff;
}

.public-pagination a,
.public-pagination span,
.public-pagination strong {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.public-pagination a {
    background: var(--brand);
    color: #ffffff;
}

.listing-sidebar {
    position: sticky;
    top: 132px;
    display: grid;
    gap: 16px;
}

.listing-sidebar-ad {
    min-height: 280px;
}

.listing-sidebar-card {
    padding: 14px;
}

.listing-sidebar-card h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: #102033;
    font-size: 1.05rem;
}

.sidebar-category-list,
.sidebar-post-list {
    display: grid;
    gap: 9px;
}

.sidebar-category-list a,
.sidebar-post-list a {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.sidebar-category-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.sidebar-category-list a.is-active {
    border-color: var(--brand);
    background: #eef4ff;
}

.sidebar-category-badge {
    min-width: 42px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
}

.sidebar-category-badge.card-green,
.category-wide-card.card-green > span {
    background: var(--green);
}

.sidebar-category-badge.card-blue,
.category-wide-card.card-blue > span {
    background: var(--brand);
}

.sidebar-category-badge.card-orange,
.category-wide-card.card-orange > span {
    background: var(--orange);
}

.sidebar-category-badge.card-red,
.category-wide-card.card-red > span {
    background: var(--red);
}

.sidebar-category-badge.card-purple,
.category-wide-card.card-purple > span {
    background: var(--purple);
}

.sidebar-category-badge.card-teal,
.category-wide-card.card-teal > span {
    background: var(--teal);
}

.sidebar-category-list strong,
.sidebar-post-list strong {
    min-width: 0;
    color: #111827;
    font-size: 0.86rem;
    line-height: 1.25;
}

.sidebar-category-list small,
.sidebar-post-list span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.category-wide-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.category-wide-card > span {
    width: 56px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.category-wide-card h2 {
    margin: 0 0 4px;
    color: #102033;
    font-size: 1.08rem;
}

.category-wide-card p {
    margin: 0;
    color: #526071;
    font-size: 0.9rem;
    font-weight: 700;
}

.category-wide-card strong {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--brand-dark);
    font-size: 0.82rem;
    white-space: nowrap;
}

.important-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.important-link-card {
    display: grid;
    gap: 9px;
    align-content: start;
    padding: 14px;
}

.important-link-card h2 {
    margin: 0 0 4px;
    color: #102033;
    font-size: 1.05rem;
}

.important-link-card a {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.important-link-card a span {
    min-width: 0;
    color: #111827;
    font-weight: 900;
}

.important-link-card a strong {
    color: var(--brand-dark);
    font-size: 0.78rem;
}

@media (max-width: 980px) {
    .header-row,
    .hero-grid,
    .content-layout,
    .post-layout,
    .listing-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .alert-strip,
    .updates-grid,
    .latest-board-grid,
    .gallery-grid,
    .about-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar,
    .listing-sidebar,
    .post-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100% - 18px, 1180px);
    }

    .top-bar__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .top-bar nav {
        display: none;
    }

    .header-row {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 0;
    }

    .header-row .brand {
        min-width: 0;
    }

    .header-menu-toggle {
        display: flex;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .header-ad {
        grid-column: 1 / -1;
        min-height: 56px;
    }

    .main-nav {
        overflow: visible;
    }

    .nav-shell {
        gap: 0;
        padding: 0;
    }

    .nav-scroll {
        display: none;
        width: 100%;
        gap: 7px;
        margin: 0 0 8px;
        padding: 8px;
        border-radius: 10px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        overflow: visible;
        scroll-padding: 0;
        scroll-snap-type: none;
    }

    .mobile-nav-state:checked ~ .nav-shell .nav-scroll {
        display: grid;
    }

    .nav-scroll a {
        width: 100%;
        min-height: 40px;
        justify-content: flex-start;
        padding: 0 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        font-size: 0.84rem;
        scroll-snap-align: none;
    }

    .hero {
        padding-top: 12px;
    }

    .hero-copy {
        padding: 18px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .listing-search,
    .listing-job-card__top,
    .listing-job-card__bottom,
    .category-wide-card,
    .important-link-grid,
    .about-author-card,
    .about-color-grid {
        grid-template-columns: 1fr;
    }

    .about-author-photo {
        width: 104px;
        height: 104px;
    }

    .listing-page {
        padding-top: 12px;
    }

    .listing-hero-card {
        padding: 16px;
    }

    .listing-search button,
    .listing-search a,
    .listing-job-card .status {
        width: 100%;
    }

    .category-wide-card strong {
        justify-self: start;
        white-space: normal;
    }

    .search-box button {
        margin-top: 6px;
    }

    .alert-strip,
    .category-grid,
    .updates-grid,
    .latest-board-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 10px;
    }

    .gallery-card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .gallery-card-body h3 {
        min-height: auto;
    }

    .gallery-view-media {
        margin: 12px;
        max-width: none;
    }

    .feature-tile {
        min-height: 72px;
    }

    .section-block {
        padding: 14px;
    }

    .section-title,
    .latest-board-head,
    .job-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .latest-board-head a {
        position: static;
        margin-top: 12px;
    }

    .latest-updates-board {
        padding: 16px 10px 18px;
    }

    .update-card-bottom,
    .update-card-top {
        grid-template-columns: 1fr;
    }

    .update-card .status {
        justify-self: start;
    }

    .job-update-card .status {
        width: 100%;
    }

    .job-row .status {
        width: 100%;
    }

    .date-panel dl div {
        grid-template-columns: 1fr;
    }

    .post-page {
        gap: 12px;
        padding-top: 12px;
    }

    .post-hero-card {
        padding: 16px;
    }

    .post-meta-line span,
    .post-link-button {
        width: 100%;
    }

    .post-section-head {
        min-height: 52px;
        padding: 12px;
    }

    .post-section-head h2 {
        font-size: 1.05rem;
    }

    .post-table-wrap {
        padding: 12px;
    }

    .post-data-table {
        min-width: 560px;
    }

    .post-summary-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (min-width: 641px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}
