/* NextBitz primary website stylesheet */
:root {
  --navy: #071a33;
  --navy-2: #0b2445;
  --blue: #075be8;
  --blue-bright: #1976ff;
  --blue-soft: #eaf3ff;
  --orange: #ff6a00;
  --orange-dark: #d94f00;
  --orange-soft: #fff0e5;
  --ink: #10233d;
  --muted: #59697c;
  --line: #d9e2ec;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --shadow: 0 24px 70px rgba(7, 26, 51, 0.12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.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 {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--paper);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.section-shell { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(7, 26, 51, 0.1);
  backdrop-filter: blur(16px);
}
.navbar {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { flex: 0 0 194px; height: 58px; overflow: hidden; position: relative; }
.brand-crop { position: absolute; inset: 0; overflow: hidden; }
.brand-crop img { width: 194px; height: auto; max-width: none; transform: translateY(-66px); }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: #30435a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-soft); }
.nav-links .nav-cta {
  margin-left: 0.35rem;
  padding: 0.72rem 1rem;
  color: var(--paper);
  background: var(--navy);
}
.nav-links .nav-cta:hover { color: var(--paper); background: var(--blue); }
.menu-button { display: none; border: 0; background: transparent; cursor: pointer; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 15%, rgba(25,118,255,0.35), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(255,106,0,0.15), transparent 30%),
    linear-gradient(125deg, #06162b 0%, #081f3e 55%, #0a2a55 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), var(--max));
  min-height: 0;
  margin-inline: auto;
  padding: 4.5rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 7rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  color: #a8caff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow span { width: 24px; height: 2px; background: var(--orange); }
.eyebrow-dark { color: var(--blue); }
.hero h1 {
  max-width: 720px;
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead {
  max-width: 660px;
  margin-top: 1.4rem;
  color: #d0dded;
  font-size: 1.02rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--paper); background: var(--orange); box-shadow: 0 14px 38px rgba(255,106,0,0.25); }
.btn-primary:hover { background: #ff7a1a; }
.btn-secondary { color: var(--paper); border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.05); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }
.btn-light { color: var(--blue); background: var(--paper); }
.btn-light:hover { background: #f2f7ff; }
.hero-proof { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.13); }
.hero-proof p { margin-bottom: 0.6rem; color: #8fa6c0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-proof ul { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; }
.hero-proof li { color: #dce8f6; font-size: 0.83rem; font-weight: 700; }
.hero-proof li + li::before { content: "•"; margin-right: 0.55rem; color: var(--orange); }

.hero-panel {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background: rgba(4,18,37,0.62);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 30%);
}
.panel-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.5rem 1rem; gap: 1rem; }
.panel-top > p { color: #d8e6f8; font-size: 0.83rem; font-weight: 800; }
.status-dot { color: #a9bad0; font-size: 0.72rem; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.45rem; border-radius: 50%; background: #51e3a4; box-shadow: 0 0 0 5px rgba(81,227,164,0.1); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.outcome-grid article {
  position: relative;
  min-height: 0;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}
.outcome-grid article:first-child { background: linear-gradient(145deg, rgba(7,91,232,0.55), rgba(7,91,232,0.2)); }
.outcome-grid article:nth-child(4) { background: linear-gradient(145deg, rgba(255,106,0,0.28), rgba(255,106,0,0.06)); }
.outcome-icon {
  display: inline-flex;
  min-width: 38px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding-inline: 0.45rem;
  color: #cfe0f7;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.outcome-number { position: absolute; top: 1.25rem; right: 1.25rem; color: rgba(255,255,255,0.28); font-size: 0.72rem; font-weight: 800; }
.outcome-grid h2 { margin-top: 1.45rem; color: var(--paper); font-size: 1.02rem; letter-spacing: -0.02em; }
.outcome-grid article > p:last-child { margin-top: 0.5rem; color: #aebfd4; font-size: 0.78rem; line-height: 1.55; }
.hero-orbit { position: absolute; pointer-events: none; border: 1px solid rgba(86,145,219,0.14); border-radius: 50%; }
.orbit-one { width: 580px; height: 580px; right: -210px; top: -250px; }
.orbit-two { width: 420px; height: 420px; left: -300px; bottom: -290px; }

.audience-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.audience-inner { min-height: 88px; display: flex; align-items: center; gap: 2rem; }
.audience-inner > p { flex: none; color: var(--muted); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.audience-inner ul { display: flex; flex: 1; justify-content: space-between; gap: 1.5rem; list-style: none; }
.audience-inner li { color: #31475f; font-size: 0.9rem; font-weight: 750; }
.audience-inner li::before { content: "◆"; margin-right: 0.55rem; color: var(--orange); font-size: 0.55rem; vertical-align: 0.16em; }

.section-block { padding-top: 4.5rem; padding-bottom: 7rem; }
.section-block.home-services { padding-top: clamp(1.5rem, 3vw, 2rem); padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.section-heading { display: grid; grid-template-columns: 1.5fr 0.75fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .contrast-copy h2, .final-cta h2, .page-hero h1 {
  color: var(--navy);
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.section-heading > p { color: var(--muted); font-size: 1.02rem; }
.compact-heading { grid-template-columns: 1fr; margin-bottom: 2rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  min-height: 330px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card:hover { position: relative; z-index: 2; transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card.featured { color: var(--paper); background: var(--blue); }
.service-top { min-height: 30px; display: flex; align-items: center; justify-content: space-between; }
.service-number { color: #8291a3; font-size: 0.75rem; font-weight: 850; }
.featured .service-number { color: #a9ccff; }
.service-tag { padding: 0.28rem 0.55rem; color: var(--paper); border: 1px solid rgba(255,255,255,0.24); border-radius: 999px; font-size: 0.63rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.service-card h3 { margin-top: 2.3rem; color: var(--navy); font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.025em; }
.service-card.featured h3 { color: var(--paper); }
.service-card > p { margin-top: 0.85rem; color: var(--muted); font-size: 0.94rem; }
.service-card.featured > p { color: #d6e7ff; }
.mini-list { margin-top: 1rem; display: grid; gap: 0.35rem; color: #d6e7ff; list-style: none; font-size: 0.8rem; }
.mini-list li::before { content: "—"; margin-right: 0.45rem; color: #89baff; }
.service-card a { margin-top: auto; padding-top: 1.5rem; color: var(--blue); text-decoration: none; font-size: 0.83rem; font-weight: 850; }
.service-card.featured a { color: var(--paper); }

.contrast-section { color: var(--paper); background: var(--navy); }
.contrast-grid { padding-top: 2rem; padding-bottom: 2rem; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 7rem; align-items: center; }
.contrast-copy h2 { color: var(--paper); }
.contrast-copy > p:not(.eyebrow) { margin-top: 1.4rem; color: #aebfd3; font-size: 1.02rem; }
.text-link { display: inline-block; margin-top: 1.6rem; color: var(--paper); text-decoration: none; font-weight: 850; border-bottom: 1px solid rgba(255,255,255,0.35); }
.process-list { list-style: none; border-top: 1px solid rgba(255,255,255,0.14); }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.process-list li > span { color: var(--orange); font-size: 0.73rem; font-weight: 850; }
.process-list h3 { font-size: 1rem; }
.process-list p { margin-top: 0.25rem; color: #aebfd3; font-size: 0.86rem; }

.starter-section { padding-top: clamp(1.5rem, 3vw, 2rem); padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.starter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.starter-grid article { min-height: 310px; padding: 2rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.starter-grid .starter-accent { color: var(--paper); border-color: var(--blue); background: var(--blue); box-shadow: 0 20px 60px rgba(7,91,232,0.2); }
.starter-label { color: var(--orange-dark); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.starter-accent .starter-label { color: #c2dcff; }
.starter-grid h3 { margin-top: 1.2rem; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.starter-accent h3 { color: var(--paper); }
.starter-grid article > p:nth-of-type(2) { margin-top: 0.85rem; color: var(--muted); font-size: 0.91rem; }
.starter-grid .starter-accent > p:nth-of-type(2) { color: #d8e8ff; }
.starter-grid .text-link { margin-top: auto; padding-top: 1.5rem; }
.dark-link { color: var(--blue); border-color: rgba(7,91,232,0.3); }

.final-cta { color: var(--paper); background: var(--blue); }
.final-cta-inner { min-height: 300px; padding-top: 3rem; padding-bottom: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.home-final-cta .final-cta-inner { min-height: 276px; padding-bottom: 3rem; }
.final-cta h2 { max-width: 800px; color: var(--paper); }
.final-cta .btn { flex: none; }

.site-footer { padding-top: 1.5rem; color: #b2c1d2; background: #041225; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.6fr 0.8fr; gap: 4rem; padding-bottom: 1.5rem; }
.site-footer.home-footer { padding-top: 1.5rem; border-top: 24px solid #fff; }
.home-footer .footer-grid { padding-bottom: 1.5rem; }
.footer-brand { color: var(--paper); text-decoration: none; font-size: 1.65rem; font-weight: 900; letter-spacing: -0.05em; }
.footer-brand span { color: var(--orange); }
.footer-grid > div:first-child p { max-width: 430px; margin-top: 1rem; font-size: 0.9rem; }
.footer-grid h2 { margin-bottom: 1rem; color: var(--paper); font-size: 0.76rem; letter-spacing: 0.11em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: 0.55rem; list-style: none; }
.footer-grid a:not(.footer-brand) { display: block; margin-bottom: 0.55rem; color: #b2c1d2; text-decoration: none; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--paper); }
.social-links { margin-top: 1.35rem; display: flex; align-items: center; gap: 0.65rem; }
.footer-grid .social-link,
.footer-grid a.social-link {
  width: 40px;
  height: 40px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9e5f2;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.social-link svg { display: block; flex-shrink: 0; width: 19px; height: 19px; fill: currentColor; }
.social-link[aria-disabled="true"] { cursor: default; opacity: 0.82; }
.footer-grid a.social-link { transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.footer-grid a.social-link:hover { color: var(--paper); border-color: rgba(255,111,0,0.75); background: rgba(255,111,0,0.14); transform: translateY(-2px); }
.footer-grid a.social-link:focus-visible { outline: 3px solid rgba(255,111,0,0.45); outline-offset: 3px; }
.footer-bottom { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.76rem; }

/* Interior pages */
.page-hero { color: var(--paper); background: var(--navy); }
.page-hero-inner { height: 300px; min-height: 0; padding-top: 2.5rem; padding-bottom: 3rem; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: 5rem; }
.page-hero h1 { max-width: 820px; color: var(--paper); }
.page-hero h1 em { color: var(--orange); font-style: normal; }
.page-hero-title-top .page-hero-inner > :first-child { align-self: start; }
.page-hero-side { min-height: 120px; padding-left: 1.5rem; border-left: 2px solid var(--orange); transform: translateY(-24px); }
.page-hero-side p { color: #b8c8d9; }
.page-hero-side .text-link { margin-top: 1rem; }
.content-band { padding: 4rem 0 6rem; }
.content-band.surface { background: var(--surface); }
.services-page .content-band { padding-block: clamp(1.5rem, 3vw, 2rem); }
.solutions-page .content-band { padding-block: clamp(1.5rem, 3vw, 2rem); }
.about-page .content-band { padding-block: clamp(1.5rem, 3vw, 2rem); }
.about-page .site-footer { border-top: 24px solid #fff; }
.services-page .final-cta-inner { min-height: 0; padding-block: 2rem; }
.services-page .site-footer { border-top: 24px solid #fff; }
.detail-grid { display: grid; gap: 1rem; }
.detail-card {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 90px 1fr 0.8fr;
  gap: 2rem;
  align-items: start;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.detail-card + .detail-card { margin-top: 1rem; }
.detail-index { color: var(--blue); font-size: 0.8rem; font-weight: 900; }
.detail-main h2 { color: var(--navy); font-size: 1.5rem; line-height: 1.2; }
.detail-main p { margin-top: 0.7rem; color: var(--muted); }
.detail-list { display: grid; gap: 0.55rem; list-style: none; }
.detail-list li { padding-left: 1.25rem; position: relative; color: #3e5166; font-size: 0.88rem; }
.detail-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.package-grid, .scenario-grid, .insight-grid, .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.package-card, .scenario-card, .insight-card, .value-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.package-card h3, .scenario-card h2, .insight-card h2, .value-card h3 { margin-top: 1rem; color: var(--navy); font-size: 1.3rem; line-height: 1.25; }
.package-card > p:not(.starter-label), .scenario-card > p, .insight-card > p, .value-card > p { margin-top: 0.75rem; color: var(--muted); font-size: 0.91rem; }
.package-card .text-link, .scenario-card .text-link, .insight-card .text-link { color: var(--blue); border-color: rgba(7,91,232,0.25); }
.section-title { max-width: 740px; margin-bottom: 2.5rem; }
.section-title h2 { color: var(--navy); font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1.1; letter-spacing: -0.045em; }
.section-title > p:last-child { margin-top: 1rem; color: var(--muted); }
.scenario-label, .insight-label { color: var(--blue); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.scenario-card { min-height: 350px; display: flex; flex-direction: column; }
.scenario-card .detail-list { margin-top: 1.2rem; }
.scenario-card .text-link { margin-top: auto; padding-top: 1.4rem; align-self: flex-start; }
.credential-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.credential { min-height: 170px; padding: 2rem; background: var(--paper); }
.credential + .credential { border-left: 1px solid var(--line); }
.credential span { color: var(--orange-dark); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.credential h3 { margin-top: 1.1rem; color: var(--navy); font-size: 1.2rem; }
.credential p { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }
.story-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6rem; align-items: start; }
.story-aside { position: sticky; top: 110px; padding: 1.8rem; border-left: 3px solid var(--orange); background: var(--orange-soft); }
.story-aside p { color: #69432b; font-size: 0.92rem; font-weight: 700; }
.story-content h2 { color: var(--navy); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -0.045em; }
.story-content h3 { margin-top: 2rem; color: var(--navy); }
.story-content p { margin-top: 0.9rem; color: var(--muted); }
.value-card { border-top: 4px solid var(--blue); }
.value-card:nth-child(2) { border-top-color: var(--orange); }
.value-card:nth-child(3) { border-top-color: var(--navy); }
.insight-card { min-height: 320px; display: flex; flex-direction: column; }
.insight-card .text-link { margin-top: auto; padding-top: 1.3rem; align-self: flex-start; }
.newsletter-panel { padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 3rem; color: var(--paper); border-radius: var(--radius); background: var(--navy); }
.newsletter-panel h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; }
.newsletter-panel p { max-width: 600px; margin-top: 0.7rem; color: #b5c6d9; }
.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 2rem; align-items: start; }
.contact-info-panel { padding: 2rem; border-radius: var(--radius); color: var(--paper); background: var(--navy); }
.contact-info-panel h2 { font-size: 1.6rem; }
.contact-info-panel > p { margin-top: 0.8rem; color: #b9c8d9; }
.contact-methods { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-methods a { display: block; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; font-weight: 800; }
.response-note { margin-top: 2rem; padding: 1rem; color: #d9e7f8; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.05); font-size: 0.82rem; }
.contact-form { padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.45rem; color: var(--navy); font-size: 0.82rem; font-weight: 850; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.86rem 0.95rem;
  color: var(--ink);
  border: 1px solid #c8d4e0;
  border-radius: 9px;
  outline: none;
  background: var(--paper);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,91,232,0.11); }
.contact-form .btn { cursor: pointer; }
.form-note { margin-top: 0.8rem; color: var(--muted); font-size: 0.78rem; }
.form-status { min-height: 1.4rem; margin-top: 0.7rem; color: var(--blue); font-size: 0.82rem; font-weight: 750; }

@media (max-width: 1020px) {
  .navbar { width: min(calc(100% - 2rem), var(--max)); }
  .brand { flex-basis: 170px; }
  .brand-crop img { width: 170px; transform: translateY(-58px); }
  .nav-links a { padding-inline: 0.55rem; font-size: 0.82rem; }
  .hero-grid { gap: 4rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .contrast-grid { gap: 4rem; }
  .package-grid, .scenario-grid, .insight-grid, .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .section-shell, .hero-grid { width: min(calc(100% - 2rem), var(--max)); }
  .navbar { min-height: 68px; flex-wrap: wrap; }
  .brand { height: 54px; }
  .menu-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); }
  .menu-lines, .menu-lines::before, .menu-lines::after { width: 20px; height: 2px; display: block; position: relative; background: var(--navy); transition: transform 160ms ease; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .menu-button[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .nav-links { display: none; flex: 0 0 100%; padding: 0.75rem 0 1rem; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem; text-align: center; }
  .nav-links .nav-cta { margin: 0.4rem 0 0; }
  .hero-grid { padding: 3rem 0 1.5rem; grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-panel { width: 100%; }
  .audience-inner { padding: 1.4rem 0; align-items: flex-start; flex-direction: column; gap: 1rem; }
  .audience-inner ul { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .section-block, .content-band { padding-top: 3rem; padding-bottom: 4.5rem; }
  .section-heading, .contrast-grid, .page-hero-inner, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .contrast-grid { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .starter-grid { grid-template-columns: 1fr; }
  .starter-grid article { min-height: 250px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .detail-card { grid-template-columns: 55px 1fr; }
  .detail-list { grid-column: 2; }
  .credential-row { grid-template-columns: 1fr; }
  .credential + .credential { border-left: 0; border-top: 1px solid var(--line); }
  .story-aside { position: static; }
  .newsletter-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .hero-grid { padding: 3rem 0 1.5rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-proof li + li::before { display: none; }
  .hero-proof ul { flex-direction: column; }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome-grid article { min-height: 180px; }
  .audience-inner ul, .service-grid, .package-grid, .scenario-grid, .insight-grid, .values-grid, .form-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 1.5rem; }
  .service-card { min-height: 285px; }
  .page-hero-inner { height: 386px; min-height: 386px; padding-top: 2rem; padding-bottom: 2.5rem; align-content: start; grid-template-rows: auto auto; }
  .page-hero-title-top .page-hero-inner > :first-child { transform: translateY(-16px); }
  .page-hero-side { min-height: 0; transform: translateY(-16px); }
  .page-hero-side { padding-left: 1rem; }
  .detail-card { grid-template-columns: 1fr; padding: 1.5rem; gap: 1rem; }
  .detail-list { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { padding: 1rem 0; align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .newsletter-panel, .contact-form { padding: 1.5rem; }
  .field.full { grid-column: auto; }
}

/* Project management workspace */
.project-intro .resource-intro-grid { min-height: 430px; }
.project-toolbar { align-items: flex-end; }
.project-toolbar-controls { min-width: min(100%, 470px); display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 0.8rem; }
.project-toolbar-controls .resource-field { margin: 0; }
.project-summary-grid { margin-bottom: 1rem; }
.portfolio-section { margin-top: 1rem; }
.portfolio-toggle { width: 100%; min-height: 58px; padding: 0.95rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #f4f8ff; border: 0; border-bottom: 4px solid var(--orange); border-radius: 11px; background: linear-gradient(110deg, #071a33, #0d4b88); box-shadow: 0 10px 24px rgba(7, 26, 51, 0.14); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.035em; text-align: left; cursor: pointer; }
.portfolio-toggle:hover { filter: brightness(1.08); transform: translateY(-1px); }
.portfolio-toggle:focus-visible { outline: 4px solid rgba(7, 91, 232, 0.22); outline-offset: 3px; }
.portfolio-toggle-action { display: inline-flex; align-items: center; gap: 0.75rem; color: #dceaff; }
.portfolio-toggle-arrow { display: inline-block; color: var(--orange); font-size: 1.05rem; transition: transform 180ms ease; }
.portfolio-toggle[aria-expanded="true"] .portfolio-toggle-arrow { transform: rotate(180deg); }
.portfolio-content[hidden] { display: none; }
.portfolio-content .project-card-grid { margin-top: 1rem; }
.project-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { padding: 1.15rem; border: 1px solid #dce5f0; border-left: 5px solid var(--blue); border-radius: 12px; background: #f8fbff; box-shadow: 0 7px 22px rgba(7, 26, 51, 0.06); transition: transform 160ms ease, box-shadow 160ms ease; }
.project-card:hover, .project-card.selected { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 26, 51, 0.11); }
.project-card.selected { outline: 3px solid rgba(255, 111, 0, 0.25); }
.project-card.status-planned { border-left-color: #7a8ca1; }
.project-card.status-completed { border-left-color: #16895e; }
.project-card.status-archived { border-left-color: #a8b1bc; opacity: 0.8; }
.project-card-top, .project-card-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.project-code { display: block; color: var(--orange-dark); font-size: 0.65rem; font-weight: 950; letter-spacing: 0.08em; }
.project-card h3 { margin-top: 0.15rem; color: var(--navy); font-size: 1.05rem; }
.project-status { padding: 0.25rem 0.5rem; border-radius: 999px; color: #07553b; background: #ddf4e9; font-size: 0.63rem; font-weight: 900; white-space: nowrap; }
.project-status.status-planned { color: #3c5068; background: #eaf0f6; }
.project-status.status-completed { color: #07553b; background: #d7f3e6; }
.project-status.status-archived { color: #586371; background: #edf0f3; }
.project-description { min-height: 2.2em; margin: 0.55rem 0 0.8rem; color: var(--muted); font-size: 0.75rem; }
.project-description.muted { color: #8c99a8; font-style: italic; }
.project-estimate { margin-bottom: 0.65rem; padding: 0.6rem 0.7rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid #f2d0ae; border-radius: 8px; background: #fff7ef; }
.project-estimate span { color: #8b572d; font-size: 0.65rem; font-weight: 800; }
.project-estimate strong { color: var(--orange-dark); font-size: 0.8rem; }
.project-card-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.project-card-figures div { padding: 0.55rem; border-radius: 8px; background: white; }
.project-card-figures span, .project-card-figures strong { display: block; }
.project-card-figures span { color: #6d7c8d; font-size: 0.6rem; font-weight: 750; }
.project-card-figures strong { margin-top: 0.15rem; overflow: hidden; color: var(--navy); font-size: 0.74rem; text-overflow: ellipsis; }
.project-progress { height: 6px; margin: 0.8rem 0; overflow: hidden; border-radius: 999px; background: #e2e9f1; }
.project-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #16895e); }
.project-card-footer { align-items: center; color: #647487; font-size: 0.67rem; font-weight: 750; }
.project-card-actions, .catalog-actions { display: flex; gap: 0.3rem; }
.project-open { width: 32px; height: 32px; display: grid; place-items: center; color: white; border: 0; border-radius: 6px; background: var(--navy); font-weight: 900; cursor: pointer; }
.management-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.management-grid[hidden] { display: none; }
.management-card { min-width: 0; }
.management-grid .management-card { padding: 0; display: block; align-self: start; overflow: hidden; }
.management-toggle { min-height: 86px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; }
.management-toggle[aria-expanded="true"] { border-radius: 10px 10px 0 0; }
.management-toggle-copy { min-width: 0; display: block; }
.management-toggle-copy strong, .management-toggle-copy small { display: block; }
.management-toggle-copy strong { color: #f4f8ff; font-size: 0.86rem; letter-spacing: 0; }
.management-toggle-copy small { margin-top: 0.2rem; color: #c9d8eb; font-size: 0.65rem; font-weight: 650; letter-spacing: 0; line-height: 1.35; }
.management-content { padding: 1.5rem; }
.management-content[hidden] { display: none; }
.management-card .entry-heading { min-height: 74px; }
.management-card textarea { resize: vertical; }
.catalog-list { max-height: 230px; margin-top: 1rem; overflow: auto; border-top: 1px solid var(--line); }
.catalog-row { padding: 0.65rem 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; border-bottom: 1px solid var(--line); }
.catalog-row strong, .catalog-row span { display: block; }
.catalog-row strong { color: var(--navy); font-size: 0.75rem; }
.catalog-row span { margin-top: 0.15rem; color: var(--muted); font-size: 0.63rem; }
.transaction-panel { margin-top: 1rem; }
.transaction-project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.transaction-project-grid .resource-field-wide { grid-column: span 2; }
.selected-project-banner { margin-bottom: 0.8rem; padding: 0.8rem 1rem; color: #fff7ef; border-radius: 9px; background: linear-gradient(110deg, #c55300, #ff7a18); text-align: center; font-size: 0.76rem; font-weight: 900; }
.project-plan-table { min-width: 1120px; }
.project-plan-table .quantity-bought { color: #08704b; text-align: center; font-weight: 950; }
.project-plan-table .quantity-remaining { color: var(--orange-dark); text-align: center; font-weight: 950; }

@media (max-width: 1120px) {
  .management-grid { grid-template-columns: 1fr 1fr; }
  .management-card:last-child { grid-column: 1 / -1; }
  .transaction-project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .project-toolbar-controls { width: 100%; min-width: 0; }
  .project-card-grid { grid-template-columns: 1fr; }
  .management-grid { grid-template-columns: 1fr; }
  .management-card:last-child { grid-column: auto; }
  .project-card-figures { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .project-toolbar-controls, .transaction-project-grid { grid-template-columns: 1fr; }
  .transaction-project-grid .resource-field-wide { grid-column: auto; }
  .portfolio-toggle { align-items: flex-start; flex-direction: column; }
  .project-card-top, .project-card-footer { flex-direction: column; }
  .project-card-actions { align-self: flex-end; }
}

@media (max-width: 340px) {
  .page-hero-inner { height: 464px; min-height: 464px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Purchase manager */
.resource-page { background: #eef3f8; }
.resource-main { min-height: 80vh; }
.resource-shell { width: min(calc(100% - 3rem), 1280px); margin-inline: auto; }
.resource-intro {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 10%, rgba(25, 118, 255, 0.32), transparent 30%),
    linear-gradient(125deg, #06162b 0%, #08234a 100%);
}
.resource-intro::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.resource-intro-grid {
  min-height: 340px;
  padding: 3.6rem 0 4.3rem;
  display: grid;
  grid-template-columns: 1.25fr 0.55fr;
  gap: 5rem;
  align-items: end;
}
.resource-intro h1 {
  max-width: 850px;
  font-size: clamp(2.65rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.resource-intro h1 em { color: var(--orange); font-style: normal; }
.resource-intro-grid > div:first-child > p:last-child { max-width: 780px; margin-top: 1.35rem; color: #c2d1e3; font-size: 1.03rem; }
.resource-date-card {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
.resource-date-card label, .currency-control label { display: block; margin-bottom: 0.45rem; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.resource-date-card input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--navy);
  border: 0;
  border-radius: 9px;
  background: var(--paper);
  font-weight: 800;
}
.resource-date-card p { margin-top: 0.8rem; color: #aebfd2; font-size: 0.78rem; line-height: 1.55; }
.resource-workspace { position: relative; z-index: 3; margin-top: -1.2rem; padding-bottom: 5rem; }
.resource-status {
  min-height: 130px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(7, 26, 51, 0.1);
}
.resource-status strong { color: var(--navy); font-size: 1.1rem; }
.resource-status p { margin-top: 0.25rem; color: var(--muted); }
.resource-status .resource-button { margin-left: auto; }
.resource-status-error { border-left: 4px solid var(--orange); }
.resource-loader { width: 28px; height: 28px; flex: none; border: 3px solid #dce8f5; border-top-color: var(--blue); border-radius: 50%; animation: resource-spin 800ms linear infinite; }
@keyframes resource-spin { to { transform: rotate(360deg); } }
.resource-toolbar {
  min-height: 110px;
  padding: 1.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(7, 26, 51, 0.08);
}
.resource-kicker { color: var(--blue); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.resource-toolbar h2, .resource-section-heading h2 { margin-top: 0.15rem; color: var(--navy); font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.035em; }
.resource-user { margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; }
.resource-role { width: fit-content; margin-top: 0.45rem; padding: 0.25rem 0.55rem; color: #53677c; border-radius: 999px; background: #edf2f7; font-size: 0.67rem; font-weight: 850; }
.resource-role.admin, .resource-role.local-owner { color: #0b6343; background: #e4f6ed; }
.resource-role.editor { color: #075be8; background: var(--blue-soft); }
.resource-account-links { display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; margin-top: 0.75rem; }
.resource-account-links a { color: var(--blue); font-size: 0.75rem; font-weight: 800; text-decoration: none; }
.resource-account-links a:hover, .resource-account-links a:focus-visible { color: var(--orange); text-decoration: underline; }
.currency-control { min-width: 230px; }
.currency-control label { color: var(--muted); }
.currency-control select, .ledger-filters select {
  width: 100%;
  padding: 0.68rem 2rem 0.68rem 0.8rem;
  color: var(--ink);
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: var(--paper);
}
.summary-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.project-summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.summary-card {
  min-height: 185px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.summary-card-primary { color: var(--paper); border-color: var(--blue); background: var(--blue); box-shadow: 0 18px 45px rgba(7, 91, 232, 0.2); }
.summary-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}
.summary-card:not(.summary-card-primary) .summary-icon { color: var(--blue); background: var(--blue-soft); }
.summary-card:not(.summary-card-primary) .summary-icon.spent { color: var(--orange-dark); background: var(--orange-soft); }
.summary-card:not(.summary-card-primary) .summary-icon.available { color: #177a55; background: #e7f8f0; }
.summary-card-estimated { border-color: #efc1bb; border-top: 4px solid #b42d1c; background: linear-gradient(155deg, #fff, #fff5f3); }
.summary-card.summary-card-estimated .summary-icon { color: #b42d1c; background: #ffe7e3; }
.summary-card.summary-card-estimated strong { color: #b42d1c; font-weight: 950; }
.summary-card > p { margin-top: 1rem; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.summary-card-primary > p { color: #c9ddff; }
.summary-card strong { margin-top: 0.1rem; color: var(--navy); font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.15; letter-spacing: -0.045em; }
.summary-card-primary strong { color: var(--paper); }
.summary-card strong.negative { color: #bb321c; }
.summary-card > span:last-child { margin-top: auto; padding-top: 0.65rem; color: #7a899a; font-size: 0.7rem; line-height: 1.4; }
.summary-card-primary > span:last-child { color: #b8d3ff; }
.project-summary-grid .summary-card { min-height: 165px; padding: 1.1rem; }
.project-summary-grid .summary-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 0.82rem; }
.project-summary-grid .summary-card > p { margin-top: 0.75rem; font-size: 0.68rem; line-height: 1.3; }
.project-summary-grid .summary-card > strong { font-size: clamp(1.1rem, 1.65vw, 1.55rem); line-height: 1.2; overflow-wrap: anywhere; }
.project-summary-grid .summary-card > span:last-child { padding-top: 0.5rem; font-size: 0.62rem; }
.resource-entry-grid { margin-top: 1rem; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; }
.entry-card { padding: 2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.entry-card-accent { border-top: 4px solid var(--orange); }
.entry-heading { display: grid; grid-template-columns: 42px 1fr; gap: 0.85rem; align-items: start; margin-bottom: 1.6rem; }
.entry-number { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); border-radius: 10px; background: var(--blue-soft); font-size: 0.7rem; font-weight: 900; }
.entry-card-accent .entry-number { color: var(--orange-dark); background: var(--orange-soft); }
.entry-heading h2 { color: var(--navy); font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.025em; }
.entry-heading p { margin-top: 0.25rem; color: var(--muted); font-size: 0.83rem; }
.resource-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.85rem; }
.resource-field { margin-bottom: 0.85rem; }
.resource-field-wide { grid-column: 1 / -1; }
.resource-field label { display: block; margin-bottom: 0.35rem; color: var(--navy); font-size: 0.75rem; font-weight: 850; }
.resource-field label span { color: #8491a0; font-weight: 600; }
.resource-field input, .resource-field select, .resource-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  outline: none;
  background: #fbfdff;
}
.resource-field input:focus, .resource-field select:focus, .resource-field textarea:focus, .currency-control select:focus, .ledger-filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 91, 232, 0.1); }
.resource-field input[readonly] { color: #13734e; border-color: #b9ddce; background: #f0faf5; font-weight: 900; }
.resource-field input[readonly].negative { color: #b42d1c; border-color: #f0c3bd; background: #fff4f2; }
.resource-field-help { margin-top: 0.3rem; display: block; color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.spending-plan-warning { padding: 0.45rem 0.55rem; color: #8a3b08; border: 1px solid #f2c38c; border-radius: 7px; background: #fff4e6; font-weight: 800; }
.resource-button {
  min-height: 45px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--paper);
  border: 0;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.resource-button-primary { background: var(--blue); }
.resource-button-orange { background: var(--orange); }
.resource-button-secondary { color: var(--navy); border: 1px solid var(--line); background: var(--paper); }
.resource-form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.resource-button:hover { filter: brightness(1.06); }
.resource-button:disabled { opacity: 0.55; cursor: wait; }
.resource-form-status { min-height: 1.25rem; margin-top: 0.55rem; color: var(--muted); font-size: 0.76rem; }
.resource-form-status.success { color: #13734e; }
.resource-form-status.error { color: #b42d1c; }
.transaction-kind { margin-bottom: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.transaction-kind.single-kind { grid-template-columns: 1fr; }
.transaction-kind label { position: relative; cursor: pointer; }
.transaction-kind input { position: absolute; opacity: 0; }
.transaction-kind span { min-height: 42px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; font-size: 0.78rem; font-weight: 850; }
.transaction-kind input:checked + span { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.transaction-kind input:focus-visible + span { outline: 3px solid rgba(7, 91, 232, 0.25); outline-offset: 2px; }
.resource-section { margin-top: 1rem; padding: 2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.resource-section-heading { margin-bottom: 1.4rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.resource-section-heading > p { color: var(--muted); font-size: 0.82rem; font-weight: 750; }
.resource-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.resource-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0 0.55rem; }
.resource-table thead { background: linear-gradient(110deg, #071a33, #0d4b88); }
.resource-table th { padding: 0.85rem 1rem; color: #f4f8ff; background: transparent; border-bottom: 3px solid var(--orange); text-align: left; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.resource-heading-line { display: block; }
.resource-table th:first-child { border-radius: 10px 0 0 10px; }
.resource-table th:last-child { border-radius: 0 10px 10px 0; }
.resource-table td { padding: 1rem; border-bottom: 1px solid #e6ecf2; color: #334960; font-size: 0.82rem; font-weight: 700; vertical-align: middle; }
.resource-table tr:last-child td { border-bottom: 0; }
.purchase-plan-date-row td { padding: 0.8rem 1rem; border: 1px solid #ffd6ad; border-left: 4px solid var(--orange); border-radius: 10px; background: linear-gradient(135deg, #fff1e3, #fff9f2); box-shadow: 0 4px 12px rgba(151, 76, 15, 0.08); }
.purchase-plan-date-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.3rem 1rem; }
.purchase-plan-date-content strong { color: var(--orange-dark); font-size: 0.88rem; text-transform: capitalize; }
.purchase-plan-date-content time { color: var(--orange-dark); font-size: 0.72rem; font-weight: 900; }
.purchase-plan-date-content::after { content: ""; }
.purchase-plan-date-totals { grid-column: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem; }
.purchase-plan-date-total { grid-column: 2; justify-self: center; padding: 0.28rem 0.58rem; color: #13734e; border: 1px solid #bfe0ce; border-radius: 999px; background: #e5f6ed; text-align: center; font-size: 0.76rem; font-weight: 900; white-space: nowrap; }
.purchase-plan-date-totals .purchase-plan-date-total { grid-column: auto; }
.purchase-plan-date-total.spend { color: #a62b1c; border-color: #f0c3bb; background: #fff0ed; }
.purchase-plan-date-total.empty { color: #6c4a24; border-color: #f0d3aa; background: #fff3d8; }
.resource-table .purchase-plan-item-row td { border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.resource-table .purchase-plan-item-row td:first-child { border-left: 1px solid transparent; border-radius: 10px 0 0 10px; }
.resource-table .purchase-plan-item-row td:last-child { border-right: 1px solid transparent; border-radius: 0 10px 10px 0; }
.resource-table .purchase-plan-item-row-tone-blue td { border-color: #dce8f7; background: #f3f8fe; }
.resource-table .purchase-plan-item-row-tone-mint td { border-color: #d6eadf; background: #f1faf5; }
.resource-item-cell { min-width: 210px; border-right: 1px solid #d8e6f5; background: linear-gradient(90deg, #eaf4ff, #f5faff); }
.purchase-plan-item-row-tone-blue .resource-item-cell { background: #f3f8fe; }
.purchase-plan-item-row-tone-mint .resource-item-cell { background: #f1faf5; }
.resource-item-cell strong, .resource-item-cell span { display: block; }
.resource-item-cell strong { color: var(--navy); font-size: 0.92rem; }
.resource-item-cell > span { max-width: 240px; margin-top: 0.15rem; color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.item-progress { width: 100%; height: 5px; margin-top: 0.6rem; overflow: hidden; border-radius: 999px; background: #e7edf4; }
.item-progress span { height: 100%; border-radius: inherit; background: var(--blue); }
.resource-total-cell strong, .resource-total-cell span { display: block; }
.resource-total-cell strong { color: var(--navy); }
.resource-total-cell span { margin-top: 0.2rem; color: #66788b; font-size: 0.68rem; font-weight: 750; white-space: nowrap; }
.resource-spent-value { color: var(--blue) !important; }
.resource-spent-cell strong, .resource-spent-cell span { display: block; }
.resource-available-cell strong, .resource-available-cell span { display: block; }
.resource-available-cell strong { color: #13734e; }
.resource-available-cell span { margin-top: 0.2rem; color: #66788b; font-size: 0.68rem; font-weight: 750; white-space: nowrap; }
.resource-available-cell.negative strong, .resource-available-cell.negative span { color: #b42d1c; }
.resource-remaining { color: #13734e !important; }
.over-budget { color: #b42d1c !important; }
.resource-sent-cell strong, .resource-sent-cell span { display: block; }
.resource-sent-cell strong { color: var(--blue); }
.resource-sent-cell .sent-count { margin-top: 0.2rem; color: #66788b; font-size: 0.68rem; font-weight: 750; white-space: nowrap; }
.resource-remaining-cell strong, .resource-remaining-cell span { display: block; }
.resource-remaining-cell .remaining-count { margin-top: 0.2rem; color: #66788b; font-size: 0.68rem; font-weight: 750; white-space: nowrap; }
.resource-remaining-cell .remaining-count.over-budget { color: #b42d1c; }
.resource-action-cell { width: 1%; white-space: nowrap; }
.resource-action-cell button + button { margin-left: 0.35rem; }
.resource-edit { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; color: var(--blue); border: 0; border-radius: 6px; background: var(--blue-soft); font-size: 1.05rem; font-weight: 900; line-height: 1; cursor: pointer; }
.resource-edit:hover { color: #0348ba; background: #dce9ff; }
.resource-delete { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; color: #8b2635; border: 0; border-radius: 6px; background: #fff0f2; font-size: 0.95rem; font-weight: 900; line-height: 1; cursor: pointer; }
.resource-delete:hover { color: #681b28; background: #ffe2e6; }
.resource-empty { padding: 3rem 1.5rem; text-align: center; }
.resource-empty[hidden] { display: none; }
.resource-empty > span { width: 42px; height: 42px; margin: 0 auto 0.75rem; display: grid; place-items: center; color: var(--blue); border-radius: 50%; background: var(--blue-soft); font-size: 1.2rem; }
.resource-empty h3 { color: var(--navy); font-size: 1rem; }
.resource-empty p { max-width: 500px; margin: 0.35rem auto 0; color: var(--muted); font-size: 0.8rem; }
.resource-table-wrap:has(.purchase-plan-item-row) .resource-empty { display: none; }
.report-content[hidden] { display: none; }
.report-content { padding-top: 1rem; }
.report-filters { padding: 1rem; display: grid; grid-template-columns: 1.35fr 1fr 0.8fr 0.8fr; gap: 0.8rem; border: 1px solid #dce8f7; border-radius: 11px; background: #f6f9fd; }
.report-filters .resource-field { margin-bottom: 0; }
.report-summary-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.report-metric { min-height: 118px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid #dce5ef; border-top: 4px solid var(--blue); border-radius: 11px; background: #fff; }
.report-metric.spent { border-top-color: #c6422f; }
.report-metric.available { border-top-color: #16895e; }
.report-metric.purchased { border-top-color: var(--orange); }
.report-metric span { color: #66788b; font-size: 0.68rem; font-weight: 850; text-transform: uppercase; }
.report-metric strong { margin-top: 0.35rem; color: var(--navy); font-size: clamp(1rem, 1.7vw, 1.4rem); line-height: 1.15; overflow-wrap: anywhere; }
.report-metric.sent strong { color: var(--blue); }
.report-metric.spent strong, .report-transaction-result strong.spent { color: #b42d1c; }
.report-metric.available strong { color: #13734e; }
.report-metric strong.negative { color: #b42d1c; }
.report-metric small { margin-top: auto; padding-top: 0.5rem; color: #8290a0; font-size: 0.62rem; line-height: 1.35; }
.report-block { margin-top: 1.25rem; }
.report-block-heading { margin-bottom: 0.55rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.report-block-heading h3 { color: var(--navy); font-size: 0.95rem; }
.report-block-heading p { color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.report-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.report-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.report-table[hidden] { display: none; }
.report-table th { padding: 0.75rem; color: #eef5ff; background: #0b315d; border-bottom: 3px solid var(--orange); text-align: left; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.045em; text-transform: uppercase; }
.report-table td { padding: 0.8rem 0.75rem; border-bottom: 1px solid #e8edf3; color: #40566c; font-size: 0.75rem; }
.report-table tbody tr:nth-child(even) td { background: #f5faf7; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-item-identity strong, .report-item-identity span { display: block; }
.report-item-identity strong { color: var(--navy); font-size: 0.78rem; }
.report-item-identity span { margin-top: 0.16rem; color: var(--muted); font-size: 0.64rem; }
.report-value { font-weight: 900; white-space: nowrap; }
.report-value.sent { color: var(--blue); }
.report-value.spent, .report-value.negative { color: #b42d1c; }
.report-value.available, .report-value.purchased { color: #13734e; }
.report-transaction-list { display: grid; gap: 0.45rem; }
.report-transaction { padding: 0.75rem 0.85rem; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto minmax(115px, auto); gap: 0.8rem; align-items: center; border: 1px solid #dce8f7; border-radius: 9px; }
.report-transaction.tone-blue { background: #f3f8fe; }
.report-transaction.tone-mint { border-color: #d6eadf; background: #f1faf5; }
.report-transaction-date { color: var(--orange-dark); font-size: 0.68rem; font-weight: 900; }
.report-transaction-copy { min-width: 0; }
.report-transaction-copy strong, .report-transaction-copy span { display: block; }
.report-transaction-copy strong { color: var(--navy); font-size: 0.75rem; }
.report-transaction-copy span { margin-top: 0.15rem; overflow-wrap: anywhere; color: var(--muted); font-size: 0.64rem; }
.report-transaction-type { padding: 0.24rem 0.48rem; color: #0c704b; border-radius: 999px; background: #dff4ea; font-size: 0.62rem; font-weight: 900; white-space: nowrap; }
.report-transaction-type.spend { color: #9d301f; background: #ffebe7; }
.report-transaction-result { text-align: right; }
.report-transaction-result strong, .report-transaction-result small { display: block; white-space: nowrap; }
.report-transaction-result strong { color: #13734e; font-size: 0.75rem; }
.report-transaction-result small { margin-top: 0.12rem; color: var(--muted); font-size: 0.59rem; }
.ledger-heading { align-items: center; }
.ledger-filters { display: flex; gap: 0.55rem; }
.ledger-filters select { min-width: 165px; font-size: 0.78rem; }
.ledger-toggle { width: 100%; min-height: 52px; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #f4f8ff; border: 0; border-bottom: 3px solid var(--orange); border-radius: 10px; background: linear-gradient(110deg, #071a33, #0d4b88); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.035em; text-align: left; cursor: pointer; }
.ledger-toggle:hover { filter: brightness(1.08); }
.ledger-toggle:focus-visible { outline: 4px solid rgba(7, 91, 232, 0.22); outline-offset: 3px; }
.ledger-toggle-action { display: inline-flex; align-items: center; gap: 0.7rem; color: #dceaff; }
.ledger-toggle-arrow { display: inline-block; color: var(--orange); font-size: 1rem; transition: transform 180ms ease; }
.ledger-toggle[aria-expanded="true"] .ledger-toggle-arrow { transform: rotate(180deg); }
.ledger-content[hidden] { display: none; }
.ledger-filters-panel { margin: 1rem 0 0.3rem; justify-content: space-between; }
.ledger-filters-panel select:last-child { margin-left: auto; }
.ledger-list { border-top: 1px solid var(--line); }
.ledger-total-group { margin-top: 0.75rem; overflow: hidden; border: 1px solid #dce8f7; border-radius: 11px; background: #fff; box-shadow: 0 4px 13px rgba(7, 26, 51, 0.05); }
.ledger-total-group:nth-child(even) { border-color: #d6eadf; }
.ledger-date-separator { margin-top: 1rem; padding: 0.8rem 1rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem; color: var(--navy); border: 1px solid #ffd6ad; border-left: 4px solid var(--orange); border-radius: 10px; background: linear-gradient(135deg, #fff1e3, #fff9f2); box-shadow: 0 4px 12px rgba(151, 76, 15, 0.08); }
.ledger-date-separator time { color: var(--orange-dark); font-size: 0.72rem; font-weight: 900; }
.ledger-row { margin-top: 0.55rem; padding: 1rem; display: grid; grid-template-columns: 38px 1fr auto; gap: 0.9rem; align-items: center; border: 1px solid transparent; border-radius: 10px; }
.ledger-total-row { margin-top: 0; border: 0; border-radius: 0; }
.ledger-row-tone-blue { border-color: #dce8f7; background: #f3f8fe; }
.ledger-row-tone-mint { border-color: #d6eadf; background: #f1faf5; }
.ledger-marker { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-weight: 900; }
.ledger-row.spend .ledger-marker { color: var(--orange-dark); background: var(--orange-soft); }
.ledger-title-row { display: flex; justify-content: space-between; gap: 1rem; }
.ledger-title-row strong { color: var(--navy); font-size: 0.86rem; }
.ledger-amount { flex: none; color: #13734e; font-weight: 900; }
.ledger-amount.spend { color: #b42d1c; }
.ledger-copy p { margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; }
.ledger-purchased-count { width: fit-content; max-width: 100%; margin: 0.4rem auto 0; padding: 0.18rem 0.45rem; display: block; color: #13734e; border: 1px solid #bfe0ce; border-radius: 999px; background: #e5f6ed; text-align: center; font-weight: 900; }
.ledger-future { margin-left: 0.35rem; padding: 0.15rem 0.35rem; color: #6c4a24; border-radius: 999px; background: #fff3d8; font-size: 0.62rem; font-weight: 800; }
.ledger-action { padding-left: 0.6rem; display: flex; gap: 0.35rem; }
.ledger-group-details { border-top: 1px solid #dce8f7; background: #fff; }
.ledger-group-details summary { padding: 0.72rem 1rem; color: var(--blue); background: #f8fbff; font-size: 0.72rem; font-weight: 900; text-align: center; cursor: pointer; }
.ledger-group-details summary:hover { background: #edf5ff; }
.ledger-group-details[open] summary { border-bottom: 1px solid #e5edf6; }
.ledger-detail-list { padding: 0 1rem; }
.ledger-detail-row { padding: 0.8rem 0; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 0.8rem; align-items: center; border-bottom: 1px solid #edf1f5; }
.ledger-detail-row:last-child { border-bottom: 0; }
.ledger-detail-date { color: var(--orange-dark); font-size: 0.7rem; font-weight: 900; }
.ledger-detail-copy { min-width: 0; }
.ledger-detail-copy strong, .ledger-detail-copy span { display: block; }
.ledger-detail-copy strong { overflow-wrap: anywhere; color: var(--navy); font-size: 0.75rem; }
.ledger-detail-copy span { margin-top: 0.18rem; color: var(--muted); font-size: 0.66rem; }
.ledger-detail-amount { color: #13734e; font-size: 0.75rem; white-space: nowrap; }
.ledger-detail-amount.spend { color: #b42d1c; }
.ledger-detail-actions { padding-left: 0; }
.resource-empty.compact { padding: 2rem 1rem; }
.resource-security-note { margin-top: 1rem; color: #6d7c8d; text-align: center; font-size: 0.72rem; }
.resource-security-note a { color: var(--blue); font-weight: 800; }
.resource-footer { margin-top: 0; }

@media (max-width: 1120px) {
  .resource-intro-grid { gap: 2.5rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .resource-entry-grid { grid-template-columns: 1fr; }
  .entry-card { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 2rem; }
  .entry-heading { margin-bottom: 0; }
  .report-filters, .report-summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .resource-shell { width: min(calc(100% - 2rem), 1280px); }
  .resource-intro-grid { min-height: auto; padding: 3rem 0; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .resource-intro h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .resource-date-card { max-width: 460px; }
  .resource-workspace { margin-top: 1rem; }
  .resource-toolbar { align-items: flex-start; flex-direction: column; }
  .currency-control { width: 100%; }
  .entry-card { display: block; }
  .entry-heading { margin-bottom: 1.6rem; }
  .resource-section-heading { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .ledger-filters { width: 100%; }
  .ledger-filters select { flex: 1; min-width: 0; }
  .resource-status { align-items: flex-start; flex-direction: column; }
  .resource-status .resource-button { margin-left: 0; }
  .report-transaction { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .report-transaction-result { grid-column: 2 / -1; text-align: left; }
}

@media (max-width: 560px) {
  .resource-intro-grid { padding-top: 2.5rem; }
  .resource-workspace { padding-bottom: 3.5rem; }
  .resource-toolbar, .entry-card, .resource-section { padding: 1.35rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 160px; }
  .resource-form-grid { grid-template-columns: 1fr; }
  .resource-field-wide { grid-column: auto; }
  .purchase-plan-date-content { grid-template-columns: 1fr; }
  .purchase-plan-date-totals { grid-column: 1; justify-content: flex-start; }
  .purchase-plan-date-content::after { display: none; }
  .resource-button { width: 100%; }
  .transaction-kind { grid-template-columns: 1fr; }
  .ledger-filters { flex-direction: column; }
  .ledger-filters-panel select:last-child { margin-left: 0; }
  .ledger-toggle { align-items: flex-start; flex-direction: column; }
  .ledger-row { grid-template-columns: 34px 1fr; }
  .ledger-action { grid-column: 2; padding-left: 0; }
  .ledger-title-row { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .ledger-detail-row { grid-template-columns: 1fr auto; }
  .ledger-detail-date { grid-column: 1 / -1; }
  .ledger-detail-actions { grid-column: 1 / -1; }
  .report-filters, .report-summary-grid { grid-template-columns: 1fr; }
  .report-transaction { grid-template-columns: 1fr; gap: 0.35rem; }
  .report-transaction-result { grid-column: auto; }
  .report-transaction-result strong, .report-transaction-result small { white-space: normal; }
}
/* Consistent space between the navigation and each page's opening content. */
:root { --page-top-gap: 1.5rem; }
#main-content > .article-shell,
#main-content > .security-hero,
#main-content > .account-news-hero,
#main-content > .editorial-hero,
#main-content > .submission-hero,
#main-content.community-auth-main,
#main-content > .hero > .hero-grid,
#main-content > .page-hero > .page-hero-inner,
#main-content > .resource-intro > .resource-intro-grid {
  padding-top: var(--page-top-gap);
}
#main-content > .hero > .hero-grid,
#main-content > .page-hero > .page-hero-inner,
#main-content > .resource-intro > .resource-intro-grid,
#main-content.community-auth-main.compact {
  align-items: start;
}
#main-content .page-hero-inner > :first-child,
#main-content .page-hero-side { transform: none; }
.solutions-page #main-content > .page-hero > .page-hero-inner,
.about-page #main-content > .page-hero > .page-hero-inner {
  padding-block: 1.5rem;
  align-items: center;
  align-content: center;
}
@media (max-width: 760px) {
  :root { --page-top-gap: 1rem; }
}
