/* ══════════════════════════════════════════════════════════════════════════
   INTERIOR V4 — shared scaffolding for the V4-themed interior pages. The V4 chrome
   (home-v4.css) is loaded alongside this; page bodies reuse the .dma3d component
   classes. This file only adds: the interior hero band + a content wrapper + a few
   generic building blocks (prose, cards, section headings) used across pages.
   Scoped to body.dma4-interior so nothing leaks to non-V4 pages.
   ══════════════════════════════════════════════════════════════════════════ */
body.dma4-interior #main{padding-top:0!important;margin-top:0!important}

/* Interior hero band */
/* 16 Nov 2026 (DMA): slimmer page hero — 30px top and bottom (was 52 / 46). */
.dma3d .v4ih{position:relative;overflow:hidden;padding:30px 0;
  background:linear-gradient(120deg,var(--green) 0%,color-mix(in srgb,var(--green),#000 30%) 60%,color-mix(in srgb,var(--green),#000 52%) 100%)}
.dma3d .v4ih::before{content:'';position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--gold) 14%,transparent),transparent 70%)}
.dma3d .v4ih.has-img{background-size:cover;background-position:center}
.dma3d .v4ih.has-img::after{content:'';position:absolute;inset:0;background:linear-gradient(120deg,color-mix(in srgb,var(--green-ink) 92%,transparent),color-mix(in srgb,var(--green-ink) 62%,transparent))}
.dma3d .v4ih .w{position:relative;z-index:1}
.dma3d .v4ih-crumb{font-size:12px;font-weight:600;color:rgba(255,255,255,.75);margin-top:14px;margin-bottom:0}
.dma3d .v4ih-crumb a{color:var(--saffron3);text-decoration:none}
.dma3d .v4ih-crumb a:hover{text-decoration:underline}
.dma3d .v4ih-title{font-family:'Playfair Display',serif;font-size:clamp(26px,3.4vw,40px);font-weight:700;color:#fff;line-height:1.12}
.dma3d .v4ih-title::after{display:none}
.dma3d .v4ih-sub{margin-top:14px;font-size:15px;color:rgba(255,255,255,.82);max-width:760px;line-height:1.7}

/* Page content wrapper */
/* 16 Nov 2026 (DMA): content starts 32px under the hero (was 52); bottom unchanged. */
.dma3d .v4page{padding:32px 0 52px}
.dma3d .v4page .w{max-width:1280px;margin:0 auto;padding:0 28px}
.dma3d .v4-lead{font-size:16px;color:var(--muted);line-height:1.85;max-width:none}

/* Generic prose block (CMS body HTML) */
.dma3d .v4-prose{font-size:15px;color:var(--text);line-height:1.85}
.dma3d .v4-prose h2{font-family:'Playfair Display',serif;font-size:24px;color:var(--dark);margin:26px 0 12px}
.dma3d .v4-prose h3{font-family:'Playfair Display',serif;font-size:19px;color:var(--dark);margin:22px 0 10px}
.dma3d .v4-prose p{margin:0 0 14px}
.dma3d .v4-prose a{color:var(--saffron-text);font-weight:600}
.dma3d .v4-prose ul,.dma3d .v4-prose ol{margin:0 0 14px 22px}
.dma3d .v4-prose li{margin-bottom:7px}
.dma3d .v4-prose img{max-width:100%;height:auto;border-radius:12px;margin:12px 0}
/* Text pasted from another website brings its inline typography with it - one blog heading
   arrived as font-size:48px in a font the site does not load, and "communication" alone ran 33px
   past a 375px phone (QA 13 Nov 2026). Headings keep the site's own type whatever was pasted
   (!important is the only way past an inline style), and long words or URLs wrap instead of
   pushing the page sideways. */
.dma3d .v4-prose{overflow-wrap:break-word}
.dma3d .v4-prose :is(h1,h2,h3,h4,h5,h6)[style],
.dma3d .v4-prose :is(h1,h2,h3,h4,h5,h6) [style]{font-family:'Playfair Display',serif!important;
  font-size:inherit!important;line-height:1.25!important;color:var(--dark)!important;letter-spacing:normal!important}
.dma3d .v4-prose :is(h1,h2)[style]{font-size:24px!important;margin:26px 0 12px!important}
.dma3d .v4-prose :is(h3,h4,h5,h6)[style]{font-size:19px!important;margin:22px 0 10px!important}
/* The orange vertical bar before quoted text was disliked by the client (raised again 22 Oct for
   Vision and Mission). This is the only blockquote rule on the public site, so removing the bar
   here clears it from every CMS page. The italic, muted treatment is kept. */
.dma3d .v4-prose blockquote{border-left:0;padding:6px 0;margin:16px 0;color:var(--muted);font-style:italic}

/* A neutral white card (reuses the V4 3D shadow language) */
.dma3d .v4-card{background:var(--surface);border:2px solid rgba(0,0,0,.06);border-radius:16px;padding:26px;
  box-shadow:5px 8px 0 color-mix(in srgb,var(--saffron) 14%,transparent),5px 8px 24px color-mix(in srgb,var(--dark) 8%,transparent)}

/* Section heading inside a page */
.dma3d .v4-sec-title{font-family:'Playfair Display',serif;font-size:26px;font-weight:700;color:var(--dark);margin-bottom:6px}
.dma3d .v4-sec-sub{font-size:14px;color:var(--muted);margin-bottom:26px;max-width:640px}

/* Responsive grids used by several pages */
.dma3d .v4-grid{display:grid;gap:22px}
.dma3d .v4-grid-2{grid-template-columns:repeat(2,1fr)}
.dma3d .v4-grid-3{grid-template-columns:repeat(3,1fr)}
.dma3d .v4-grid-4{grid-template-columns:repeat(4,1fr)}
.dma3d .v4-grid-5{grid-template-columns:repeat(5,1fr)}
@media(max-width:1100px){.dma3d .v4-grid-5{grid-template-columns:repeat(4,1fr)}}
@media(max-width:960px){.dma3d .v4-grid-3,.dma3d .v4-grid-4,.dma3d .v4-grid-5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.dma3d .v4-grid-2,.dma3d .v4-grid-3,.dma3d .v4-grid-4,.dma3d .v4-grid-5{grid-template-columns:repeat(2,1fr)}}
@media(max-width:440px){.dma3d .v4-grid-2,.dma3d .v4-grid-3,.dma3d .v4-grid-4,.dma3d .v4-grid-5{grid-template-columns:1fr}}

/* Forms + contact list (used by Contact and other form pages) */
.dma3d .v4-field{margin-bottom:16px}
/* Normal weight, not bold - client request 22 Oct. Same change as .pub-field label in
   components.css, so every public form reads the same. */
.dma3d .v4-field label{display:block;font-size:12.5px;font-weight:400;color:var(--dark);margin-bottom:6px}
/* Reply-time note under the contact form's submit button. */

.dma3d .v4-field input,.dma3d .v4-field select,.dma3d .v4-field textarea{width:100%;padding:11px 14px;border:2px solid var(--border);
  border-radius:10px;font-family:inherit;font-size:14px;background:var(--surface);color:var(--text);transition:border-color .18s}
.dma3d .v4-field input:focus,.dma3d .v4-field select:focus,.dma3d .v4-field textarea:focus{outline:none;border-color:var(--saffron)}
.dma3d .v4-field--check label{display:flex;gap:9px;align-items:flex-start;font-weight:500;color:var(--muted)}
.dma3d .v4-field--check input{width:auto;margin-top:3px}
.dma3d .v4-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:640px){.dma3d .v4-row{grid-template-columns:1fr}}
/* .v4-err / .v4-req / .v4-formsummary take their colour from the ONE public
   validation rule in components.css + public.css - the same rule the member
   login uses. Nothing error-coloured is declared here. */
