/* ==========================================================================
   STURDYDO — UI/UX ENHANCEMENT LAYER
   Loaded after style.css on every public page. Uses the existing palette only:
   cream #F6F1EA, forest #233929, sage #3E5A44, oak #704D1E, travertine #E7DED0.
   ========================================================================== */

:root {
  --sd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sd-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --sd-header-h: 64px;
  --sd-gold: #B08A4A; /* the emblem's orbit ring, derived from --oak */
}

/* ---------- Readability & typography polish ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
html { -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: calc(var(--sd-header-h) + 16px); }

/* Headings inside dark (forest-green) bands inherited the global dark heading
   colour and became nearly invisible. Let them inherit the band's light text. */
:is(.bg-primary, .bg-foreground) :is(h1, h2, h3, h4):not(.text-foreground):not(.text-primary):not(:where(.bg-card, .bg-background, .bg-white, .bg-travertine) *) {
  color: inherit;
}
.sd-contrast-fixed { color: var(--primary-foreground) !important; }

/* ---------- Accessibility: focus, skip link ---------- */
:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
  border-radius: 6px;
}
.bg-primary :focus-visible { outline-color: var(--oak-soft); }

.sd-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100000;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.875rem;
  transform: translateY(-160%);
  transition: transform 0.25s var(--sd-ease-out);
}
.sd-skip-link:focus { transform: translateY(0); }

/* ---------- Header: condenses, and on phones tucks away while reading ---------- */
header.site-header {
  transition: transform 0.45s var(--sd-ease-out), background-color 0.3s ease,
              box-shadow 0.3s ease, border-color 0.3s ease !important;
  will-change: transform;
}
@media (max-width: 767px) {
  header.site-header.sd-header-hidden { transform: translateY(-100%); }
}

/* Scroll progress: the thin line under the header now reads as the emblem's gold orbit */
#scrollProgressBar {
  background: linear-gradient(90deg, var(--oak), var(--sd-gold)) !important;
  height: 2px !important;
  transform-origin: 0 50%;
}

/* ---------- Scroll reveals: staggered, never left invisible ---------- */
.reveal-on-scroll {
  transition: opacity 0.7s var(--sd-ease-out), transform 0.7s var(--sd-ease-out) !important;
  transition-delay: var(--sd-delay, 0ms) !important;
}
.reveal-on-scroll.is-revealed { will-change: auto; }

/* Section headings draw a short oak rule as they enter */
.sd-rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--oak);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--sd-ease-out) 0.15s;
}
.text-center .sd-rule, .sd-rule.is-centered { margin-left: auto; margin-right: auto; transform-origin: center; }
.sd-rule.is-drawn { transform: scaleX(1); }

