/* WebsDocs ASG Business Profile frontend v1.3.0 — premium single-frame + long discovery rail */
:root {
  --primary: #2265ff;
  --accent: #7148ef;
  --primary-rgb: 34, 101, 255;
  --bg: #edf3fb;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #fff;
  --surface-soft: #f4f7fc;
  --ink: #0a1930;
  --muted: #60708a;
  --line: rgba(99, 122, 158, .22);
  --line-strong: rgba(72, 96, 134, .34);
  --shadow: 0 24px 70px rgba(21, 50, 91, .10);
  --shadow-soft: 0 10px 30px rgba(21, 50, 91, .07);
  --radius-lg: clamp(20px, 1.3vw, 34px);
  --radius-md: clamp(15px, .9vw, 24px);
  --page-pad: clamp(18px, 2.2vw, 92px);
  --section-gap: clamp(16px, 1.35vw, 44px);
  --panel-pad: clamp(22px, 2vw, 64px);
  --body-size: clamp(15px, .82vw, 26px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #06101f;
    --surface: rgba(11, 27, 49, .94);
    --surface-solid: #0b1b31;
    --surface-soft: #10243e;
    --ink: #f3f7ff;
    --muted: #99abc5;
    --line: rgba(149, 174, 213, .18);
    --line-strong: rgba(149, 174, 213, .30);
    --shadow: 0 26px 80px rgba(0, 0, 0, .28);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .20);
    color-scheme: dark;
  }
}

html[data-theme="dark"] {
  --bg: #06101f;
  --surface: rgba(11, 27, 49, .94);
  --surface-solid: #0b1b31;
  --surface-soft: #10243e;
  --ink: #f3f7ff;
  --muted: #99abc5;
  --line: rgba(149, 174, 213, .18);
  --line-strong: rgba(149, 174, 213, .30);
  --shadow: 0 26px 80px rgba(0, 0, 0, .28);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .20);
  color-scheme: dark;
}

html[data-text-size="large"] { --body-size: clamp(17px, .96vw, 29px); }
html[data-density="compact"] { --panel-pad: clamp(17px, 1.35vw, 44px); --section-gap: clamp(12px, .85vw, 28px); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 300px; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 var(--body-size)/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-180%); padding: 11px 16px; border-radius: 12px; background: var(--surface-solid); box-shadow: var(--shadow); font-weight: 800; }
.skip-link:focus { transform: none; }