/* required-field asterisk → theme accent (coral) so the lone red on forms stays on-theme */

.dma3d .v4-opt{font-weight:400;color:var(--muted);font-size:11px}
.dma3d .v4-contact-list{list-style:none;display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
.dma3d .v4-contact-list li{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted)}
.dma3d .v4-contact-list li a{color:var(--saffron-text);font-weight:600;text-decoration:none}
.dma3d .v4-contact-list .ei{color:var(--saffron);margin-top:2px;flex-shrink:0}
.dma3d .v4-ok{background:color-mix(in srgb,var(--green) 10%,transparent);border:1px solid var(--green);border-radius:10px;padding:14px 16px;margin-bottom:18px;color:var(--green);font-size:14px;font-weight:600}
.dma3d .v4-formsummary ul{margin:0 0 14px 18px;font-size:13px}
.dma3d .v4-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* V4 primary button (reusable on interior pages) */
.dma3d .v4-btn{display:inline-flex;align-items:center;gap:7px;padding:13px 30px;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--saffron2),var(--saffron));color:#fff;font-weight:800;font-size:14px;
  border-radius:10px;text-decoration:none;box-shadow:0 5px 0 var(--saffron-ink),0 8px 22px color-mix(in srgb,var(--saffron) 35%,transparent);transition:transform .18s}
