/* Public tenant website. Every colour, radius and font comes from the
   theme custom properties set on <html> — nothing here is hardcoded, so
   the same stylesheet re-skins for any institute. */

* { box-sizing: border-box; }

/* A short page - /verify, /register, /contact - would otherwise leave the
   footer floating in the middle of a tall screen. The page is a flex column
   at least as tall as the viewport, main takes the slack, and the footer is
   pushed to the bottom. It still sits below the content on long pages. */
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  /* svh excludes mobile browser chrome, which 100vh wrongly includes. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Bands above the content must keep their natural height, not be squeezed
   to make room. */
body > .topbar,
body > .masthead,
body > .footer { flex: 0 0 auto; }

main { flex: 1 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(28px, 3.4vw, 56px); }
h2 { font-size: clamp(22px, 2.2vw, 36px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }

a { color: var(--c-primary); }
a:hover { color: var(--c-accent-text); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* The page fills the screen with a 10% gutter each side, instead of a
   fixed centred column that leaves a large monitor mostly empty.
   Phones get a fixed gutter: 10% of 360px would eat usable width. */
.wrap {
  width: 100%;
  margin: 0 auto;
  padding-inline: 10%;
}

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
}

/* Running text still needs a readable measure. A paragraph stretched across
   2000px is physically hard to read - the eye loses the line on the way back.
   So prose is capped while grids and panels use the full width. */
.measure { max-width: 72ch; }
.measure-wide { max-width: 92ch; }

/* ----------------------------------------------------------- top strip */

.topbar {
  background: var(--c-primary);
  color: var(--c-primary-fg);
  font-size: 13px;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar-creds { display: flex; flex-wrap: wrap; gap: 6px 16px; opacity: 0.92; }
.topbar a { color: var(--c-primary-fg); text-decoration: none; font-weight: 600; }

/* -------------------------------------------------------------- header */

.masthead { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.masthead .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.crest {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--c-primary); color: var(--c-primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 20px;
  flex-shrink: 0;
}
.crest img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.wordmark { line-height: 1.15; }
.wordmark .n1 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  letter-spacing: 0.06em; display: block;
}
.wordmark .n2 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-text-muted); display: block;
}

.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  padding: 9px 13px; border-radius: var(--radius);
  color: var(--c-text); text-decoration: none; font-size: 15px; font-weight: 500;
}
/* Plain nav links get a subtle hover fill; the Login/Register buttons keep
   their own .btn hover colours (otherwise this background would override
   theirs and leave --c-primary-fg text on a --c-bg fill, i.e. invisible). */
.nav a:not(.btn):hover { background: var(--c-bg); }
.nav a[aria-current="page"]:not(.btn) { color: var(--c-primary); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius);
  font-family: inherit; font-size: 15px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--c-primary); color: var(--c-primary-fg); }
.btn-primary:hover { background: var(--c-text); color: var(--c-primary-fg); }
.btn-accent { background: var(--c-accent); color: var(--c-primary); }
.btn-accent:hover { filter: brightness(0.94); color: var(--c-primary); }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: var(--c-primary-fg); }

/* -------------------------------------------------------------- blocks */

.section { padding: clamp(44px, 4.5vw, 86px) 0; }
.section-alt { background: var(--c-surface); }
.section-head { max-width: 72ch; margin-bottom: 30px; }
.section-head p { color: var(--c-text-muted); margin: 10px 0 0; }

/* The hero is a full-bleed band in the institute's primary colour, as in
   the approved design - not a white panel. It stays readable because
   primary-fg is chosen by contrast, never assumed to be white. */
