*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #4AADA0;
  --gold: #C9A84C;
  --line: rgba(201,168,76,0.25);
  --bg: #0d0d0d;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --muted: #7a7a7a;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Jost", sans-serif;
  background: var(--bg);
  color: #e8e4de;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 3rem;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8c4be;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta, .btn-primary {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.3s;
}

.nav-cta { padding: 0.55rem 1.4rem; font-size: 0.75rem; white-space: nowrap; }
.nav-cta:hover, .btn-primary:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  background: var(--gold);
  margin: 6px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 7rem 3rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(74,173,160,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.hero-ornament {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  opacity: 0.06;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.hero-ornament::before, .hero-ornament::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-ornament::before { inset: 20px; border: 1px solid var(--teal); }
.hero-ornament::after { inset: 40px; border: 1px solid var(--gold); }
.hero-content { max-width: 700px; position: relative; z-index: 2; }

.hero-tag, .about-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2rem;
}

.hero-tag::before, .about-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--teal);
  flex: 0 0 auto;
}

.hero-h1, .page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: #f0ece4;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}

.hero-body, .section-summary, .page-intro {
  font-size: 1rem;
  font-weight: 300;
  color: #a8a49e;
  max-width: 620px;
  line-height: 1.8;
}

.hero-body { margin-bottom: 2.5rem; max-width: 520px; }
.hero-actions, .cta-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8c4be;
  text-decoration: none;
}

.btn-ghost:hover { color: var(--gold); }

.intro-strip {
  padding: 3rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.strip-item { text-align: center; min-width: 110px; }
.strip-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.strip-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.about {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-h2, .section-h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: #f0ece4;
  margin-bottom: 1.5rem;
}

.rich-text, .about-body {
  font-size: 0.95rem;
  font-weight: 300;
  color: #a8a49e;
  line-height: 1.9;
}

.rich-text p + p { margin-top: 1rem; }

.about-card {
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}

.about-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: #d8d4ce;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.5;
  display: block;
  margin-bottom: 1rem;
}

.about-cite, .person-role {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.location-dot, .crisis-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.services, .people, .maggie, .contact { background: var(--bg2); }
.services, .people { padding: 7rem 3rem; }
.page-listing { background: var(--bg); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header-left { text-align: left; max-width: 100%; margin-bottom: 0; }
.section-summary { margin: 0 auto; }
.approach-summary { margin: 0; }

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.services-grid, .people-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.12);
}

.service-card, .person-card {
  background: var(--bg2);
  transition: background 0.3s;
  min-width: 0;
}

.service-card { padding: 2.5rem 2rem; }
.service-card:hover, .person-card:hover { background: var(--bg3); }

.service-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(74,173,160,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-name, .approach-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #e8e4de;
  margin-bottom: 0.75rem;
}

.service-desc, .approach-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

.person-card .service-desc {
  font-size: 1.05rem;
  line-height: 1.8;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.people { background: var(--bg); }
.person-card { display: grid; grid-template-rows: auto 1fr; }
.person-image { display: block; background: var(--bg3); text-decoration: none; }
.person-image img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; }
.person-placeholder, .profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(74,173,160,0.12), rgba(201,168,76,0.12));
}
.person-content { padding: 1.75rem; }
.person-role { margin-bottom: 0.5rem; }

