/*
 * v2 design — public pages, sign-in journey and the shell of signed-in pages.
 * Layout after the RRB portal (brand row, spaced menu, banner, announcement
 * bar) and statistic tiles after
 * the MeitY DARPAN dashboard. Loaded after dbim.css; colours stay on DBIM
 * tokens. To change the whole theme, change the three --v2 variables below.
 */
.v2 {
  --v2-primary: var(--dbim-key);       /* dark tiles, menu underline, footer */
  --v2-primary-2: var(--dbim-blue-2);  /* hover, value badges */
  --v2-light: var(--dbim-blue-5);      /* light tiles */
}
.v2-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ── Brand row ─────────────────────────────────────────────── */
.v2-header { background: var(--dbim-white); position: sticky; top: 0; z-index: 500; }
.v2-brand { border-bottom: 1px solid var(--dbim-grey-1); }
.v2-brand-row { display: flex; align-items: center; gap: 24px; min-height: 96px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.v2-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--dbim-black); margin-right: auto; min-width: 0; }
.v2-lockup:hover .v2-lockup-name { text-decoration: underline; }
.v2-lockup .dbim-emblem { height: 76px; }
.v2-lockup-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2-lockup-gov { font-size: 18px; line-height: 1.3; }
.v2-lockup-name { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--v2-primary); }

.v2-search { display: flex; align-items: stretch; width: 340px; max-width: 100%; border: 1px solid var(--dbim-grey-1); border-bottom: 3px solid var(--v2-primary); border-radius: 6px 6px 0 0; background: var(--dbim-white); }
.v2-search input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border: 0; background: transparent; font: 400 16px var(--dbim-font); color: var(--dbim-black); }
.v2-search input:focus-visible { outline-offset: -3px !important; }
.v2-search button { width: 52px; border: 0; border-left: 1px solid var(--dbim-grey-1); background: transparent; color: var(--v2-primary); cursor: pointer; display: grid; place-items: center; }
.v2-search button:hover { background: var(--v2-light); }

.v2-tools { display: flex; align-items: center; gap: 6px; }
.v2-tool, .v2-tools .dbim-a11y > button {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--v2-primary); text-decoration: none; cursor: pointer;
}
.v2-tool:hover, .v2-tools .dbim-a11y > button:hover, .v2-tools .dbim-a11y > button[aria-expanded="true"] { background: var(--v2-light); border-color: var(--v2-primary); }
.v2-tools .dbim-a11y > button .dbim-icon { width: 30px; height: 30px; color: var(--v2-primary); }
.v2-tools .dbim-a11y > button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2-lang { position: relative; }
.v2-lang a { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; font-weight: 700; line-height: 1; color: var(--v2-primary); text-decoration: none; border-radius: 4px; }
.v2-lang a:first-child { left: 2px; top: 2px; font-size: 19px; }
.v2-lang a:last-child { right: 2px; bottom: 2px; font-size: 17px; font-family: var(--dbim-font); }
.v2-lang a:hover { background: var(--v2-light); text-decoration: underline; }
.v2-lang a[aria-current="true"] { color: var(--dbim-grey-3); }
.v2-tool-sep { width: 1px; height: 40px; background: var(--dbim-grey-1); margin: 0 4px; }