.dma3d .v4-btn:hover{transform:translateY(-2px)}

/* President's Desk — actions row: social icons (themed) + a thin action button, aligned right */
.dma3d .pres-cta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.dma3d .pres-cta-btns{display:flex;gap:8px;flex-wrap:wrap}
.dma3d .pres-social{display:inline-flex;gap:9px}
.dma3d .pres-social a{width:38px;height:38px;border-radius:10px;display:inline-grid;place-items:center;
  background:linear-gradient(135deg,var(--saffron),var(--saffron2));color:#fff;text-decoration:none;
  box-shadow:0 3px 0 var(--saffron-ink),0 5px 14px color-mix(in srgb,var(--saffron) 28%,transparent);transition:transform .18s}
.dma3d .pres-social a:hover{transform:translateY(-2px)}
.dma3d .pres-social a svg{width:17px;height:17px;fill:currentColor;display:block}
.dma3d .v4-btn--thin{padding:9px 20px;font-size:13px;box-shadow:0 4px 0 var(--saffron-ink),0 6px 16px color-mix(in srgb,var(--saffron) 28%,transparent)}

/* Membership "Starts from" price box — theme-merged card with a rupee icon badge */
.dma3d .mem-price{flex:none;display:inline-flex;align-items:center;gap:11px;padding:8px 16px 8px 8px;border-radius:14px;
  background:var(--surface);border:1.5px solid color-mix(in srgb,var(--saffron) 30%,transparent);box-shadow:4px 5px 0 color-mix(in srgb,var(--saffron) 16%,transparent)}
.dma3d .mem-rs{width:40px;height:40px;flex:none;border-radius:11px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,var(--green),var(--green2));box-shadow:0 3px 0 var(--green-ink)}
.dma3d .mem-rs svg{width:21px;height:21px}
.dma3d .mem-price-txt{display:flex;flex-direction:column;line-height:1;text-align:left}
.dma3d .mem-lbl{font-size:9.5px;font-weight:800;color:var(--green);text-transform:uppercase;letter-spacing:.1em;margin-bottom:3px}
.dma3d .mem-val{font-family:'Playfair Display',serif;font-size:26px;font-weight:700;color:var(--saffron);font-variant-numeric:tabular-nums;line-height:1}

/* ══════════════════════════════════════════════════════════════════════════
   V4 FORM SKIN — reskins the existing .pub-* / .mp-* form pages (member login,
   membership registration, event booking, event pass, member panel, checkout)
   to the V4 look WITHOUT touching their markup or JS hooks.

   The whole .pub-* / .mp-* / membership-register / member / booking layers are
   100% token-driven (--pub-* and --brand-*). Custom properties set on <body>
   override the :root defaults for the entire subtree (inheritance proximity,
   NOT specificity), so remapping the tokens here re-colours every form at once
   and stays theme-aware — var(--surface)/var(--text) already flip in dark mode.
   The handful of structural rules below (Playfair titles, 16px rounded cards
   with the V4 3D offset shadow, saffron/green gradient buttons) use the
   body.dma4-interior prefix so they win over the base layers by specificity.
   ══════════════════════════════════════════════════════════════════════════ */
