.portal {
  --ink: #132c30;
  --muted: #475e60;
  --paper: #faf9f5;
  --line: #c9d3cd;
  --accent: #ffca5e;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.portal-bound, .portal-bar {
  width: min(100% - clamp(2.5rem, 9vw, 9rem), 78rem);
  margin-inline: auto;
}
.portal :focus-visible { outline: 3px solid #156e75; outline-offset: 4px; }
.portal main:focus { outline: none; }
.portal-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.portal-bar, .portal-brand, .portal-bar nav { display: flex; align-items: center; }
.portal-bar { min-height: 4.75rem; justify-content: space-between; gap: 1rem; }
.portal-brand { gap: .65rem; font-size: 1.42rem; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.portal-brand-mark {
  width: 1.85rem; height: 2rem; position: relative; display: grid; place-items: center;
  background: var(--ink, #132c30); border-radius: 3px; clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
}
.portal-brand-mark i { width: .95rem; height: 3px; background: var(--accent, #ffca5e); transform: skewY(-13deg); box-shadow: 0 6px var(--accent, #ffca5e); }
.portal-bar nav { gap: clamp(1rem, 3.5vw, 3rem); font-size: .9rem; font-weight: 650; }
.portal-bar nav a { padding-block: .7rem; }
.portal-bar nav a:hover, .portal-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-nav-action { display: inline-flex; align-items: center; gap: .7rem; }
.portal-nav-action span { color: #4b6463; }
.portal-skip { position: absolute; top: .4rem; left: .4rem; z-index: 4; padding: .7rem; background: white; transform: translateY(-160%); }
.portal-skip:focus { transform: none; }

.portal-hero { position: relative; isolation: isolate; color: white; background: #112b31; overflow: hidden; }
.portal-plant, .portal-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-plant { object-fit: cover; object-position: center; }
.portal-hero .portal-plant { object-position: center 56%; }
.portal-hero-shade {
  background: linear-gradient(90deg, rgba(10,29,33,.84), rgba(10,29,33,.78) 28%, rgba(10,29,33,.62) 48%, rgba(10,29,33,.16) 76%, rgba(10,29,33,.04));
}
.portal-hero-content { position: relative; padding-block: clamp(3.5rem, 6vw, 6rem); }
.portal-kicker { display: flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.portal-kicker::before { content: ""; display: inline-block; background: #aa6a11; height: 3px; width: 1.7rem; }
.portal-hero .portal-kicker { color: #ffe4a9; }
.portal-hero .portal-kicker::before { background: var(--accent); }
.portal-hero h1 { margin: 1.25rem 0; font-size: clamp(3.4rem, 6.2vw, 6rem); letter-spacing: -.06em; line-height: .99; font-weight: 640; }
.portal-hero-lede { max-width: 25rem; color: #f0f4f2; font-size: 1.06rem; line-height: 1.6; }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.9rem; }
.portal-action, .portal-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; border-radius: .35rem;
  min-height: 2.95rem; padding: .68rem 1.3rem; font-size: .95rem; line-height: 1.4; font-weight: 700;
}
.portal-action { color: #182b2d; background: var(--accent); border: 1px solid transparent; }
.portal-action:hover { background: #ffda86; }
.portal-action:disabled { cursor: wait; opacity: .68; }
.portal-action span { font-size: 1.25rem; line-height: 1; }
.portal-secondary { color: white; background: #19353bd9; border: 1px solid #afc0be; }
.portal-secondary:hover { background: #28484d; }
.portal-hero :focus-visible { outline-color: white; }
.portal-workspace { padding-block: clamp(2.4rem, 4.2vw, 4rem); }
.portal-workspace h2 { margin: 0 0 1.3rem; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.045em; line-height: 1.1; font-weight: 650; }
.portal-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #91a3a0; }
.portal-shortcut { padding: 1.25rem 1.6rem .3rem 0; }
.portal-shortcut + .portal-shortcut { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.portal-shortcut h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1.2rem; letter-spacing: -.02em; font-weight: 700; }
.portal-shortcut h3 span { color: #38615e; }
.portal-shortcut p { margin-top: .45rem; max-width: 29ch; color: var(--muted); line-height: 1.55; font-size: .94rem; }
.portal-shortcut:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.portal-login { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 4.8rem); }
.portal-login-panel { align-self: center; width: min(100% - 4rem, 26rem); margin: 3rem auto; }
.portal-login h1, .portal-account h1 { font-weight: 650; font-size: clamp(2.45rem, 4vw, 4rem); letter-spacing: -.055em; line-height: 1.08; }
.portal-login h1 { margin-top: 1rem; }
.portal-intro { color: var(--muted); margin: .85rem 0 1.6rem; line-height: 1.6; }
@media (min-width: 801px) {
  .portal-login-visual { background: #284349 url("./assets/process-plant.webp") center / cover; }
}
.portal-form { display: grid; gap: .55rem; }
.portal-form label { color: var(--ink); font-size: .9rem; font-weight: 650; }
.portal-form label:not(:first-child) { margin-top: .55rem; }
.portal-form input, .portal-form textarea {
  width: 100%; min-width: 0; padding: .75rem .85rem; border: 1px solid #849894; border-radius: .35rem;
  color: var(--ink); background: white; font-size: 1rem; line-height: 1.45;
}
.portal-form textarea { min-height: 6.5rem; resize: vertical; }
.portal-form .portal-action { width: 100%; margin-top: .65rem; }
.portal-password { position: relative; }
.portal-password input { padding-right: 4.6rem; }
.portal-password button { position: absolute; inset: 2px 3px 2px auto; min-width: 3.65rem; font-size: .84rem; font-weight: 650; color: #285a5b; }
.portal-error { background: #fff1ed; color: #882e20; border-left: 3px solid #a44130; padding: .65rem .8rem; margin-top: .4rem; font-size: .92rem; }
.portal-account-link { margin-top: 1.45rem; color: var(--muted); font-size: .93rem; }
.portal-text-link { color: #154f51; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.portal-account { width: min(100% - 2.5rem, 34rem); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.portal-account-panel { overflow-wrap: break-word; }

@media (max-width: 800px) {
  .portal-login { display: block; min-height: auto; }
  .portal-login-visual { display: none; }
  .portal-login-panel { margin-block: clamp(2.6rem, 8vw, 5rem); width: min(100% - 2.5rem, 27rem); }
  .portal-hero-shade { background: linear-gradient(90deg, rgba(10,29,33,.84), rgba(10,29,33,.78) 41%, rgba(10,29,33,.28)); }
}
@media (max-width: 580px) {
  .portal-bar { min-height: 4rem; }
  .portal-brand { font-size: 1.18rem; gap: .45rem; }
  .portal-brand-mark { width: 1.5rem; height: 1.7rem; }
  .portal-brand-mark i { width: .75rem; }
  .portal-bar nav { font-size: .83rem; gap: 1rem; }
  .portal-nav-action { gap: .25rem; }
  .portal-hero h1 { font-size: clamp(2.9rem, 10vw, 4rem); }
  .portal-hero-content { padding-block: 3.5rem; }
  .portal-hero-shade { background: linear-gradient(95deg, rgba(10,29,33,.85), rgba(10,29,33,.77) 58%, rgba(10,29,33,.54)); }
  .portal-hero-lede { font-size: 1rem; max-width: 31ch; }
  .portal-shortcuts { grid-template-columns: 1fr; }
  .portal-shortcut, .portal-shortcut + .portal-shortcut { padding: 1rem 0; border-left: none; border-bottom: 1px solid var(--line); }
  .portal-shortcut p { max-width: none; }
}

/* Base styles for the standalone edition of the EPTW portal. */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.public-access {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .35rem 0 .35rem .9rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}
.portal-shortcut:hover h3 { text-decoration: none; }
.public-missing { padding-block: 3rem; }
.public-missing h1 { margin-block: 3rem 1rem; }
