/* Public pages only. The account and owner console keep their own appearance. */
.public-site {
  --page: #eff2f4;
  --surface: #fbfcfd;
  --ink: #192733;
  --muted: #50616e;
  --line: #cbd4db;
  --accent: #285b73;
  --soft: #e3ebf0;
  --steel: #3f5a6c;
  --dark: #233340;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

.public-site .container { width: min(1200px, calc(100% - 80px)); }
.public-site .site-header { background: var(--page); }
.public-site .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.75rem; min-height: 77px; }
.public-site .brand { justify-self: start; gap: 11px; font-size: 22px; letter-spacing: -.045em; }
.public-site .brand img { flex: none; }
.public-site .brand-domain { color: var(--steel); font-weight: 450; }
.public-site .public-nav { margin-left: 0; gap: clamp(1rem, 2.6vw, 2.35rem); }
.public-site .public-nav a { color: var(--muted); font-weight: 550; }
.public-site .public-nav a:hover, .public-site .public-nav a[aria-current] {
  color: var(--ink); box-shadow: inset 0 -1px var(--steel);
}
.public-site .account-link { justify-self: end; white-space: nowrap; }
.public-site .button { border-radius: 7px; gap: .85rem; }
.public-site .button.primary { background: var(--dark); }
.public-site .button.primary:hover { background: #355162; }
.public-site .button.subtle { background: var(--surface); }
.public-site .button.subtle:hover { background: var(--soft); }
.public-site .text-link { color: #2d546b; }
.public-site .text-link:hover { text-decoration: underline; text-underline-offset: .28em; }
.public-site :is(a,button,input,select,summary):focus-visible { outline: 2px solid #2878a2; outline-offset: 4px; }
.public-site h1, .public-site h2, .public-site h3 { letter-spacing: -.04em; }

.portal-intro {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.3rem, 6.6vw, 6.5rem) 0 clamp(3.4rem, 6vw, 5.1rem);
}
.portal-kicker {
  display: flex; align-items: center; gap: .55rem;
  color: var(--steel); font-size: .73rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.portal-kicker > span { width: 15px; height: 2px; background: #6089a2; }
.intro-copy h1 { font-size: clamp(2.8rem, 4.45vw, 4.05rem); font-weight: 670; line-height: 1.055; margin: 1.15rem 0; }
.intro-copy h1 span { color: var(--steel); }
.intro-lead { max-width: 42ch; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.65; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.45rem; margin-top: 1.8rem; }
.intro-actions .text-link { padding-block: .55rem; }

.intro-figure { min-width: 0; margin: 0; }
.sample-plate {
  position: relative; padding: 3.35rem clamp(1.35rem, 4.2vw, 3.6rem) 2.35rem;
  background:
    linear-gradient(90deg, #96aab433 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(#96aab433 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(145deg, #e3e9ee, #c9d6df);
  border: 1px solid #bacbd6; border-radius: 14px;
}
.plate-index {
  position: absolute; top: 1rem; left: 1.2rem; right: 1.2rem;
  display: flex; justify-content: space-between; color: #38576a;
  font: 650 .69rem/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: .12em;
}
.plate-corner { position: absolute; width: 17px; height: 17px; border: 1px solid #7896a9; pointer-events: none; }
.corner-tl { top: 2.5rem; left: .85rem; border-right: 0; border-bottom: 0; }
.corner-br { bottom: .8rem; right: .85rem; border-left: 0; border-top: 0; }
.sample-screen {
  position: relative; overflow: hidden; min-width: 0; color: #f0f6fa;
  background: #233441; border: 1px solid #70899a; border-radius: 10px;
  box-shadow: 0 18px 34px #24374638;
}
.sample-top, .sample-bottom { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .65rem .9rem; }
.sample-top { background: #2c4352; font-size: .71rem; }
.sample-top > span:first-child { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; }
.sample-top > span:last-child { color: #c5d7e1; font-size: .65rem; }
.sample-top svg { width: 16px; height: 16px; color: #b8d7e8; }
.sample-top i { display: inline-block; margin-right: .25rem; width: 5px; height: 5px; border-radius: 50%; background: #a7d5ed; vertical-align: .09em; }
.sample-body { padding: 1rem 1.1rem .9rem; }
.sample-heading { display: flex; align-items: end; justify-content: space-between; gap: .55rem; padding-bottom: .7rem; }
.sample-heading p { color: #a9c2d0; font-size: .61rem; letter-spacing: .1em; }
.sample-heading strong { font-size: 1.3rem; font-weight: 650; }
.sample-heading time { color: #d5e5ef; font-size: 1.27rem; font-variant-numeric: tabular-nums; }
.sample-item {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: .4rem;
  padding: .47rem 0; border-top: 1px solid #425965; font-size: .75rem;
}
.sample-item time { color: #adcbdd; font-variant-numeric: tabular-nums; }
.sample-bottom { border-top: 1px solid #405761; color: #c2d6e2; font-size: .62rem; }
.intro-figure figcaption { display: flex; align-items: baseline; gap: .65rem; color: var(--muted); font-size: .78rem; margin-top: .8rem; }
.intro-figure figcaption > span:first-child { color: var(--steel); font-variant-numeric: tabular-nums; font-weight: 700; }

.portal-catalog, .portal-data { border-top: 1px solid var(--line); padding: 2.6rem 0 3.4rem; scroll-margin-top: 20px; }
.portal-section-head { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; align-items: end; gap: 2rem; margin-bottom: 1.6rem; }
.portal-section-head h2, .portal-data h2 { margin-top: .6rem; font-weight: 640; }
.portal-section-head > p { font-size: .94rem; max-width: 31ch; }
.catalog-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .32fr); gap: 1rem; }
.work-list { display: grid; gap: .6rem; }
.work-card {
  display: grid; grid-template-columns: 1.4rem 2.75rem minmax(8rem, .88fr) minmax(0, 1.45fr) 1.3rem;
  align-items: center; gap: clamp(.6rem, 1.35vw, 1.2rem);
  min-height: 106px; padding: .85rem 1.05rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  transition: border-color .18s, background .18s;
}
.work-card:hover { border-color: #779aaf; background: #f7fbfd; }
.work-card-index { color: var(--muted); font-size: .73rem; font-variant-numeric: tabular-nums; }
.work-card-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  color: #395d73; background: #e6edf2; border: 1px solid #d7e2ea; border-radius: 8px;
}
.work-card-icon svg, .public-site .product-icon svg { width: 24px; height: 24px; }
.work-card-title > span { display: block; margin-bottom: .22rem; font-size: .72rem; color: var(--muted); line-height: 1.35; }
.work-card-title h3 { font-size: clamp(1.1rem, 1.65vw, 1.35rem); font-weight: 675; }
.work-card-detail p { font-size: .89rem; line-height: 1.45; }
.work-card-detail > span { display: block; margin-top: .29rem; color: #3d657c; font-size: .73rem; font-weight: 600; }
.work-arrow, .side-arrow { color: #385e75; font-size: 1.22rem; }
.catalog-side { align-self: start; padding: 1.1rem .95rem; background: #e4ebef; border: 1px solid var(--line); border-radius: 9px; }
.catalog-side > .portal-kicker { margin-bottom: .7rem; }
.side-product { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr) 1rem; align-items: center; gap: .65rem; padding: .75rem .2rem; border-top: 1px solid #c3d0d9; }
.side-product:hover h3 { color: #285b73; text-decoration: underline; text-underline-offset: .22em; }
.side-product .work-card-icon { width: 2.3rem; height: 2.3rem; background: #f3f7f9; }
.side-product .work-card-icon svg { width: 19px; height: 19px; }
.side-product h3 { font-size: .95rem; font-weight: 680; overflow-wrap: anywhere; }
.side-product p { font-size: .75rem; margin-top: .15rem; }
.side-arrow { font-size: 1rem; }

.portal-data { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); gap: 2rem 4rem; }
.portal-data .text-link { display: inline-block; margin-top: 1.2rem; }
.data-list { margin: 0; }
.data-list > div { padding: .85rem 0; border-top: 1px solid var(--line); }
.data-list > div:first-child { padding-top: .35rem; border-top: 0; }
.data-list dt { font-weight: 675; }
.data-list dt span { font-size: .72rem; color: var(--steel); font-weight: 650; margin-right: .6rem; }
.data-list dd { margin: .2rem 0 0 1.6rem; color: var(--muted); font-size: .92rem; max-width: 54ch; }

.public-site .site-footer { background: #263743; color: #f0f5f8; border-color: #3c515f; }
.public-site .footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.5rem clamp(1.2rem, 5vw, 4rem); padding: 2.35rem 0 2rem; }
.public-site .footer-brand { letter-spacing: -.04em; }
.public-site .footer-brand > span { color: #c4d7e4; font-weight: 450; }
.public-site .footer-intro p { color: #c1d0da; font-size: .86rem; }
.public-site .footer-links { align-content: start; display: grid; gap: .35rem; margin: 0; color: #e0ebf1; font-size: .83rem; }
.public-site .footer-links a { padding: .12rem 0; }
.public-site .footer-links a:hover { color: #bce3ff; text-decoration: underline; text-underline-offset: .22em; }
.public-site .footer-bottom { display: block; border-color: #4b5f6c; padding-block: .9rem; }
.public-site .footer-bottom p { color: #c1d0da; font-size: .78rem; }

.public-site .breadcrumb, .public-site .release-list details { color: var(--muted); }
.public-site .product-icon { background: #e2ebf0; color: var(--accent); }
.public-site .product-icon.large svg { width: 55%; height: 55%; }
.public-site .mode-grid article { background: var(--surface); }
.public-site .core-section, .public-site .site-announcement { background: #e0e9ef; border: 1px solid var(--line); }
.public-site .mono { color: var(--steel); }
.public-site .runtime-note > span { border-color: #8097a8; }

@media (max-width: 1030px) {
  .public-site .container { width: calc(100% - 52px); }
  .portal-intro { gap: 1.9rem; }
  .intro-copy h1 { font-size: clamp(2.65rem, 5.5vw, 4.05rem); }
  .work-card { grid-template-columns: 2.5rem minmax(7rem, .9fr) minmax(0, 1.25fr) 1rem; }
  .work-card-index { display: none; }
}
@media (max-width: 820px) {
  .public-site .header-inner { min-height: 68px; gap: 1rem; }
  .public-site .brand { font-size: 19px; }
  .public-site .brand-domain { display: inline; }
  .public-site .public-nav { gap: .85rem; font-size: .82rem; }
  .portal-section-head { grid-template-columns: 1fr 15rem; gap: 1rem; }
  .catalog-columns { grid-template-columns: 1fr; }
  .catalog-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .catalog-side > .portal-kicker { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .public-site .container { width: calc(100% - 36px); }
  .public-site .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .75rem; padding: .7rem 0 .5rem; }
  .public-site .brand img { width: 32px; height: 32px; }
  .public-site .brand { gap: 7px; }
  .public-site .public-nav { grid-column: 1 / -1; order: 3; margin: 0; justify-content: space-between; }
  .public-site .header-inner > .button { min-height: 34px; padding: .4rem .55rem; font-size: .75rem; gap: .35rem; }
  .portal-intro { grid-template-columns: 1fr; padding: 2.25rem 0 2.45rem; gap: 1.5rem; }
  .intro-copy h1 { margin: .8rem 0; font-size: clamp(2.5rem, 8.6vw, 3.8rem); }
  .intro-actions { margin-top: 1.2rem; gap: .55rem 1rem; }
  .sample-plate { padding: 2.55rem 1.25rem 1.25rem; }
  .plate-index { top: .7rem; }
  .corner-tl { top: 1.95rem; left: .6rem; }
  .corner-br { bottom: .55rem; right: .6rem; }
  .sample-body { padding: .65rem .8rem; }
  .portal-catalog, .portal-data { padding: 1.75rem 0 2.15rem; }
  .portal-section-head { grid-template-columns: 1fr; gap: .55rem; margin-bottom: 1rem; }
  .portal-section-head > p { max-width: 44ch; }
  .work-card { grid-template-columns: 2.35rem minmax(0, 1fr) 1rem; gap: .42rem .75rem; padding: .85rem .7rem; }
  .work-card > .work-card-icon { width: 2.35rem; height: 2.35rem; }
  .work-card-detail { grid-column: 2; grid-row: 2; }
  .work-arrow { grid-column: 3; grid-row: 1 / 3; }
  .portal-data { grid-template-columns: 1fr; gap: 1.3rem; }
  .public-site .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.55rem 0; gap: 1rem; }
  .footer-intro { grid-column: 1 / -1; }
  .public-site .product-hero h1 { font-size: clamp(1.85rem, 7.25vw, 2.7rem); gap: .7rem; overflow-wrap: anywhere; }
  .public-site .product-hero .product-icon.large { flex: none; width: 2.35rem; height: 2.35rem; }
}
@media (max-width: 540px) {
  .catalog-side { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .public-site .brand-domain { display: none; }
  .sample-plate { padding-inline: .85rem; }
  .sample-heading strong, .sample-heading time { font-size: 1.1rem; }
  .sample-item { grid-template-columns: 2.65rem minmax(0, 1fr); font-size: .71rem; }
}