body.dma4-interior{
  --pub-font:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --pub-ink:var(--text);
  --pub-mut:var(--muted);
  --pub-bg:var(--off);
  --pub-soft:color-mix(in srgb,var(--saffron) 7%,transparent);
  --pub-line:var(--border);
  --pub-card:var(--surface);
  --pub-header-bg:var(--surface);
  --pub-field-bg:var(--surface);
  --pub-shadow:color-mix(in srgb,var(--saffron) 14%,transparent);
  --pub-shadow-lg:color-mix(in srgb,var(--saffron) 20%,transparent);
  --pub-accent-ink:var(--green);   /* navy-as-text (headings/legends/links) → green */
  --pub-red-ink:var(--saffron);    /* red-as-text (links) → saffron */
  --pub-on-brand:#fff;
  --pub-radius:14px;
  --brand-red:var(--saffron);
  --brand-red-600:var(--saffron);
  --brand-red-300:var(--saffron3);
  --brand-navy:var(--green);
  --brand-navy-700:var(--green2);
  --brand-navy-800:var(--green);
  --brand-navy-900:var(--dark);
  --brand-navy-tint:color-mix(in srgb,var(--green) 10%,transparent);
  --brand-red-tint:color-mix(in srgb,var(--saffron) 10%,transparent);
  font-family:var(--pub-font);
}
/* content section rhythm under the V4 interior hero (or under the sticky header when heroless).
   .pub-section's own padding (public.css) is zeroed by the .dma3d reset now that these pages live in
   .dma3d, so restore a sensible band here. */
body.dma4-interior .pub-section{padding-block:32px 44px}  /* top 32px, as .v4page (16 Nov 2026) */
body.dma4-interior .mp{padding-top:32px;padding-bottom:44px}
/* Match the V4 site content width (.w = 1280 / 0 28px). The member portal + any .pub-wrap page used
   --pub-maxw (1600) and clamp gutters, so it ran wider than the rest of the V4 site.
   EXCLUDE .pub-reg: the registration/login/checkout wrappers manage their OWN narrow width
   (.pub-reg = 860, .pub-reg--narrow = 560) — capping them at 1280 made the login form full-width. */
body.dma4-interior .pub-wrap:not(.pub-reg){max-width:1280px;margin-left:auto;margin-right:auto;padding-left:28px;padding-right:28px}
/* Re-centre the form wrappers (the .dma3d reset zeroed their margin:0 auto). */
body.dma4-interior .pub-reg{margin-left:auto;margin-right:auto}

/* Cards & tiles — V4 rounded panel + hard 3D offset shadow */
body.dma4-interior .pub-reg__card,
body.dma4-interior .mp-card,
body.dma4-interior .mp-tile,
body.dma4-interior .mp-todo li,
body.dma4-interior .pub-reg__fee{
  border-width:2px;border-radius:16px;
  box-shadow:5px 8px 0 color-mix(in srgb,var(--saffron) 14%,transparent),5px 8px 24px color-mix(in srgb,var(--dark) 8%,transparent)}
body.dma4-interior .mp-tile,
body.dma4-interior .mp-todo li,
body.dma4-interior .pub-reg__fee{box-shadow:4px 5px 0 color-mix(in srgb,var(--saffron) 12%,transparent)}

/* Display titles → Playfair (matches the rest of the V4 interior) */
body.dma4-interior .pub-reg__h,
body.dma4-interior .mp__hi{font-family:'Playfair Display',serif;font-weight:700;color:var(--dark)}
/* section legends stay Poppins but pick up the green accent via the token remap */

/* Inputs — slightly tighter radius + 2px border for the V4 feel */
body.dma4-interior .pub-field input,
body.dma4-interior .pub-field select,
body.dma4-interior .pub-field textarea,
body.dma4-interior .pub-reg__otp{border-radius:10px;border-width:2px}

/* home-v4.css resets `margin:0;padding:0` on `.dma3d *`, which beats the single-class base rules in
   public.css / components.css (they load BEFORE the reset) and flattened the form primitives — buttons
   lost height, fields/labels/leads/notes/alerts lost their vertical rhythm, so everything crammed
   together. Restore the intended spacing here (body.dma4-interior = 0,2,x beats the reset). Rules in
   membership-register.css / events-booking.css load AFTER the reset, so those already survive. */
