/*
  SPOT Site Styles
  Shared styles for all static pages.
*/

/* ====================
   CSS Variables
==================== */
:root {
  --bg: #f4f0e6;
  --surface: #fffdf7;
  --surface-soft: #f3ebdc;
  --text: #2c2418;
  --text-muted: #6b5b42;
  --border: #d8c9ab;
  --primary: #8d5a09;
  --primary-strong: #6f4706;
  --accent: #c78417;
  --accent-soft: #f2dfb8;
  --shadow: 0 10px 28px rgba(44, 36, 24, 0.11);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 80px;
  --container: 1100px;
}

/* ====================
   Base
==================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 0%, #fbf8f0 0%, #f4f0e6 35%, #f0e8d7 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.62;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

a:hover,
a:focus-visible {
  color: var(--primary-strong);
}

:focus-visible {
  outline: 3px solid #c78417;
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -140px;
  left: 1rem;
  z-index: 999;
  background: #00131d;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.16rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.list-lead-tight {
  margin-bottom: 0.2rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

.list-lead-tight + ul,
.list-lead-tight + ol {
  margin-top: 0;
}

/* ====================
   Header + Nav
==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(251, 248, 240, 0.94);
  border-bottom: 1px solid rgba(44, 36, 24, 0.08);
  backdrop-filter: blur(10px);
}

.site-header.scrolled {
  box-shadow: 0 8px 20px rgba(44, 36, 24, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-banner {
  height: clamp(40px, 5.2vw, 56px);
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
}

.site-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
  margin-left: 0.35rem;
  padding: 0;
}

.site-search-link:hover,
.site-search-link:focus-visible {
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.site-search-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.site-search-link circle,
.site-search-link line {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.tab-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  margin-left: auto;
}

.tab-nav a {
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  padding: 0.46rem 0.68rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.tab-nav a:hover,
.tab-nav a:focus-visible {
  background: var(--surface-soft);
}

.tab-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* ====================
   Sections + Layout
==================== */
.site-main {
  padding-top: 0.5rem;
}

.section {
  padding: 1rem 0;
}

.section + .section {
  border-top: 1px solid rgba(44, 36, 24, 0.07);
}

.eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--primary);
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 65ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 1fr;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card p,
.card li {
  color: var(--text-muted);
}

.card:hover {
  transform: translateY(-3px);
  transition: transform 180ms ease;
}

.download-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.62rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(178, 118, 21, 0.14);
  color: var(--primary-strong);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.subtle {
  background: linear-gradient(180deg, transparent, rgba(199, 132, 23, 0.12));
}

.section-emphasis {
  background: linear-gradient(180deg, rgba(199, 132, 23, 0.08), rgba(199, 132, 23, 0.16));
}

/* ====================
   Buttons
==================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--primary-strong);
  color: #fff;
}

.btn.secondary {
  background: var(--accent-soft);
  border-color: #e0c98d;
  color: var(--primary-strong);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: #ecd5a2;
  color: var(--primary-strong);
}

.btn.ghost {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.guide-back-row {
  margin: 1rem 0 0;
}

.guide-back-row .btn {
  min-width: 8.5rem;
}

.guide-intro {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.guide-callout {
  background: linear-gradient(140deg, rgba(199, 132, 23, 0.16), rgba(141, 90, 9, 0.06));
}

.guide-callout-offset {
  align-self: end;
  margin-top: 1.75rem;
}

.guide-public-note {
  margin-bottom: 1rem;
  border-left: 4px solid #d28b1a;
  background: linear-gradient(140deg, rgba(247, 189, 69, 0.14), rgba(255, 255, 255, 0.96));
}

.guide-public-note p:last-child {
  margin-bottom: 0;
}

.guide-screenshot {
  margin: 0.9rem 0 0;
}

.guide-screenshot img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.guide-screenshot figcaption {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ====================
   Manual Shell
==================== */
.manual-frame {
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 92px);
  border: 0;
  display: block;
  background: #fff;
}

