/*
  Active Steward site only (loaded by Views/Shared/_LayoutActiveSteward.cshtml).
  Information-first, documentation-style layout. Penman palette and Open Sauce One,
  dark navy only in the header and footer. Nothing here is used by Penman, HOPA, LOA or H4R.
*/
:root {
  --as-navy: #03335d;          /* Penman blue-dark-1: header / footer */
  --as-navy-2: #024a87;        /* Penman blue-dark-2 */
  --as-brand: #233c7a;         /* Active Steward logo navy: links, active states */
  --as-green: #4ca154;         /* Penman green: current-page marker */
  --as-lock: #94a3b8;           /* members-only lock: quiet slate grey */
  --as-cta: #91c534;            /* Penman header call-to-action green */
  --as-cta-hover: #7fae2a;
  --as-blue: #3b82f6;           /* Penman button blue (--color-blue-legacy) */
  --as-ink: #0f1f33;
  --as-text: #334155;
  --as-muted: #64748b;
  --as-line: #e2e8f0;
  --as-line-strong: #cbd5e1;
  --as-wash: #f6f8fb;
  --as-link: #1f4fa3;
  --as-header-h: 56px;
  /* Penman variables some fallback components read */
  --color-orange: #d9620b;
  --color-green: #4ca154;
  --color-purple: #8e42fc;
  --color-blue: #4278fc;
  --color-blue-dark-1: #03335d;
  --color-blue-dark-2: #024a87;
  --color-blue-dark-3: #022a5c;
  --color-blue-dark-4: #064074;
  --color-blue-legacy: #3B82F6;
  --color-blue-legacy-dark: #1e40af;
}

html { scroll-padding-top: calc(var(--as-header-h) + 16px); }
body.as-site {
  margin: 0;
  background: #fff;
  color: var(--as-text);
  font-family: 'Open Sauce One', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.as-site a { color: inherit; }
.as-site :focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 3px; }
.as-container { max-width: 1536px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .as-container { padding: 0 24px; } }
.as-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--as-ink); padding: 8px 12px; border-radius: 4px; }
.as-skip:focus { top: 8px; }

/* ---------- Header ---------- */
.as-header { position: sticky; top: 0; z-index: 50; background: var(--as-navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.as-header__row { display: flex; align-items: center; gap: 20px; height: var(--as-header-h); }
.as-logo { display: flex; align-items: center; flex-shrink: 0; }
.as-logo img { height: 36px; width: auto; display: block; }
.as-nav { display: none; align-items: stretch; height: 100%; gap: 2px; }
.as-nav__item { position: static; display: flex; align-items: stretch; }
.as-nav__link {
  display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 100%;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent;
}
.as-nav__link:hover, .as-nav__link[aria-expanded="true"] { color: #fff; }
.as-nav__link[aria-current="true"] { color: #fff; border-bottom-color: var(--as-green); }
.as-nav__link svg { width: 14px; height: 14px; opacity: .7; transition: transform .15s; }
.as-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.as-search { position: relative; flex: 1 1 auto; max-width: 420px; margin-left: auto; }
.as-search input {
  width: 100%; height: 34px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18);
  background: #fff; color: var(--as-ink); padding: 0 64px 0 34px; font: inherit; font-size: 14px;
}
.as-search input::placeholder { color: var(--as-muted); }
.as-search input:focus { outline: none; background: #fff; color: var(--as-ink); border-color: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.45); }
.as-search input:focus::placeholder { color: var(--as-muted); }
.as-search__icon { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--as-muted); pointer-events: none; }
.as-search input:focus ~ .as-search__icon { color: var(--as-muted); }
.as-search__kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--as-muted); border: 1px solid var(--as-line-strong); border-radius: 4px; padding: 0 5px; line-height: 18px; pointer-events: none; }
.as-search input:focus ~ .as-search__kbd { display: none; }

.as-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--as-text); border: 1px solid var(--as-line-strong); border-radius: 8px; box-shadow: 0 12px 32px rgba(15,31,51,.18); overflow: hidden; z-index: 70; }
.as-suggest[hidden] { display: none; }
.as-suggest a { display: block; padding: 8px 12px; text-decoration: none; border-top: 1px solid var(--as-line); }
.as-suggest a:first-child { border-top: 0; }
.as-suggest a[aria-selected="true"], .as-suggest a:hover { background: var(--as-wash); }
.as-suggest__title { display: flex; align-items: center; gap: 6px; color: var(--as-ink); font-weight: 600; font-size: 14px; }
.as-suggest__trail { font-size: 12px; color: var(--as-muted); }
.as-suggest__all { font-size: 13px; color: var(--as-link) !important; font-weight: 600; }
.as-suggest__empty { padding: 10px 12px; font-size: 13px; color: var(--as-muted); }