.page { width: 100%; min-height: 100vh; }
.topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: clamp(68px, 4.6vw, 116px); padding: 12px var(--page-pad); border-bottom: 1px solid rgba(255,255,255,.12); background: #071426; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup { flex: 0 0 auto; display: inline-flex; align-items: center; gap: clamp(5px, .5vw, 11px); min-height: clamp(42px, 2.8vw, 70px); padding: clamp(5px, .38vw, 9px) clamp(7px, .55vw, 13px); border: 1px solid rgba(255,255,255,.15); border-radius: clamp(13px, .85vw, 21px); background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.15); }
.brand-logo-tile { display: grid; place-items: center; width: clamp(32px, 2.1vw, 54px); height: clamp(32px, 2.1vw, 54px); }
.brand-logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-logo-tile-websdocs { width: clamp(34px, 2.3vw, 58px); }
.brand-logo-tile-asg { width: clamp(36px, 2.5vw, 64px); }
.brand-join { color: #7590b5; font-size: clamp(11px, .7vw, 18px); font-weight: 700; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: clamp(14px, .95vw, 25px); letter-spacing: -.025em; }
.brand-copy strong i { color: #67d7ff; font-style: normal; }
.brand-copy small { margin-top: 5px; color: #9fb0ca; font-size: clamp(10px, .58vw, 15px); letter-spacing: .08em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.public-badge { display: inline-flex; align-items: center; gap: 8px; margin-right: 5px; color: #b9c7da; font-size: .78em; font-weight: 750; }
.public-badge > span { width: 8px; height: 8px; border-radius: 50%; background: #29d89b; box-shadow: 0 0 0 5px rgba(41,216,155,.10), 0 0 20px rgba(41,216,155,.8); }
.icon-button, .close-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: .22s var(--ease); }
.icon-button:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.icon-button.primary { border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .25); }
.icon-button svg, .close-button svg, .contact-icon svg, [data-icon] svg { display: block; width: 20px; height: 20px; }

.profile-hero { position: relative; width: 100%; border-bottom: 1px solid var(--line); background: var(--surface-solid); }
.cover { position: relative; width: 100%; height: clamp(260px, 28vw, 920px); overflow: hidden; isolation: isolate; background: radial-gradient(circle at 78% 18%, rgba(54,203,255,.30), transparent 30%), radial-gradient(circle at 18% 30%, rgba(120,72,239,.44), transparent 34%), linear-gradient(125deg, #071426 0%, #0d2f5f 48%, #18528b 100%); background-position: center; background-size: cover; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(3,12,25,.55)); }
.cover-grid { position: absolute; inset: -30%; z-index: -1; opacity: .18; transform: perspective(700px) rotateX(58deg) rotateZ(-18deg); background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: clamp(44px, 4vw, 120px) clamp(44px, 4vw, 120px); }
.cover-glow { position: absolute; top: 8%; right: 8%; width: min(36vw, 1600px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 clamp(30px, 4vw, 140px) rgba(255,255,255,.025), 0 0 0 clamp(80px, 9vw, 320px) rgba(255,255,255,.018); }
.cover.has-image .cover-grid, .cover.has-image .cover-glow { opacity: .06; }

.identity-band { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(18px, 2vw, 54px); width: 100%; padding: 0 var(--page-pad) clamp(28px, 3vw, 76px); margin-top: clamp(-220px, -6vw, -92px); }
.logo-frame { display: grid; place-items: center; width: clamp(126px, 10vw, 330px); aspect-ratio: 1; overflow: hidden; border: clamp(5px, .4vw, 12px) solid var(--surface-solid); border-radius: clamp(28px, 2.2vw, 64px); background: linear-gradient(135deg, var(--surface-soft), var(--surface-solid)); box-shadow: var(--shadow); }
.logo-frame img { width: 100%; height: 100%; object-fit: cover; }
.logo-frame span { color: var(--primary); font-size: clamp(52px, 5vw, 150px); font-weight: 900; letter-spacing: -.08em; }
.identity-copy { min-width: 0; padding-top: clamp(112px, 7vw, 240px); }
.eyebrow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.eyebrow, .section-kicker { color: var(--primary); font-size: .72em; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.status-chip, .count-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .67em; font-weight: 800; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #28c48c; }
h1, h2, h3, p { margin-top: 0; }
.identity-copy h1 { max-width: 22ch; margin-bottom: 9px; font-size: clamp(38px, 4.3vw, 136px); line-height: .96; letter-spacing: -.057em; overflow-wrap: anywhere; }
.tagline { max-width: 68ch; margin-bottom: 15px; color: var(--muted); font-size: clamp(16px, 1.08vw, 34px); line-height: 1.4; }
.identity-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .83em; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item svg { width: 16px; height: 16px; color: var(--primary); }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding-top: clamp(112px, 7vw, 240px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 14px; cursor: pointer; font-weight: 800; line-height: 1.15; transition: .22s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 12px 28px rgba(var(--primary-rgb), .22); }
.button.secondary { border-color: var(--line-strong); background: var(--surface-solid); color: var(--ink); }
.button svg { width: 18px; height: 18px; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(330px, .75fr);
  align-items: stretch;
  gap: 0;
  width: calc(100% - (var(--page-pad) * 2));
  margin: var(--section-gap) var(--page-pad) clamp(54px, 6vw, 180px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: clamp(20px, 1.25vw, 30px);
  background: var(--surface-solid);
  box-shadow: 0 26px 76px rgba(21, 50, 91, .09);
}

.primary-column,
.aside-column,
.profile-dynamic-stream {
  min-width: 0;
}

.primary-column {
  border-right: 1px solid var(--line);
}

.profile-dynamic-stream {
  display: block;
}

.panel,
.wb-rich-section {
  min-width: 0;
  margin: 0;
  padding: var(--panel-pad);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.primary-column > :last-child,
.profile-dynamic-stream > :last-child {
  border-bottom-color: var(--line);
}

.intro-panel {
  background:
    radial-gradient(circle at 5% 0%, rgba(var(--primary-rgb), .045), transparent 28%),
    var(--surface-solid);
}

.section-heading,
.wb-rich-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 clamp(20px, 1.45vw, 38px);
  padding: 0 0 clamp(15px, .9vw, 24px);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.section-heading.compact {
  margin-bottom: 18px;
  padding-bottom: 15px;
}

.section-heading h2,
.trust-panel h2,
.wb-rich-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(26px, 1.85vw, 52px);
  line-height: 1.06;
  letter-spacing: -.042em;
}

.summary {
  max-width: 82ch;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(19px, 1.25vw, 34px);
  font-weight: 620;
  line-height: 1.48;
  letter-spacing: -.018em;
}

.rich-copy {
  max-width: 95ch;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.freshness,
.wb-rich-count {
  color: var(--muted);
  font-size: .72em;
  font-weight: 750;
  white-space: nowrap;
}

.wb-rich-kicker {
  display: block;
  color: var(--primary);
  font-size: .72em;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wb-rich-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Structured items use dividers, not floating cards. */
.services-grid,
.wb-rich-grid,
.social-grid,
.wb-policy-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(14px, .8vw, 20px);
  background: var(--surface-solid);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.service-card,
.wb-rich-card,
.wb-policy {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 1.35vw, 36px);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 3px;
  height: 42px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--primary), var(--accent));
}

.service-card:hover,
.wb-rich-card:hover {
  transform: none;
  background: rgba(var(--primary-rgb), .025);
  box-shadow: none;
}

.service-number {
  color: var(--primary);
  font-size: .68em;
  font-weight: 900;
  letter-spacing: .12em;
}

.service-card h3,
.wb-rich-card h3,
.wb-policy h3 {
  margin: 13px 0 8px;
  color: var(--ink);
  font-size: clamp(18px, 1.05vw, 29px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.service-card p,
.wb-rich-card p,
.wb-policy p {
  color: var(--muted);
}

.service-card p {
  flex: 1;
  margin-bottom: 18px;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.service-price {
  font-weight: 850;
}

.service-link,
.wb-rich-link {
  color: var(--primary);
  font-size: .82em;
  font-weight: 850;
}

.wb-rich-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wb-rich-card p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.wb-rich-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.wb-rich-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .68em;
  font-weight: 750;
}

.wb-rich-link {
  display: inline-flex;
  margin-top: 16px;
}

.wb-product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-soft);
}

.wb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.wb-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.wb-faq {
  border-top: 1px solid var(--line);
}

.wb-faq details {
  border-bottom: 1px solid var(--line);
}

.wb-faq details:last-child {
  border-bottom: 0;
}

.wb-faq summary {
  padding: 17px 0;
  color: var(--ink);
  font-weight: 820;
  cursor: pointer;
}

.wb-faq p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.wb-policy-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-policy p {
  margin: 8px 0 0;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Social and contact surfaces become premium rows within the shared frame. */
.social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: background .2s var(--ease);
}

.social-card:hover {
  transform: none;
  background: rgba(var(--primary-rgb), .025);
  box-shadow: none;
}

.social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--primary);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-copy {
  min-width: 0;
  display: grid;
}

.social-copy strong {
  text-transform: capitalize;
}

.social-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: .7em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-arrow {
  margin-left: auto;
  color: var(--muted);
}

html[data-social-style="buttons"] .social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

html[data-social-style="buttons"] .social-card {
  width: auto;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

html[data-social-style="buttons"] .social-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 50%;
}

html[data-social-style="buttons"] .social-copy small,
html[data-social-style="buttons"] .social-arrow {
  display: none;
}

.aside-column {
  background:
    linear-gradient(180deg, rgba(var(--primary-rgb), .018), transparent 35%),
    var(--surface-solid);
}

.aside-column > .panel {
  margin: 0;
  padding: var(--panel-pad);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aside-column > .panel:last-child {
  border-bottom: 0;
}

.contact-list {
  display: grid;
}

.contact-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.contact-item:last-child {
  border-bottom: 0;
}

a.contact-item:hover {
  transform: none;
  color: var(--primary);
  background: transparent;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--primary);
  box-shadow: none;
}

.contact-copy {
  min-width: 0;
  display: grid;
}

.contact-copy span {
  color: var(--muted);
  font-size: .68em;
  font-weight: 700;
}

.contact-copy strong {
  overflow: hidden;
  font-size: .86em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  color: var(--muted);
}

.hours-list {
  display: grid;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hours-row:last-child {
  border: 0;
  padding-bottom: 0;
}

.hours-row.today {
  color: var(--primary);
  font-weight: 800;
}

.hours-row span:first-child {
  text-transform: capitalize;
}

.hours-row span:last-child {
  text-align: right;
}

/* Keep one distinctive trust block, but integrate it into the frame instead of floating it. */
.trust-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 100%, rgba(83, 125, 255, .18), transparent 34%),
    linear-gradient(145deg, #071426, #102f57) !important;
  color: #fff;
}

.trust-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.016);
}

.trust-panel .section-kicker {
  color: #59d8ff;
}

.trust-panel h2 {
  color: #fff;
}

.trust-panel p {
  position: relative;
  z-index: 1;
  color: #aec0d8;
}

.trust-panel a {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 800;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}


/* ==========================================================================
   LONG DISCOVERY RAIL
   Full-length, normal document flow. No sticky positioning and no nested scroll.
   ========================================================================== */

.profile-rail-dynamic {
  display: block;
  min-width: 0;
}

.rail-module {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 1.55vw, 42px);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.rail-module:nth-child(even) {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .018), transparent 72%);
}

.rail-module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.rail-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: .66em;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rail-module-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.rail-module-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .62em;
  font-weight: 800;
  white-space: nowrap;
}