.hero { background: var(--c-primary); color: var(--c-primary-fg); }
.hero .wrap { padding-top: clamp(52px, 6vw, 110px); padding-bottom: clamp(52px, 6vw, 110px); }
.hero h1 { color: var(--c-primary-fg); max-width: 19ch; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: 16px;
}
.hero-hi { font-size: clamp(17px, 1.5vw, 21px); margin: 14px 0 0; opacity: .86; }
.hero-lede { max-width: 58ch; margin: 18px 0 0; opacity: .88; font-size: 16.5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note {
  margin-top: 26px; padding-top: 18px; font-size: 14px; opacity: .8;
  border-top: 1px solid rgba(255, 255, 255, .18); max-width: 58ch;
}
.hero-rule { width: 72px; height: 4px; background: var(--c-accent); border-radius: 2px; margin-bottom: 20px; }
/* On the hero band the outline button sits on primary, so it borrows the
   foreground colour rather than the primary colour it would vanish into. */
.hero .btn-outline { color: var(--c-primary-fg); border-color: rgba(255, 255, 255, .55); }
.hero .btn-outline:hover { background: var(--c-primary-fg); color: var(--c-primary); }

/* Trust strip - the four claims under the hero in the design. */
.trust { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.trust-grid {
  display: grid; gap: 22px 28px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: clamp(26px, 2.6vw, 42px) 0;
}
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item strong { display: block; font-size: 15px; margin-bottom: 3px; }
.trust-item span { font-size: 14px; color: var(--c-text-muted); }

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
/* Beyond 4 across, course cards stop reading as a list and start looking
   like a spreadsheet, so the count is capped rather than left to auto-fit. */
@media (min-width: 1560px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--c-text-muted); font-size: 15px; flex: 1; }
.card-meta {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 8px;
}
.card-code {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: var(--c-primary);
}

.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat-box { text-align: center; padding: 20px; background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-border); }
.stat-n { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--c-primary); }
.stat-l { font-size: 14px; color: var(--c-text-muted); }

.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1560px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
@media (min-width: 1560px) { .gallery-grid img { height: 210px; } }
.gallery-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius); }

.verify-panel {
  background: var(--c-primary); color: var(--c-primary-fg);
  border-radius: var(--radius); padding: 32px;
}
.verify-panel h2 { color: var(--c-primary-fg); }
.verify-panel p { color: var(--c-primary-fg); opacity: 0.88; }
.verify-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
/* The optional date-of-birth second factor, inside the dark verify panel. */
.verify-second { margin-top: 16px; display: grid; gap: 7px; }
.verify-second label {
  color: var(--c-primary-fg); font-weight: 600; font-size: 14px;
}
.verify-second input {
  font: inherit; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.35); background: #fff;
  color: var(--c-text); max-width: 240px; min-height: 44px;
}
.verify-second p { margin: 0; color: var(--c-primary-fg); opacity: 0.78; }

.verify-form input {
  flex: 1; min-width: 220px; min-height: 46px; padding: 0 14px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-size: 15px; font-family: inherit;
}

.notice {
  background: var(--c-surface); border-left: 4px solid var(--c-accent);
  border-radius: var(--radius); padding: 18px 20px;
}

.result-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px; margin-top: 24px;
}
.result-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
}
.flag-unknown { background: #fef6e7; color: #713f12; }
.flag-pending { background: #eef2fb; color: #1e3a8a; }
.flag-valid { background: #eaf6ee; color: #14532d; }
.flag-revoked { background: #fdecec; color: #7f1d1d; }

/* -------------------------------------------------------------- footer */

.footer { background: var(--c-primary); color: var(--c-primary-fg); margin-top: auto; }
.footer .wrap { padding-top: 44px; padding-bottom: 32px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h2 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px; opacity: 0.75; font-family: var(--font-body);
}
.footer a { color: var(--c-primary-fg); text-decoration: none; opacity: 0.92; }
.footer a:hover { text-decoration: underline; color: var(--c-primary-fg); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 28px; padding-top: 18px;
  font-size: 13px; opacity: 0.8;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.errpage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.errpage-inner { max-width: 520px; }

@media (max-width: 760px) {
  .nav { width: 100%; margin-left: 0; }
  .section { padding: 40px 0; }
}

/* ------------------------------------------------- hero with a photograph */

.hero-split { display: grid; gap: clamp(26px, 3vw, 52px); align-items: center; }
@media (min-width: 950px) { .hero-split { grid-template-columns: 1.1fr 1fr; } }

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hero-photo img { width: 100%; height: clamp(230px, 28vw, 380px); object-fit: cover; }

/* A photograph beside the about text, as in the design's "why" block. */
.feature-split { display: grid; gap: clamp(24px, 3vw, 48px); align-items: center; }
@media (min-width: 950px) { .feature-split { grid-template-columns: 1fr 1fr; } }
.feature-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); }
.feature-photo img { width: 100%; height: clamp(240px, 30vw, 420px); object-fit: cover; }

/* --------------------------------------------------------------- lightbox */

.gallery-grid figure { position: relative; }
button.shot {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--radius); overflow: hidden;
}
button.shot img { transition: transform .25s ease; }
button.shot:hover img { transform: scale(1.035); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 18, .92);
  display: none; align-items: center; justify-content: center;
  padding: clamp(14px, 3vw, 44px);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius); display: block; margin: 0 auto;
}
.lightbox figcaption {
  color: #fff; font-size: 15px; margin-top: 14px; opacity: .9;
  max-width: 70ch; margin-inline: auto;
}
.lightbox-count { color: #fff; opacity: .55; font-size: 13px; margin-top: 6px; }

.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  width: 46px; height: 46px; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 40px; height: 40px; }
}