.bare-page-message {
  padding: 2.5rem 0 3.5rem;
}

/* ====================
   Developer Docs
==================== */
.developer-doc {
  max-width: 72rem;
}

.developer-doc > :first-child {
  margin-top: 0;
}

.developer-doc > h1:first-child {
  display: none;
}

.developer-doc h1,
.developer-doc h2,
.developer-doc h3,
.developer-doc h4 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.developer-doc h2,
.developer-doc h3,
.developer-doc h4 {
  margin-top: 1.6rem;
}

.developer-doc p,
.developer-doc li {
  max-width: 78ch;
}

.developer-doc code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

.developer-doc p code,
.developer-doc li code,
.developer-doc h1 code,
.developer-doc h2 code,
.developer-doc h3 code,
.developer-doc h4 code {
  padding: 0.1rem 0.32rem;
  border-radius: 0.35rem;
  background: rgba(199, 132, 23, 0.12);
  color: var(--primary-strong);
}

.developer-doc pre {
  overflow-x: auto;
  margin: 0.9rem 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8f3e7;
}

.developer-doc pre code {
  padding: 0;
  background: transparent;
  color: var(--text);
}

.guide-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px dashed #c9b28b;
  background:
    linear-gradient(135deg, rgba(199, 132, 23, 0.08), rgba(141, 90, 9, 0.03)),
    #fff;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====================
   Welcome Page
==================== */
.hero {
  padding: 1.8rem 0 1.4rem;
}

.hero .grid-2 {
  grid-template-columns: 1fr 1.15fr;
}

.hero-copy {
  background: linear-gradient(140deg, rgba(199, 132, 23, 0.16), rgba(141, 90, 9, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.hero-figure {
  float: left;
  width: min(110px, 15%);
  margin: 0.2rem 0.95rem 0.55rem 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-intro-tail {
  clear: both;
}

.banner {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.6rem;
  box-shadow: var(--shadow);
  margin: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius) - 8px);
  object-fit: cover;
}

.photo-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-side-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-side-column .section-gap-top {
  margin-top: auto;
}

.photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3ebdc;
}

.photo figcaption {
  padding: 0.55rem 0.65rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.photo img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.session-list {
  display: grid;
  gap: 0.85rem;
}

.session-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
}

.session-item-success {
  border-left: 4px solid #b27615;
  background: linear-gradient(90deg, rgba(210, 173, 104, 0.2), rgba(255, 255, 255, 0.96) 24%);
}

.session-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.62rem;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: rgba(178, 118, 21, 0.14);
  color: var(--primary-strong);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.session-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.session-result {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.online-option-logo {
  width: min(105px, 40%);
  height: auto;
  float: right;
  margin: 0.2rem 0 0.6rem 0.9rem;
}

.process-intro-image {
  width: 50%;
  height: auto;
  margin-inline: auto;
}

.process-intro-list {
  margin-bottom: 0.8rem;
}

.list-gap-after {
  margin-bottom: 0.8rem;
}

.video-embed {
  width: 100%;
  max-width: 560px;
  margin: 0.75rem 0 1rem;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
}

/* ====================
   Prepare/Register/Process/After
==================== */
.step-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.step-list > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
}

.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.badge {
  background: var(--surface-soft);
  color: var(--primary-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.68rem;
  font-size: 0.83rem;
}

.note-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.9rem 0 0;
}

.note-list-tight {
  margin-top: 0;
}

.note-list-label {
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.note-item,
.note-list > li.note {
  margin: 0 0 0.45rem;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.note-item strong,
.note-list > li.note strong {
  color: var(--text);
}

.youth-coppa-callout {
  margin: 0.4rem 0 1rem;
}

.coppa-trigger {
  display: inline;
  font: inherit;
  color: var(--primary);
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}

.coppa-details {
  display: inline;
}

.coppa-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.coppa-details summary::-webkit-details-marker {
  display: none;
}

.coppa-popover {
  width: 90%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.6rem;
  box-shadow: var(--shadow);
  color: var(--text);
  background: #fff;
}

.coppa-popover p {
  margin-bottom: 0;
}

/* ====================
   Partnerships
==================== */
.profile-scroller {
  overflow-x: auto;
  padding: 0.15rem 0 0.45rem;
  scroll-snap-type: x proximity;
}

.profile-scroller-wrap {
  position: relative;
}

.profile-scroller-wrap .profile-scroller {
  padding-inline: 0.2rem;
}

.profile-scroller-wrap::before,
.profile-scroller-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.8rem;
  width: 2.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 1;
}

.profile-scroller-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(242, 248, 248, 0.95), rgba(242, 248, 248, 0));
}