.as-actions { display: none; align-items: center; gap: 14px; flex-shrink: 0; font-size: 14px; }
.as-actions a, .as-actions button { color: rgba(255,255,255,.88); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.as-actions a:hover, .as-actions button:hover { color: #fff; }
.as-actions__name { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-actions__name svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.as-actions form { margin: 0; display: flex; }
.as-icon-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px !important; }
.as-icon-btn:hover { background: rgba(255,255,255,.12) !important; }
.as-icon-btn svg { width: 18px; height: 18px; }
.as-actions .as-demo { display: inline-flex; align-items: center; height: 34px; background: var(--as-cta); border-radius: 999px; padding: 0 16px !important; font-weight: 600; color: #fff !important; white-space: nowrap; }
.as-actions .as-demo:hover { background: var(--as-cta-hover); text-decoration: none; }

.as-burger { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; background: none; border: 0; color: #fff; cursor: pointer; }
.as-burger svg { width: 22px; height: 22px; }

/* Mega menu */
.as-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--as-text); border-bottom: 1px solid var(--as-line-strong); box-shadow: 0 18px 40px rgba(15,31,51,.16); }
.as-mega[hidden] { display: none; }
.as-mega__inner { padding-top: 20px; padding-bottom: 22px; }
.as-mega__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--as-line); }
.as-mega__top a { color: var(--as-ink); font-weight: 650; text-decoration: none; font-size: 15px; }
.as-mega__top a:hover { color: var(--as-link); }
.as-mega__top p { margin: 0; font-size: 13px; color: var(--as-muted); }
.as-mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 18px 22px; }
.as-mega__area > a { display: block; color: var(--as-ink); font-weight: 650; font-size: 14px; text-decoration: none; margin-bottom: 6px; line-height: 1.35; }
.as-mega__area > a:hover { color: var(--as-link); }
.as-mega__area ul { list-style: none; margin: 0; padding: 0; }
.as-mega__area li { margin: 0; }
.as-mega__area li { padding: 3px 0; line-height: 1.4; }
.as-mega__area li a { font-size: 13.5px; color: var(--as-text); text-decoration: none; }
.as-nowrap { white-space: nowrap; }
.as-nowrap .as-lock { margin-left: 4px; }
.as-mega__area li a:hover { color: var(--as-link); text-decoration: underline; text-underline-offset: 3px; }
.as-mega__legend { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--as-line); font-size: 12.5px; color: var(--as-muted); display: flex; align-items: center; gap: 6px; }

.as-lock { display: inline-block; width: 12px; height: 12px; color: var(--as-lock); flex-shrink: 0; vertical-align: -1px; }
.as-badge-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 0 6px; line-height: 18px; white-space: nowrap; }
.as-badge-lock .as-lock { width: 11px; height: 11px; }