.rail-card-list {
  display: grid;
  gap: 8px;
}

.rail-card {
  --rail-delay: 0ms;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(var(--primary-rgb), .025)),
    var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(21,50,91,.035);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .38s var(--ease) var(--rail-delay),
    transform .28s var(--ease) var(--rail-delay),
    border-color .2s var(--ease),
    background .2s var(--ease),
    box-shadow .2s var(--ease);
}

.rail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  opacity: .58;
  background: linear-gradient(var(--primary), var(--accent));
  transition: width .2s var(--ease), opacity .2s var(--ease);
}

.rail-card.is-visible {
  opacity: 1;
  transform: none;
}

.rail-card:hover {
  transform: translateX(3px);
  border-color: rgba(var(--primary-rgb), .30);
  background:
    linear-gradient(145deg, rgba(var(--primary-rgb), .045), rgba(var(--primary-rgb), .012)),
    var(--surface-solid);
  box-shadow: 0 10px 26px rgba(21,50,91,.07);
}

.rail-card:hover::before {
  width: 4px;
  opacity: 1;
}

.rail-card-icon,
.rail-tool-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--primary);
}

.rail-card-icon[data-index]::after {
  content: attr(data-index);
  position: absolute;
  right: -4px;
  bottom: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid var(--surface-solid);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.rail-card-icon svg,
.rail-tool-icon svg {
  width: 18px;
  height: 18px;
}

.rail-card-copy,
.rail-tool-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rail-card-copy strong,
.rail-tool-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .82em;
  line-height: 1.28;
  text-overflow: ellipsis;
}