/* ── Accessibility controls (RRB-style grid) ───────────────── */
.v2 .v2-a11y-panel { width: 380px; max-width: calc(100vw - 24px); padding: 18px 20px 16px; border: 1px solid var(--dbim-grey-1); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.v2-a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.v2 .v2-a11y-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; font-weight: 500; color: var(--dbim-black); }
.v2-a11y-head h2 svg { color: var(--v2-primary); flex: 0 0 auto; }
.v2 .v2-a11y-panel .v2-a11y-close { flex: 0 0 auto; width: 40px; height: 40px; min-width: 0; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--dbim-grey-3); }
.v2 .v2-a11y-panel .v2-a11y-close:hover { border-color: var(--dbim-grey-2); color: var(--dbim-black); background: var(--dbim-linen); }
.v2-a11y-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.v2 .v2-a11y-grid button {
  width: 100%; min-height: 100px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--v2-primary); border-radius: 10px; background: var(--dbim-white); color: var(--dbim-black);
  font: 700 15px/1.25 var(--dbim-font); text-transform: uppercase; letter-spacing: .02em; text-align: center;
}
.v2 .v2-a11y-grid button svg { color: var(--v2-primary); }
.v2 .v2-a11y-grid button:hover { background: var(--v2-light); }
.v2 .v2-a11y-grid button[aria-pressed="true"] { background: var(--v2-primary); color: var(--dbim-white); box-shadow: inset 0 0 0 2px var(--dbim-white); }
.v2 .v2-a11y-grid button[aria-pressed="true"] svg { color: var(--dbim-white); }
.v2-a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.v2 .v2-a11y-foot a { font-size: 15px; font-weight: 600; color: var(--v2-primary-2); text-decoration: underline; }
.v2 .v2-a11y-panel .v2-a11y-reset { display: block; flex: 0 0 120px; min-height: 44px; border: 1px solid var(--dbim-grey-2); border-radius: 8px; background: var(--dbim-linen); color: var(--dbim-black); font: 600 15px var(--dbim-font); }
.v2 .v2-a11y-panel .v2-a11y-reset:hover { background: var(--dbim-white); border-color: var(--v2-primary); }

/* ── Signed-in pages: slim strip above the application shell ── */
.v2-app-strip { background: var(--dbim-white); border-bottom: 2px solid var(--v2-primary); position: relative; z-index: 500; }
.v2-app-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 20px; flex-wrap: wrap; }
.v2-app-gov { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--v2-primary); }
.v2-app-sep { color: var(--dbim-grey-2); }
.v2-app-tools { display: flex; align-items: center; gap: 6px; }
.v2-app-link { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--v2-primary); text-decoration: none; }
.v2-app-link:hover { background: var(--v2-light); text-decoration: underline; }
.v2-app-strip .v2-tool, .v2-app-strip .v2-tools .dbim-a11y > button { width: 40px; height: 40px; }
.v2-app-strip .v2-tool-sep { height: 28px; }
.v2-app-strip .v2-tools .dbim-a11y > button .dbim-icon { width: 24px; height: 24px; }
.v2-app-strip .v2-lang a { width: 22px; height: 22px; }
.v2-app-strip .v2-lang a:first-child { font-size: 16px; }
.v2-app-strip .v2-lang a:last-child { font-size: 14px; }
.dbim-app .v2-footer { margin-top: 0; }
@media (max-width: 720px) {
  .v2-app-strip-row { padding: 4px 12px; }
  .v2-app-gov { flex-basis: 100%; }
  .v2-app-link { padding: 4px 6px; }
}

/* ── Main menu ─────────────────────────────────────────────── */
.v2-nav { border-bottom: 2px solid var(--v2-primary); background: var(--dbim-white); }
/* Spacing as the DBIM header menu: left-aligned items, equal 14px side padding */
.v2-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; }
.v2-menu > li { position: relative; }
.v2-menu-link {
  display: flex; align-items: center; gap: 6px; height: 100%; min-height: 48px; padding: 12px 14px;
  font: 600 var(--dbim-p1)/1.2 var(--dbim-font); color: var(--dbim-black); text-decoration: none;
  background: none; border: 0; border-bottom: 4px solid transparent; cursor: pointer;
}
.v2-menu-link:hover, .v2-menu-link[aria-expanded="true"] { color: var(--v2-primary); background: var(--v2-light); border-bottom-color: var(--v2-primary-2); }
.v2-menu-link[aria-current="page"], .v2-menu-link.is-current { color: var(--v2-primary); border-bottom-color: var(--v2-primary); }
.v2-caret { transition: transform .15s ease; }
.v2-menu-link[aria-expanded="true"] .v2-caret { transform: rotate(180deg); }
.v2-sub {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; z-index: 600; min-width: 250px;
  background: var(--dbim-white); border: 1px solid var(--dbim-grey-1); border-top: 3px solid var(--v2-primary);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.v2-sub[hidden] { display: none; }
.v2-sub a { display: block; padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--dbim-black); text-decoration: none; }
.v2-sub a:hover { background: var(--v2-light); color: var(--v2-primary); text-decoration: underline; }
.v2-sub a[aria-current="page"] { color: var(--v2-primary); box-shadow: inset 4px 0 0 var(--v2-primary); }
.v2-menu-cta { margin-left: auto; }
.v2-menu-cta .v2-menu-link { color: var(--v2-primary); }
.v2-nav-toggle { display: none; }