/* Mobile drawer */
.as-drawer { border-top: 1px solid rgba(255,255,255,.1); background: var(--as-navy); max-height: calc(100vh - var(--as-header-h)); overflow-y: auto; }
.as-drawer[hidden] { display: none; }
.as-drawer__search { padding: 12px 16px 4px; }
.as-drawer__search .as-search { max-width: none; margin: 0; }
.as-tree { list-style: none; margin: 0; padding: 6px 8px 8px; }
.as-tree li { margin: 0; }
.as-tree a, .as-tree summary { display: flex; align-items: center; gap: 8px; padding: 9px 8px; color: #fff; text-decoration: none; font-size: 15px; border-radius: 6px; cursor: pointer; }
.as-tree summary { list-style: none; justify-content: space-between; }
.as-tree summary::-webkit-details-marker { display: none; }
.as-tree summary svg { width: 16px; height: 16px; opacity: .7; transition: transform .15s; }
.as-tree details[open] > summary svg { transform: rotate(90deg); }
.as-tree ul { list-style: none; margin: 0 0 4px 12px; padding: 0 0 0 8px; border-left: 1px solid rgba(255,255,255,.15); }
.as-tree ul a, .as-tree ul summary { font-size: 14px; padding: 7px 8px; color: rgba(255,255,255,.85); }
.as-tree a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.as-tree .as-lock { color: rgba(255,255,255,.5); }
.as-drawer__account { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 16px 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; }
.as-drawer__account a, .as-drawer__account button { color: #fff; text-decoration: none; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; }

@media (min-width: 1100px) {
  .as-nav { display: flex; }
  .as-actions { display: flex; }
  .as-burger { display: none; }
  .as-drawer { display: none !important; }
}
@media (max-width: 1099px) {
  .as-header .as-search--header { display: none; }
}

/* ---------- Page chrome ---------- */
.as-crumbs { font-size: 13px; color: var(--as-muted); padding: 14px 0 0; }
.as-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; padding: 0; }
.as-crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.as-crumbs li + li::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--as-line-strong); border-top: 1.5px solid var(--as-line-strong); transform: rotate(45deg); margin-right: 2px; }
.as-crumbs a { color: var(--as-muted); text-decoration: none; }
.as-crumbs a:hover { color: var(--as-link); text-decoration: underline; }
.as-crumbs [aria-current] { color: var(--as-text); }

.as-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; padding-bottom: 56px; }
@media (min-width: 960px) {
  .as-layout--side { grid-template-columns: 236px minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .as-layout--side.as-layout--toc { grid-template-columns: 236px minmax(0, 1fr) 208px; }
  .as-layout--toc:not(.as-layout--side) { grid-template-columns: minmax(0, 1fr) 208px; }
}

.as-pagehead { padding: 10px 0 18px; border-bottom: 1px solid var(--as-line); margin-bottom: 24px; }
.as-pagehead__bar { display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--as-accent); margin: 4px 0 14px; }
.as-pagehead h1 { margin: 0; color: var(--as-ink); font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
@media (min-width: 768px) { .as-pagehead h1 { font-size: 30px; } }
.as-pagehead p { margin: 8px 0 0; max-width: 72ch; font-size: 16px; color: var(--as-text); }
.as-pagehead h1 .as-badge-lock { font-size: 12px; line-height: 20px; }

/* Sidebar */
.as-side { display: none; }
@media (min-width: 960px) {
  .as-side { display: block; position: sticky; top: calc(var(--as-header-h) + 12px); align-self: start; max-height: calc(100vh - var(--as-header-h) - 24px); overflow-y: auto; padding: 22px 4px 24px 0; }
}
.as-side__title { display: block; font-size: 13px; font-weight: 700; color: var(--as-ink); text-decoration: none; padding: 4px 10px 8px; }
.as-side ul { list-style: none; margin: 0; padding: 0; }
.as-side li { margin: 0; }
.as-side a.as-side__link { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 5px 10px; font-size: 13.5px; line-height: 1.4; color: var(--as-text); text-decoration: none; border-left: 2px solid transparent; }
.as-side a.as-side__link:hover { color: var(--as-link); background: var(--as-wash); }
.as-side a.as-side__link[aria-current="page"] { color: var(--as-ink); font-weight: 650; border-left-color: var(--as-green); background: #f1f7f2; }
.as-side .as-side__group > a.as-side__link { font-weight: 600; color: var(--as-ink); }
.as-side .as-side__group ul { margin: 2px 0 6px 10px; border-left: 1px solid var(--as-line); }
.as-side .as-side__group ul a.as-side__link { font-size: 13px; }
.as-side__note { margin: 18px 10px 0; padding: 12px; border: 1px solid var(--as-line); border-radius: 8px; background: var(--as-wash); font-size: 12.5px; line-height: 1.5; }
.as-side__note p { margin: 0 0 8px; }
.as-side__note a { color: var(--as-link); font-weight: 600; }

/* On this page */
.as-toc { display: none; }
@media (min-width: 1280px) {
  .as-toc { display: block; position: sticky; top: calc(var(--as-header-h) + 12px); align-self: start; padding-top: 4px; }
}
.as-toc[data-empty="true"] { visibility: hidden; }
.as-toc h2 { font-size: 12.5px; font-weight: 700; color: var(--as-ink); margin: 0 0 8px; }
.as-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--as-line); }
.as-toc li { margin: 0; }
.as-toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; font-size: 13px; line-height: 1.4; color: var(--as-muted); text-decoration: none; border-left: 2px solid transparent; }
.as-toc a:hover { color: var(--as-link); }
.as-toc a.is-active { color: var(--as-ink); border-left-color: var(--as-brand); }