/* ---------- Scroll-linked image motion (Chrome/Edge/Safari 18+; static elsewhere) ---------- */
.sd-media-frame { overflow: hidden; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sd-scroll-zoom {
      animation: sdScrollZoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}
@keyframes sdScrollZoom {
  from { transform: scale(1.08); filter: saturate(0.85); }
  to   { transform: scale(1); filter: saturate(1); }
}

/* Images fade in once decoded instead of popping */
img.sd-img-fade { opacity: 0; transition: opacity 0.6s ease; }
img.sd-img-fade.is-loaded { opacity: 1; }

/* ---------- Cards: one consistent, quiet response to the pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  .card-line {
    transition: transform 0.35s var(--sd-ease-out), box-shadow 0.35s var(--sd-ease-out),
                border-color 0.25s ease, opacity 0.7s var(--sd-ease-out) !important;
  }
  .card-line:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
  }
}
@media (hover: none) {
  .card-line:active { transform: scale(0.985); transition: transform 0.15s ease; }
}

/* Buttons: tactile press */
.btn-primary, .btn-secondary {
  transition: transform 0.2s var(--sd-ease-out), background-color 0.2s ease,
              box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:active, .btn-secondary:active { transform: scale(0.97); }

/* ---------- Back-to-top with a progress "orbit" (echoes the logo's gold ring) ---------- */
.sd-orbit-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9500;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--primary);
  background: rgba(252, 249, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px -10px rgba(35, 57, 41, 0.35), inset 0 0 0 1px var(--border);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--sd-ease-spring), background-color 0.2s ease;
}
.sd-orbit-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sd-orbit-top:hover { background: var(--card); }
.sd-orbit-top svg.sd-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sd-orbit-top .sd-ring-track { stroke: var(--border-light); }
.sd-orbit-top .sd-ring-fill { stroke: var(--sd-gold); transition: stroke-dashoffset 0.1s linear; }
.sd-orbit-top .sd-ring-dot { fill: var(--oak); }
.sd-orbit-top .sd-arrow { position: relative; width: 18px; height: 18px; transition: transform 0.3s var(--sd-ease-out); }
.sd-orbit-top:hover .sd-arrow { transform: translateY(-2px); }
/* keep clear of the toast */
body:has(#toastNotification.show) .sd-orbit-top { transform: translateY(-84px); }

/* ---------- Responsive fixes ---------- */
@media (max-width: 399px) {
  /* Paired hero buttons were squeezed into two cramped lines on small phones */
  .sd-stack-xs { grid-template-columns: 1fr !important; }
}
@media (max-width: 639px) {
  .btn-primary, .btn-secondary { min-height: 44px; }
  #mobileMenu a { min-height: 44px; display: flex; align-items: center; }
  /* Long words / emails never force sideways scrolling */
  main { overflow-wrap: anywhere; }
  main pre, main code { overflow-wrap: normal; }
  .section-pad { padding-top: 2.75rem; padding-bottom: 2.75rem; }
}
@media (min-width: 1536px) {
  /* Big screens: let the reading measure breathe a little */
  .max-w-6xl { max-width: 76rem; }
}

/* Mobile drawer: staggered link entrance */
@media (prefers-reduced-motion: no-preference) {
  #mobileMenu:not(.hidden) > * > a,
  #mobileMenu:not(.hidden) > a {
    animation: sdDrawerItem 0.45s var(--sd-ease-out) both;
  }
  #mobileMenu:not(.hidden) a:nth-child(2) { animation-delay: 30ms; }
  #mobileMenu:not(.hidden) a:nth-child(3) { animation-delay: 60ms; }
  #mobileMenu:not(.hidden) a:nth-child(4) { animation-delay: 90ms; }
  #mobileMenu:not(.hidden) a:nth-child(5) { animation-delay: 120ms; }
  #mobileMenu:not(.hidden) a:nth-child(6) { animation-delay: 150ms; }
  #mobileMenu:not(.hidden) a:nth-child(7) { animation-delay: 180ms; }
  #mobileMenu:not(.hidden) a:nth-child(8) { animation-delay: 210ms; }
}
@keyframes sdDrawerItem {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .sd-rule { transform: none; transition: none; }
  img.sd-img-fade { opacity: 1; transition: none; }
  .card-line:hover { transform: none; }
  header.site-header.sd-header-hidden { transform: none; }
  .sd-orbit-top { transition: opacity 0.2s ease; }
}

/* Print: no chrome */
@media print {
  .sd-orbit-top, #scrollProgressBar, header.site-header, .page-loader { display: none !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   AESTHETIC LAYER — "the orbit"
   One signature: the gold ring from the emblem. Everything else stays quiet.
   ========================================================================== */
:root {
  --sd-gold-soft: rgba(176, 138, 74, 0.35);
  --sd-hairline: rgba(112, 77, 30, 0.14);
  --sd-hairline-strong: rgba(112, 77, 30, 0.24);
}

::selection { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Type ---------- */
main :is(h1, h2).font-display { font-weight: 500; letter-spacing: -0.022em; }
main h3.font-display { letter-spacing: -0.01em; }
main h2.font-display:is(.text-3xl, .sm\:text-4xl) {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.12;
}

/* Labels: italic serif in oak instead of tracked-out capitals */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--oak);
}
.bg-primary .eyebrow, .eyebrow.text-primary-foreground { color: var(--oak-soft); }
main p.uppercase[class*="tracking-[0.2"] {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.bg-primary p.uppercase[class*="tracking-[0.2"] { color: var(--oak-soft) !important; }

/* ---------- Hero ---------- */
.sd-hero { position: relative; overflow: hidden; }
.sd-hero::before {
  /* a soft pool of light behind the visual, like sun on stone */
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(231, 222, 208, 0.9), rgba(246, 241, 234, 0));
  pointer-events: none;
}
.sd-hero-title {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.1rem);
  line-height: 1.04;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}
