/* DhanLap site chrome for the blog and the /l/ pages (27 Nov 2026).
   Matches https://dhanlap.com/eligibility: same tokens, font, logo tile, header and footer.
   Values copied from dhan-check-frontend check_frontend/src/tokens/tokens.css and src/ui/ui.css. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-dl-400-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --dl-ink: #312E81;
  --dl-accent: #6366F1;
  --dl-accent-deep: #4F46E5;
  --dl-accent-wash: #EEF2FF;
  --dl-border: #E2E8F0;
  --dl-border-soft: #F1F5F9;
  --dl-muted-text: #475569;
  --dl-bg-field: #F8FAFC;
  --dl-white: #FFFFFF;
  --dl-cta-from: #4F46E5;
  --dl-cta-to: #4338CA;
  --dl-cta-hover-from: #4338CA;
  --dl-cta-hover-to: #3730A3;
  --dl-font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dl-radius-sm: 10px;
  --dl-radius-md: 12px;
  --dl-focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.35);
  --dl-max-enterprise: 1200px;
  --dl-gutter: 16px;
  --dl-header-h: 56px;
}
@media (min-width: 640px) { :root { --dl-gutter: 24px; } }

/* ---------- Page base ---------- */
html body.dl-site {
  font-family: var(--dl-font);
  color: var(--dl-ink);
  background: var(--dl-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 0; /* the old themes padded the body for a fixed header; this header is sticky */
}
body.dl-site .serif-font { font-family: var(--dl-font); }
body.dl-site h1, body.dl-site h2, body.dl-site h3, body.dl-site h4, body.dl-site h5, body.dl-site h6,
body.dl-site p, body.dl-site li, body.dl-site td, body.dl-site th, body.dl-site button, body.dl-site input,
body.dl-site select, body.dl-site textarea, body.dl-site label, body.dl-site .h1, body.dl-site .h2, body.dl-site .h3 {
  font-family: var(--dl-font);
}
body.dl-site h1, body.dl-site h2, body.dl-site h3, body.dl-site h4 { color: var(--dl-ink); letter-spacing: -0.01em; }
body.dl-site a:focus-visible { outline: none; box-shadow: var(--dl-focus-ring); border-radius: 6px; }

.dl-wrap { width: 100%; max-width: var(--dl-max-enterprise); margin: 0 auto; padding: 0 var(--dl-gutter); box-sizing: border-box; }

/* ---------- Logo: the D tile, always a rounded square (22%) ---------- */
.dl-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--dl-ink); height: 28px; }
.dl-logo__mark { height: 100%; aspect-ratio: 1; border-radius: 22%; overflow: hidden; flex: none; display: block; }
.dl-logo__mark img { width: 100%; height: 100%; display: block; }
.dl-logo__text { font: 600 20px/1 var(--dl-font); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.dl-header {
  position: sticky; top: 0; z-index: 1040;
  background: var(--dl-white);
  border-bottom: 1px solid var(--dl-border-soft);
  font: 400 14px/20px var(--dl-font);
}
.dl-header__row { display: flex; align-items: center; gap: 12px; height: var(--dl-header-h); }
.dl-header__brand { display: inline-flex; height: 28px; border-radius: var(--dl-radius-sm); text-decoration: none !important; }
.dl-header a { text-decoration: none; }
.dl-nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.dl-nav__link, .dl-nav__group > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: var(--dl-radius-sm); color: var(--dl-ink); font-weight: 600; cursor: pointer;
  list-style: none; white-space: nowrap;
}
.dl-nav__group > summary::-webkit-details-marker { display: none; }
.dl-nav__link:hover, .dl-nav__group > summary:hover, .dl-nav__group[open] > summary { background: var(--dl-accent-wash); color: var(--dl-ink); }
.dl-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dl-nav__group { position: relative; }
.dl-nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; padding: 8px;
  background: var(--dl-white); border: 1px solid var(--dl-border); border-radius: var(--dl-radius-md);
  box-shadow: 0 12px 32px -12px rgba(49, 46, 129, 0.25); display: grid;
}
.dl-nav__menu a { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--dl-ink); font-weight: 500; }
.dl-nav__menu a:hover { background: var(--dl-accent-wash); color: var(--dl-accent-deep); }
.dl-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--dl-accent-wash); color: var(--dl-accent-deep); font-size: 10px; font-weight: 600; letter-spacing: 0.4px; }
.dl-soon { color: #059669; font-size: 11px; font-weight: 600; }
.dl-header__signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-left: auto;
  border-radius: var(--dl-radius-sm); color: var(--dl-ink) !important; font-weight: 600; white-space: nowrap;
}
.dl-header__signin:hover { background: var(--dl-accent-wash); }

