/* EMD brand layer v1 (2026-11-03) - one source of truth for type, color and buttons on every template.
   Loaded via @import from styles.css, emd-ui.css and shop/shop.css, and by <link> on standalone pages.
   Each selector is wrapped in :is(#emd-b, ...) so it outranks the older !important rules it replaces;
   #emd-b matches nothing, it only lifts specificity. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap");

:root{
  --emd-ink:#0A2540; --emd-muted:#5B6573; --emd-bg:#FAF8F4; --emd-line:#E6E2D8;
  --emd-primary:#0F766E; --emd-primary-dark:#0B5E58; --emd-coral:#E07856;
  --accent:#0F766E !important;
}

/* Type: Inter everywhere ... */
:is(#emd-b, body *:not(svg, svg *, code, pre, kbd)){font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif !important}
/* ... Fraunces for the two headline levels (declared after, same specificity, so it wins) */
:is(#emd-b, h1, h2, h1 *, h2 *){font-family:Fraunces,Georgia,"Times New Roman",serif !important;font-weight:500 !important;letter-spacing:-0.01em !important;font-variation-settings:normal !important}
:is(#emd-b, h1 strong, h2 strong, h1 b, h2 b){font-weight:600 !important}

/* Small labels: light tracking instead of spaced-out monospace */
:is(#emd-b, [class*="eyebrow"], [class*="kicker"], .crumb, .footer-badge, .hero-tool-meta){letter-spacing:0.08em !important}

/* No gradient-filled text: solid teal italic for emphasised headline words */
:is(#emd-b, h1 em, h2 em, h3 em, h1 i, h2 i, .hero-italic, .hero-headline em, .trends-heading em, .steps-heading em,
    .path-cards-heading em, .college-search-heading em, .path-card-title em, .emd-rot-title em, .elh-title em,
    .display em, .display-2 em, .bloom-text, .hero-subhead em){
  background:none !important; -webkit-background-clip:border-box !important; background-clip:border-box !important;
  color:var(--emd-primary) !important; -webkit-text-fill-color:var(--emd-primary) !important; font-style:italic !important;
}
:is(#emd-b, .step-number-digits, .concierge-result-title){
  background:none !important; -webkit-background-clip:border-box !important; background-clip:border-box !important;
  color:var(--emd-ink) !important; -webkit-text-fill-color:var(--emd-ink) !important;
}
:is(#emd-b, .steps-section .step-card .step-label, .path-card-concierge .path-card-eyebrow, .path-card-concierge .path-card-cta, .upgrade-first-class-eyebrow){
  background:none !important; -webkit-background-clip:border-box !important; background-clip:border-box !important;
  color:var(--emd-primary) !important; -webkit-text-fill-color:var(--emd-primary) !important;
}
/* emphasised words inside dark sections stay light */
:is(#emd-b, .elh-title em){color:#7FD6CD !important;-webkit-text-fill-color:#7FD6CD !important}

/* Buttons: one solid primary, no gradients, no colored glow */
:is(#emd-b, .btn-primary, .btn-hero-gloss, .bb-btn.bb-primary, .elh-cta, .emd-sl-shop, .ship-cta, .emd-share-btn,
    .emd-tier.active, .btn-upgrade, a.cta, .bl-cta, .emd-btn:not(.ghost):not(.navy), .eds-all, .apx-cta,
    button[style*="gradient"], a[style*="gradient"], input[type="submit"][style*="gradient"]){
  background:var(--emd-primary) !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
  border-color:transparent !important; box-shadow:none !important; text-shadow:none !important; border-radius:10px !important;
}
:is(#emd-b, .btn-primary, .btn-hero-gloss, .bb-btn.bb-primary, .elh-cta, .ship-cta, a.cta, .bl-cta, .emd-btn:not(.ghost):not(.navy), .apx-cta, .eds-all):hover{background:var(--emd-primary-dark) !important}
:is(#emd-b, .btn-primary, .btn-hero-gloss)::before, :is(#emd-b, .btn-hero-gloss)::after{display:none !important}
:is(#emd-b, .emd-btn.navy){background:var(--emd-ink) !important;color:#fff !important;box-shadow:none !important}
:is(#emd-b, .emd-rumi-fab){background:var(--emd-ink) !important;box-shadow:0 4px 14px rgba(10,37,64,.25) !important}

/* Off-brand orange set inline on older templates */
:is(#emd-b, [style*="background:#FF8C00"], [style*="background: #FF8C00"], [style*="background:#ff8c00"]){background:var(--emd-primary) !important}
:is(#emd-b, [style*="color:#FF8C00"], [style*="color: #FF8C00"], [style*="color:#ff8c00"]){color:var(--emd-primary) !important}

/* The "START HERE" star badge */
:is(#emd-b, #housing-choice .hc-badge){display:none !important}

/* Phones: the main header menu gets its own row inside the white header */
@media (max-width: 640px){
  :is(#emd-b, .site-header){height:auto !important;background:#fff !important}
  :is(#emd-b, .site-header .header-inner){height:auto !important;flex-wrap:wrap !important;row-gap:4px !important;padding-top:10px !important;padding-bottom:8px !important}
  :is(#emd-b, .site-header .emd-nav){order:3 !important;flex:1 0 100% !important;width:100% !important;display:flex !important;gap:18px !important;justify-content:flex-start !important;overflow-x:auto !important;white-space:nowrap !important;padding:4px 0 2px !important;margin:0 !important;position:static !important;background:transparent !important}
  :is(#emd-b, .site-header .emd-nav a){color:var(--emd-ink) !important;opacity:1 !important;font-size:14px !important}
  :is(#emd-b, .site-header .header-inner){column-gap:8px !important}
  :is(#emd-b, .site-header .brand-lockup){font-size:15px !important;gap:8px !important;max-width:70% !important}
  :is(#emd-b, .site-header .brand-lockup img, .site-header .brand-lockup svg){width:30px !important;height:30px !important}
  :is(#emd-b, .site-header .header-inner > div:last-child){margin-left:auto !important}
}

/* Phones: the shared content-page header (emd-chrome.js) puts its links in one scrollable row under the logo */
@media (max-width: 640px){
  :is(#emd-b, #emd-chrome-header .in){flex-wrap:wrap !important;row-gap:6px !important;height:auto !important;padding-top:10px !important;padding-bottom:8px !important}
  :is(#emd-b, #emd-chrome-header .logo){white-space:nowrap !important;font-size:15px !important}
  :is(#emd-b, #emd-chrome-header nav){flex:1 0 100% !important;width:100% !important;display:flex !important;align-items:center !important;gap:16px !important;overflow-x:auto !important;white-space:nowrap !important;justify-content:flex-start !important;padding-bottom:2px !important}
  :is(#emd-b, #emd-chrome-header nav a.hideS:not(#emd-nav-dash)){display:inline-block !important}
  :is(#emd-b, #emd-chrome-header nav a){font-size:14px !important;white-space:nowrap !important;flex:none !important}
  :is(#emd-b, #emd-chrome-header nav a.cta){padding:7px 12px !important;font-size:13px !important}
}

/* Hide the scrollbar on the swipeable phone menus */
:is(#emd-b, #emd-chrome-header nav, .site-header .emd-nav){scrollbar-width:none !important}
:is(#emd-b, #emd-chrome-header nav, .site-header .emd-nav)::-webkit-scrollbar{display:none !important}

/* School pages: the plain-text "elevatemydorm" header link shows as the logo + wordmark (CSS only, HTML unchanged for the deploy tasks) */
:is(#emd-b, header.site a.brand){display:inline-flex !important;align-items:center !important;gap:9px !important;font-size:0 !important;color:var(--emd-ink) !important;text-decoration:none !important}
:is(#emd-b, header.site a.brand)::before{content:"" !important;width:28px !important;height:28px !important;background:url("/emd-mark-2026.png?v=10") center/contain no-repeat !important;flex:none !important}
:is(#emd-b, header.site a.brand)::after{content:"ELEVATE MY DORM" !important;font:700 15px/1 Inter,system-ui,sans-serif !important;letter-spacing:0.06em !important;color:var(--emd-ink) !important}

/* School pages: header sized to match the homepage (logo 46px, wordmark 21px, centred to the content width) */
:is(#emd-b, header.site){padding:16px max(20px, calc((100% - 1120px) / 2)) !important;min-height:78px !important;background:#fff !important;border-bottom:1px solid var(--emd-line) !important;align-items:center !important}
:is(#emd-b, header.site a.brand){gap:12px !important}
:is(#emd-b, header.site a.brand)::before{width:46px !important;height:46px !important}
:is(#emd-b, header.site a.brand)::after{font-size:21px !important;letter-spacing:0.05em !important;font-weight:700 !important}
:is(#emd-b, header.site nav, header.site .emd-fixnav){gap:28px !important}
:is(#emd-b, header.site nav a, header.site .emd-fixnav a){font-size:16px !important;font-weight:600 !important;color:var(--emd-ink) !important;text-decoration:none !important}
:is(#emd-b, header.site nav a:hover, header.site .emd-fixnav a:hover){color:var(--emd-primary) !important}
@media (max-width: 640px){
  :is(#emd-b, header.site){flex-wrap:wrap !important;row-gap:8px !important;min-height:0 !important;padding:12px 16px !important}
  :is(#emd-b, header.site a.brand)::before{width:34px !important;height:34px !important}
  :is(#emd-b, header.site a.brand)::after{font-size:17px !important}
  :is(#emd-b, header.site nav, header.site .emd-fixnav){flex:1 0 100% !important;gap:18px !important;overflow-x:auto !important;white-space:nowrap !important;scrollbar-width:none !important}
  :is(#emd-b, header.site nav a, header.site .emd-fixnav a){font-size:15px !important}
}

/* School-page product cards: real photo when one exists, otherwise an editorial text card (no clip art) */
:is(#emd-b, .eds-card.eds-noimg){background:#F7F5F0 !important;border:1px solid var(--emd-line) !important;padding:18px 18px 14px !important;display:flex !important;flex-direction:column !important}
:is(#emd-b, .eds-cat){display:block !important;font-size:11px !important;font-weight:700 !important;letter-spacing:0.08em !important;text-transform:uppercase !important;color:var(--emd-primary) !important;margin:0 0 10px !important}
:is(#emd-b, .eds-card.eds-noimg .eds-name){font-family:Fraunces,Georgia,serif !important;font-size:17px !important;line-height:1.35 !important;font-weight:500 !important;color:var(--emd-ink) !important;flex:1 1 auto !important;margin-bottom:14px !important}
:is(#emd-b, .eds-media img){object-fit:contain !important;background:#fff !important}
