/* ============================================================
   MCF PRINCIPAL ENGINEER PAGE (2026-10-27, Alicia from the rendered mock-up:
   "after these comments PE page would be fine"), drawn by
   templates/mcf-principal.php behind the `mcf_principal` switch. Portrait and
   name first, then four qualification cards and six points of experience, the
   three areas of expertise, a closing band. Clean and light: thin gold rules,
   the house slim arrow on the LinkedIn link, one real button.
   Its own tokens (--pe-*), read by this sheet alone: nothing here reaches
   another page, and no other page's token reaches this one. Every rule is
   scoped to #edWrap.mcfpe, which only the principal template prints.
   Narrow screens SCALE a Global number with a named multiplier, never replace
   it. The layout follows #edWrap's width (container "pe"), so the panel's
   iPad and Phone buttons show the real iPad and phone layouts.
   ============================================================ */
/* Roboto Flex, served from the theme (the same file chrome.css declares), so the page draws in it even with the theme header off. */
@font-face{font-family:"Roboto Flex";font-style:normal;font-weight:300 700;font-stretch:100%;font-display:swap;src:url(../fonts/roboto-flex-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Roboto Flex";font-style:normal;font-weight:300 700;font-stretch:100%;font-display:swap;src:url(../fonts/roboto-flex-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  /* text sizes */
  --pe-h1:48px;          /* her name (desktop; 40 iPad, 34 phone by --pe-h1-mul) */
  --pe-h1-w:600;         /* its weight (unitless) */
  --pe-eye:13px;         /* "Our Principal Engineer" */
  --pe-cred:20px;        /* "P.Eng., CFEI, GPLLM" */
  --pe-role:16px;        /* "Principal Forensic Engineer, Mission Critical Forensics" */
  --pe-lead:18px;        /* the two opening paragraphs */
  --pe-link:15px;        /* Connect on LinkedIn */
  --pe-h2:28px;          /* section headings */
  --pe-card-h:22px;      /* a card's title */
  --pe-card-t:14.5px;    /* a card's line */
  --pe-exp:16.5px;       /* the experience points */
  --pe-h3:19px;          /* an area's heading */
  --pe-body:16.5px;      /* paragraphs */
  --pe-band-h:24px;      /* the closing headline */
  /* colours */
  --pe-ink:#1C244B;      /* name, headings, card titles, experience points */
  --pe-text:#3D4560;     /* paragraphs */
  --pe-mute:#6B7288;     /* the role line */
  --pe-gold:#D9A63C;     /* the eyebrow, card and area rules, point marks, a link on hover */
  --pe-link-c:#5186F7;   /* links and the slim arrow */
  --pe-band:#F5F6F9;     /* the qualifications band */
  --pe-line:#E3E6EE;     /* card and band outlines */
  --pe-bg:#FFFFFF;       /* the page */
  /* layout */
  --pe-wrap:1140px;      /* the page, side padding included */
  --pe-photo:380px;      /* the portrait column (desktop) */
  --pe-gap:56px;         /* between the portrait and the text (desktop) */
  --pe-sec:50px;         /* above and below a section */
  --pe-radius:8px        /* corners */
}

/* narrow-screen multipliers and side padding (not panel controls); set on the sections, which a container query can style */
#edWrap.mcfpe > *{--pe-h1-mul:1;--pe-side:30px}
@container pe (max-width:1024px){#edWrap.mcfpe > *{--pe-h1-mul:calc(40 / 48)}}
@container pe (max-width:560px){#edWrap.mcfpe > *{--pe-h1-mul:calc(34 / 48);--pe-side:20px}}

/* base: Elementor's kit and the parent theme's reset style bare tags site-wide, so every part sets what it draws */
#edWrap.mcfpe{container:pe / inline-size;background:var(--pe-bg);color:var(--pe-text);font-family:var(--font,"Roboto Flex",system-ui,-apple-system,"Segoe UI",Arial,sans-serif);font-size:var(--pe-body);line-height:1.62;-webkit-font-smoothing:antialiased;margin:0;padding:0}
#edWrap.mcfpe *,#edWrap.mcfpe *::before,#edWrap.mcfpe *::after{box-sizing:border-box}
#edWrap.mcfpe :is(h1,h2,h3,p,ul,li,section,div,a,b,span){font-family:inherit;letter-spacing:normal;text-transform:none}
#edWrap.mcfpe :is(h1,h2,h3,p,ul,li,section){margin:0;padding:0}
#edWrap.mcfpe a{text-decoration:none;background:none}
#edWrap.mcfpe .wrap{width:100%;max-width:var(--pe-wrap);margin:0 auto;padding:0 var(--pe-side)}

/* the person */
#edWrap.mcfpe .pe-hero{padding:calc(var(--pe-sec) + 20px) 0 calc(var(--pe-sec) + 6px)}
#edWrap.mcfpe .pe-grid{display:grid;grid-template-columns:minmax(260px,var(--pe-photo)) minmax(0,1fr);gap:var(--pe-gap);align-items:start}
#edWrap.mcfpe .pe-media{margin:0}
#edWrap.mcfpe .pe-photo{width:100%;max-width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 20%;border-radius:var(--pe-radius);display:block}
#edWrap.mcfpe .pe-eye{margin:6px 0 14px;font-size:var(--pe-eye);font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--pe-gold)}
#edWrap.mcfpe h1{margin:0;font-size:calc(var(--pe-h1) * var(--pe-h1-mul));line-height:1.08;font-weight:var(--pe-h1-w);color:var(--pe-ink)}
#edWrap.mcfpe .pe-cred{margin:10px 0 4px;font-size:var(--pe-cred);font-weight:300;color:var(--pe-ink);letter-spacing:.02em}
#edWrap.mcfpe .pe-role{margin:0 0 26px;font-size:var(--pe-role);color:var(--pe-mute)}
#edWrap.mcfpe .pe-lead{margin:0 0 22px;font-size:var(--pe-lead);line-height:1.62;max-width:62ch;color:var(--pe-text)}
/* the house slim arrow: blue at rest, gold on hover, the lead grows */
#edWrap.mcfpe .pe-a{display:inline-flex;align-items:center;gap:12px;color:var(--pe-link-c);font-weight:500;font-size:var(--pe-link);transition:color .2s}
#edWrap.mcfpe .pe-arr{width:28px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:butt;stroke-linejoin:miter;overflow:visible}
#edWrap.mcfpe .pe-arr path:first-child{transform-origin:6px 6px;transition:transform .2s ease}
#edWrap.mcfpe .pe-arr path:last-child{transition:transform .2s ease}
#edWrap.mcfpe .pe-a:hover,#edWrap.mcfpe .pe-a:focus-visible{color:var(--pe-gold)}
#edWrap.mcfpe .pe-a:hover .pe-arr path:first-child,#edWrap.mcfpe .pe-a:focus-visible .pe-arr path:first-child{transform:scaleX(1.3)}
#edWrap.mcfpe .pe-a:hover .pe-arr path:last-child,#edWrap.mcfpe .pe-a:focus-visible .pe-arr path:last-child{transform:translateX(6px)}

/* qualifications and experience */
#edWrap.mcfpe .pe-creds{background:var(--pe-band);padding:var(--pe-sec) 0}
#edWrap.mcfpe .pe-h2{margin:0 0 22px;font-size:var(--pe-h2);font-weight:600;line-height:1.18;color:var(--pe-ink)}
#edWrap.mcfpe .pe-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
#edWrap.mcfpe .pe-card{background:#fff;border:1px solid var(--pe-line);border-top:2px solid var(--pe-gold);border-radius:var(--pe-radius);padding:20px 20px 22px}
#edWrap.mcfpe .pe-card b{display:block;font-size:var(--pe-card-h);font-weight:600;line-height:1.25;color:var(--pe-ink);margin-bottom:8px}
#edWrap.mcfpe .pe-card span{display:block;font-size:var(--pe-card-t);line-height:1.5;color:var(--pe-text)}
#edWrap.mcfpe .pe-exp{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 40px}
#edWrap.mcfpe .pe-exp li{position:relative;padding:0 0 0 22px;font-size:var(--pe-exp);line-height:1.5;color:var(--pe-ink)}
#edWrap.mcfpe .pe-exp li::before{content:"";position:absolute;left:0;top:.72em;width:10px;height:2px;background:var(--pe-gold)}

/* areas of expertise */
#edWrap.mcfpe .pe-body{padding:var(--pe-sec) 0}
#edWrap.mcfpe .pe-areas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 28px;margin:0 0 22px}
#edWrap.mcfpe .pe-area{border-top:2px solid var(--pe-gold);padding-top:14px;min-width:0}
#edWrap.mcfpe .pe-area h3{margin:0 0 8px;font-size:var(--pe-h3);font-weight:600;line-height:1.3;color:var(--pe-ink)}
#edWrap.mcfpe .pe-area h3 a{color:var(--pe-ink);transition:color .2s}
#edWrap.mcfpe .pe-area h3 a:hover{color:var(--pe-gold)}
#edWrap.mcfpe .pe-area p,#edWrap.mcfpe .pe-p{margin:0 0 16px;font-size:var(--pe-body);line-height:1.62;color:var(--pe-text);max-width:none}
#edWrap.mcfpe .pe-p a{color:var(--pe-link-c);font-weight:500;transition:color .2s}
#edWrap.mcfpe .pe-p a:hover{color:var(--pe-gold)}
#edWrap.mcfpe .pe-h2-2{margin-top:34px}
#edWrap.mcfpe .pe-body .wrap>*:last-child{margin-bottom:0}

/* closing band */
#edWrap.mcfpe .pe-cta{padding:0 0 calc(var(--pe-sec) + 20px)}
#edWrap.mcfpe .pe-band{border:1px solid var(--pe-line);border-radius:10px;padding:30px 34px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
#edWrap.mcfpe .pe-band h2{margin:0 0 6px;font-size:var(--pe-band-h);font-weight:600;line-height:1.25;color:var(--pe-ink)}
#edWrap.mcfpe .pe-band p{margin:0;font-size:var(--pe-body);color:var(--pe-text)}
/* the one real button: blue fill; hover inverts to transparent with blue text and a hairline outline */
#edWrap.mcfpe .pe-btn{--mcb-h:48px;--mcb-ws:nowrap} /* the one button (.mcb, buttons.css): its look lives there */

@container pe (max-width:1024px){
  #edWrap.mcfpe .pe-grid{grid-template-columns:1fr;gap:30px}
  #edWrap.mcfpe .pe-media{width:100%;max-width:340px;margin:0 auto}
  #edWrap.mcfpe .pe-txt{text-align:center}
  #edWrap.mcfpe .pe-lead{margin-left:auto;margin-right:auto}
  #edWrap.mcfpe .pe-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  #edWrap.mcfpe .pe-areas{grid-template-columns:1fr}
}
@container pe (max-width:760px){#edWrap.mcfpe .pe-exp{grid-template-columns:1fr}}
@container pe (max-width:560px){
  #edWrap.mcfpe .pe-hero{padding:40px 0}
  #edWrap.mcfpe .pe-cards{grid-template-columns:1fr}
  #edWrap.mcfpe .pe-band{padding:24px 22px}
  #edWrap.mcfpe .pe-btn{width:100%;--mcb-ws:normal}
}
@media(prefers-reduced-motion:reduce){#edWrap.mcfpe .pe-arr path{transition:none}}

/* Contact card (Alicia, 2026-10-27): a downloadable vCard (assets/vcard/alicia-yan-mcf.vcf: work
   email, office phone, office address, LinkedIn, portrait) and a QR code carrying the same card,
   so anyone can save her to their phone. The QR is hidden on phones, where nobody scans their own screen. */
#edWrap.mcfpe .pe-contact{display:flex;align-items:center;gap:22px;margin:6px 0 0}
#edWrap.mcfpe .pe-qr{width:140px;height:140px;flex:none;border:1px solid var(--pe-line);border-radius:8px;padding:6px;background:#fff;box-sizing:border-box}
#edWrap.mcfpe .pe-contact-txt{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
#edWrap.mcfpe .pe-qr-cap{margin:0;font-size:var(--pe-role);color:var(--pe-mute)}
@media (max-width:1024px){#edWrap.mcfpe .pe-contact{justify-content:center}#edWrap.mcfpe .pe-contact-txt{align-items:flex-start}}
@media (max-width:560px){#edWrap.mcfpe .pe-qr,#edWrap.mcfpe .pe-qr-cap{display:none}#edWrap.mcfpe .pe-contact-txt{align-items:center}}
