/* Wheel of life template — tool styles. Site chrome comes from shared.css. */

.wol-page .header-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.wol-page .header-back-link:hover {
  border-color: var(--text-secondary);
  text-decoration: none;
}

.wol-page .page-intro {
  max-width: 42rem;
  margin-bottom: 1.15rem;
}

.wol-page .lead {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.wol-page .privacy-line {
  margin: 0;
}

.wol-tool {
  max-width: 1040px;
  margin: 0 auto 1.25rem;
}

.sheet {
  color-scheme: light;
  background: #f6f1e8;
  color: #1c1915;
  border: 1px solid #e4dccf;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem 1rem 1.1rem;
}

.review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 11.5rem);
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}

.sheet label,
.area legend {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a342c;
}

.sheet input,
.sheet textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #d9d1c4;
  border-radius: 0;
  background: transparent;
  color: #1c1915;
  font: inherit;
  line-height: 1.4;
}

.sheet input[type='text'],
.sheet input[type='date'] {
  min-height: 40px;
  padding: 6px 2px;
}

.sheet textarea {
  display: block;
  resize: vertical;
  min-height: 3.2rem;
  padding: 0.35rem 2px 0.4rem;
}

.sheet input:focus,
.sheet textarea:focus,
.sheet input:focus-visible,
.sheet textarea:focus-visible {
  outline: 2px solid #0f6e82;
  outline-offset: 2px;
}

.sheet input::placeholder,
.sheet textarea::placeholder {
  color: #5c564c;
}

#title {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0.9rem 1.1rem;
  align-items: start;
}

.wheel-stage {
  position: sticky;
  top: 68px;
  min-width: 0;
}

.wheel-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.wheel-caption {
  margin: 0.35rem 0 0;
  color: #3a342c;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.areas {
  min-width: 0;
}

.area {
  min-width: 0;
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.7rem 0.65rem;
  border: 1px solid #e4dccf;
  border-left: 4px solid var(--slice, #0f6e82);
  border-radius: 10px;
  background: #fffdf8;
}

.area legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  margin-bottom: 0.35rem;
}

.swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--slice, #0f6e82);
}

.score-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem 0.6rem;
  align-items: center;
  margin-top: 0.35rem;
}

.score-row label,
.area-note label,
.area-name label {
  margin: 0;
}

.score-row input[type='range'] {
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  accent-color: var(--slice, #0f6e82);
  background: transparent;
  border: 0;
}

.score-row output {
  min-width: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.area-note {
  margin-top: 0.15rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.downloads,
.seo,
.faq,
.apps {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
}

.downloads h2,
.seo h2,
.faq h2,
.apps h2 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.downloads h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.downloads p,
.seo p,
.apps p,
.faq p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wol-tool button {
  font: inherit;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  cursor: pointer;
}

.wol-tool button:hover {
  border-color: var(--text-secondary);
}

.wol-tool button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.save-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.seo h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
}

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

.seo li {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 0.45rem 0 0.2rem;
}

.cta-row {
  margin: 0.2rem 0 0.85rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 650;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.wol-nav {
  margin: 0.25rem 0 0;
}

@media (max-width: 800px) {
  .review-head,
  .wheel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wheel-stage {
    position: static;
  }

  .dl-row button {
    flex: 1 1 100%;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .page-intro,
  .downloads,
  .seo,
  .faq,
  .apps,
  .save-status,
  .skip-link,
  .wheel-caption {
    display: none !important;
  }

  body,
  main {
    margin: 0;
    padding: 0;
    max-width: none;
    background: #fff;
  }

  .wol-tool,
  .sheet {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .wheel-stage {
    position: static;
  }

  .sheet,
  .sheet textarea,
  .sheet input,
  .area {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@page {
  size: A4;
  margin: 12mm;
}