/* ---------- Article content ---------- */
.as-main { min-width: 0; padding-top: 2px; }
.as-article { max-width: 820px; }
.as-article--wide { max-width: none; }
.as-block { margin: 0 0 28px; }
.as-block:last-child { margin-bottom: 0; }
.as-block > h2, .as-h2 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--as-ink); margin: 0 0 8px; letter-spacing: -0.005em; }
.as-block-sub { margin: -2px 0 12px; color: var(--as-muted); }

.as-prose { color: var(--as-text); }
.as-prose > :first-child { margin-top: 0; }
.as-prose p { margin: 0 0 12px; }
.as-prose h2 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--as-ink); margin: 24px 0 8px; }
.as-prose h3 { font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--as-ink); margin: 18px 0 6px; }
.as-prose h4 { font-size: 15px; font-weight: 700; color: var(--as-ink); margin: 14px 0 4px; }
.as-prose ul, .as-prose ol { margin: 0 0 12px; padding-left: 20px; }
.as-prose ul { list-style: disc; }
.as-prose ol { list-style: decimal; }
.as-prose li { margin: 0 0 4px; padding-left: 2px; }
.as-prose ul li::marker { color: var(--as-green); }
.as-prose a { color: var(--as-link); text-decoration: underline; text-decoration-color: rgba(31,79,163,.35); text-underline-offset: 3px; }
.as-prose a:hover { text-decoration-color: currentColor; }
.as-prose strong { color: var(--as-ink); font-weight: 650; }
.as-prose img { max-width: 100%; height: auto; }
.as-prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 12px; }
.as-prose th, .as-prose td { border: 1px solid var(--as-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.as-prose th { background: var(--as-wash); color: var(--as-ink); }

/* Definition grid (boxContent, multicards) */
.as-defs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; margin: 0; border-top: 1px solid var(--as-line); }
@media (min-width: 640px) { .as-defs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .as-article--wide .as-defs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.as-defs > div { padding: 11px 0 12px; border-bottom: 1px solid var(--as-line); }
.as-defs dt { font-weight: 650; color: var(--as-ink); font-size: 14.5px; line-height: 1.4; }
.as-defs dt a { color: var(--as-ink); text-decoration: none; }
.as-defs dt a:hover { color: var(--as-link); text-decoration: underline; text-underline-offset: 3px; }
.as-defs dd { margin: 3px 0 0; font-size: 14px; color: var(--as-text); }
.as-defs dd p { margin: 0 0 4px; }

/* Steps */
.as-steps { list-style: none; counter-reset: as-step; margin: 0; padding: 0; }
.as-steps li { counter-increment: as-step; position: relative; padding: 0 0 14px 40px; margin: 0; }
.as-steps li::before { content: counter(as-step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--as-brand); color: var(--as-brand); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.as-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--as-line-strong); }
.as-steps h3 { font-size: 15px; font-weight: 650; color: var(--as-ink); margin: 2px 0 2px; }
.as-steps .as-prose p { margin-bottom: 4px; font-size: 14.5px; }

/* Figure */
.as-figure { margin: 4px 0 14px; }
.as-figure a { display: block; border: 1px solid var(--as-line-strong); border-radius: 8px; overflow: hidden; background: var(--as-wash); cursor: zoom-in; }
.as-figure img { display: block; width: 100%; height: auto; }
.as-figure figcaption { margin-top: 6px; font-size: 12.5px; color: var(--as-muted); }
@media (min-width: 1024px) {
  .as-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: start; }
  .as-media--left { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .as-media--left .as-figure { order: -1; }
  .as-media .as-figure { margin-top: 4px; }
}

/* Callout */
.as-callout { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 22px 26px; border-radius: 10px; overflow: hidden; color: rgba(255,255,255,.88); background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 100%); }
.as-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--as-accent, var(--color-green)); }
.as-callout__text { flex: 1 1 320px; min-width: 0; font-size: 15px; }
.as-callout__text strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; color: #fff; }
.as-callout__text p, .as-callout .as-prose, .as-callout .as-prose p { margin: 0; color: rgba(255,255,255,.85); }
.as-callout .as-prose a { color: #fff; }
.as-callout .as-btn, .as-callout .as-btn--ghost { height: 40px; padding: 0 20px; border: 0; background: var(--as-cta); color: #fff !important; }
.as-callout .as-btn:hover, .as-callout .as-btn--ghost:hover { background: var(--as-cta-hover); }
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--as-blue); background: var(--as-blue); color: #fff !important; cursor: pointer; font-family: inherit; white-space: nowrap; }
.as-btn:hover { background: #2f6fe0; border-color: #2f6fe0; }
.as-btn--ghost { background: #fff; color: var(--as-blue) !important; }
.as-btn--ghost:hover { background: var(--as-wash); }

.as-quote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--as-line-strong); color: var(--as-ink); }

/* Child index (area pages, Features overview) */
.as-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--as-line); }
.as-index > li { margin: 0; border-bottom: 1px solid var(--as-line); }
.as-index__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 11px 0 12px; }
@media (min-width: 768px) { .as-index__row { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); } }
.as-index__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.as-index__title a { color: var(--as-ink); font-weight: 650; font-size: 14.5px; text-decoration: none; }
.as-index__title a:hover { color: var(--as-link); text-decoration: underline; text-underline-offset: 3px; }
.as-index__desc { font-size: 14px; color: var(--as-text); margin: 0; }