.sd-hero-second { font-style: italic; font-weight: 400; color: var(--primary); }
.sd-hero-title .hero-line-mask { display: block; padding-bottom: 0.16em; margin-bottom: -0.1em; }

.sd-btn-lg { padding: 0.95rem 1.6rem !important; font-size: 0.9375rem !important; }
@media (max-width: 419px) { .sd-btn-lg { width: 100%; } }

.sd-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background-image: linear-gradient(var(--oak), var(--oak));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color 0.2s ease, background-size 0.35s var(--sd-ease-out);
}
.sd-text-link svg { color: var(--oak); }
.sd-text-link:hover { color: var(--foreground); background-size: 100% 1px; }

.sd-hero-visual { padding: 9% 4% 11%; }
.sd-hero-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 1600 / 912;
  border-radius: 1.75rem;
  box-shadow:
    0 0 0 1px var(--sd-hairline),
    0 2px 4px rgba(35, 57, 41, 0.04),
    0 30px 60px -28px rgba(35, 57, 41, 0.4);
}
.sd-hero-frame img { transition: transform 1.6s var(--sd-ease-out); }
@media (hover: hover) { .sd-hero-visual:hover .sd-hero-frame img { transform: scale(1.025); } }

.sd-orbit {
  position: absolute;
  left: -9%;
  top: -6%;
  width: 118%;
  height: 112%;
  overflow: visible;
  pointer-events: none;
}
.sd-orbit-back { z-index: 1; }
.sd-orbit-front { z-index: 3; }
.sd-orbit-ghost { stroke: none; }
.sd-orbit-line {
  fill: none;
  stroke: var(--sd-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.sd-orbit-back .sd-orbit-line { stroke: var(--sd-gold-soft); }
.sd-orbit-planet { fill: var(--oak); filter: drop-shadow(0 0 6px rgba(176, 138, 74, 0.6)); }

@media (prefers-reduced-motion: no-preference) {
  .sd-orbit-line { stroke-dashoffset: 1; animation: sdDrawOrbit 1.8s var(--sd-ease-out) 0.35s forwards; }
  .sd-orbit-front .sd-orbit-line { animation-delay: 0.9s; }
  .sd-orbit-planet { opacity: 0; animation: sdFadeIn 0.8s ease 1.9s forwards; }
  .sd-hero-stat { animation: sdStatIn 0.9s var(--sd-ease-spring) 1.1s both; }
}
@keyframes sdDrawOrbit { to { stroke-dashoffset: 0; } }
@keyframes sdFadeIn { to { opacity: 1; } }
@keyframes sdStatIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

.sd-hero-stat {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 2%;
  padding: 0.95rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(252, 249, 243, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 0 1px var(--sd-hairline), 0 18px 40px -18px rgba(35, 57, 41, 0.35);
}
@media (max-width: 1023px) {
  .sd-hero-visual { max-width: 36rem; margin-inline: auto; width: 100%; }
}
@media (max-width: 639px) {
  .sd-hero-visual { padding: 10% 3% 16%; }
  .sd-hero-frame { border-radius: 1.25rem; }
  .sd-hero-stat { padding: 0.7rem 0.95rem; }
  .sd-hero-stat p:first-child { font-size: 1.5rem; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  background-image: linear-gradient(180deg, #2C4733 0%, var(--primary) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(35, 57, 41, 0.2), 0 10px 24px -12px rgba(35, 57, 41, 0.55);
  letter-spacing: 0.005em;
}
.btn-primary:hover {
  background-image: linear-gradient(180deg, #264030 0%, var(--primary-hover) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(35, 57, 41, 0.2), 0 16px 30px -14px rgba(35, 57, 41, 0.6);
}
.btn-primary[class*="bg-[#704D1E]"] { background-image: linear-gradient(180deg, #7D5726 0%, var(--oak) 100%); }
.btn-secondary {
  background-color: rgba(252, 249, 243, 0.7);
  border-color: var(--sd-hairline-strong);
  box-shadow: 0 1px 2px rgba(35, 57, 41, 0.04);
}
.btn-secondary:hover { background-color: var(--card); border-color: rgba(35, 57, 41, 0.35); }

/* ---------- Cards ---------- */
.card-line {
  border-color: var(--sd-hairline);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(35, 57, 41, 0.035);
}
@media (hover: hover) and (pointer: fine) {
  .card-line:hover {
    border-color: var(--sd-hairline-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 22px 44px -24px rgba(35, 57, 41, 0.32);
  }
}
/* Icon that opens a card sits on a small sage tile */
.card-line > svg.lucide:first-child,
.card-line > i[data-lucide]:first-child {
  box-sizing: content-box;
  padding: 0.6rem;
  border-radius: 0.85rem;
  background: var(--sage-soft);
  color: var(--primary);
  transition: transform 0.4s var(--sd-ease-spring), background-color 0.3s ease;
}
@media (hover: hover) {
  .card-line:hover > svg.lucide:first-child { transform: rotate(-6deg) scale(1.06); background-color: #CBDAC7; }
}
/* "Learn more" links were invisible on touch screens (hover-only) */
@media (hover: none) {
  .card-line .opacity-0.group-hover\:opacity-100 { opacity: 1 !important; }
}

/* Pills (values, tags) */
main span.rounded-full.border.bg-card {
  border-color: var(--sd-hairline-strong);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--sd-ease-spring);
}
@media (hover: hover) {
  main span.rounded-full.border.bg-card:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); transform: translateY(-2px); }
}

/* Photos in sections: hairline ring instead of a flat border */
main section .overflow-hidden:is(.rounded-3xl, .rounded-2xl, .rounded-4xl):has(> img, > picture) {
  box-shadow: 0 0 0 1px var(--sd-hairline), 0 24px 50px -30px rgba(35, 57, 41, 0.45);
  border-color: transparent;
}

/* ---------- Dark bands carry a faint orbit ---------- */
main section.bg-primary { position: relative; overflow: hidden; isolation: isolate; }
main section.bg-primary::before,
main section.bg-primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
}
main section.bg-primary::before {
  width: min(1100px, 150vw);
  height: min(380px, 60vw);
  border: 1px solid rgba(176, 138, 74, 0.28);
  transform: translate(-50%, -50%) rotate(-8deg);
}
main section.bg-primary::after {
  width: 7px;
  height: 7px;
  background: var(--sd-gold);
  box-shadow: 0 0 12px 2px rgba(176, 138, 74, 0.55);
  transform: translate(calc(-50% + min(520px, 70vw)), calc(-50% - 68px));
}
main section.bg-primary .btn-secondary,
main section.bg-primary a[class*="border-primary-foreground"] {
  background: rgba(246, 241, 234, 0.06);
  border-color: rgba(246, 241, 234, 0.28);
  color: var(--primary-foreground);
}

/* ---------- Header & nav ---------- */
header.site-header { background-color: rgba(246, 241, 234, 0.78) !important; }
header.site-header.is-scrolled { background-color: rgba(250, 246, 239, 0.9) !important; box-shadow: 0 10px 30px -18px rgba(35, 57, 41, 0.25); }
.nav-link::after { height: 1.5px; background: var(--oak); border-radius: 2px; }

/* ---------- Footer ---------- */
footer a:not([class*="rounded"]) {
  transition: color 0.2s ease;
}
footer a:not([class*="rounded"]):hover { color: var(--primary); }

/* ---------- Section rhythm ---------- */
@media (min-width: 768px) {
  .section-pad { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ---------- Scrollbar ---------- */
@supports (scrollbar-color: auto) {
  html { scrollbar-color: #C9BCA6 transparent; scrollbar-width: thin; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-orbit-planet { display: none; }
}

/* ---------- Inner-page heroes: a faint echo of the orbit ---------- */
main > section:first-of-type:not(.sd-hero):not(.bg-primary) { position: relative; isolation: isolate; overflow: hidden; }
main > section:first-of-type:not(.sd-hero):not(.bg-primary)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 52%;
  width: min(980px, 140vw);
  height: min(300px, 46vw);
  border: 1px solid rgba(176, 138, 74, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  main > section:first-of-type:not(.sd-hero):not(.bg-primary)::after {
    animation: sdOrbitEcho 1.6s var(--sd-ease-out) 0.2s both;
  }
}
@keyframes sdOrbitEcho {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
}

/* ---------- Forms: calm, clear focus ---------- */
main :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
main :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
  outline: none;
  border-color: var(--sage) !important;
  background-color: var(--card);
  box-shadow: 0 0 0 4px rgba(62, 90, 68, 0.12) !important;
}
main :is(input, textarea)::placeholder { color: #9A9486; }
main input[type="checkbox"], main input[type="radio"] { accent-color: var(--primary); }

/* ==========================================================================
   AUDIT FIXES (ui-ux-pro-max checklist: contrast 4.5:1, readable sizes,
   tap targets, pointer cursors, restrained motion)
   ========================================================================== */

/* The branded preloader held every page behind a splash for ~1s. Content first. */
#pageLoader, .page-loader { display: none !important; }

/* Minimum readable size: nothing below 12px (badges and chips used 9–11px) */
main :is([class*="text-[9px]"], [class*="text-[10px]"], [class*="text-[11px]"], [class*="text-[11.5px]"]),
footer :is([class*="text-[9px]"], [class*="text-[10px]"], [class*="text-[11px]"]) {
  font-size: 0.75rem !important;
  line-height: 1.35;
}
/* Body copy on phones: 15px instead of 14px for the common text-sm paragraphs */
@media (max-width: 639px) {
  main p.text-sm { font-size: 0.9375rem; line-height: 1.6; }
  main p.text-xs { font-size: 0.8125rem; }
}

/* Contrast: faded text utilities fell below 4.5:1 */
footer p.text-xs, footer p.text-xs * { color: var(--muted-foreground) !important; }
main [class*="text-muted-foreground/7"], main [class*="text-muted-foreground/6"], main [class*="text-muted-foreground/5"] { color: var(--muted-foreground) !important; }
main section p.mt-10.max-w-2xl.text-sm { color: var(--muted-foreground); }

/* What We Do: the six areas aren't a sequence, so "01–06" read as template numbering.
   They become small orbit marks instead. */
.sd-orbit-mark {
  font-size: 0 !important;
  line-height: 0;
  display: inline-block;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.35rem;
}
.sd-orbit-mark::before {
  content: "";
  position: absolute;
  inset: 0.35rem 0;
  border: 1.5px solid var(--sd-gold);
  border-radius: 50%;
  transform: rotate(-14deg);
}
.sd-orbit-mark::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  right: 0.05rem;
  top: 0.55rem;
  border-radius: 50%;
  background: var(--oak);
  box-shadow: 0 0 0 3px var(--background);
}

/* Tap targets: links in footers and text links get real hit areas */
footer :is(a.text-sm, li > a, nav a) { padding-block: 0.35rem; }
footer :is(a.text-sm, li > a, nav a):not(.flex):not(.inline-flex) { display: inline-block; }
.sd-text-link { padding-block: 0.4rem; }
main a.inline-flex.items-center:is(.text-xs, .text-sm):not([class*="py-"]):not([class*="px-"]) { padding-block: 0.4rem; }
main button.inline-flex.items-center:not([class*="py-"]) { padding-block: 0.45rem; }

/* Checkboxes: large enough to hit, clearly clickable */
main input[type="checkbox"]:not(.sr-only) { width: 1.15rem; height: 1.15rem; cursor: pointer; flex-shrink: 0; }
main label:has(input), main summary, main [role="button"], main select { cursor: pointer; }

/* Restraint: one quiet hover per card, no hover lift on pills and chips */
main span.rounded-full.border.bg-card:hover { transform: none; }
footer button.inline-flex.items-center { padding-block: 0.4rem; }
main form span.text-muted-foreground, main form p.text-muted-foreground { color: #444E46; }