/* ── Banner carousel ───────────────────────────────────────
   Height follows the RRB portal (70vh) but never exceeds the 3:1 shape of
   a CCPS banner, so campaign text and phone numbers are never cropped. */
.v2-hero { position: relative; overflow: hidden; background: var(--dbim-white); }
.v2-slide[hidden] { display: none; }
.v2-slide { position: relative; }
.v2-slide > a { display: block; }
.v2-hero-img { display: block; width: 100%; height: min(70vh, 33.333vw); object-fit: cover; object-position: 50% 62%; }
.v2-slide-campaign .v2-hero-img { object-position: 50% 50%; }
.v2-hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.v2-hero-panel {
  pointer-events: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 28px 32px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 12px 32px rgba(22, 47, 106, 0.12);
}
.v2-hero h2 { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 700; color: var(--v2-primary); }
.v2-hero-panel .dbim-btn { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.v2-hero-controls {
  position: absolute; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 999px; background: rgba(22, 47, 106, 0.85);
}
.v2-hero-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--dbim-white); cursor: pointer; }
.v2-hero-btn:hover { background: rgba(255, 255, 255, 0.2); }
.v2-hero-btn .v2-icon-play { display: none; }
.v2-hero.is-paused .v2-hero-btn .v2-icon-play { display: block; }
.v2-hero.is-paused .v2-hero-btn .v2-icon-pause { display: none; }
.v2-hero-dots { display: inline-flex; gap: 2px; }
.v2-hero-dot { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.v2-hero-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dbim-white); }
.v2-hero-dot[aria-current="true"]::before { background: var(--dbim-white); }

/* ── Announcement bar ──────────────────────────────────────── */
.v2-ann { background: var(--dbim-linen); border-top: 1px solid var(--dbim-grey-1); border-bottom: 1px solid var(--dbim-grey-1); }
.v2-ann-row { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.v2-ann-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex: 0 0 auto; font-size: 18px; font-weight: 700; color: var(--v2-primary); }
.v2-ann-track { flex: 1; min-width: 0; overflow: hidden; }
.v2-ann-list { list-style: none; margin: 0; padding: 0 0 0 100%; display: inline-flex; gap: 64px; white-space: nowrap; animation: v2-marquee 32s linear infinite; }
.v2-ann-list li { font-size: 15px; }
.v2-ann-list li + li::before { content: "●"; margin-right: 64px; margin-left: -64px; font-size: 8px; vertical-align: middle; color: var(--v2-primary); position: relative; left: 28px; }
.v2-ann-track:hover .v2-ann-list, .v2-ann-track:focus-within .v2-ann-list, .v2-ann.is-paused .v2-ann-list { animation-play-state: paused; }
@keyframes v2-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.v2-ann-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--v2-primary); cursor: pointer; }
.v2-ann-toggle:hover { border-color: var(--v2-primary); background: var(--dbim-white); }
.v2-ann-toggle .v2-icon-play { display: none; }
.v2-ann.is-paused .v2-icon-play { display: block; }
.v2-ann.is-paused .v2-icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .v2-ann-list { animation: none; padding-left: 0; white-space: normal; flex-wrap: wrap; gap: 4px 32px; }
  .v2-ann-toggle { display: none; }
}