/* ------------------------------------------------------------------- FAQ */

.faq-list { max-width: 80ch; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px;
  font-weight: 600; font-size: 16.5px;
  list-style: none; display: flex; gap: 12px; align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; flex-shrink: 0;
  font-size: 20px; line-height: 1; color: var(--c-accent-text);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--c-primary); }
.faq-answer { padding: 0 18px 16px; color: var(--c-text-muted); }
.faq-answer p { margin: 0; }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.crumbs ol {
  list-style: none; margin: 0; padding: 11px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13.5px; color: var(--c-text-muted);
}
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--c-text-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ---------------------------------------------------------- page banner */

.page-banner { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.page-banner .wrap { padding-top: clamp(30px, 3.4vw, 56px); padding-bottom: clamp(26px, 3vw, 46px); }
.page-banner h1 { margin: 0; }
.page-banner p { color: var(--c-text-muted); margin: 12px 0 0; max-width: 72ch; }

/* --------------------------------------------------------- contact + map */

.contact-split { display: grid; gap: clamp(20px, 2.5vw, 36px); align-items: start; }
@media (min-width: 950px) { .contact-split { grid-template-columns: 1fr 1.25fr; } }

.contact-map {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  /* Reserves the space before the map loads, so the page does not jump.
     No min-height here: combined with aspect-ratio it would force the
     WIDTH to 320 x 4/3 = 427px and overflow a 375px screen. */
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
}
@supports not (aspect-ratio: 1 / 1) { .contact-map { height: 300px; } }

/* Grid and flex children refuse to shrink below their content by default,
   which is how an embed ends up wider than the screen. */
.contact-split > *, .feature-split > *, .hero-split > *, .faq-layout > *,
.verify-layout > * { min-width: 0; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 950px) { .contact-map { aspect-ratio: auto; height: 100%; min-height: 420px; } }

/* ---------------------------------------------------- card headings

   Card titles are h2 on the courses listing, because each course is a
   top-level item under that page's h1. Heading LEVEL is about document
   structure; it should not decide the type size. Without this they
   inherit the full h2 scale and dominate the card.                      */

.card h2, .card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
@media (min-width: 1040px) { .card h2, .card h3 { font-size: 20px; } }

/* The course code sits above the title, so it needs to read as a label,
   not compete with it. */
.card-code {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 2px;
}

.card p { font-size: 15px; line-height: 1.55; }
.card-meta { font-size: 11.5px; letter-spacing: .06em; }

/* ------------------------------------------------------- course write-up */

.course-body { max-width: 72ch; margin-top: 38px; }
.course-body h2 { margin-bottom: 14px; }
.course-body p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.7; }
.course-body p:last-child { margin-bottom: 0; }

.outcomes { list-style: none; margin: 16px 0 0; padding: 0; max-width: 72ch; }
.outcomes li {
  position: relative; padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--c-border); font-size: 16px;
}
.outcomes li:last-child { border-bottom: 0; }
.outcomes li::before {
  content: "✓"; position: absolute; left: 4px; top: 10px;
  color: var(--c-accent-text); font-weight: 700;
}

/* ------------------------------------------------------------ brand mark */

.crest-img {
  height: 52px; width: auto; max-width: 64px;
  object-fit: contain; flex-shrink: 0; display: block;
}
@media (max-width: 560px) { .crest-img { height: 42px; } }