body.dma4-interior .pub-btn{padding:13px 28px;line-height:1.2}
body.dma4-interior .pub-btn.pub-btn--sm{padding:9px 16px}
body.dma4-interior .pub-field{margin-bottom:18px}
body.dma4-interior .pub-field label{margin-bottom:6px}
body.dma4-interior .pub-lead{margin:0 0 22px}
body.dma4-interior .pub-note{margin-top:24px}
body.dma4-interior .pub-note--sm{margin-top:16px}
body.dma4-interior .pub-alert{margin-bottom:22px;padding:14px 16px}
body.dma4-interior .pub-formsummary ul{margin:0 0 18px;padding:12px 14px 12px 32px}
body.dma4-interior .pub-reg__actions{margin-top:22px}
body.dma4-interior .pub-infinite{margin-top:32px}
body.dma4-interior .pub-pager{margin-top:28px}

/* Primary (saffron) + secondary (green) buttons — V4 gradient + 3D shadow */
body.dma4-interior .pub-btn.pub-btn--primary{
  background:linear-gradient(135deg,var(--saffron2),var(--saffron));color:#fff;border-radius:10px;
  box-shadow:0 5px 0 var(--saffron-ink),0 8px 22px color-mix(in srgb,var(--saffron) 35%,transparent);transition:transform .18s}
body.dma4-interior .pub-btn.pub-btn--primary:hover{transform:translateY(-2px);filter:none}
body.dma4-interior .pub-btn.pub-btn--navy{
  background:linear-gradient(135deg,var(--green2),var(--green));color:#fff;border-radius:10px;
  box-shadow:0 5px 0 var(--green-ink),0 8px 22px color-mix(in srgb,var(--green) 30%,transparent);transition:transform .18s}
body.dma4-interior .pub-btn.pub-btn--navy:hover{transform:translateY(-2px);filter:none}
/* Ghost / transparent buttons (Clear, Previous, Save, Resend…) get a LIGHT V4 3D shadow so they read
   as part of the same theme as the coloured primary/navy buttons sitting next to them. */
body.dma4-interior .pub-btn.pub-btn--ghost{border-radius:10px;
  box-shadow:0 4px 0 color-mix(in srgb,var(--saffron) 16%,transparent),0 6px 16px color-mix(in srgb,var(--dark) 9%,transparent);transition:transform .18s,box-shadow .18s}
body.dma4-interior .pub-btn.pub-btn--ghost:hover{transform:translateY(-2px);
  box-shadow:0 6px 0 color-mix(in srgb,var(--saffron) 20%,transparent),0 9px 20px color-mix(in srgb,var(--dark) 12%,transparent)}
/* Text-style link buttons (.pub-linkbtn) stay flat — they are links, not buttons. */

/* Member panel nav — rounded pills; active pill uses the green gradient */
body.dma4-interior .mp__navlink{border-radius:10px}
body.dma4-interior .mp__navlink.is-active{background:linear-gradient(135deg,var(--green2),var(--green))}

/* Confirmation / done icon uses the green (via --brand-navy remap already); round it a touch more */
body.dma4-interior .pub-reg__doneicon{box-shadow:0 6px 0 var(--green-ink)}


/* ══════════════════════════════════════════════════════════════════════════
   V4 CHAPTERS SKIN — chapters.css is token-driven so colours already follow the V4 remap; here we add
   the V4 3D card language (2px border, 16px radius, hard offset shadow, Playfair name) and REVIVE the
   detail "Press & Media / News & Updates" section, whose --v3-* tokens were removed with v3-chrome.css.
   ══════════════════════════════════════════════════════════════════════════ */
body.dma4-interior{
  --v3-line:var(--border); --v3-coral:var(--saffron); --v3-ink:var(--text);
  --v3-mut:var(--muted); --v3-paper:var(--off); --v3-paper-2:var(--off);
  --v3-display:'Playfair Display',serif; --v3-ease:cubic-bezier(.22,1,.36,1);
}
/* List cards */
body.dma4-interior .chp-card{border-width:2px;border-radius:16px;
  box-shadow:5px 8px 0 color-mix(in srgb,var(--saffron) 14%,transparent),5px 8px 24px color-mix(in srgb,var(--dark) 8%,transparent)}
