/* Zümrüt Çizgi — staging-only stylesheet; URL retained for compatibility, injected by the Worker.
   Keep imagery, brand mark geometry, responsive layouts and semantic states intact. */
/* Match the approved compact legal group without changing legal content or links. */
footer.legal-footer, footer.legal-footer.nokta-pay-legal-footer {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 20px 20px; text-align: center;
  background: transparent; border-top: 0; box-shadow: none;
}
footer.legal-footer > div { justify-items: center; gap: 5px; max-width: 760px; }
footer.legal-footer nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 22px; width: 100%; max-width: 760px;
}
footer.legal-footer nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 0; line-height: 1.5;
}
footer.legal-footer > small { align-self: center; justify-self: center; }
@media (max-width: 540px) {
  footer.legal-footer nav { gap: 0 18px; }
}
:root {
  --fresh-canvas: #07110d;
  --fresh-surface: #102219;
  --fresh-ink: #f3f5f2;
  --fresh-muted: #adbbb2;
  --fresh-line: #2a4b36;
  --fresh-soft: #173323;
  --fresh-green: #26d666;
  --fresh-link: #a5ebba;
  --bg: var(--fresh-canvas);
  --g: var(--fresh-green);
  --g2: #22a952;
  --muted: var(--fresh-muted);
  --line: var(--fresh-line);
  color-scheme: dark;
}
html, body { background: var(--fresh-canvas) !important; color: var(--fresh-ink) !important; }
body, button, input, select, textarea { font-family: Arial, Helvetica, sans-serif !important; }
main, .home-hub, .tool-page, .legal-page, .software-guide-page, .library-guide-page {
  background: var(--fresh-canvas); color: var(--fresh-ink);
}
h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 600; text-shadow: none; }
body > header, .legal-footer { background: var(--fresh-surface); border-color: var(--fresh-line); color: var(--fresh-ink); }
.brand, .page-brand, .legal-brand { color: var(--fresh-ink); }
.home-hub {
  --ndg-text: var(--fresh-ink);
  --ndg-text-muted: var(--fresh-muted);
  --ndg-surface: var(--fresh-surface);
  --ndg-surface-hover: #284535;
  --ndg-border: var(--fresh-line);
  --ndg-green: var(--fresh-green);
}
.home-hub .hub-header, .home-hub .hub-hero { background: transparent; }
.home-hub .hub-identity h1, .home-hub .hub-intro h2 { color: var(--fresh-ink); text-shadow: none; font-weight: 600; }
.home-hub .hub-identity small { color: var(--fresh-muted); }
.home-hub .tool-group > h2 { font-weight: 600; text-transform: none; letter-spacing: -.02em; }
.home-hub .tool-group .liquid-card:nth-child(n) {
  background: var(--fresh-surface); border-color: var(--fresh-line);
  box-shadow: 0 8px 28px #2546320c; color: var(--fresh-ink);
}
.home-hub .liquid-card::before, .home-hub .liquid-card::after { display: none; }
.home-hub .tool-group .liquid-card:nth-child(n):hover { background: #284535; border-color: #78bd90; box-shadow: 0 12px 32px #25463214; }
.home-hub .tool-group .liquid-card strong { color: var(--fresh-ink); font-weight: 600; letter-spacing: -.025em; }
.home-hub .tool-group > p, .home-hub .tool-group .liquid-card small,
.home-hub .liquid-card-secondary { color: var(--fresh-muted); }
.home-hub .tool-group .liquid-card .tool-icon { background: var(--fresh-soft); color: var(--fresh-link); border-color: var(--fresh-line); box-shadow: none; }
.home-hub .liquid-card .tool-status, .home-hub .liquid-card .tool-status.is-live { background: var(--fresh-soft); color: var(--fresh-link); border-color: var(--fresh-line); }
.home-hub .liquid-card > b { background: var(--fresh-soft); color: var(--fresh-link); border-color: var(--fresh-line); }
.home-hub .tool-group + .tool-group { border-color: var(--fresh-line); }
.auth-card, .selector-card, .message-card, .flow-card, .education-card,
.finder-preview-grid article, .library-guide-tool, .library-guide-intro ul,
.legal-page dl div {
  background: var(--fresh-surface); border-color: var(--fresh-line);
  color: var(--fresh-ink); box-shadow: 0 12px 36px #2546320c;
}
.auth-card h1, .selector-card h1, .message-card h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -.04em; }
.auth-card > p, .flow-card p, .flow-heading > p, .education-card p,
.selector-copy p, .selector-card p, .message-card p, .what-is p,
.legal-page p, .legal-page li, .legal-page dd, .legal-footer, .legal-footer a,
.library-guide-intro p, .library-guide-content p, .library-guide-intro li,
.search-meta, .preview-note { color: var(--fresh-muted); }
.auth-card label, .auth-card legend, .selector-card label { color: var(--fresh-ink); font-weight: 600; }
.auth-card input:not([type="checkbox"]):not([type="radio"]), .auth-card select,
.selector-card input:not([type="checkbox"]):not([type="radio"]), .selector-card select,
.search-box, .search-select, .search-results, .search-results button,
.selected-brand, .selection-result { background: var(--fresh-surface); border-color: #54866a; color: var(--fresh-ink); }
.auth-card input::placeholder, .selector-card input::placeholder { color: #b2c3b8; opacity: 1; }
.search-results button:hover, .search-results button[aria-selected="true"] { background: var(--fresh-soft); }
.primary, .tool-page .primary, .auth-card button[type="submit"] { background: var(--fresh-green); color: #102d1a; font-weight: 600; box-shadow: none; }
.pill, .text-link, .flow-card > b, .flow-card small, .library-status,
.library-guide-back, .library-guide-breadcrumb a { color: var(--fresh-link); }
.pill { background: var(--fresh-soft); border-color: var(--fresh-line); }
.auth-card a:not(.primary), .selector-card a:not(.primary) { color: var(--fresh-link); }
.auth-card .auth-question-link { background: var(--fresh-soft); border-color: var(--fresh-line); color: var(--fresh-link); box-shadow: none; }
.legal-footer strong, .legal-page h1, .legal-page h2 { color: var(--fresh-ink); }
.library-legal-notice, .library-result-notice { background: var(--fresh-soft); color: var(--fresh-ink); border-color: var(--fresh-line); }
.library-legal-notice p, .library-result-notice p, .library-result-notice small { color: var(--fresh-muted); }
.library-legal-notice a, .library-result-notice a { color: var(--fresh-link); }
.library-legal-notice h2, .library-result-notice strong { color: var(--fresh-ink); }
.library-status { background: var(--fresh-soft); border-color: var(--fresh-line); }
.software-guide-page {
  --software-bg: var(--fresh-canvas); --software-panel: var(--fresh-surface);
  --software-line: var(--fresh-line); --software-ink: var(--fresh-ink);
  --software-muted: var(--fresh-muted); --software-green: var(--fresh-link);
  background: var(--fresh-canvas);
}
.software-guide-page .software-search, .software-guide-page .software-category-card,
.software-guide-page .software-record-card, .software-guide-page .software-detail-content > section,
.software-guide-page .software-detail-highlights > span, .software-guide-page .software-detail-grid,
.software-guide-page .software-guide-empty {
  background: var(--fresh-surface); border-color: var(--fresh-line); box-shadow: 0 8px 28px #2546320c;
}
.software-guide-page .software-record-meta { color: var(--fresh-muted); }
/* Standalone selection guides share these variables. */
body:has(.ndg-static-brand), body:has(.common-library-guide) {
  --panel: var(--fresh-surface); --panel-2: var(--fresh-soft);
  --text: var(--fresh-ink); --muted: var(--fresh-muted); --line: var(--fresh-line);
}
@media (max-width: 760px) {
  .home-hub .tool-group > h2 { font-size: 20px; }
  .auth-card input, .auth-card select, .selector-card input, .selector-card select { font-size: 16px; }
}

/* Approved Light Flow type pairing. Keep the official wordmark sans serif. */
.home-hub .hub-intro h2,
.home-hub .tool-group > h2,
.home-hub .tool-group .liquid-card strong,
.auth-card h1, .selector-card h1, .message-card h1,
.flow-heading h1, .flow-card h2,
.legal-page h1, .legal-page h2,
.software-guide-page h1, .software-guide-page h2, .software-guide-page h3,
.library-guide-page h1, .library-guide-page h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.home-hub .hub-intro h2 { font-size: clamp(32px, 4vw, 48px); }
.home-hub .tool-group .liquid-card strong { font-size: clamp(23px, 2vw, 28px); }
.home-hub .tool-group .liquid-card:nth-child(n) { border-radius: 16px; }

/* Light Flow: isolated decoration never intercepts links or form fields. */
.home-hub { position: relative; isolation: isolate; }
.home-hub::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 80%; height: 650px; left: 15%; top: 0;
  background: radial-gradient(ellipse, #35d06f40, #35d06f12 42%, transparent 70%);
  filter: blur(30px); animation: ndg-light-drift 9s ease-in-out infinite alternate;
}
.home-hub .tool-group .liquid-card:nth-child(n) {
  background: linear-gradient(145deg, #253e30, #1d3027 65%);
  border-color: #466b55; box-shadow: 0 16px 42px #0003;
}
.home-hub .liquid-card::before {
  content: ""; display: block; position: absolute; inset: -100%;
  opacity: 1; pointer-events: none; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg 285deg, #8dffb31c 315deg, transparent 345deg);
  animation: ndg-light-orbit 12s linear infinite;
}
.home-hub .tool-group .liquid-card:nth-child(n):hover {
  border-color: #83d59e; box-shadow: 0 18px 46px #35d06f19;
}
.home-hub .liquid-card:nth-child(2)::before { animation-delay: -4s; }
.home-hub .liquid-card:nth-child(3)::before { animation-delay: -8s; }
.home-hub .tool-group .liquid-card strong { font-family: Arial, Helvetica, sans-serif; font-weight: 600; font-size: clamp(20px, 1.8vw, 25px); }
.primary, .auth-card button[type="submit"] { position: relative; overflow: hidden; }
.primary::after, .auth-card button[type="submit"]::after {
  content: ""; position: absolute; pointer-events: none; top: -50%; height: 200%;
  left: -40%; width: 22%; background: linear-gradient(90deg, transparent, #fff6, transparent);
  transform: skewX(-20deg); animation: ndg-light-shine 6s ease-in-out infinite;
}
@keyframes ndg-light-drift { from { transform: translate(-12%, -8%) scale(.9); } to { transform: translate(12%, 12%) scale(1.15); } }
@keyframes ndg-light-orbit { to { transform: rotate(360deg); } }
@keyframes ndg-light-shine { 0%,65% { left: -40%; } 90%,100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .home-hub::before, .home-hub .liquid-card::before, .primary::after,
  .auth-card button[type="submit"]::after { animation: none !important; }
}

/* Nokta Pay's emerald visual language, scoped to the Group home page. */
.home-hub {
  --ndg-surface: #0b1712;
  --ndg-border: #294936;
  --ndg-text: #f3f5f2;
  --ndg-text-muted: #aab5af;
  --ndg-green: #35d06f;
  background: radial-gradient(ellipse at 72% 8%, #35d06f18, transparent 44%), #07110d;
}
.home-hub::before {
  inset: 0; width: auto; height: auto; filter: none;
  background-image: linear-gradient(#64d5ba08 1px, transparent 1px), linear-gradient(90deg, #64d5ba08 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  animation: ndg-home-grid-drift 18s linear infinite;
}
.home-hub .hub-intro h2,
.home-hub .tool-group > h2 {
  font-family: Arial, Helvetica, sans-serif; font-weight: 600;
  color: var(--ndg-text); letter-spacing: -.035em;
}
.home-hub .hub-identity small,
.home-hub .tool-group > p,
.home-hub .tool-group .liquid-card small { color: var(--ndg-text-muted); }
.home-hub .tool-group .liquid-card:nth-child(n) {
  background: linear-gradient(145deg, #10251a, #0b1712 65%);
  border-color: var(--ndg-border);
  box-shadow: inset 0 1px 0 #9bffbf0a, 0 16px 40px #0004;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-hub .tool-group .liquid-card:nth-child(n):hover {
  transform: translateY(-4px); background: linear-gradient(145deg, #173321, #0b1712 65%);
  border-color: #35d06f; box-shadow: 0 16px 42px #35d06f14;
}
.home-hub .tool-group .liquid-card strong { color: var(--ndg-text); }
.home-hub .tool-group .liquid-card .tool-icon,
.home-hub .liquid-card > b { background: #132b1c; border-color: #2b593c; color: #35d06f; }
.home-hub .liquid-card .tool-status,
.home-hub .liquid-card .tool-status.is-live { background: #132b1c; border-color: #294936; color: #9ce5b3; }
.home-hub .tool-group + .tool-group { border-color: #294936; }
@keyframes ndg-home-grid-drift { from { background-position: 0 0; } to { background-position: 64px 64px; } }
@media (prefers-reduced-motion: reduce) {
  .home-hub::before { animation: none !important; }
  .home-hub .tool-group .liquid-card:nth-child(n) { transition: none; }
  .home-hub .tool-group .liquid-card:nth-child(n):hover { transform: none; }
}

/* Approved Zümrüt Çizgi: only interaction-driven motion on the home page. */
.home-hub {
  --ndg-green: #26d666; --ndg-surface: #102219; --ndg-border: #2a4b36;
  --ndg-text: #f3f5f2; --ndg-text-muted: #adbbb2;
  background: radial-gradient(ellipse at 70% 0, #26d66616, transparent 50%), #07110d;
}
.home-hub *, .home-hub *::before, .home-hub *::after,
.home-hub::before, .home-hub::after { animation: none !important; }
.home-hub::before { transform: none; background-size: 56px 56px; }
.home-hub .hub-title-full { display: none; }
.home-hub .hub-title-short { opacity: 1; visibility: visible; filter: none; clip-path: none; }
.home-hub .hub-title-short::before { display: none; }
.home-hub .tool-group > h2 { text-align: left; font-size: 19px; min-height: 0; margin-bottom: 14px; }
.home-hub .tool-group > p { min-height: 76px; margin-bottom: 18px; color: var(--ndg-text-muted); }

.home-hub .tool-group .liquid-card:nth-child(n) {
  background: linear-gradient(145deg, #152b1e, #102219); border-color: #2a4b36;
  box-shadow: 0 5px 18px #0002; transform: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.home-hub .liquid-card::before, .home-hub .liquid-card::after { display: none; }

.home-hub .tool-group .liquid-card .tool-icon { background: #173323; color: #26d666; border-color: #396646; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }


.home-hub .tool-group .liquid-card strong { font: 600 20px/1.2 Arial, Helvetica, sans-serif; letter-spacing: -.5px; }
.home-hub .tool-group .liquid-card small { font-size: 12px; line-height: 1.55; color: #adbbb2; }




.home-hub .tool-group .liquid-card.implant-card:hover,
.home-hub .tool-group .liquid-card.implant-card:focus-visible {
  transform: translateY(-6px); border-color: #26d666;
  background: linear-gradient(145deg, #193d27, #102219);
  box-shadow: 0 16px 36px #26d66622, inset 0 0 0 1px #26d66618;
}
.home-hub .liquid-card.implant-card:hover > b,
.home-hub .liquid-card.implant-card:focus-visible > b { opacity: 1; transform: translateX(0); }
.home-hub .liquid-card.implant-card:hover .tool-icon,
.home-hub .liquid-card.implant-card:focus-visible .tool-icon { transform: translateY(-2px); background: #205634; box-shadow: 0 0 20px #26d66620; }
.home-hub .tool-group .liquid-card.implant-card:active { transform: translateY(-1px) scale(.975); transition-duration: .08s; }
.home-hub .tool-group .liquid-card:not(.implant-card):hover,
.home-hub .tool-group .liquid-card:not(.implant-card):focus-visible { transform: none; background: linear-gradient(145deg, #152b1e, #102219); border-color: #526357; box-shadow: none; }
.home-hub .liquid-card:not(.implant-card) > b { display: none; }
.home-hub .tool-group .liquid-card:not(.implant-card):hover .tool-icon { transform: none; }
.home-hub .liquid-card:focus-visible { outline: 2px solid #26d666; outline-offset: 4px; }
@media (max-width: 700px) {
  .home-hub .tool-group > p { min-height: 0; }

}
@media (hover: none) {
  
  .home-hub .tool-group .liquid-card.implant-card:hover { transform: none; }
  .home-hub .tool-group .liquid-card.implant-card:active { transform: scale(.975); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hub .liquid-card, .home-hub .liquid-card > b, .home-hub .tool-icon { transition: none !important; }
  .home-hub .tool-group .liquid-card:nth-child(n):hover,
  .home-hub .tool-group .liquid-card:nth-child(n):active,
  .home-hub .tool-group .liquid-card:nth-child(n):focus-visible,
  .home-hub .liquid-card:hover .tool-icon { transform: none; }
}

/* Mid-size home cards: between the compact and original large layouts. */
.home-hub .tool-group .liquid-card:nth-child(n) {
  min-height: clamp(232px, 19vw, 270px); aspect-ratio: auto; padding: 22px;
}
.home-hub .tool-group .liquid-card .tool-icon,
.home-hub .liquid-card-product-logo { width: 54px; height: 54px; border-radius: 13px; }
.home-hub .liquid-card-product-logo[src*="dental-kutuphane-secim"],
.home-hub .liquid-card-product-logo[src*="implant-finder"],
.home-hub .liquid-card-product-logo[src*="clinic-flow"] { padding: 10px; }
@media (max-width: 700px) {
  .home-hub .tool-group .liquid-card:nth-child(n) { min-height: 232px; padding: 20px; }
  .home-hub .tool-group .liquid-card .tool-icon,
  .home-hub .liquid-card-product-logo { width: 48px; height: 48px; }
}

/* Shared page system. Do not override account accent choices or light mode. */
:root { --brand-font: Arial, Helvetica, sans-serif; --brand-radius: 16px; }
body[data-panel-accent="green"] { --g: #26d666; --g2: #20af54; --green: #26d666; }
:where(.tool-page,.legal-page,.software-guide-page,.library-guide-page,.nokta-pay-page,.np-legal-page,.np-delete-page) :is(h1,h2,h3) {
  font-family: var(--brand-font); font-weight: 600; text-shadow: none;
}
.tool-page:not(.market-active), .legal-page, .software-guide-page, .library-guide-page {
  background: radial-gradient(ellipse at 70% 0, #26d6660c, transparent 42%), var(--fresh-canvas);
}
:where(.tool-page,.legal-page,.software-guide-page,.library-guide-page) :is(.auth-card,.selector-card,.message-card,.flow-card,.education-card,.software-category-card,.software-record-card) {
  border-radius: var(--brand-radius); border-color: var(--fresh-line);
  background: linear-gradient(145deg,#152b1e,var(--fresh-surface)); box-shadow: 0 8px 28px #0002;
}
:where(.tool-page,.software-guide-page) :is(a.flow-card,.software-category-card,.software-record-card) {
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
:where(.tool-page,.software-guide-page) :is(a.flow-card,.software-category-card,.software-record-card):hover {
  transform: translateY(-3px); border-color: var(--fresh-green); box-shadow: 0 10px 30px #26d66612;
}
:where(.tool-page,.legal-page,.software-guide-page,.library-guide-page,.np-delete-page) :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--fresh-green); outline-offset: 3px;
}
:where(.tool-page,.software-guide-page) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background: #0b1b12; color: var(--fresh-ink); border-color: #456550; border-radius: 10px;
}
.primary::after, .auth-card button[type="submit"]::after { display: none; animation: none; }
.primary, .auth-card button[type="submit"] { border-radius: 10px; transition: filter .18s ease,transform .18s ease; }
.primary:hover, .auth-card button[type="submit"]:hover { filter: brightness(1.08); }
.primary:active, .auth-card button[type="submit"]:active { transform: scale(.985); }
.clinic-flow-intro, .lab-flow-intro { background: transparent; border: 0; }
.clinic-flow-console, .lab-flow-console, .lab-capability-card, .clinic-tool-card,
.clinic-console-step, .lab-console-step {
  background: var(--fresh-surface); border-color: var(--fresh-line); box-shadow: 0 8px 24px #0002;
}
.clinic-flow-lead, .lab-flow-lead, .clinic-console-step p, .lab-console-step p,
.lab-capability-card summary > p, .lab-capability-detail p { color: var(--fresh-muted); }
.clinic-console-header, .lab-console-header, .clinic-console-footer, .lab-console-footer {
  background: #0c1b12; color: var(--fresh-muted); border-color: var(--fresh-line);
}
.lab-capability-card { border-radius: var(--brand-radius); }
.lab-capability-card[open] { border-color: var(--fresh-green); }
.lab-capability-detail { border-color: var(--fresh-line); background: #0c1b12; }
.secondary-action { color: var(--fresh-ink); border-color: #456550; background: #102219; border-radius: 10px; }
.flow-card-icon { color: var(--fresh-green); background: var(--fresh-soft); border-color: var(--fresh-line); }
.legal-hero { background: transparent; }
.legal-content { color: var(--fresh-ink); }
.legal-content :is(h2,h3) { color: var(--fresh-ink); }
.legal-content a, .legal-footer a { color: var(--fresh-link); text-underline-offset: 3px; }
.library-guide-back { border-color: var(--fresh-line); background: var(--fresh-soft); }
.library-guide-tool-head { background: var(--fresh-surface); border-color: var(--fresh-line); }
.software-guide-page { --software-green: #26d666; }
.software-guide-page .software-search { background: #0b1b12; border-color: #456550; }
.software-guide-page .software-search input { background: transparent; }
/* Wiki panels have their own complete light palette; only replace dark tokens. */
.clinic-wiki-page:not([data-theme="light"]) {
  --wiki-bg: #07110d; --wiki-surface: #102219; --wiki-surface-strong: #173323;
  --wiki-text: #f3f5f2; --wiki-muted: #adbbb2; --wiki-border: #2a4b36;
  --wiki-accent-text: #a5ebba; --wiki-button-bg: #102219; --wiki-button-hover: #193d27;
}
.clinic-wiki-page :is(h1,h2,h3) { font-family: var(--brand-font); }
:is(.clinic-flow-dashboard,.lab-flow-dashboard):not([data-theme="light"]) {
  --clinic-canvas: #07110d; --clinic-surface: #102219; --clinic-surface-strong: #173323;
  --clinic-line: #2a4b36; background: var(--clinic-canvas);
}
:is(.clinic-flow-dashboard,.lab-flow-dashboard)[data-theme="light"] { color-scheme: light; }
:is(.clinic-flow-dashboard,.lab-flow-dashboard):not([data-theme="light"]) .dashboard-sidebar { background: #0b1b12; border-color: #2a4b36; }
.nokta-pay-page, .np-legal-page, .np-delete-page {
  --np-bg: #07110d; --np-green: #26d666; --np-green-soft: #a5ebba; --np-text: #f3f5f2; --np-muted: #adbbb2;
  --npy-bg: #07110d; --npy-surface: #102219; --npy-surface-2: #173323;
  --npy-green: #26d666; --npy-green-soft: #a5ebba; --npy-text: #f3f5f2; --npy-muted: #adbbb2;
}
/* Independent HTML guides receive the same sheet through the staging Worker. */
body:has(.ndg-static-brand), body:has(.common-library-guide) {
  --green: #26d666; --green-2: #a5ebba;
  --panel: #102219; --panel-2: #173323; --text: #f3f5f2; --line: #2a4b36;
}
body:has(.ndg-static-brand) :is(h1,h2,h3), body:has(.common-library-guide) :is(h1,h2,h3) { font-family: var(--brand-font); }
@media(max-width:700px) {
  :where(.tool-page,.software-guide-page) :is(input,select,textarea) { font-size:16px; }
  .auth-card, .selector-card, .message-card { padding:24px; }
}
@media(prefers-reduced-motion:reduce) {
  :where(.tool-page,.software-guide-page) :is(a.flow-card,.software-category-card,.software-record-card,.primary) { transition:none; }
  :where(.tool-page,.software-guide-page) :is(a.flow-card,.software-category-card,.software-record-card):hover,.primary:active { transform:none; }
}

/* Public-page endings: a continuous, compact transition into the legal links. */
main.home-hub, main.tool-page, main.legal-page,
main.software-guide-page, main.library-guide-page { padding-bottom: 12px; }
.lab-flow-page .lab-flow-shell, .clinic-flow-page .clinic-flow-shell,
.tool-page .flow-shell, .tool-page .education-shell { padding-bottom: 8px; }
footer.legal-footer > div { gap: 3px; }
footer.legal-footer strong { font-size: 12px; letter-spacing: 2px; font-weight: 500; }
footer.legal-footer > small { font-size: 10px; }

/* Staging footer: only the brand name and contextual legal links. */
footer.legal-footer > div > span,
footer.legal-footer > small,
footer.legal-footer strong::before { display: none; }

/* Remove the former logo footprint and tighten the brand-to-links spacing. */
footer.legal-footer strong { min-height: 18px; line-height: 18px; padding-left: 0 !important; }

/* Match the shared compact footer transition on the home card grid. */
.home-hub .tool-groups { padding-bottom: 8px; }

/* Keep mobile legal rows compact and clear of the floating social link. */
@media (max-width: 540px) {
  footer.legal-footer nav { max-width: 280px; }
}

/* Tablet legal links stay centered, compact and clear of floating controls. */
@media (min-width: 541px) and (max-width: 1024px) {
  footer.legal-footer nav { max-width: 560px; width: calc(100% - 64px); gap: 0 20px; }
}

/* Fill the otherwise empty second tablet column with the resources group. */
@media (min-width: 701px) and (max-width: 1050px) {
  .home-hub .tool-group:nth-child(3) { grid-column: 1 / -1; }
  .home-hub .tool-group:nth-child(3) > p { min-height: 0; }
  .home-hub .tool-group:nth-child(3) .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.home-hub .tool-status[data-staging-live-label] { font-size: 0; }
.home-hub .tool-status[data-staging-live-label]::after { content: attr(data-staging-live-label); font-size: 8px; }

/* Compact category cards, with all statuses together in their original groups. */
.home-hub .tool-group .liquid-card:nth-child(n) { min-height: 208px; padding: 18px; }
.home-hub .tool-group .liquid-card .tool-icon,
.home-hub .tool-group .liquid-card .liquid-card-product-logo { width: 44px; height: 44px; border-radius: 11px; }
/* Approved preview hero: small left wordmark, clear headline and quiet intro. */
.home-hub .hub-hero { width: min(1500px,100%); margin: 0 auto; padding: 32px calc(clamp(18px,4vw,58px) + 16px) 14px; justify-items: start; }
.home-hub .hub-header { display: block; width: 100%; padding: 0; margin: 0; min-height: 0; text-align: left; }
.home-hub .hub-identity { display: inline-block; margin: 0; padding: 0; text-align: left; }
.home-hub .hub-identity::before, .home-hub .hub-identity small, .home-hub .hub-title-short { display: none; }
.home-hub .hub-identity h1 { display: block; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 3px; }
.home-hub .hub-title-full { display: block; position: static; transform: none; opacity: 1; visibility: visible; filter: none; clip-path: none; }
.home-hub .hub-title-full::before, .home-hub .hub-title-full::after { display: none; }
.home-hub .hub-intro { width: 100%; margin: 0; padding: 30px 0 18px; text-align: left; }
.home-hub .hub-intro h2 { max-width: 900px; margin: 0 0 12px; font-size: clamp(36px,4.3vw,56px); font-weight: 500; letter-spacing: -1.6px; line-height: 1.12; }
.home-hub .staging-home-intro { max-width: 600px; margin: 0; color: #adbbb2; font-size: 14px; line-height: 1.6; white-space: pre-line; }
@media(max-width:700px) { .home-hub .hub-hero { padding: 28px 20px 8px; } .home-hub .hub-identity h1 { font-size: 12px; letter-spacing: 2px; max-width: 240px; } .home-hub .hub-intro { padding-top: 26px; } .home-hub .hub-intro h2 { font-size: clamp(34px,8.7vw,40px); } }

/* Legal reading surfaces use a plain canvas without the decorative glow. */
main.legal-page, main.np-legal-page, main.np-delete-page { background: var(--fresh-canvas); }

/* Compact category introductions while preserving desktop first-row alignment. */
.home-hub .tool-group > h2 { margin-bottom: 10px; }
.home-hub .tool-group > p { min-height: 3.1em; margin-bottom: 12px; }
@media (max-width:700px) { .home-hub .tool-group > p { min-height: 0; } }
@media (min-width:701px) and (max-width:1050px) { .home-hub .tool-group:nth-child(3) > p { min-height: 0; } }

/* Remove the obsolete mobile carousel width cap from the static card grid. */
@media (max-width:700px) {
  .home-hub .tool-group .liquid-card:nth-child(n) { width: 100%; max-width: none; min-width: 0; justify-self: stretch; }
}

/* Quiet legal links, matching Nokta Pay's muted footer typography. */
footer.legal-footer nav a { color: var(--fresh-muted); font-weight: 400; text-shadow: none; filter: none; box-shadow: none; }
footer.legal-footer nav a:hover { color: var(--fresh-ink); text-shadow: none; }

/* Bring category headings closer to the home introduction on every screen. */
.home-hub .hub-hero { padding-bottom: 4px; }
.home-hub .hub-intro { padding-bottom: 8px; }

.home-hub .hub-title-full .staging-brand-green { color: var(--fresh-green); }

/* Shared top-left Group wordmark anchor on staging public pages. */
body:has(.page-brand,.legal-brand){position:relative!important}
main:has(>.page-brand),main:has(>.legal-brand){position:static!important}
body .page-brand,body .legal-brand{position:fixed!important;top:25px!important;left:32px!important;right:auto!important;transform:none!important;margin:0!important;padding:0!important;width:auto!important;max-width:none!important;height:18px!important;min-height:18px!important;max-height:18px!important;display:flex!important;align-items:center!important;gap:0!important;font:400 12px/18px Arial,sans-serif!important;letter-spacing:2px!important;text-decoration:none!important;border:0!important;background:none!important;box-shadow:none!important;z-index:20}
body .page-brand .dots,body .page-brand::before,body .page-brand::after,body .legal-brand::before,body .legal-brand::after{display:none!important}
body .legal-page>article{padding-top:82px!important}
body .implant-page .selector-card{margin-top:108px!important}
@media(max-width:680px){body .page-brand,body .legal-brand{left:20px!important;top:22px!important}body .implant-page .selector-card{margin-top:80px!important}}