.footer-logo {
  height: 46px; width: auto; max-width: 70px;
  object-fit: contain; display: block; margin-bottom: 12px;
}

/* The wordmark is set in the heading face (Cinzel in the Adarsh brand),
   with the wide letter-spacing the crest artwork uses. */
.wordmark .n1 { letter-spacing: 0.1em; }
.wordmark .n2 { letter-spacing: 0.2em; }

/* --------------------------------------------------- FAQ: two columns

   The accordion stays at a readable width; the space beside it carries the
   heading and a prompt to get in touch, which is the next thing someone
   reading an FAQ usually wants.                                           */

.faq-layout { display: grid; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 1000px) {
  .faq-layout { grid-template-columns: minmax(290px, 1fr) 1.55fr; }
}

.faq-aside h2 { margin-bottom: 12px; }
.faq-intro { color: var(--c-text-muted); margin-bottom: 22px; max-width: 46ch; }

/* On a wide screen the prompt follows the questions down the page. */
@media (min-width: 1000px) {
  .faq-aside { position: sticky; top: 24px; }
}

.ask-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 22px;
}
.ask-card .ask-title { font-size: 19px; margin-bottom: 8px; }
.ask-card p { color: var(--c-text-muted); font-size: 15px; margin-bottom: 14px; }

.ask-phones { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ask-phones a {
  font-size: 18px; font-weight: 700; font-family: var(--font-heading);
  letter-spacing: 0.01em;
}
.ask-address { font-size: 14px; }

/* The list no longer needs its own cap: the grid column provides it. */
.faq-list { max-width: none; }

/* ------------------------------------------------------ verification */

.verify-layout { display: grid; gap: clamp(26px, 3vw, 46px); align-items: start; }
@media (min-width: 1000px) { .verify-layout { grid-template-columns: 1fr 1fr; } }

.result-card { margin-top: 0; }
.result-idle { background: var(--c-surface); }
.result-idle h2 { font-size: 19px; margin-bottom: 12px; }

.verify-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.verify-points li {
  padding-left: 18px; position: relative; font-size: 15px; color: var(--c-text-muted);
}
.verify-points li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent);
}

.result-no {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 20px; letter-spacing: .02em; margin: 14px 0 10px; word-break: break-all;
}
.result-note { color: var(--c-text-muted); font-size: 15px; margin: 0 0 14px; }
.result-foot { color: var(--c-text-muted); margin: 14px 0 0; font-size: 13.5px; }

.result-facts {
  display: grid; grid-template-columns: 118px 1fr; gap: 9px 14px;
  margin: 16px 0 0; font-size: 15px;
}
.result-facts dt { color: var(--c-text-muted); }
.result-facts dd { margin: 0; }
.mono-ish { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
@media (max-width: 520px) {
  .result-facts { grid-template-columns: 1fr; gap: 2px; }
  .result-facts dt { margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
}

.flag-duplicate { background: #fff4e5; color: #8a5200; }

.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;
}

/* ------------------------------------------------- touch tap targets

   On a touch screen a 16px-tall phone link is close to untappable. The
   brief asks for 44px, so links that are plain inline text get enough
   padding to reach it. Applied on coarse pointers and narrow screens, so
   desktop layout is unchanged.                                           */

@media (hover: none), (max-width: 760px) {
  .topbar a,
  .crumbs a,
  .crumbs [aria-current="page"],
  .footer ul a,
  .result-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 2px;
  }

  /* The top strip holds the phone numbers; let it grow rather than clip. */
  .topbar .wrap { padding-top: 2px; padding-bottom: 2px; }

  .footer ul { gap: 0; }

  /* Gallery and FAQ controls are already large; the accordion header is
     the one that is easy to under-size. */
  .faq-item summary { min-height: 52px; }
  /* The header navigation and the brand link are what every visitor
     touches, and at 42px they were just under the mark. */
  .nav a,
  .masthead .wrap > a {
    min-height: 44px; display: inline-flex; align-items: center;
  }

}

@media (hover: none), (max-width: 760px) {
  /* Phone links and the card "View course" links are plain inline text and
     end up ~19px tall, well under a comfortable thumb. */
  a[href^="tel:"],
  .card p > a,
  .ask-phones a,
  .outcomes a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