/* ── Statistic tiles (DARPAN-style) ────────────────────────── */
.v2-stats { margin-top: 48px; }
.v2-stats-bar { margin-bottom: 14px; }
.v2-scope {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; padding: 8px 22px;
  font-size: 15px; font-weight: 600; color: var(--dbim-success);
  border: 1px solid var(--dbim-black); transform: skewX(-12deg); background: var(--dbim-white);
}
.v2-scope > span { transform: skewX(12deg); display: inline-block; }
.v2-scope strong { font-weight: 700; }
.v2-scope-sep { width: 2px; height: 20px; background: var(--dbim-success); }
.v2-dept { border: 1px solid var(--dbim-grey-1); border-top: 3px solid var(--v2-primary); border-radius: 16px; background: var(--dbim-white); box-shadow: 0 6px 18px rgba(0,0,0,.06); overflow: hidden; }
.v2-dept-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px 4px; background: #F7F7F7; }
.v2-dept-head h2 { margin: 0; font-size: 20px; color: var(--dbim-black); }
.v2-dept-count { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 15px; font-weight: 600; border: 1px solid var(--dbim-grey-1); border-radius: 4px; background: var(--dbim-white); }
.v2-dept-count span { padding: 1px 8px; border-radius: 4px; background: #FDE2E4; color: var(--dbim-error); font-weight: 700; }
.v2-dept-lead { margin: 0; padding: 4px 24px 16px; font-size: 14px; background: #F7F7F7; border-bottom: 1px solid var(--dbim-linen); }
.v2-tiles { list-style: none; margin: 0; padding: 8px 32px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }

.v2-tile { --tile: var(--v2-primary-2); padding-top: 30px; }
.v2-tile > a {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 0 22px 14px; border: 2px solid var(--tile); border-radius: 14px;
  background: var(--dbim-white); color: var(--dbim-black); text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.v2-tile > a:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.v2-tile > a:hover .v2-tile-name { text-decoration: underline; }
.v2-tile-head {
  display: flex; align-items: center; gap: 16px; margin: -30px 20px 0; padding: 10px 16px;
  border: 2px dashed var(--tile); border-radius: 12px; background: var(--dbim-white);
}
.v2-tile-icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--tile); display: grid; place-items: center; color: var(--tile); background: var(--dbim-white); }
.v2-tile[style*="#FFC107"] .v2-tile-icon { color: var(--dbim-key); }
.v2-tile-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v2-tile-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.v2-tile-range { font-size: 13px; color: var(--dbim-grey-3); }
.v2-tile-zoom { position: absolute; right: 4px; top: 12px; color: var(--dbim-black); }
.v2-tile-row { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--dbim-grey-1); }
.v2-tile-label { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; padding-right: 12px; border-right: 1px solid var(--dbim-grey-1); }
.v2-tile-value { flex: 0 0 auto; padding: 3px 9px; border-radius: 3px; background: var(--v2-primary-2); color: var(--dbim-white); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.v2-tile-foot { display: flex; align-items: center; margin-top: 10px; }
.v2-freq { color: var(--v2-primary-2); display: inline-flex; }
.v2-note { margin: 0; padding: 8px 32px 24px; font-size: 14px; }

/* ── Sign-in page ─────────────────────────────────────────── */
.v2-login { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; margin-top: 32px; border: 1px solid var(--dbim-grey-1); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.v2-login-side { padding: 40px 36px; color: var(--dbim-white); background:
  radial-gradient(ellipse 60% 50% at 20% 20%, rgba(163,187,243,.25), transparent 70%),
  linear-gradient(160deg, var(--v2-primary) 0%, var(--v2-primary-2) 100%); }
.v2-login-side h2 { margin: 0 0 10px; font-size: 28px; color: var(--dbim-white); }
.v2-login-side > p { margin: 0 0 20px; font-size: 16px; }
.v2-login-side ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.v2-login-side li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.v2-login-side li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dbim-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162F6A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.v2-login-help { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.35); font-size: 15px; }
.v2 .v2-login-side a { color: var(--dbim-white); text-decoration: underline; }

.v2-login-card { padding: 40px 44px; background: var(--dbim-white); }
.v2-login-card h1 { margin: 0 0 8px; font-size: 32px; color: var(--v2-primary); }
.v2-login-lead { margin: 0 0 20px; font-size: 15px; color: var(--dbim-grey-3); }
.v2-error-summary { margin: 0 0 20px; padding: 14px 16px; border: 2px solid var(--dbim-error); border-left-width: 6px; border-radius: 6px; background: var(--dbim-white); }
.v2-error-summary h2 { margin: 0 0 6px; font-size: 17px; color: var(--dbim-black); }
.v2-error-summary ul { margin: 0; padding-left: 18px; }
.v2 .v2-error-summary a { color: var(--dbim-error); font-weight: 600; }
.v2-sso { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--dbim-grey-2); border-radius: 8px; background: var(--dbim-white); color: var(--dbim-black); font-size: 16px; font-weight: 600; text-decoration: none; }
.v2-sso:hover { border-color: var(--v2-primary); background: var(--v2-light); text-decoration: underline; }
.v2-sso-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--v2-primary); color: var(--dbim-white); font-weight: 700; font-size: 14px; }
.v2-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 14px; color: var(--dbim-grey-3); }
.v2-divider::before, .v2-divider::after { content: ""; flex: 1; height: 1px; background: var(--dbim-grey-1); }
.v2-login-form { display: grid; gap: 18px; }
.v2-login-form .dbim-form-note { margin: 0; }
.v2-field { display: grid; gap: 6px; }
.v2-field label { font-size: 15px; font-weight: 600; }
.v2-field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v2 .v2-field-row a { font-size: 14px; color: var(--v2-primary-2); }
.v2-field input[type="text"], .v2-field input[type="password"], .v2-field input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--dbim-grey-2); border-radius: 8px;
  font: 400 16px var(--dbim-font); color: var(--dbim-black); background: var(--dbim-white);
}
.v2-field input:hover { border-color: var(--v2-primary); }
.v2-pwd { position: relative; }
.v2-pwd input { padding-right: 52px !important; }
.v2-pwd-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--dbim-grey-3); cursor: pointer; }
.v2-pwd-toggle:hover { color: var(--v2-primary); background: var(--v2-light); }
.v2-pwd-toggle .v2-eye-shut { display: none; }
.v2-pwd-toggle[aria-pressed="true"] .v2-eye-open { display: none; }
.v2-pwd-toggle[aria-pressed="true"] .v2-eye-shut { display: block; }
.v2-captcha { display: flex; gap: 10px; }
.v2-captcha-glyph {
  flex: 0 0 120px; display: grid; place-items: center; min-height: 48px; border: 1px solid var(--dbim-grey-1); border-radius: 8px;
  font-size: 24px; font-weight: 600; letter-spacing: .12em; user-select: none;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(33,74,171,.08) 8px 9px), var(--dbim-linen);
}
.v2-captcha input { flex: 1; }
.v2-hint { margin: 0; font-size: 13px; color: var(--dbim-grey-3); }
.v2-check { display: flex; align-items: center; gap: 10px; }
.v2-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--v2-primary); }
.v2-check label { font-size: 15px; }
.v2-login-submit { width: 100%; min-height: 50px; font-size: 16px; }
/* Single-card screens of the sign-in journey (forgot / reset password, OTP) */
.v2-auth { max-width: 560px; margin: 32px auto 0; border: 1px solid var(--dbim-grey-1); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.v2-auth-back { margin: 20px 0 0; text-align: center; font-size: 15px; }
.v2-auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; }
.v2 .v2-auth-back a, .v2 .v2-auth-links a { color: var(--v2-primary-2); }
.v2-linkbtn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--v2-primary-2); font: 400 15px var(--dbim-font); text-decoration: underline; cursor: pointer; }
.v2-linkbtn:hover { text-decoration-thickness: 2px; }
.v2-otp-input { font-size: 24px !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.v2-options { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.v2-options legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.v2-option { position: relative; }
.v2-option input { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; margin: 0; accent-color: var(--v2-primary); }
.v2-option label { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 48px; border: 1px solid var(--dbim-grey-2); border-radius: 8px; cursor: pointer; }
.v2-option label span { font-size: 14px; color: var(--dbim-grey-3); }
.v2-option input:checked + label { border: 2px solid var(--v2-primary); background: var(--v2-light); padding: 13px 15px 13px 47px; }
.v2-option.is-disabled label { cursor: not-allowed; background: var(--dbim-linen); color: var(--dbim-grey-3); }

@media (max-width: 900px) {
  .v2-login { grid-template-columns: 1fr; margin-top: 16px; }
  .v2-login-side { order: 2; padding: 24px 20px; }
  .v2-login-card { padding: 24px 20px; }
  .v2-login-card h1 { font-size: 26px; }
  .v2-auth { margin-top: 16px; }
}

/* ── Content pages inside v2 ───────────────────────────────── */
.v2 .dbim-breadcrumb { max-width: none; padding: 12px max(16px, calc((100vw - 1280px) / 2 + 16px)) !important; background: var(--dbim-linen); border-bottom: 1px solid var(--dbim-grey-1); }
.v2 .dbim-breadcrumb a { color: var(--v2-primary); }
.v2 .dbim-prose h1, .v2 .dbim-page h1 { color: var(--v2-primary); border-bottom: 3px solid var(--v2-primary); padding-bottom: 8px; }

/* ── Footer (MeitY style) ────────────────────────────────── */
.v2-footer { background: var(--v2-primary); color: var(--dbim-white); margin-top: 56px; font-family: var(--dbim-font); }
.v2-footer a { color: var(--dbim-white); }
.v2-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; padding-top: 36px; flex-wrap: wrap; }
.v2-footer-useful { flex: 1 1 560px; }
.v2-footer h2 { margin: 0 0 22px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--dbim-white); }
.v2-useful { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; max-width: 900px; }
.v2-useful a { font-size: 19px; text-decoration: none; }
.v2-useful a::before { content: "›"; margin-right: 8px; font-weight: 700; }
.v2-useful a:hover { text-decoration: underline; }
.v2-footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.v2-footer-side h2 { margin-bottom: 16px; text-align: right; }
.v2-social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 14px; }
.v2-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.v2-social a:hover { background: rgba(255,255,255,.14); }
.v2-portals { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.v2-portals a { display: flex; align-items: center; justify-content: center; min-width: 145px; height: 56px; padding: 0 12px; border-radius: 4px; background: var(--dbim-white); text-decoration: none; }
.v2-portals a:hover { outline: 3px solid var(--v2-light); }
.v2-portal-mygov { font-size: 22px; font-weight: 800; line-height: 1; color: var(--dbim-black); }
.v2-portal-mygov b:first-child { color: var(--dbim-success); }
.v2-portal-mygov b:nth-child(2) { color: var(--dbim-error); }
.v2-portal-mygov span { font-size: 15px; color: var(--v2-primary); }
.v2-portal-india { display: flex; flex-direction: column; align-items: center; font-size: 22px; font-weight: 800; line-height: 1; color: var(--v2-primary-2); }
.v2-portal-india small { margin-top: 3px; font-size: 8px; font-weight: 600; color: var(--dbim-black); }
.v2-footer-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; padding: 28px 0 28px; }
.v2-footer-owner { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.v2-footer-meta p { margin: 0; }
/* Scales with the viewport so the ownership line stays on one line on desktop and wraps evenly on small screens */
.v2-footer-owner > p:first-child { font-size: clamp(15px, 1.4vw, 18px); text-wrap: balance; }
.v2-footer-small { font-size: 14px; }
.v2-footer-updated { margin-left: auto; font-size: clamp(14px, 1.3vw, 17px); white-space: nowrap; }
/* Collapsible footer (signed-in dashboard): closed = just a round arrow button
   at the bottom-right of the page; open = the full blue footer. */
.v2-footer.is-collapsible { margin-top: 0; }
.v2-footer.is-collapsible:not(.is-open) { background: transparent; }
.v2-footer-bar { display: flex; justify-content: flex-end; padding: 8px 24px; }
.v2-footer-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--dbim-white); border-radius: 50%;
  background: var(--v2-primary); color: var(--dbim-white); box-shadow: 0 4px 12px rgba(0,0,0,.25); cursor: pointer; }
