/* self-hosted Inter (SIL Open Font License, see /fonts/LICENSE-Inter.txt) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }
/* MLE website. Palette: deep navy (headings, primary buttons), slate gray (secondary text), white / off-white backgrounds. */
:root {
  --navy: #12355b; --navy-d: #0b2440; --navy-soft: #e8eef5;
  --slate: #5b6b7b; --ink: #1c2733; --line: #dde4ec;
  --white: #ffffff; --off: #f6f8fb; --gold: #d9a441;
  --radius: 8px; --shadow: 0 2px 10px rgba(18, 53, 91, .08); --shadow-h: 0 10px 28px rgba(18, 53, 91, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', 'Roboto', 'Open Sans', Arial, sans-serif; color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.center { text-align: center; }

/* header */
.hdr { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .3px; white-space: nowrap; }
.brand img { width: 52px; height: 52px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.navt, .burger { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.3fr; min-height: 480px; }
.hero-l { background: var(--off); display: flex; align-items: center; justify-content: center; padding: 40px; }
.hero-l img { width: min(320px, 70%); height: auto; }
.hero-r { background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; padding: 56px 8%; }
.hero-r h1 { font-weight: 700; font-size: 38px; line-height: 1.25; margin: 0 0 18px; letter-spacing: -.3px; }
.hero-r p { color: #d6e0eb; font-size: 19px; margin: 0 0 18px; }
.hero-ph a { display: inline-block; color: var(--navy); background: var(--white); text-decoration: none; font-weight: 600; font-size: 19px; padding: 12px 26px; border-radius: var(--radius); }
.hero-ph a:hover { background: var(--navy-soft); }

/* sections */
.sec { padding: 80px 0; }
.sec.alt { background: var(--off); }
.h2 { font-weight: 700; color: var(--navy); font-size: 32px; line-height: 1.25; letter-spacing: -.3px; text-align: center; margin: 0 0 36px; }
.h2.left { text-align: left; }
.lead { font-size: 18px; line-height: 1.8; color: var(--slate); margin: 0; }
.dt { color: var(--slate); margin: 2px 0 8px; font-size: 15px; }
h3 { color: var(--navy); }

/* doctor cards (home) */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.doc { min-width: 0; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); text-align: center; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.doc:hover, .doc:focus-visible { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.doc img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; background: var(--navy-soft); }
.dn { display: block; font-weight: 700; font-size: 18px; color: var(--ink); margin: 16px 16px 0; }
.doc .dt { display: block; margin: 2px 16px 18px; }

/* bios (Our Doctors) */
.bios { display: grid; gap: 24px; }
.bio { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 110px; transition: box-shadow .2s; }
.bio:hover { box-shadow: var(--shadow-h); }
.bio img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--navy-soft); }
.bio h3 { margin: 0; font-size: 22px; }
.bio p { margin: 0 0 10px; }

/* offices */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.office h3 { margin: 0 0 4px; font-size: 20px; }
.office p { margin: 0 0 10px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact h3 { margin: 22px 0 8px; font-size: 19px; }
.hours { border-collapse: collapse; margin-bottom: 24px; }
.hours td { padding: 4px 28px 4px 0; }
.hours td + td { color: var(--slate); }
.map iframe { width: 100%; min-height: 300px; height: 440px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* cards (attorneys, patients) */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1120px; margin: 0 auto; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 4px; font-size: 22px; }
.card ul { padding-left: 20px; margin: 0 0 20px; }
.es { color: var(--slate); }
.note { max-width: 1120px; margin: 24px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 28px; }

/* buttons */
.btn { display: inline-block; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 24px; border-radius: var(--radius); border: 2px solid var(--navy); transition: background .15s; }
.btn:hover { background: var(--navy-d); border-color: var(--navy-d); }
.btn.ghost { background: var(--white); color: var(--navy); }
.btn.ghost:hover { background: var(--navy-soft); }
.btns .btn { margin: 0 8px 10px 0; }

/* patient forms section: same colors as the rest of the site */
main .mf { --accent: #12355b; --accent-dark: #0b2440; --soft: #e8eef5; --line: #dde4ec; --text: #1c2733; --muted: #5b6b7b; font-family: 'Inter', Arial, sans-serif; }
main .mf .steps { background: var(--white); border: 1px solid var(--line); }
main .mf .btn { border-radius: var(--radius); border: 0; }

/* footer */
.ftr { background: var(--navy-d); color: #b9c6d4; padding: 32px 0; font-size: 15px; }
.ftr-in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.ftr a { color: var(--white); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 18px; }


/* page heads with illustrations */
.phead { background: linear-gradient(135deg, var(--off) 0%, var(--navy-soft) 100%); padding: 56px 0; }
.phead-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.phead h1 { color: var(--navy); font-size: 38px; line-height: 1.2; letter-spacing: -.3px; margin: 0 0 14px; }
.phead img { width: 100%; max-width: 360px; height: auto; justify-self: center; }
.h3g { color: var(--navy); font-size: 22px; margin: 40px 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.h3g:first-of-type { margin-top: 0; }
.doc .more { display: block; color: var(--navy); font-weight: 600; font-size: 14px; margin: -8px 16px 18px; }

/* doctor pages */
.crumbs { font-size: 14px; color: var(--slate); margin: 0 0 20px; }
.crumbs a { color: var(--slate); }
.dhead { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.dhead img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--navy-soft); }
.dhead h1 { color: var(--navy); font-size: 36px; line-height: 1.2; margin: 0 0 4px; }
.dsub { color: var(--slate); font-size: 18px; font-weight: 500; margin: 0 0 18px; }
.dgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.card h3 + ul { margin-top: 6px; }
.card h3 { margin-top: 0; }
.card ul + h3 { margin-top: 22px; }
.cta { border-top: 4px solid var(--gold); }
.small { font-size: 14px; color: var(--slate); margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 6px 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.note.warn { background: #fff7e6; border-color: #f0d9a8; margin: 0 0 16px; max-width: none; padding: 12px 18px; }

/* locations */
.locgrid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 48px; align-items: center; }
.njmap img { width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(18, 53, 91, .12)); }
.tele { font-weight: 500; margin: 22px 0; padding: 12px 16px; background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.withicon { display: flex; align-items: center; gap: 14px; }
.withicon img { width: 52px; height: 52px; }
.tele img { width: 56px; height: 56px; flex: none; }
.pin { color: var(--gold); }
.office { scroll-margin-top: 110px; }
.btn.sm { font-size: 14px; padding: 8px 16px; }

@media (max-width: 1000px) {
  .phead { padding: 40px 0; }
  .phead-in, .dgrid, .locgrid { grid-template-columns: 1fr; gap: 24px; }
  .phead img { max-width: 240px; }
  .phead h1 { font-size: 30px; }
  .dhead { grid-template-columns: 220px 1fr; gap: 28px; }
  .njmap { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .dhead { grid-template-columns: 1fr; }
  .dhead img { max-width: 240px; }
  .dhead h1 { font-size: 28px; }
}


/* accessibility */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, .btn:focus-visible, iframe:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .doc:hover { transform: none; } }
.ch { color: var(--navy); font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
.card ul + .ch { margin-top: 22px; }
.burger { background: none; border: 0; }
.prose h2 { color: var(--navy); font-size: 22px; margin: 32px 0 8px; }
.prose p { margin: 0 0 14px; }
.map-ph { background: var(--off); border: 1px solid var(--line); border-radius: var(--radius); min-height: 300px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 6px; }
.map-ph img { width: 90px; height: auto; margin-bottom: 8px; }
.map-ph p { margin: 0 0 6px; }


/* home: audiences, services, hero buttons */
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn.outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .12); }
.aud .card { border-top: 4px solid var(--navy); }
.aud .card + .card { border-top-color: var(--gold); }
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.svc h3 { margin: 0 0 6px; font-size: 19px; }
.svc p { margin: 0; color: var(--slate); }
/* FAQ */
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 0 0 10px; box-shadow: var(--shadow); }
.qa summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 48px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font-size: 24px; color: var(--gold); }
.qa[open] summary::after { content: '\2212'; }
.qa > div { padding: 0 20px 16px; }

/* tablet and phone */
@media (max-width: 1000px) {
  .hdr-in { min-height: 70px; }
  .brand { font-size: 16px; white-space: normal; flex: 1; min-width: 0; line-height: 1.25; }
  .brand img { width: 42px; height: 42px; }
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .burger span { width: 26px; height: 2px; background: var(--navy); }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-l { padding: 32px; }
  .hero-l img { width: 160px; }
  .hero-r { padding: 40px 24px; text-align: center; align-items: center; }
  .hero-r h1 { font-size: 27px; }
  .hero-r p { font-size: 17px; }
  .contact, .cards2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 52px 0; }
  .h2 { font-size: 25px; margin-bottom: 24px; }
  .bio { grid-template-columns: 1fr; gap: 16px; }
  .bio img { max-width: 220px; }
  .map iframe { height: 320px; }
  .btns .btn, .card .btn { display: block; text-align: center; margin: 0 0 10px; }
  /* home page on phones: shorter (Alan, Nov 6) */
  .hero-l { display: none; }
  .hero-r { padding: 32px 16px; }
  .docs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .card-d .dn { font-size: 13px; margin: 6px 4px 8px; line-height: 1.25; }
  .card-d .dt { display: none; }
  .svc { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc .card { padding: 14px; }
  .svc h3 { font-size: 15px; margin: 0; }
  .svc p { display: none; }
  .svc-lead { font-size: 16px; line-height: 1.6; }
  .aud .btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .aud .btns .btn { display: inline-block; margin: 0; padding: 10px 14px; font-size: 15px; flex: 1 1 auto; }
  .aud .card { padding: 20px; }
}
.svc-lead { max-width: 820px; margin: -16px auto 28px; }

/* Locations: per-office map, loaded on click (Alan, Nov 6) */
.omap iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); display: block; margin-top: 6px; }
.btn.sm.ghost { margin-left: 6px; }
/* Home: NJ map links to Locations */
.home-nj { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--navy); }
.home-nj img { width: min(260px, 70%); height: auto; }
@media (max-width: 600px) { .home-nj { display: none; } .btn.sm.ghost { margin-left: 0; } }

