/* ============================================================
   MLW brand layer for the DMIS sign-in pages (/login/)
   Same file as the helpdesk theme's (portal_new/helpdesk-theme). Tokens, type
   and components are ported from the DMSU portal (portal_new/web/app/globals.css)
   and follow the MLW Brand Styleguide v04: Emerald Forest dominates,
   Mustard Yellow is the strategic accent (CTAs, key figures), Southfield
   Green supports. Flat and square: no gradients or card lifts.
   ============================================================ */

/* Figtree stands in for the licensed brand face RB-Galano Neue (first in the
   stack, so it wins wherever it is installed). Self-hosted, OFL. */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Italic serif for the accent line inside headlines, as on the portal. */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* brand palette (styleguide p.28) */
  --emerald: #225245; --mustard: #EAAA00; --southfield: #84AA91; --brand-gray: #939393;
  --block: #225245; --block-2: #1A4136; --emerald-900: #0E241B;
  --mustard-hover: #F4C033; --southfield-hover: #A2C1AD;
  /* surfaces and text (portal editorial set) */
  --paper: #FFFFFF; --bg: #F4F7F5; --tint: #F2EEE1; --sage-tint: #E7F0EA;
  --rule: #D9D3C2; --line: #E1E9E3;
  --text: #10261E; --text-2: #3F5148; --label: #5E6A64;
  --heading: #225245; --accent-ink: #225245;
  /* status */
  --ok: #1E8A5F; --warn: #B27A17; --crit: #B23B3B; --info: #2A6CB0;
  --sans: "RB-Galano Neue", "RB-Galano", "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif-accent: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4.4vw, 72px);
  --edmax: 1240px;
}

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

/* skip link: hidden until keyboard focus, then shown above the header */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--mustard); color: #10261E !important; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; outline-offset: 2px; }

.ed-wrap { width: 100%; max-width: calc(var(--edmax) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }

/* the italic serif second line inside headlines */
.ed-em { display: block; margin-top: .04em; font-family: var(--serif-accent); font-style: italic; font-weight: 500; letter-spacing: -.015em; line-height: 1.02; }

/* MLW logo locked up with the unit name; MLW on the left (co-branding rule) */
.lockup { display: inline-flex; align-items: center; gap: 16px; color: #fff; }
/* two links: the MLW logo goes to mlw.mw, the unit name to the DMSU portal */
.lockup a, .lockup a:hover { color: inherit; text-decoration: none; }
.lockup-mlw { display: flex; transition: opacity .15s; }
.lockup-mlw:hover { opacity: .85; }
.lockup img { width: auto; height: 60px; max-width: none; }
.lockup-rule { align-self: stretch; width: 1px; margin: 6px 0; background: rgba(255,255,255,.55); }
.lockup-dept { display: flex; flex-direction: column; line-height: 1; font-family: var(--sans); }
.lockup-dept b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.lockup-dept span { margin-top: 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); white-space: nowrap; }
.lockup-lg { gap: 22px; }
.lockup-lg img { height: 76px; }
.lockup-lg .lockup-dept b { font-size: 34px; }
.lockup-lg .lockup-dept span { margin-top: 8px; font-size: 17px; }

/* pill CTA per brand guide p.34 */
.ed-btn, a.ed-btn, a.ed-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; min-height: 48px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ed-btn:hover { text-decoration: none; border-bottom-style: solid; }
.ed-btn-mustard, a.ed-btn-mustard, a.ed-btn-mustard:visited { background: var(--mustard); color: #10261E; }
.ed-btn-mustard:hover { background: var(--mustard-hover); color: #10261E; }
.ed-btn-forest, a.ed-btn-forest, a.ed-btn-forest:visited { background: var(--emerald); color: #fff; }
.ed-btn-forest:hover { background: var(--block-2); color: #fff; }
.ed-btn-light, a.ed-btn-light, a.ed-btn-light:visited { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.ed-btn-light:hover { background: #fff; color: var(--emerald); border-color: #fff; }
.ed-btn-outline, a.ed-btn-outline, a.ed-btn-outline:visited { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.ed-btn-outline:hover { background: var(--tint); color: var(--emerald); }
.ed-btn-sm { min-height: 40px; padding: 9px 18px; font-size: 13px; }

/* arrow link */
.ed-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ed-arrow::after { content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; transition: transform .18s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.ed-arrow:hover { text-decoration: underline; border-bottom: 0; }
.ed-arrow:hover::after { transform: translateX(5px); }

@media (max-width: 720px) {
  .lockup { gap: 12px; }
  .lockup img { height: 44px; }
  .lockup-dept b { font-size: 20px; }
  .lockup-dept span { max-width: 10em; font-size: 12.5px; line-height: 1.2; white-space: normal; }
  .lockup-lg img { height: 56px; }
  .lockup-lg .lockup-dept b { font-size: 26px; }
}
@media (max-width: 420px) { .lockup-dept span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