.approach {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

.approach-item {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.approach-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.maggie {
  padding: 5rem 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.maggie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.maggie-badge {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid rgba(74,173,160,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  overflow: hidden;
}

.maggie-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maggie-paw { font-size: 2rem; color: var(--gold); }
.maggie-title { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); text-align: center; line-height: 1.4; max-width: 90px; }
.maggie-h3 { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; font-weight: 300; color: #f0ece4; margin-bottom: 0.75rem; }
.maggie-body { font-size: 0.9rem; font-weight: 300; color: var(--muted); line-height: 1.8; }

.cta {
  padding: 8rem 3rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(74,173,160,0.05) 0%, transparent 65%); }
.cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: #f0ece4; line-height: 1.15; margin-bottom: 1rem; }
.cta-sub { font-size: 1rem; font-weight: 300; color: var(--muted); margin-bottom: 2.5rem; line-height: 1.8; }
.cta-actions { justify-content: center; }

.btn-outline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.5);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  border-radius: 2px;
}

.contact {
  padding: 5rem 3rem;
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.contact-brand { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.75rem; }
.contact-tagline { font-size: 0.85rem; font-style: italic; font-family: "Cormorant Garamond", serif; color: var(--teal); margin-bottom: 1.25rem; }
.contact-body { font-size: 0.85rem; font-weight: 300; color: #6a6a6a; line-height: 1.8; }
.contact-head { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.contact-services-head { margin-top: 1.5rem; }
.contact-list { list-style: none; }
.contact-list li { font-size: 0.88rem; font-weight: 300; color: var(--muted); margin-bottom: 0.5rem; }
.contact-list a { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  font-size: 0.75rem;
  color: #4a4a4a;
  gap: 1.5rem;
}

.crisis { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.crisis-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: #5a5a5a; }
.crisis-dot { width: 4px; height: 4px; }

.page-hero {
  padding: 10rem 3rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 80% 35%, rgba(74,173,160,0.06), transparent 70%);
}

.content-shell { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }
.page-title { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.content-section { padding: 5rem 3rem; background: var(--bg); }
.content-prose { font-size: 1rem; font-weight: 300; color: #b8b2aa; line-height: 1.9; }
.content-prose > * + * { margin-top: 1.25rem; }
.content-prose h2, .content-prose h3 { font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 300; color: #f0ece4; line-height: 1.2; }
.content-prose a { color: var(--gold); }
.content-prose a.btn-primary, .cta-inline a.btn-primary { color: var(--bg); }
.content-prose a.btn-outline, .cta-inline a.btn-outline { color: var(--gold); }
.content-prose ul, .content-prose ol { padding-left: 1.5rem; }
.content-prose blockquote { border-left: 2px solid var(--gold); padding-left: 1.25rem; color: #d8d4ce; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-style: italic; }
.content-prose figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
.cta-inline { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.staff-profile-hero { padding: 10rem 3rem 5rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.profile-shell { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 4rem; align-items: center; }
.profile-image, .profile-placeholder { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border: 1px solid var(--line); }
.profile-placeholder { font-size: 7rem; }
.empty-note { grid-column: 1 / -1; color: var(--muted); padding: 2rem; background: var(--bg2); }

.portal-hero .hero-actions { margin-top: 2rem; }
.portal-section {
  padding: 5rem 3rem;
  background: var(--bg);
}

.portal-grid, .resource-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.12);
}

.portal-toolbar {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: .85rem;
}

.btn-compact {
  padding: .55rem 1rem;
  font-size: .7rem;
}

.metric-grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.12);
}

.metric-card {
  background: var(--bg2);
  padding: 1.5rem;
  min-height: 120px;
}

.metric-card span, .mfa-secret span {
  display: block;
  color: var(--teal);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.metric-card strong {
  display: block;
  color: #f0ece4;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.15;
}

.mfa-secret {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.mfa-qr {
  width: min(260px, 100%);
  margin: 0 auto 1.25rem;
  padding: .75rem;
  background: #fff;
}

.mfa-qr img {
  width: 100%;
  height: auto;
}

.mfa-secret strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gold);
  letter-spacing: .08em;
}

.portal-card, .resource-card {
  background: rgba(74,173,160,0.22);
  min-width: 0;
  text-decoration: none;
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 2rem;
}

.portal-card span {
  color: #d8f4f0;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portal-card strong {
  color: #f4fffd;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.2;
}

.portal-notice {
  max-width: 1200px;
  margin: 2rem auto 0;
  border: 1px solid rgba(74,173,160,0.35);
  color: #b8b2aa;
  background: rgba(74,173,160,0.06);
  padding: 1rem 1.25rem;
  font-size: .92rem;
}

.portal-subhead { max-width: 1200px; margin: 4rem auto 2rem; }

.portal-tabs {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.portal-tabs a {
  border: 1px solid var(--line);
  color: var(--gold);
  padding: .6rem 1rem;
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-card { display: grid; grid-template-rows: auto 1fr; }
.resource-card-text { display: block; }
.resource-image { display: block; text-decoration: none; background: var(--bg3); }
.resource-image img { width: 100%; aspect-ratio: 18 / 13; object-fit: cover; }
.resource-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 18 / 13;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(74,173,160,0.12), rgba(201,168,76,0.12));
}

.resource-content { padding: 1.75rem; }

.resource-card .service-name { color: #f4fffd; }
.resource-card .service-desc { color: #d2e7e4; }
.resource-card .person-role { color: #d8f4f0; }
.resource-card .service-link { color: #ffe198; }

.editorial-embed {
  max-width: 1120px;
  margin: 0 auto 4rem;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.editorial-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.portal-login-panel {
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: 2rem;
}

.portal-login-panel form { display: grid; gap: .85rem; }
.portal-login-panel label {
  color: var(--teal);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-login-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: #f0ece4;
  padding: .8rem .9rem;
  font: inherit;
}

.form-errors {
  color: #f1c56b;
  border: 1px solid rgba(201,168,76,.35);
  padding: .75rem;
}

.editorial-article {
  background: var(--bg);
  padding: 10rem 3rem 5rem;
}

.editorial-header {
  max-width: 840px;
  margin: 0 auto 3rem;
}

.editorial-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 300;
  line-height: .98;
  color: #f0ece4;
  margin-bottom: 1.25rem;
}

.editorial-summary {
  max-width: 700px;
  color: #b8b2aa;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
}

.editorial-image {
  max-width: 1120px;
  margin: 0 auto 4rem;
}

.editorial-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.editorial-body {
  max-width: 760px;
  margin: 0 auto;
}

.portal-messages {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: grid;
  gap: .75rem;
}

.portal-message {
  border: 1px solid rgba(201,168,76,.35);
  color: #f1d487;
  background: rgba(201,168,76,.08);
  padding: .85rem 1rem;
}

.timecard-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.12);
}

.timecard-list-scroll {
  max-height: 32rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--gold) var(--bg2);
  scrollbar-width: thin;
}

.timecard-list-scroll::-webkit-scrollbar {
  width: .7rem;
}

.timecard-list-scroll::-webkit-scrollbar-track {
  background: var(--bg2);
}

.timecard-list-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
}

.timecard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(110px, .5fr) minmax(150px, .7fr);
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--bg2);
  color: #e8e4de;
  text-decoration: none;
}

.timecard-row:hover { background: var(--bg3); }
.timecard-row span { color: #f0ece4; }
.timecard-row strong { color: var(--gold); font-weight: 500; }
.timecard-row em { color: var(--teal); font-style: normal; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.manager-timecard-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(100px, .5fr) minmax(150px, .7fr); }

.timecard-summary {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.12);
}

.time-entry-table {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.12);
  display: grid;
  gap: 1px;
}

.time-entry-head,
.time-entry-row {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(120px, .7fr) minmax(0, 1.5fr) minmax(80px, .4fr) minmax(130px, .6fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
}

.time-entry-head {
  background: var(--bg3);
  color: var(--teal);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.time-entry-row { background: var(--bg2); color: #d8d4ce; }
.time-entry-row strong { color: var(--gold); }
.time-entry-row small { display: block; color: var(--muted); margin-top: .25rem; }

.time-entry-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: flex-end;
}

.time-entry-actions a,
.time-entry-actions button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.submit-timecard {
  max-width: 1200px;
  margin: 2rem auto 0;
}

.timecard-form-panel select,
.timecard-form-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: #f0ece4;
  padding: .8rem .9rem;
  font: inherit;
}

.timecard-form-panel small {
  color: var(--muted);
  margin-top: -.45rem;
}

.manager-review-panel {
  max-width: 760px;
  display: grid;
  gap: 2rem;
}

.payroll-export-panel {
  max-width: 760px;
  margin-bottom: 3rem;
}

.audit-row {
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1fr) minmax(120px, .6fr);
}

.errorlist {
  color: #f1c56b;
  list-style: none;
  font-size: .85rem;
}

@media (max-width: 1080px) {
  .site-nav { padding: 1rem 1.25rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(13,13,13,0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { display: none; }
  .about, .contact-inner, .profile-shell { grid-template-columns: 1fr; }
  .services-grid, .people-grid, .portal-grid, .resource-grid, .metric-grid, .timecard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { gap: 3rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .hero, .about, .services, .people, .approach, .maggie, .cta, .contact, .content-section, .staff-profile-hero, .portal-section, .editorial-article { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { min-height: auto; justify-content: flex-start; padding-top: 8rem; }
  .hero-ornament { right: -180px; width: 320px; height: 320px; }
  .intro-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 1.25rem; }
  .services-grid, .people-grid, .approach-grid, .portal-grid, .resource-grid, .metric-grid, .timecard-summary { grid-template-columns: 1fr; }
  .timecard-row, .manager-timecard-row, .audit-row, .time-entry-head, .time-entry-row { grid-template-columns: 1fr; }
  .time-entry-head { display: none; }
  .time-entry-actions { justify-content: flex-start; }
  .maggie-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .maggie-badge { width: 105px; height: 105px; }
  .page-hero { padding: 8rem 1.25rem 3rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}