.profile-scroller-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(242, 248, 248, 0.95), rgba(242, 248, 248, 0));
}

.profile-scroller-wrap.has-left-overflow::before {
  opacity: 1;
}

.profile-scroller-wrap.has-right-overflow::after {
  opacity: 1;
}

.profile-scroll-btn {
  position: absolute;
  top: calc(0.15rem + 96px);
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 36, 24, 0.16);
  z-index: 3;
}

.profile-scroll-btn:hover,
.profile-scroll-btn:focus-visible {
  background: #fff;
  color: var(--primary-strong);
}

.profile-scroll-btn[hidden] {
  display: none;
}

.profile-scroll-btn-prev {
  left: 0.15rem;
}

.profile-scroll-btn-next {
  right: 0.15rem;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}

.profile-card {
  flex: 0 0 192px;
  text-align: center;
  scroll-snap-align: start;
}

.profile-photo {
  width: 192px;
  height: 192px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  margin: 0 auto 0.45rem;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(44, 36, 24, 0.08);
}

.profile-name {
  margin: 0 0 0.02rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.profile-meta {
  margin: 0;
  line-height: 1.1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.partner-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.partner-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.9rem;
  min-height: 5.9rem;
}

.partner-summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease, color 160ms ease;
  justify-self: end;
  color: var(--text-muted);
  margin-top: 0;
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-3px);
  border-color: #d4bf96;
  box-shadow: 0 14px 30px rgba(44, 36, 24, 0.14);
}

.partner-card:hover .partner-summary::after,
.partner-card:focus-visible .partner-summary::after {
  color: var(--primary);
}

.partner-title {
  display: block;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.partner-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.4rem;
  object-fit: contain;
}

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.partner-contact {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.partner-modal {
  width: min(680px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 56px rgba(44, 36, 24, 0.24);
}

.partner-modal::backdrop {
  background: rgba(44, 36, 24, 0.42);
  backdrop-filter: blur(4px);
}

.partner-modal-inner {
  position: relative;
  padding: 1.4rem;
}

.partner-modal h3 {
  margin: 0 2.5rem 1rem 0;
}

.partner-modal-copy {
  color: var(--text-muted);
}

.partner-modal-copy[hidden],
.partner-modal-contact[hidden],
.partner-modal-links[hidden] {
  display: none;
}

.partner-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.partner-modal-close:hover,
.partner-modal-close:focus-visible {
  background: var(--surface-soft);
}

#contact-us form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.contact-form-row label {
  margin: 0;
}

#contact-us input,
#contact-us textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

#contact-us textarea {
  resize: vertical;
  min-height: 8rem;
}

#contact-us .hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.product-name {
  font-family: "Avenir Next Rounded", "Nunito", "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 500;
  color: #b27615;
  white-space: nowrap;
}


.term {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.83rem;
  color: #a26605;
}


/* ====================
   FAQ
==================== */
.faq-category + .faq-category {
  margin-top: 1.5rem;
}

.faq-category > h2 {
  margin-bottom: 0.95rem;
}

details + details {
  margin-top: 0.9rem;
}

summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "\25B8";
  color: var(--primary);
  line-height: 1.2;
  width: 0.9rem;
  text-align: center;
  margin-top: 0.05rem;
  transition: transform 150ms ease;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