/* English / Español switch (FAQ examinees; same look as the Forms page) */
.lt-toggle { display: flex; width: max-content; margin: 0 0 18px; border: 2px solid var(--navy); border-radius: 30px; overflow: hidden; }
.lt-toggle button { font: inherit; font-size: 17px; font-weight: 600; padding: 9px 26px; min-width: 130px; border: 0; background: var(--white); color: var(--navy); cursor: pointer; }
.lt-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.lt-toggle button:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
.lt-pane[hidden] { display: none; }

/* Spanish: header pill on every page, banner for Spanish-language browsers, jump buttons on /es (Alan, Nov 6) */
.langpill { margin-left: auto; margin-right: 4px; flex: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 30px; padding: 6px 16px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; order: 2; }
.langpill:hover, .langpill:focus-visible { background: var(--navy); color: var(--white); }
.nav { order: 1; } .burger { order: 3; }
.esbar { background: var(--gold-soft, #fbf3dc); border-bottom: 1px solid var(--line); }
.esbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.esbar a { flex: 1; color: var(--navy); font-weight: 600; }
.esbar-x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--navy); cursor: pointer; padding: 4px 8px; }
.esjump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 1001px) { .hdr-in .nav { margin-left: auto; } .langpill { margin-left: 22px; } }
@media (max-width: 600px) { .langpill { padding: 5px 12px; font-size: 14px; } .esjump .btn { display: inline-block; margin: 0; } }