body.dma4-interior .chp-card:hover{transform:translateY(-4px);
  box-shadow:5px 14px 0 color-mix(in srgb,var(--saffron) 22%,transparent),5px 14px 34px color-mix(in srgb,var(--dark) 12%,transparent)}
body.dma4-interior .chp-card__name{font-family:'Playfair Display',serif}
body.dma4-interior .chp-search input[type="search"]{border-width:2px;border-radius:10px}
/* Detail: intro CTA, section headings, contact card + leaders */
body.dma4-interior .chp-sec__h{font-family:'Playfair Display',serif}
body.dma4-interior .chp-contact{border-width:2px;border-radius:16px;
  box-shadow:4px 5px 0 color-mix(in srgb,var(--saffron) 14%,transparent)}
body.dma4-interior .chp-leader__pic{border-width:2px;box-shadow:3px 4px 0 color-mix(in srgb,var(--saffron) 14%,transparent)}
/* Detail: press/news items */
body.dma4-interior .chp-press__item{border-width:2px;border-radius:14px;
  box-shadow:3px 4px 0 color-mix(in srgb,var(--saffron) 12%,transparent)}

/* ══════════════════════════════════════════════════════════════════════════
   V4 FAQ SKIN — the /faq accordion (.pub-accordion) is a plain underlined list; give it the V4 card
   language (surface cards, tone-cycled top accent, 3D shadow, saffron chevron) like the homepage FAQ.
   ══════════════════════════════════════════════════════════════════════════ */
body.dma4-interior .pub-accordion{display:flex;flex-direction:column;gap:14px;max-width:840px;margin:0 auto}
body.dma4-interior .pub-accordion__item{position:relative;overflow:hidden;background:var(--surface);
  border:2px solid var(--border);border-radius:14px;
  box-shadow:4px 6px 0 color-mix(in srgb,var(--saffron) 12%,transparent),4px 6px 20px color-mix(in srgb,var(--dark) 6%,transparent)}