.as-areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 720px) { .as-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.as-area { padding: 14px 0 18px; border-top: 3px solid var(--as-accent, var(--as-line)); }
.as-area h2, .as-area h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.as-area h2 a, .as-area h3 a { color: var(--as-ink); text-decoration: none; }
.as-area h2 a::before, .as-area h3 a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; background: var(--as-accent, var(--as-line-strong)); }
.as-area h2 a:hover, .as-area h3 a:hover { color: var(--as-link); text-decoration: underline; text-underline-offset: 3px; }
.as-area > p { margin: 4px 0 8px; font-size: 13.5px; color: var(--as-muted); }
.as-area ul { list-style: none; margin: 0; padding: 0; columns: 2 180px; column-gap: 20px; }
.as-area li { margin: 0; break-inside: avoid; }
.as-area li { padding: 2px 0; line-height: 1.45; }
.as-area li a { font-size: 14px; color: var(--as-link); text-decoration: none; }
.as-area li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Gated outline + access panel */
.as-outline { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--as-line); border-radius: 8px; background: var(--as-wash); }
.as-outline h2 { font-size: 14px; font-weight: 700; color: var(--as-ink); margin: 0 0 6px; }
.as-outline ol { margin: 0; padding-left: 20px; list-style: decimal; columns: 2 240px; column-gap: 28px; }
.as-outline li { margin: 0 0 3px; font-size: 14px; break-inside: avoid; }
.as-outline li::marker { color: var(--as-muted); font-size: 12px; }
.as-teaser { font-size: 16px; color: var(--as-text); max-width: 72ch; margin: 0 0 20px; }
.as-teaser p { margin: 0 0 10px; }