/* ---------- Buttons (dl-btn, as on /eligibility) ---------- */
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--dl-radius-md);
  font: 600 15px/1 var(--dl-font); letter-spacing: 0.2px; cursor: pointer; text-decoration: none !important;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out; white-space: nowrap;
}
.dl-btn--primary, a.dl-btn--primary, a.dl-btn--primary:hover {
  color: var(--dl-white) !important; background: linear-gradient(180deg, var(--dl-cta-from), var(--dl-cta-to));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 8px 20px -12px rgba(79, 70, 229, 0.8);
}
.dl-btn--primary:hover { background: linear-gradient(180deg, var(--dl-cta-hover-from), var(--dl-cta-hover-to)); transform: translateY(-2px); box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 14px 28px -14px rgba(79, 70, 229, 0.9); }
.dl-btn:focus-visible { outline: none; box-shadow: var(--dl-focus-ring), 0 0 0 1px var(--dl-accent-deep); }

/* ---------- Mobile menu ---------- */
.dl-menu { position: static; }
.dl-menu > summary {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--dl-radius-sm); cursor: pointer; list-style: none; color: var(--dl-ink);
}
.dl-menu > summary::-webkit-details-marker { display: none; }
.dl-menu > summary:hover, .dl-menu[open] > summary { background: var(--dl-accent-wash); }
.dl-burger, .dl-burger::before, .dl-burger::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; content: ""; }
.dl-burger::before { position: absolute; top: -6px; }
.dl-burger::after { position: absolute; top: 6px; }
.dl-menu[open] .dl-burger { background: transparent; }
.dl-menu[open] .dl-burger::before { top: 0; transform: rotate(45deg); }
.dl-menu[open] .dl-burger::after { top: 0; transform: rotate(-45deg); }
.dl-menu__panel {
  position: absolute; left: 0; right: 0; top: var(--dl-header-h); max-height: calc(100vh - var(--dl-header-h)); overflow-y: auto;
  background: var(--dl-white); border-bottom: 1px solid var(--dl-border); box-shadow: 0 16px 32px -16px rgba(49, 46, 129, 0.25);
  padding: 8px var(--dl-gutter) 20px; display: grid; gap: 2px;
}
.dl-menu__h { margin: 12px 0 4px; padding: 0 12px; color: var(--dl-muted-text); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.dl-menu__panel a:not(.dl-btn) { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--dl-radius-sm); color: var(--dl-ink); font-weight: 500; font-size: 16px; }
.dl-menu__panel a:not(.dl-btn):hover { background: var(--dl-accent-wash); }
.dl-menu__panel .dl-btn { margin-top: 12px; width: 100%; min-height: 50px; }

@media (min-width: 1100px) {
  .dl-nav { display: flex; }
  .dl-menu { display: none; }
  .dl-header__signin { margin-left: 0; }
}