.rail-card-copy small,
.rail-tool-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: .67em;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.rail-card-arrow {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.rail-card:hover .rail-card-arrow,
.rail-tool-link:hover .rail-card-arrow,
.rail-media-card:hover .rail-card-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.rail-card-thumb {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.rail-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s var(--ease);
}

.rail-card:hover .rail-card-thumb img {
  transform: scale(1.035);
}

.rail-module-offer .rail-card::before {
  background: linear-gradient(#f59e0b, var(--accent));
}

.rail-module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 3px 2px;
  color: var(--primary);
  font-size: .72em;
  font-weight: 850;
}

.rail-module-footer b {
  transition: transform .2s var(--ease);
}

.rail-module-footer:hover b {
  transform: translateX(3px);
}

/* Image or GIF spotlight. GIFs animate naturally as ordinary <img> content. */
.rail-media-card {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
}

.rail-media-card > img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  background: var(--surface-soft);
  transition: transform .32s var(--ease), filter .32s var(--ease);
}

.rail-media-card:hover > img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.rail-media-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.rail-media-copy strong {
  color: var(--ink);
  font-size: .82em;
}

.rail-media-copy small {
  color: var(--muted);
  font-size: .67em;
}

.rail-media-card > .rail-card-arrow {
  padding-right: 13px;
}

.rail-tool-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.rail-tool-link {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rail-tool-link:last-child {
  border-bottom: 0;
}

.rail-tool-link:hover .rail-tool-copy strong {
  color: var(--primary);
}

.rail-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}

.rail-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .profile-rail-dynamic {
    grid-column: 1 / -1;
  }

  .rail-card-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .rail-discovery-module .rail-tool-list {
    grid-template-columns: repeat(3, minmax(0,1fr));
    border-top: 0;
    gap: 8px;
  }

  .rail-tool-link {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
}