.as-panel { border: 1px solid var(--as-line-strong); border-radius: 8px; padding: 16px 18px; background: #fff; }
.as-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--as-ink); margin: 0 0 6px; }
.as-panel h2 .as-lock { width: 15px; height: 15px; }
.as-panel p { margin: 0 0 12px; font-size: 14.5px; max-width: 70ch; }
.as-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.as-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.as-msg--ok { background: #ecf7ee; color: #1f5f2b; border: 1px solid #bfe3c5; }
.as-msg--err { background: #fdeeee; color: #8a1c1c; border: 1px solid #f3c5c5; }

/* ---------- Home ---------- */
.as-intro { position: relative; z-index: 5; color: #fff; background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%); }
.as-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--color-orange) 0 25%, var(--color-green) 25% 50%, var(--color-purple) 50% 75%, var(--color-blue) 75% 100%); }
.as-intro__row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; align-items: center; }
@media (min-width: 1024px) { .as-intro__row { padding-top: 72px; padding-bottom: 76px; } .as-intro__row > div { max-width: 720px; } }
.as-intro h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; color: #fff; letter-spacing: -0.015em; max-width: 24ch; }
@media (min-width: 768px) { .as-intro h1 { font-size: 42px; } }
.as-intro p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; max-width: 60ch; color: rgba(255,255,255,.88); }
.as-intro__search { display: flex; gap: 10px; margin-top: 24px; max-width: 640px; flex-wrap: wrap; }
.as-intro__search .as-search { margin: 0; max-width: none; flex: 1 1 280px; }
.as-intro__search .as-search input { height: 46px; background: #fff; color: var(--as-ink); border: 0; border-radius: 999px; font-size: 15px; padding-left: 42px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.as-intro__search .as-search input:focus { box-shadow: 0 0 0 3px rgba(59,130,246,.55); }
.as-intro__search .as-search input::placeholder { color: var(--as-muted); }
.as-intro__search .as-search__icon { color: var(--as-muted); left: 16px; }
.as-intro__search .as-btn { height: 46px; padding: 0 22px; border: 0; background: var(--as-cta); color: #fff !important; font-size: 15px; }
.as-intro__search .as-btn:hover { background: var(--as-cta-hover); }
.as-intro__hints { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.as-intro__hints a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; margin-right: 10px; }
.as-intro__hints a:hover { text-decoration: underline; }
/* Screenshot sits behind the right of the hero and fades into the navy, as on the Penman Hero. */
.as-intro__bg { position: absolute; overflow: hidden; top: 0; bottom: 0; right: 0; width: 62%; background-size: cover; background-position: left top; background-repeat: no-repeat; opacity: .55; }
.as-intro__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-1) 38%, rgba(3,51,93,.85) 55%, rgba(3,51,93,.25) 100%), linear-gradient(0deg, rgba(3,51,93,.6) 0%, rgba(3,51,93,0) 40%); }
@media (max-width: 1023px) { .as-intro__bg { width: 100%; opacity: .18; } .as-intro__fade { background: linear-gradient(90deg, rgba(3,51,93,.92), rgba(3,51,93,.75)); } }

.as-home-section { padding: 26px 0 8px; }
.as-home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.as-home-section__head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--as-ink); }
.as-home-section__head a { font-size: 14px; color: var(--as-link); text-decoration: none; font-weight: 600; }
.as-home-section__head a:hover { text-decoration: underline; }
.as-home-areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 720px) { .as-home-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .as-home-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .as-home-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.as-home-areas .as-area ul { columns: 1; }
.as-home-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 48px; }
@media (min-width: 1024px) { .as-home-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.as-audiences { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--as-line); }
.as-audiences li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--as-line); }
.as-audiences a { color: var(--as-ink); font-weight: 650; text-decoration: none; }
.as-audiences a:hover { color: var(--as-link); text-decoration: underline; text-underline-offset: 3px; }
.as-audiences p { margin: 2px 0 0; font-size: 14px; }
.as-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 12px; }
.as-logos img { height: 36px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) contrast(1.4); opacity: .9; }
.as-logos img:hover { filter: none; opacity: 1; }
.as-home-more { padding: 18px 0 40px; }