/* ---------- Footer (dl-footer--full on /eligibility) ---------- */
.dl-footer {
  margin-top: 48px; padding: 32px 0 40px; background: #1E1B4B; color: #C7D2FE;
  font: 400 13px/20px var(--dl-font);
}
.dl-footer a { color: var(--dl-white) !important; text-decoration: none; }
.dl-footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
.dl-footer .dl-logo { color: var(--dl-white); }
.dl-footer__grid { display: grid; gap: 20px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.dl-footer__about { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
.dl-footer__about p { margin: 0; color: #C7D2FE; }
.dl-footer .dl-footer__h { margin: 4px 0 6px; color: var(--dl-white); font-weight: 600; font-size: 14px; }
.dl-footer ul { margin: 0; padding: 0; list-style: none; display: grid; }
.dl-footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.dl-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dl-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-size: 20px; }
.dl-footer__social a:hover { background: rgba(199, 210, 254, 0.15); text-decoration: none; }
.dl-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-footer__badges img { height: 44px; width: auto; background: var(--dl-white); border-radius: 8px; padding: 4px 8px; object-fit: contain; }
.dl-footer__bottom { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(199, 210, 254, 0.2); }
.dl-footer__bottom p { margin: 0; color: #C7D2FE; }
@media (min-width: 900px) {
  .dl-footer__grid { grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); }
  .dl-footer__about { grid-column: auto; }
}

/* The Get Loan button sits in the menu panel on phones; the header keeps logo, Sign in and the menu. */
.dl-header__cta { display: none; min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 640px) { .dl-header__cta { display: inline-flex; } }

/* ---------- Article text: the site's font and colours, left-aligned ---------- */
body.dl-site .article-post,
body.dl-site .article-post > *:not(table),
body.dl-site .article-post p,
body.dl-site .article-post li,
body.dl-site .article-post blockquote {
  font-family: var(--dl-font);
  text-align: left;
}
body.dl-site .article-post { font-size: 16px; line-height: 1.7; color: var(--dl-muted-text); }
body.dl-site .article-post p, body.dl-site .article-post li { color: var(--dl-muted-text); }
body.dl-site .article-post strong, body.dl-site .article-post b { color: var(--dl-ink); font-weight: 600; }
body.dl-site .article-post h1, body.dl-site .mainheading h1.posttitle { font-size: 30px; line-height: 38px; font-weight: 600; color: var(--dl-ink); margin: 0 0 16px; text-wrap: balance; }
body.dl-site .article-post h2 { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--dl-ink); margin: 32px 0 12px; }
body.dl-site .article-post h3 { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--dl-ink); margin: 28px 0 10px; }
body.dl-site .article-post h4, body.dl-site .article-post h5, body.dl-site .article-post h6 { font-size: 17px; line-height: 26px; font-weight: 600; color: var(--dl-ink); margin: 24px 0 8px; }
@media (max-width: 639px) {
  body.dl-site .article-post h1, body.dl-site .mainheading h1.posttitle { font-size: 24px; line-height: 32px; }
  body.dl-site .article-post h2 { font-size: 20px; line-height: 28px; }
  body.dl-site .article-post h3 { font-size: 18px; line-height: 26px; }
}
body.dl-site .article-post ul { list-style: disc; padding-left: 1.5em; }
body.dl-site .article-post ol { list-style: decimal; padding-left: 1.5em; }
body.dl-site .article-post a:not(.lamfbuttong):not(.dl-btn) { color: var(--dl-accent-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(99, 102, 241, 0.45); }
body.dl-site .article-post a:not(.lamfbuttong):not(.dl-btn):hover { text-decoration-color: currentColor; }
body.dl-site .article-post blockquote { border-left: 4px solid var(--dl-accent); color: var(--dl-muted-text); }
body.dl-site .article-post table { font-family: var(--dl-font); }

/* The in-article "Take a loan" links: the site's primary button. */
body.dl-site a.lamfbuttong, body.dl-site a.lamfbuttong:hover, body.dl-site a.lamfbuttong:visited {
  /* Posts give these links an inline display:block, so the height comes from padding, not flex centring. */
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; max-width: 100%; box-sizing: border-box;
  border: 0; border-radius: var(--dl-radius-md); font: 600 15px/1.2 var(--dl-font) !important; letter-spacing: 0.2px;
  color: var(--dl-white) !important; text-decoration: none !important; text-align: center;
  background: linear-gradient(180deg, var(--dl-cta-from), var(--dl-cta-to)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 8px 20px -12px rgba(79, 70, 229, 0.8);
  transition: transform 150ms ease-out, background 150ms ease-out;
}
body.dl-site a.lamfbuttong:hover { background: linear-gradient(180deg, var(--dl-cta-hover-from), var(--dl-cta-hover-to)) !important; transform: translateY(-2px); }

/* Breadcrumbs, dates, tags and prev/next in the site's muted text and accent. */
body.dl-site .breadcrumb, body.dl-site nav[aria-label="breadcrumb"] { font-family: var(--dl-font); }
body.dl-site .post-date, body.dl-site .post-date time { color: var(--dl-muted-text); font-family: var(--dl-font); }
body.dl-site .PageNavigation a, body.dl-site .tags li a { color: var(--dl-accent-deep); font-family: var(--dl-font); }

/* The header is sticky (in the flow), so the old fixed-header gap goes, and the share rail sticks below it. */
body.dl-site .site-content { margin-top: 0 !important; padding-top: 0; } /* !important: mediumish.js sets an inline margin from the header height */
body.dl-site .share.sticky-top { top: calc(var(--dl-header-h) + 24px); z-index: 10; }
body.dl-site .share p { font-family: var(--dl-font); color: var(--dl-muted-text); }
html { scroll-padding-top: calc(var(--dl-header-h) + 16px); }