@media (max-width: 700px) {
  .rail-card-list,
  .rail-discovery-module .rail-tool-list {
    grid-template-columns: 1fr;
  }

  .rail-module {
    padding: 22px 20px;
  }

  .rail-media-card {
    grid-template-columns: 78px minmax(0,1fr) auto;
  }

  .rail-media-card > img {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-reveal,
  .rail-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .rail-card-thumb img,
  .rail-media-card > img,
  .rail-card-arrow,
  .rail-module-footer b {
    transition: none !important;
  }
}

.loading-state, .error-state { display: grid; place-items: center; min-height: calc(100vh - 80px); width: 100%; padding: 72px var(--page-pad); text-align: center; background: radial-gradient(circle at 50% 45%, rgba(var(--primary-rgb),.10), transparent 30%), var(--bg); }
.loading-state h2, .error-state h1 { margin: 22px 0 8px; font-size: clamp(28px, 2.3vw, 62px); letter-spacing: -.045em; }
.loading-state p, .error-state p { max-width: 650px; color: var(--muted); }
.loading-orbit { position: relative; width: 84px; height: 84px; animation: spin 2.4s linear infinite; }
.loading-orbit span { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 24px rgba(var(--primary-rgb),.5); }
.loading-orbit span:nth-child(1) { top: 0; left: 33px; }
.loading-orbit span:nth-child(2) { right: 3px; bottom: 10px; background: var(--accent); }
.loading-orbit span:nth-child(3) { left: 3px; bottom: 10px; background: #23c99c; }
.error-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--surface-solid); color: var(--primary); box-shadow: var(--shadow); }
.error-icon svg { width: 32px; height: 32px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: clamp(28px, 2.5vw, 80px) var(--page-pad); border-top: 1px solid var(--line); background: var(--surface-solid); }
.footer-brand { display: grid; justify-items: start; gap: 10px; }
.footer-brand > span:last-child { color: var(--muted); font-size: .75em; }
.footer-brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; }
.footer-brand-lockup > span { width: 1px; height: 27px; background: var(--line-strong); }
.footer-brand-lockup img { display: block; height: clamp(28px, 1.8vw, 46px); width: auto; max-width: clamp(80px, 7.4vw, 190px); object-fit: contain; }
.footer-wd-logo-dark { display: none !important; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .78em; font-weight: 700; }

html[data-theme="dark"] .footer-wd-logo-light { display: none !important; }
html[data-theme="dark"] .footer-wd-logo-dark { display: block !important; }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .footer-wd-logo-light { display: none !important; }
  html[data-theme="system"] .footer-wd-logo-dark { display: block !important; }
}