/* ---------- Search page ---------- */
.as-searchpage form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 720px; margin-bottom: 8px; }
.as-searchpage form .as-search { max-width: none; margin: 0; flex: 1 1 280px; }
.as-searchpage form .as-search input { height: 40px; background: #fff; color: var(--as-ink); border: 1px solid var(--as-line-strong); padding-left: 36px; }
.as-searchpage form .as-search input::placeholder { color: var(--as-muted); }
.as-searchpage form .as-search__icon { color: var(--as-muted); }
.as-searchpage form .as-btn { height: 40px; }
.as-results-meta { font-size: 13.5px; color: var(--as-muted); margin: 6px 0 14px; }
.as-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--as-line); max-width: 860px; }
.as-results > li { margin: 0; padding: 12px 0 14px; border-bottom: 1px solid var(--as-line); }
.as-results__trail { font-size: 12.5px; color: var(--as-muted); }
.as-results__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 1px 0 3px; }
.as-results__title a { font-size: 16px; font-weight: 650; color: var(--as-link); text-decoration: none; }
.as-results__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.as-results__snippet { margin: 0; font-size: 14px; color: var(--as-text); }
.as-results mark { background: #fff3c4; color: inherit; padding: 0 1px; border-radius: 2px; }
.as-empty { max-width: 720px; padding: 16px 18px; border: 1px dashed var(--as-line-strong); border-radius: 8px; }
.as-empty h2 { font-size: 16px; font-weight: 700; color: var(--as-ink); margin: 0 0 6px; }
.as-empty p { margin: 0 0 8px; font-size: 14.5px; }
.as-empty ul { margin: 0; padding-left: 18px; list-style: disc; font-size: 14.5px; }
.as-empty a { color: var(--as-link); }

/* ---------- Access forms ---------- */
.as-form { max-width: 440px; }
.as-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--as-ink); margin: 0 0 4px; }
.as-form input[type=text], .as-form input[type=email], .as-form input[type=password], .as-form input[type=tel], .as-form select, .as-form textarea {
  display: block; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--as-line-strong); border-radius: 6px; font: inherit; font-size: 14.5px; color: var(--as-ink); background: #fff;
}
.as-form textarea { height: auto; min-height: 90px; padding: 8px 10px; }
.as-form input:focus, .as-form select:focus, .as-form textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.as-form .as-field { margin-bottom: 14px; }
.as-form .as-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 400; color: var(--as-text); }
.as-form .as-check input { margin-top: 4px; }
.as-form-links { font-size: 13.5px; margin-top: 12px; }
.as-form-links a { color: var(--as-link); }