details > p {
  margin-top: 0.55rem;
  margin-left: calc(0.9rem + 0.55rem);
}

details > .note-list {
  margin-top: 0.55rem;
  margin-left: calc(0.9rem + 0.55rem);
}

/* ====================
   Footer
==================== */
.site-footer {
  border-top: 1px solid rgba(44, 36, 24, 0.09);
  background: #fbf8f0;
}

.footer-inner {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.fineprint {
  margin: 0;
  font-size: 0.82rem;
  color: #7a684d;
}

.footer-brand {
  justify-self: start;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-contact {
  justify-self: end;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 1.15rem;
  color: #7a684d;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--primary);
}

/* ====================
   Utility + Animation
==================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease, transform 360ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.team-name {
  display: inline-block;
  /*
  padding: 0.05rem 0.4rem;
  border-radius: 0.45rem;
  border: 1px solid #b9d8d4;
  background: #edf7f5;
  */
  color: var(--primary-strong);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.semi-strong {
  color: var(--primary-strong);
  font-weight: 600;
}

.placeholder-text {
  color: #8c7a60;
  position: relative;
  cursor: help;
}

.placeholder-text::after {
  content: "Placeholder text";
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  background: rgba(44, 36, 24, 0.94);
  color: #fff;
  font-style: normal;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 20;
}

.placeholder-text[data-placeholder]::after {
  content: attr(data-placeholder);
}

.placeholder-text:hover::after,
.placeholder-text:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.inline-ui-label {
  font-size: 0.85em;
  color: #4954fb;
  font-weight: bold;
}

.section-gap-top {
  margin-top: 1.1rem;
}

.site-search-form {
  display: flex;
  gap: 0.7rem;
  max-width: 760px;
  margin-top: 0.9rem;
}

.site-search-form input[type="search"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.site-search-form .btn {
  cursor: pointer;
}

/* Google Programmable Search styling (search.html) */
.gsc-control-cse {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.gsc-search-box {
  margin: 0.9rem 0 0.6rem !important;
}

.gsc-input-box {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  min-height: 42px;
}

input.gsc-input {
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  padding: 8px 10px !important;
}

button.gsc-search-button,
.gsc-search-button-v2 {
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: var(--primary) !important;
}

button.gsc-search-button:hover,
.gsc-search-button-v2:hover {
  background: var(--primary-strong) !important;
}

.gsc-result .gs-title,
.gsc-result .gs-title * {
  color: var(--primary-strong) !important;
  text-decoration: none !important;
}

.gsc-result .gs-snippet {
  color: var(--text-muted) !important;
}

.gs-webResult.gs-result {
  border-bottom: 1px solid rgba(44, 36, 24, 0.08) !important;
  padding: 0.65rem 0 !important;
}

/* ====================
   Responsive
==================== */
@media (max-width: 960px) {
  .tab-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 1.1rem;
    left: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }

  .tab-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-search-link {
    width: 100%;
    height: auto;
    min-height: 2.1rem;
    margin-left: 0;
    padding: 0.46rem 0.68rem;
    justify-content: flex-start;
    border-radius: 999px;
  }

  .grid-2,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .site-main {
    padding-top: 0.35rem;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-socials,
  .footer-contact {
    justify-self: start;
  }

  .profile-scroll-btn {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 74px;
  }

  body {
    line-height: 1.58;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .photo-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 0.9rem 0;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-intro {
    grid-template-columns: 1fr;
  }

  .guide-callout-offset {
    margin-top: 0;
  }

  .site-search-form {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-figure {
    display: none;
  }

  .hero-intro-tail {
    clear: none;
  }

  .online-option-logo {
    float: none;
    margin: 0.25rem 0 0.8rem;
  }

  .process-intro-image {
    width: min(70%, 260px);
  }

  .profile-scroll-btn {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover {
    transform: none;
  }

  .reveal,
  .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
