.resource-starter-kit {
  --resource-bg: #071c17;
  --resource-panel: #0d2a22;
  --resource-panel-soft: #14382e;
  --resource-line: rgba(220, 255, 240, 0.16);
  --resource-text: #f4fbf8;
  --resource-muted: #b8cbc1;
  --resource-green: #76d7ad;
  --resource-gold: #f0c65f;
  --resource-focus: #ffc700;
  --resource-progress: 0%;

  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    calc(112px + env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    calc(56px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));

  box-sizing: border-box;
  color: var(--resource-text);
  overflow-anchor: none;
  text-shadow: none;
}

.resource-starter-kit,
.resource-starter-kit *,
.resource-starter-kit *::before,
.resource-starter-kit *::after {
  box-sizing: border-box;
  text-shadow: none;
}

.resource-starter-kit__skip-link {
  position: absolute;
  top: 0;
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 10000;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  max-width: calc(100vw - 32px);
  align-items: center;
  justify-content: center;
  border: 2px solid var(--resource-focus, #ffc700);
  border-radius: 8px;
  padding: 10px 16px;
  background: #f7f1df;
  color: #052019;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(calc(-100% - 12px));
  transition: transform 120ms ease;
}

.resource-starter-kit__skip-link:focus,
.resource-starter-kit__skip-link:focus-visible {
  outline: 3px solid var(--resource-focus, #ffc700);
  outline-offset: 3px;
  transform: translateY(12px);
}

.resource-starter-kit:focus {
  outline: 3px solid var(--resource-focus);
  outline-offset: 6px;
}

.resource-starter-kit__hero {
  max-width: 760px;
  margin: 0 0 32px;
}

.resource-starter-kit__eyebrow,
.resource-starter-kit__summary-eyebrow,
.resource-starter-kit__group-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--resource-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resource-starter-kit h1 {
  max-width: 760px;
  margin: 0;
  color: var(--resource-text);
  font-size: 4rem;
  line-height: 0.98;
  text-wrap: balance;
}

.resource-starter-kit__lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--resource-muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.resource-starter-kit__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.resource-starter-kit__assurances span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--resource-line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(13, 42, 34, 0.8);
  color: var(--resource-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.resource-starter-kit__auth-boundary {
  display: grid;
  max-width: 760px;
  gap: 14px;
  margin-top: 24px;
  border: 1px solid rgba(240, 198, 95, 0.42);
  border-radius: 8px;
  padding: 16px;
  background: rgba(240, 198, 95, 0.08);
}

.resource-starter-kit__auth-boundary p {
  margin: 0;
  color: var(--resource-text);
  line-height: 1.55;
}

.resource-starter-kit__signin {
  justify-self: start;
  background: var(--resource-green);
  color: #052019;
}

.resource-starter-kit__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.resource-starter-kit__form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.resource-starter-kit__group,
.resource-starter-kit__summary,
.resource-starter-kit__exports,
.resource-starter-kit__next-actions,
.resource-starter-kit__more {
  border: 1px solid var(--resource-line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--resource-panel), var(--resource-bg));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.resource-starter-kit__group {
  min-width: 0;
  margin: 0;
  padding: 18px;
}

.resource-starter-kit__group legend {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.resource-starter-kit__group-title {
  display: block;
  color: var(--resource-text);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.2;
}

.resource-starter-kit__group-intro {
  margin: 10px 0 16px;
  color: var(--resource-muted);
  line-height: 1.55;
}

.resource-starter-kit__items {
  display: grid;
  gap: 10px;
}

.resource-starter-kit__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 64px;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--resource-line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.resource-starter-kit__item:has(input:checked) {
  border-color: rgba(118, 215, 173, 0.9);
  background: rgba(118, 215, 173, 0.14);
  box-shadow: inset 4px 0 0 var(--resource-green);
}

.resource-starter-kit__item input {
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin: 0;
  border: 2px solid rgba(244, 251, 248, 0.7);
  accent-color: var(--resource-green);
  cursor: pointer;
}

.resource-starter-kit__item:has(input:disabled) {
  cursor: default;
}

.resource-starter-kit__item input:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.resource-starter-kit__item.is-outside-current-result {
  opacity: 0.52;
}

.resource-starter-kit__item input:focus-visible,
.resource-starter-kit button:focus-visible,
.resource-starter-kit a:focus-visible {
  outline: 3px solid var(--resource-focus);
  outline-offset: 3px;
}

.resource-starter-kit__item-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-self: center;
}

.resource-starter-kit__item-copy strong {
  color: var(--resource-text);
  font-size: 1rem;
  line-height: 1.35;
}

.resource-starter-kit__item-copy small {
  color: var(--resource-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.resource-starter-kit__sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.resource-starter-kit__filter-actions {
  display: grid;
  gap: 10px;
  border: 1px solid var(--resource-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.resource-starter-kit__filter-actions p {
  margin: 0;
  color: var(--resource-muted);
  line-height: 1.45;
}

.resource-starter-kit__summary,
.resource-starter-kit__exports {
  padding: 18px;
}

.resource-starter-kit__summary h2,
.resource-starter-kit__exports h2,
.resource-starter-kit__more h2 {
  margin: 0;
  color: var(--resource-text);
  font-size: 1.42rem;
  line-height: 1.18;
}

.resource-starter-kit__progress-copy {
  display: block;
  margin: 18px 0 10px;
  color: var(--resource-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.resource-starter-kit__progress-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.resource-starter-kit__progress-track > span {
  display: block;
  width: var(--resource-progress);
  height: 100%;
  background: var(--resource-green);
  transition: width 180ms ease;
}

.resource-starter-kit__stage {
  min-height: 2.9em;
  margin: 14px 0 0;
  color: var(--resource-gold);
  font-weight: 800;
  line-height: 1.45;
}

.resource-starter-kit__disclaimer,
.resource-starter-kit__exports p {
  margin: 12px 0 0;
  color: var(--resource-muted);
  line-height: 1.55;
}

.resource-starter-kit__export-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.resource-starter-kit button,
.resource-starter-kit__action {
  min-height: 48px;
  min-width: 0;
  border: 1px solid rgba(244, 251, 248, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--resource-text);
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.resource-starter-kit button {
  background: var(--resource-panel-soft);
  cursor: pointer;
}

.resource-starter-kit button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.resource-starter-kit button:hover,
.resource-starter-kit__action:hover {
  border-color: rgba(244, 251, 248, 0.5);
}

.resource-starter-kit [data-resource-reset] {
  color: var(--resource-muted);
}

.resource-starter-kit__status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--resource-green);
  font-weight: 800;
  line-height: 1.45;
}

.resource-starter-kit__next-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

.resource-starter-kit__action--primary {
  background: var(--resource-green);
  color: #052019;
}

.resource-starter-kit__action--secondary {
  background: rgba(255, 255, 255, 0.06);
}

.resource-starter-kit__result {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  border: 1px solid rgba(118, 215, 173, 0.48);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(118, 215, 173, 0.13), rgba(13, 42, 34, 0.72));
}

.resource-starter-kit__result[hidden] {
  display: none;
}

.resource-starter-kit__result h2,
.resource-starter-kit__direct-links h3 {
  margin: 0;
  color: var(--resource-text);
  line-height: 1.2;
}

.resource-starter-kit__result h2 {
  font-size: 1.7rem;
}

.resource-starter-kit__result-status {
  margin: 0;
  color: var(--resource-green);
  font-weight: 800;
  line-height: 1.45;
}

.resource-starter-kit__selected-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-starter-kit__selected-context span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--resource-line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--resource-text);
  font-size: 0.88rem;
  font-weight: 800;
}

.resource-starter-kit__selected-cards {
  display: grid;
  gap: 10px;
}

.resource-starter-kit__selected-card {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid var(--resource-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.resource-starter-kit__selected-card p,
.resource-starter-kit__selected-card h3,
.resource-starter-kit__selected-card span {
  margin: 0;
}

.resource-starter-kit__selected-card p {
  color: var(--resource-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resource-starter-kit__selected-card h3 {
  color: var(--resource-text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.resource-starter-kit__selected-card span,
.resource-starter-kit__direct-links a {
  color: var(--resource-muted);
  line-height: 1.45;
}

.resource-starter-kit__direct-links {
  display: grid;
  gap: 10px;
}

.resource-starter-kit__direct-links ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.resource-starter-kit__direct-links a {
  overflow-wrap: anywhere;
}

.resource-starter-kit__result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 900px) {
  .resource-starter-kit__layout {
    display: grid;
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(300px, 0.72fr);
    gap: 28px;
    align-items: start;
  }

  .resource-starter-kit__sidebar {
    position: sticky;
    top: 112px;
  }

  .resource-starter-kit__export-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-starter-kit [data-resource-reset] {
    grid-column: 1 / -1;
  }

  .resource-starter-kit__next-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-starter-kit__result-actions,
  .resource-starter-kit__selected-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .resource-starter-kit__sidebar {
    position: static;
  }

  .resource-starter-kit h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 420px) {
  .resource-starter-kit {
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }

  .resource-starter-kit__group,
  .resource-starter-kit__summary,
  .resource-starter-kit__exports {
    padding: 14px;
  }

  .resource-starter-kit__item {
    gap: 10px;
    padding: 10px 8px;
  }

  .resource-starter-kit h1 {
    font-size: 2rem;
  }

  .resource-starter-kit__assurances span,
  .resource-starter-kit__selected-context span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-starter-kit__skip-link,
  .resource-starter-kit__progress-track > span {
    transition: none;
  }
}

@media (forced-colors: active) {
  .resource-starter-kit__skip-link,
  .resource-starter-kit__item,
  .resource-starter-kit__auth-boundary,
  .resource-starter-kit__filter-actions,
  .resource-starter-kit__result,
  .resource-starter-kit__selected-card,
  .resource-starter-kit button,
  .resource-starter-kit__action,
  .resource-starter-kit__progress-track {
    border: 1px solid CanvasText;
  }

  .resource-starter-kit__item input {
    outline: 1px solid CanvasText;
  }

  .resource-starter-kit__item input:focus-visible,
  .resource-starter-kit button:focus-visible,
  .resource-starter-kit a:focus-visible,
  .resource-starter-kit__skip-link:focus,
  .resource-starter-kit__skip-link:focus-visible,
  .resource-starter-kit:focus {
    outline: 3px solid Highlight;
  }

  .resource-starter-kit__progress-track > span {
    background: Highlight;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  body::before,
  body::after,
  .site-header,
  .accueco-site-drawer,
  .accueco-site-footer,
  .resource-starter-kit::before,
  .resource-starter-kit::after {
    display: none !important;
  }

  .resource-starter-kit-print-hidden,
  .resource-starter-kit__skip-link,
  .resource-starter-kit__exports,
  .resource-starter-kit__next-actions,
  .resource-starter-kit__result-actions,
  .resource-starter-kit__signin,
  .resource-starter-kit__apply,
  .resource-starter-kit__clear,
  .resource-starter-kit button,
  .resource-starter-kit__action,
  .resource-starter-kit .accueco-games-bridge__actions {
    display: none !important;
  }

  .resource-starter-kit {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #000 !important;
    background: #fff !important;
    background-image: none !important;
  }

  .resource-starter-kit,
  .resource-starter-kit *,
  .resource-starter-kit *::before,
  .resource-starter-kit *::after {
    color: #000 !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: #222 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .resource-starter-kit__layout,
  .resource-starter-kit__form,
  .resource-starter-kit__items {
    display: block;
  }

  .resource-starter-kit__group,
  .resource-starter-kit__summary,
  .resource-starter-kit__result,
  .resource-starter-kit__selected-card {
    display: block;
    break-inside: avoid;
    margin: 0 0 18px;
    border: 1px solid #222;
    color: #000 !important;
    background: #fff !important;
  }

  .resource-starter-kit__item {
    break-inside: avoid;
    border: 1px solid #222;
    color: #000 !important;
    background: #fff !important;
  }

  .resource-starter-kit h1,
  .resource-starter-kit h2,
  .resource-starter-kit h3,
  .resource-starter-kit legend,
  .resource-starter-kit strong,
  .resource-starter-kit small,
  .resource-starter-kit p,
  .resource-starter-kit span,
  .resource-starter-kit label,
  .resource-starter-kit li,
  .resource-starter-kit__lead,
  .resource-starter-kit__assurances,
  .resource-starter-kit__auth-boundary,
  .resource-starter-kit__group-title,
  .resource-starter-kit__group-intro,
  .resource-starter-kit__summary h2,
  .resource-starter-kit__progress-copy,
  .resource-starter-kit__stage,
  .resource-starter-kit__disclaimer,
  .resource-starter-kit__result h2,
  .resource-starter-kit__result-status,
  .resource-starter-kit__selected-context span,
  .resource-starter-kit__selected-card h3,
  .resource-starter-kit__selected-card span,
  .resource-starter-kit__direct-links h3,
  .resource-starter-kit__eyebrow,
  .resource-starter-kit__summary-eyebrow,
  .resource-starter-kit__group-eyebrow {
    color: #000 !important;
  }

  .resource-starter-kit a,
  .resource-starter-kit__direct-links a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .resource-starter-kit__progress-track {
    border: 1px solid #222 !important;
    background: #fff !important;
  }

  .resource-starter-kit__progress-track > span {
    background: #000 !important;
  }

  .resource-starter-kit input[type="checkbox"] {
    display: inline-block !important;
    appearance: auto;
    accent-color: #000;
  }
}
/* ==========================================================================
   ACCUECO 30A.29A-R1 — RESOURCES LAYOUT CORRECTIONS (DESKTOP SAFE)
   Fixes sticky sidebar, button compression, and legend rhythm
   WITHOUT altering mobile layout
   ========================================================================== */

/* 1. Remove sticky sidebar ONLY on desktop */
@media (min-width: 900px) {
  .resource-starter-kit__sidebar {
    position: static;
    top: auto;
  }
}

/* 2. Prevent export buttons from compressing */
@media (min-width: 900px) {
  .resource-starter-kit__export-actions {
    grid-template-columns: 1fr;
  }

  .resource-starter-kit__next-actions {
    grid-template-columns: 1fr;
  }
}

/* 3. Improve legend rhythm — DESKTOP ONLY */
@media (min-width: 900px) {
  .resource-starter-kit__group {
    padding: 22px;
  }

  .resource-starter-kit__group legend {
    width: auto;
    max-width: 100%;
    padding: 0 6px;
    margin-left: -6px;
  }

  .resource-starter-kit__group-intro {
    margin-top: 14px;
  }
}