.v2-footer-toggle:hover { background: var(--v2-primary-2); }
.v2-footer-toggle:focus-visible { outline: 3px solid var(--v2-primary-2); outline-offset: 2px; }
.is-open .v2-footer-toggle { border-color: rgba(255,255,255,.6); box-shadow: none; }
.is-open .v2-footer-toggle:focus-visible { outline-color: var(--dbim-white); }
.v2-footer-toggle svg { transition: transform .2s; }
.v2-footer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.is-collapsible .v2-footer-bar + .v2-wrap .v2-footer-top { padding-top: 16px; }
/* Keep the floating back-to-top button clear of the footer arrow */
.v2-footer.is-collapsible ~ .v2-to-top { bottom: 76px; }

.v2-to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 800; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--v2-primary); color: var(--dbim-white);
  border: 2px solid var(--dbim-white); box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.v2-to-top[hidden] { display: none; }
.v2-to-top:hover { background: var(--v2-primary-2); }
@media (max-width: 900px) {
  .v2-useful { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-useful a { font-size: 16px; }
  .v2-footer-updated { margin-left: 0; }
  .v2-footer-side { align-items: flex-start; }
  .v2-footer-side h2 { text-align: left; }
  .v2-social, .v2-portals { justify-content: flex-start; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .v2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .v2-brand-row { gap: 12px; min-height: 0; }
  .v2-lockup .dbim-emblem { height: 56px; }
  .v2-lockup-gov { font-size: 14px; }
  .v2-lockup-name { font-size: 20px; }
  .v2-lockup { flex: 1 1 0; }
  .v2-search { order: 3; width: 100%; }
  .v2-tool, .v2-tools .dbim-a11y > button { width: 44px; height: 44px; }
  .v2-nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; min-height: 44px; padding: 8px 12px;
    border: 1px solid var(--v2-primary); border-radius: 6px; background: var(--dbim-white); color: var(--v2-primary);
    font: 600 15px var(--dbim-font); cursor: pointer;
  }
  .v2-menu { display: none; flex-direction: column; padding-bottom: 8px; }
  .v2-nav.is-open .v2-menu { display: flex; }
  .v2-menu-link { width: 100%; min-height: 48px; border-bottom: 1px solid var(--dbim-linen); border-left: 4px solid transparent; }
  .v2-menu-link[aria-current="page"], .v2-menu-link.is-current { border-left-color: var(--v2-primary); border-bottom-color: var(--dbim-linen); }
  .v2-sub { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--v2-primary); margin-left: 16px; }
  .v2-hero h2 { font-size: 22px; }
  .v2-hero-panel .dbim-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .v2-hero-controls { position: static; justify-content: center; border-radius: 0; }
  .v2-hero-panel { padding: 12px 14px; gap: 10px; }
  .v2-slide:not(.v2-slide-campaign) .v2-hero-img { height: 220px; }
}
@media (max-width: 640px) {
  .v2-ann-label { font-size: 15px; }
  .v2-lockup-gov { font-size: 12px; }
  .v2-lockup-name { font-size: 18px; }
  .v2-lockup .dbim-emblem { height: 48px; }
  .v2-scope { transform: none; display: flex; padding: 8px 12px; }
  .v2-scope > span { transform: none; }
  .v2-scope-sep { display: none; }
  .v2-ann-row { gap: 12px; }
  .v2-tiles { grid-template-columns: 1fr; padding: 20px 16px 8px; }
  .v2-tile-head { margin: -30px 8px 0; }
  .v2-dept-head, .v2-dept-lead { padding-left: 16px; padding-right: 16px; }
}

/* High contrast mode keeps its own rules (dbim.css); make tiles legible there */
html.dbim-hc .v2-tile > a, html.dbim-hc .v2-tile-head, html.dbim-hc .v2-tile-icon { border-color: var(--dbim-white) !important; }