body.dma4-interior .pub-accordion__item::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;z-index:1}
body.dma4-interior .pub-accordion__item:nth-child(3n+1)::before{background:linear-gradient(90deg,var(--saffron),var(--saffron2))}
body.dma4-interior .pub-accordion__item:nth-child(3n+2)::before{background:linear-gradient(90deg,var(--green),var(--green2))}
body.dma4-interior .pub-accordion__item:nth-child(3n)::before{background:linear-gradient(90deg,var(--magenta),var(--magenta2))}
body.dma4-interior .pub-accordion__btn{padding:18px 22px;font-size:15.5px;font-weight:700;color:var(--dark);gap:16px}
body.dma4-interior .pub-accordion__btn[aria-expanded="true"]{color:var(--saffron-text)}
body.dma4-interior .pub-accordion__ic{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;
  color:#fff;background:linear-gradient(135deg,var(--saffron),var(--saffron2))}
body.dma4-interior .pub-accordion__ic svg{width:14px;height:14px}
body.dma4-interior .pub-accordion__panel{padding:0 22px}
body.dma4-interior .pub-accordion__body{padding:0 0 20px;color:var(--muted);line-height:1.75}

/* Team profile identity card — keep social icons + action button(s) on ONE compact row
   (the card column is ~300px, so tighten sizing so a couple of icons + a thin button fit). */
body.dma4-interior .pres-cta--profile{gap:8px}
body.dma4-interior .pres-cta--profile .pres-social{gap:6px}
body.dma4-interior .pres-cta--profile .pres-social a{width:34px;height:34px}
body.dma4-interior .pres-cta--profile .pres-social a svg{width:15px;height:15px}
body.dma4-interior .pres-cta--profile .pres-cta-btns{gap:6px}
body.dma4-interior .pres-cta--profile .v4-btn--thin{padding:8px 13px;font-size:12px}

/* Past Presidents — leadership-style cards with a LARGER portrait so faces read more clearly. */
body.dma4-interior .pp-history .lead-band{height:120px}
body.dma4-interior .pp-history .lead-pic{width:168px;height:168px;margin-top:34px}
body.dma4-interior .pp-history .lead-role{margin:6px 0 4px}
body.dma4-interior .pp-history .pp-sub{font-size:12px;color:var(--muted);line-height:1.45}
body.dma4-interior .pp-history .pp-sub:last-of-type{margin-bottom:6px}

/* ═══════════ Mobile gutters — match the homepage exactly ═══════════
   The homepage drops its side gutter from 28px to 12px at <=640px (home-v4.css, "Phones: give the
   content back the side space"). Interior pages did NOT follow, because the rules in THIS file —
   `body.dma4-interior .pub-wrap:not(.pub-reg)` (0,3,1) and `.dma3d .v4page .w` (0,3,0) — outrank
   the homepage's `.pub-wrap` / `.dma3d .w` rule AND this file loads after home-v4.css. So the
   narrow-screen gutter has to be restated here, at the same specificity, for the site width to be
   consistent between the homepage and every interior page.
   Tablets keep 28px, exactly as the homepage does. */
@media(max-width:640px){
  body.dma4-interior .pub-wrap:not(.pub-reg),
  body.dma4-interior .pub-wrap.pub-reg,
  .dma3d .v4page .w,
  body.dma4-interior .pub-article,
  body.dma4-interior .nf-wrap{padding-left:12px;padding-right:12px}
}

/* ═══════════ Current President card (/past-presidents) ═══════════
   These declarations were inline on the markup, which meant the two-column grid could not be
   overridden by any media query (an inline style beats every stylesheet rule) — on a phone the
   fixed 200px portrait column left the name and role squeezed into ~149px and wrapping badly.
   Moved to classes here so the card can collapse to a single column, per the project's
   "no inline styles" rule. */
body.dma4-interior .cp-card{
  display:grid;grid-template-columns:minmax(200px,240px) 1fr;gap:28px;align-items:center;margin-bottom:48px}
body.dma4-interior .cp-card__pic{
  aspect-ratio:1;border-radius:14px;overflow:hidden;
  background:linear-gradient(135deg,var(--green),color-mix(in srgb,var(--green),#000 30%));
  display:flex;align-items:center;justify-content:center;color:var(--saffron3);
  box-shadow:4px 6px 0 color-mix(in srgb,var(--gold) 25%,transparent)}
body.dma4-interior .cp-card__img{width:100%;height:100%;object-fit:cover;object-position:top center}
body.dma4-interior .cp-card__name{
  margin:0 0 6px;font-family:'Playfair Display',serif;font-size:26px;color:var(--dark)}
body.dma4-interior .cp-card__role{font-size:14px;font-weight:600;color:var(--saffron-text)}
body.dma4-interior .cp-card__org{font-size:14px;color:var(--muted);margin-top:2px}
body.dma4-interior .cp-card__term{font-size:13px;color:var(--muted);margin-top:2px;font-weight:600}
body.dma4-interior .cp-card__quote{
  margin:16px 0 0;padding:2px 0 2px 18px;border-left:4px solid var(--saffron);
  font-family:'Playfair Display',serif;font-style:italic;font-size:17px;color:var(--dark);line-height:1.6}
body.dma4-interior .cp-card__excerpt{margin:16px 0 0;font-size:14px;color:var(--muted);line-height:1.8}
body.dma4-interior .cp-card__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}
body.dma4-interior .cp-card__li{
  display:inline-flex;align-items:center;gap:6px;color:var(--green);font-weight:700;font-size:13px;text-decoration:none}

/* Phones + small tablets: portrait on top, text underneath at full width. The portrait is capped
   so it does not become a full-width slab on a 390px screen. */
@media(max-width:760px){
  body.dma4-interior .cp-card{grid-template-columns:1fr;gap:18px;margin-bottom:34px;justify-items:center;text-align:center}
  body.dma4-interior .cp-card__pic{width:min(190px,56vw)}
  body.dma4-interior .cp-card__body{width:100%}
  body.dma4-interior .cp-card__name{font-size:22px}
  /* a centred block quote with a left rule reads as misaligned — switch to a top rule */
  body.dma4-interior .cp-card__quote{
    padding:14px 0 0;border-left:0;border-top:4px solid var(--saffron);font-size:16px;text-align:center}
  body.dma4-interior .cp-card__actions{justify-content:center}
}

/* ═══════════ Two-column interior layouts ═══════════
   Contact, Event detail and Team profile each laid out a fixed sidebar column + a fluid column
   with an INLINE grid-template-columns. An inline style outranks every stylesheet rule, so no
   media query could collapse them — on a phone the second column was pushed off the right edge
   (the contact form's fields were cut in half). Moved to modifier classes here.
   Desktop values are reproduced EXACTLY as they were inline, so the wide layouts are unchanged;
   only the narrow-screen collapse below is new. Each keeps its own class because the three
   layouts are genuinely different (sidebar first / sidebar last / portrait + bio). */
body.dma4-interior .v4-grid--side-first{
  display:grid;grid-template-columns:minmax(280px,380px) 1fr;align-items:start;gap:26px}
body.dma4-interior .v4-grid--side-last{
  display:grid;grid-template-columns:1fr minmax(300px,360px);gap:32px;align-items:start}
body.dma4-interior .v4-grid--profile{
  display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:32px;align-items:start}

/* Phones + small tablets: one column, full width. On .v4-grid--side-last the sidebar follows the
   main content in source order already, so stacking needs no reordering. */
@media(max-width:760px){
  body.dma4-interior .v4-grid--side-first,
  body.dma4-interior .v4-grid--side-last,
  body.dma4-interior .v4-grid--profile{grid-template-columns:1fr;gap:20px}
}


/* ── Dropdown chevron on PUBLIC forms ────────────────────────────────────────
   The selects were left on the browser's native arrow (appearance:auto), which paints hard
   against the right edge of the field - it visibly touched the border on the contact enquiry
   and membership forms. Same treatment as the CMS: hide the native arrow and draw a chevron
   inset from the edge, with room reserved for it.
   NOTE background-COLOR, never the `background` shorthand - the shorthand resets
   background-image and would wipe this arrow (that is exactly how it broke in the admin). */
.dma3d .v4-field select, body.dma4-interior .pub-field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
/* a real list box is not a dropdown - no arrow, no reserved space */
.dma3d .v4-field select[multiple], .dma3d .v4-field select[size]:not([size="1"]) {
  background-image: none; padding-right: 13px; }

/* ---- Contact page: embedded Google Map ---- */
.dma3d .v4page--map { padding-top: 0; }
.dma3d .contact-map { border-radius: var(--radius, 12px); overflow: hidden; margin-top: 20px; }
.dma3d .contact-map iframe { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 640px) { .dma3d .contact-map iframe { height: 300px; } }

/* Required-field marker on public forms. Pairs with the existing .v4-opt "(optional)" tag:
   between them every field now states which it is, instead of the reader inferring it from
   the absence of a tag. The legend under the form explains the asterisk. */
.dma3d .v4-req{font-weight:800;margin-left:1px}
/* The legend is a key, not an error: muted body text with the marker in its own colour,
   set above the first field and separated from it so it reads as an introduction. */
/* Form meta row: the asterisk key on the left, the reply-time expectation on the
   right. Both are statements ABOUT the form, so they belong together above it -
   the reply time used to sit under the submit button, where it read as a caption
   for the button, and the key sat between an error and the button. */
.dma3d .v4-formmeta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 18px;
  margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--border);
  font-size:12px;color:var(--muted);line-height:1.45}
.dma3d .v4-reqnote{margin:0}
.dma3d .v4-replytime{margin:0}

/* "Open in Google Maps" under the contact map. Matches the footer's equivalent link:
   a quiet tertiary action, not a button - the map above it is the main thing. */
.dma3d .v4-maplink{margin:10px 0 0;font-size:12.5px;font-weight:600}
.dma3d .v4-maplink a{color:var(--saffron-text);text-decoration:none;border-bottom:2px solid var(--saffron-text);padding-bottom:2px}
.dma3d .v4-maplink a:hover{color:var(--green)}