.drawer-scrim { position: fixed; z-index: 80; inset: 0; background: rgba(2, 9, 20, .55); backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s var(--ease); }
.drawer-scrim.open { opacity: 1; }
.view-drawer { position: fixed; z-index: 90; top: 0; right: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(520px, 94vw); height: 100dvh; border-left: 1px solid var(--line); background: var(--surface-solid); box-shadow: -24px 0 80px rgba(0,0,0,.22); transform: translateX(102%); transition: transform .32s var(--ease); }
.view-drawer.open { transform: none; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 26px 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 3px 0 0; font-size: 27px; letter-spacing: -.04em; }
.close-button { width: 42px; height: 42px; padding: 0; border-color: var(--line); background: var(--surface-soft); color: var(--ink); }
.drawer-body { overflow-y: auto; padding: 25px 26px; }
.preference-group { margin: 0 0 28px; padding: 0; border: 0; }
.preference-group legend { margin-bottom: 11px; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.segmented.two { grid-template-columns: repeat(2, 1fr); }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; }
.segmented button.active { background: var(--surface-solid); color: var(--primary); box-shadow: 0 5px 16px rgba(21,50,91,.09); }
.segmented svg { width: 16px; height: 16px; }
.large-a { font-size: 18px; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice-cards button { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); text-align: left; cursor: pointer; }
.choice-cards button span { color: var(--muted); font-size: 12px; }
.choice-cards button.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.09); }
.drawer-links { padding-top: 23px; border-top: 1px solid var(--line); }
.drawer-links h3 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.drawer-links > button, .drawer-links > a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.drawer-links > :is(button,a) > svg { width: 20px; color: var(--primary); }
.drawer-links > :is(button,a) > span { display: grid; }
.drawer-links small { color: var(--muted); font-size: 12px; }
.drawer-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 17px 26px; border-top: 1px solid var(--line); background: var(--surface-solid); }
body.drawer-open { overflow: hidden; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: #071426; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.28); transform: translateX(-50%); font-size: 14px; font-weight: 750; }

.skeleton { position: relative; overflow: hidden; color: transparent !important; background: var(--surface-soft) !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shimmer 1.4s infinite; }
.skeleton-title { width: min(620px, 80%); min-height: 1em; border-radius: 12px; }
.skeleton-line { width: min(760px, 90%); min-height: 1.4em; border-radius: 10px; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (min-width: 2200px) {
  .content-grid { grid-template-columns: minmax(0, 2.5fr) minmax(500px, .72fr); }
  .services-grid, .wb-rich-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 4300px) {
  :root { --page-pad: 3.2vw; --body-size: 30px; --section-gap: 52px; --panel-pad: 74px; }
  html[data-text-size="large"] { --body-size: 34px; }
  .content-grid { grid-template-columns: minmax(0, 3fr) minmax(720px, .66fr); }
  .services-grid, .wb-rich-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-icon { width: 54px; height: 54px; }
}

@media (max-width: 1080px) {
  .identity-band { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
  .hero-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .primary-column { border-right: 0; }
  .aside-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }
  .aside-column > .panel { border-right: 1px solid var(--line); }
  .trust-panel { grid-column: 1 / -1; border-right: 0 !important; }
}

@media (max-width: 700px) {
  :root { --page-pad: 16px; --panel-pad: 20px; }
  .topbar { min-height: 66px; }
  .brand { gap: 9px; }
  .brand-lockup { min-height: 40px; padding: 4px 7px; border-radius: 12px; }
  .brand-logo-tile { width: 30px; height: 30px; }
  .brand-logo-tile-websdocs { width: 31px; }
  .brand-logo-tile-asg { width: 33px; }
  .brand-copy small, .public-badge, .button-label { display: none; }
  .icon-button { width: 42px; padding: 0; }
  .cover { height: 240px; }
  .identity-band { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-top: -62px; padding-bottom: 28px; }
  .logo-frame { width: 118px; border-width: 5px; border-radius: 26px; }
  .identity-copy { padding-top: 0; }
  .identity-copy h1 { font-size: clamp(38px, 12vw, 62px); }
  .hero-actions { grid-column: auto; width: 100%; }
  .hero-actions .button { flex: 1 1 calc(50% - 9px); }
  .content-grid {
    width: calc(100% - 24px);
    margin-right: 12px;
    margin-left: 12px;
    border-radius: 18px;
  }
  .aside-column { grid-template-columns: 1fr; }
  .aside-column > .panel { border-right: 0; }
  .wb-policy-list, .social-grid { grid-template-columns: 1fr; }
  .wb-gallery { grid-template-columns: 1fr 1fr; }
  .trust-panel { grid-column: auto; }
  .section-heading { align-items: start; }
  .freshness { white-space: normal; text-align: right; }
  .footer { align-items: flex-start; flex-direction: column; }
  .choice-cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-copy { display: none; }
  .brand-lockup { gap: 4px; }
  .brand-join { font-size: 10px; }
  .hero-actions .button { flex-basis: 100%; }
  .section-heading { display: grid; }
  .freshness { text-align: left; }
  .drawer-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-solid: #fff; --surface-soft: #f7f7f7; --ink: #111; --muted: #555; --line: #ddd; --page-pad: 20px; --panel-pad: 20px; }
  .top-actions, .public-badge, .view-drawer, .drawer-scrim, .footer nav, .loading-state, .toast { display: none !important; }
  .topbar { min-height: 52px; background: #fff; color: #111; border-color: #ddd; }
  .brand-lockup { border-color: #d7dce5; background: #fff; box-shadow: none; }
  .brand-logo-tile-websdocs { border-radius: 8px; background: #071426; }
  .brand-copy small { color: #555; }
  .cover { height: 180px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .identity-band { margin-top: -55px; }
  .content-grid { display: block; width: 100%; margin: 12px 0; border: 1px solid #ddd; border-radius: 0; background: #fff; box-shadow: none; }
  .panel, .wb-rich-section { box-shadow: none; break-inside: avoid; }
  .primary-column { border-right: 0; }
  .aside-column { display: block; }
}