/* ---------- Footer (mirrors the penmanconsulting.com footer layout) ---------- */
.as-footer { background: var(--as-navy); color: rgba(255,255,255,.82); font-size: 15px; }
.as-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 52px 0 40px; }
@media (min-width: 1024px) { .as-footer__grid { grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: 64px; } }
.as-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.as-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.as-footer__logo img { display: block; height: 48px; width: auto; }
.as-footer__tagline { margin: 14px 0 20px; max-width: 34ch; color: rgba(255,255,255,.7); font-size: 14.5px; line-height: 1.5; }
.as-footer__cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--as-cta); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.as-footer__cta:hover { background: var(--as-cta-hover); }
.as-footer__cta svg { width: 16px; height: 16px; }
.as-footer__contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.as-footer__contact-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.as-footer__contact-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.7); }
.as-footer__contact-list a { word-break: break-word; }
.as-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
@media (min-width: 768px) { .as-footer__links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.as-footer__links h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.as-footer__links h2 a { color: #fff; }
.as-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.as-footer__links li { margin: 0; font-size: 14.5px; line-height: 1.4; }
.as-footer__links button { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.88); cursor: pointer; }
.as-footer__links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.as-footer__muted { color: rgba(255,255,255,.55); }
.as-footer__social { display: inline-flex; align-items: center; gap: 8px; }
.as-footer__social svg { width: 18px; height: 18px; }
.as-footer__meta { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; color: rgba(255,255,255,.6); font-size: 13.5px; }
.as-footer__meta a { color: #fff; }

/* Fallback (Penman) components keep their own markup; give them breathing room in the article column. */
.as-fallback { margin: 0 0 28px; border-radius: 8px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .as-site *, .as-site *::before, .as-site *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Access pages (login, register, forgot password, status) reuse their form markup on a light page. */
.as-access { padding-top: 28px; padding-bottom: 56px; }
.as-access__inner { max-width: 440px; }
.as-access__inner--wide { max-width: 760px; }
.as-access h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--as-ink); }
.as-access__lead { margin: 0; font-size: 14.5px; color: var(--as-text); }
.as-access .text-white:not(button):not(a):not(input) { color: var(--as-ink) !important; }
.as-access .text-gray-300 { color: var(--as-muted) !important; }
.as-access .text-blue-400 { color: var(--as-link) !important; }
.as-access label { font-weight: 600; }
.as-access input[type=text], .as-access input[type=email], .as-access input[type=password] { height: 38px; font-size: 14.5px !important; border-color: var(--as-line-strong) !important; }
.as-access .bg-white { border: 1px solid var(--as-line-strong); }
.as-access .bg-blue-600 { background: var(--as-blue) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600 !important; }
.as-access .bg-blue-600:hover, .as-access .hover\:bg-blue-700:hover { background: #2f6fe0 !important; }
.as-access button[type=submit], .as-access input[type=submit] { color: #fff !important; }
.as-access .bg-red-600 { background: #fdeeee !important; color: #8a1c1c !important; border: 1px solid #f3c5c5; }
.as-access .bg-green-600 { background: #ecf7ee !important; color: #1f5f2b !important; border: 1px solid #bfe3c5; }
.as-access .as-panel h2 { margin-top: 0; }

/* ---------- Home: lower sections (who it's for, logos, about) ---------- */
.as-band { padding: 36px 0 40px; }
.as-band--wash { background: var(--as-wash); border-top: 1px solid var(--as-line); border-bottom: 1px solid var(--as-line); margin-top: 28px; }
.as-band .as-home-section__head { margin-bottom: 16px; }
.as-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .as-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.as-tile { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--as-line); border-top: 3px solid var(--as-accent, var(--as-blue)); border-radius: 8px; padding: 18px 20px 16px; box-shadow: 0 1px 2px rgba(15,31,51,.04); }
.as-tile h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--as-ink); line-height: 1.35; }
.as-tile p { margin: 0 0 14px; font-size: 14.5px; color: var(--as-text); flex: 1 1 auto; }
.as-tile__more { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--as-link) !important; text-decoration: none; }
.as-tile__more:hover { text-decoration: underline; text-underline-offset: 3px; }

.as-band--logos { text-align: center; padding: 36px 0 40px; color: #fff; background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%); }
.as-band--logos h2 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.as-band--logos p { margin: 6px auto 0; font-size: 14.5px; color: rgba(255,255,255,.75); max-width: 60ch; }
.as-band--logos .as-logos { list-style: none; padding: 0; margin: 22px 0 0; justify-content: center; gap: 12px 40px; }
.as-band--logos .as-logos li { margin: 0; display: flex; align-items: center; justify-content: center; height: 64px; }
.as-band--logos .as-logos img { height: 44px; max-width: 150px; filter: none; opacity: .92; }
.as-band--logos .as-logos img:hover { opacity: 1; }
.as-band--wash + .as-band--logos { margin-top: 0; }

.as-band:last-child { padding-bottom: 52px; }
.as-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--as-line); padding-top: 32px; }
@media (min-width: 1024px) { .as-about--split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.as-about__main { max-width: 760px; }
.as-soon { position: relative; border-radius: 10px; padding: 20px 22px; color: rgba(255,255,255,.9); background: linear-gradient(135deg, var(--color-blue-dark-1), var(--color-blue-dark-2)); overflow: hidden; }
.as-soon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--color-purple); }
.as-soon .as-block { margin: 0; }
.as-soon .as-block > h2, .as-soon h2, .as-soon h3, .as-soon strong { color: #fff; }
.as-soon .as-prose, .as-soon p { color: rgba(255,255,255,.88); }
.as-soon a { color: #fff; }
.as-intro .as-suggest { z-index: 80; }
.as-footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.as-footer__cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.as-footer__cookie-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
