/* The one-week test: a free self-check on top of the signature services page
   (/websites/signature-services.css). Ruled lists only, like What Google
   Sees: the eight questions, the list it builds, and the guide below. */
.week-test-page .week-test-opening h1 { max-width: 16ch; }
.week-test-page .week-test-opening .service-opening-bottom { align-items: start; }
.week-test-page .service-opening-bottom .week-test-hint { font-size: 14px; line-height: 1.6; color: var(--slate); }
@media (max-width: 760px) { .week-test-page .service-opening-bottom .week-test-hint { margin-top: 16px; } }

/* The eight questions */
.week-test-questions { padding-bottom: clamp(48px, 6vw, 88px); }
.week-test-form { display: grid; gap: 0; }
.week-test-form[hidden] { display: none; }
.week-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 40px); margin: 0 0 8px; padding: 18px 0; border-top: 1px solid var(--ink); }
.week-key dt { font: 500 12px/1.4 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.week-key dd { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.week-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px clamp(24px, 4vw, 64px); align-items: center; padding: 22px 0; border-top: 1px solid var(--studio-rule); min-width: 0; }
.week-q-head { grid-column: 1; margin: 0; }
.week-q-num { display: block; margin-bottom: 8px; font: 400 12px/1 'IBM Plex Mono', monospace; letter-spacing: .06em; color: var(--slate); }
.week-q-name { display: block; font-size: clamp(20px, 2.1vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.week-q-note { grid-column: 1; margin: 0; max-width: 56ch; font-size: 14px; line-height: 1.55; color: var(--slate); }
.week-choices { grid-column: 2; grid-row: 1 / span 2; display: flex; border: 1px solid var(--ink); }
.week-choices label { position: relative; display: block; }
.week-choices label + label { border-left: 1px solid var(--ink); }
.week-choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.week-choices span { display: flex; align-items: center; justify-content: center; min-width: 128px; min-height: 48px; padding: 10px 16px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.week-choices input:checked + span { background: var(--ink); color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.week-choices input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; position: relative; z-index: 1; }
.week-choices label:hover input:not(:checked) + span { background: var(--wash); }
.week-q.is-missing .week-choices { outline: 2px solid var(--ink); outline-offset: 3px; }
.week-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--studio-rule); }
/* The submit button matches the signature services form button. */
.week-test-page .week-submit button { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-width: 260px; border: 0; padding: 18px 22px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 500; cursor: pointer; transition: background .2s ease; }
.week-test-page .week-submit button:hover { background: var(--indigo); }
.week-test-page .week-submit button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.week-progress { font: 400 13px/1 'IBM Plex Mono', monospace; letter-spacing: .04em; color: var(--slate); }
.week-submit .lead-status { flex-basis: 100%; font-size: 15px; }
.week-submit .lead-status[data-state=error] { padding: 16px; border: 1px solid var(--ink); }
.week-submit .lead-status:empty { display: none; }
.week-test-page .week-submit .lead-status:not(:empty) { display: block; }
.week-test-noscript { padding: 16px; border: 1px solid var(--ink); font-size: 15px; }

/* The list */
.week-report { padding-bottom: clamp(56px, 7vw, 96px); scroll-margin-top: 80px; }
.week-report[hidden] { display: none; }
.week-report-head { padding-top: 28px; border-top: 1px solid var(--ink); }
.week-report-head .studio-kicker { margin-bottom: 18px; }
.week-report-head h2 { max-width: 18ch; font-size: clamp(40px, 6vw, 84px); font-weight: 500; line-height: 1.02; letter-spacing: -.06em; outline: none; }
.week-report-summary { max-width: 52ch; margin-top: 18px; color: var(--graphite); font-size: clamp(17px, 1.6vw, 20px); }
.week-groups { margin-top: clamp(40px, 5vw, 72px); }
.week-group { display: grid; grid-template-columns: .42fr 1fr; gap: 24px clamp(32px, 5vw, 72px); padding-block: 28px clamp(36px, 4vw, 56px); border-top: 1px solid var(--studio-rule); }
.week-group-head h3 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.week-group-count { font: 400 13px/1 'IBM Plex Mono', monospace; letter-spacing: .06em; color: var(--slate); }
.week-group-head p { margin-top: 12px; max-width: 34ch; font-size: 15px; color: var(--slate); }
.week-item-list { margin: 0; padding: 0; list-style: none; min-width: 0; }
.week-item { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 20px; padding-block: 20px 22px; border-bottom: 1px solid var(--studio-rule); }
.week-item:first-child { padding-top: 4px; }
.week-item:last-child { border-bottom: 0; padding-bottom: 0; }
.week-item-mark { width: 12px; height: 12px; margin-top: 7px; border: 1px solid var(--ink); }
.week-group-stops .week-item-mark { background: var(--ink); }
.week-group-keeps .week-item-mark { width: 7px; height: 12px; margin: 4px 0 0 3px; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.week-item h4 { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.week-item p { margin-top: 6px; max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--graphite); }
.week-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 28px; border-top: 1px solid var(--studio-rule); }
.week-action { min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.week-action:hover { color: var(--graphite); }
.week-action:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.week-print-source { display: none; }

/* Two more free things */
.week-test-page .week-next-list { display: grid; align-content: start; gap: 28px; }
.week-test-page .week-next-list p:not(.studio-label) { margin: 8px 0 10px; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--graphite); }
.week-test-page .week-next-list .studio-link { font-size: 18px; }

/* The guide */
.week-guide-heading { max-width: 60ch; }
.week-guide-heading h2 { margin-top: 12px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -.05em; }
.week-guide-heading p:not(.studio-kicker) { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--graphite); }
.week-guide { margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; counter-reset: week; }
.week-guide li { counter-increment: week; display: grid; grid-template-columns: .42fr 1fr; gap: 16px clamp(32px, 5vw, 72px); padding-block: 26px 30px; border-top: 1px solid var(--studio-rule); }
.week-guide h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.week-guide h3::before { content: counter(week, decimal-leading-zero); display: block; margin-bottom: 8px; font: 400 12px/1 'IBM Plex Mono', monospace; letter-spacing: .06em; color: var(--slate); }
.week-guide dl { display: grid; gap: 16px; margin: 0; }
.week-guide dt { font: 500 12px/1.4 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.week-guide dd { margin: 4px 0 0; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--graphite); }

@media (max-width: 900px) {
  .week-q { grid-template-columns: 1fr; }
  .week-choices { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .week-choices label { flex: 1 1 0; min-width: 0; }
  .week-choices span { min-width: 0; padding-inline: 8px; }
}
@media (max-width: 760px) {
  .week-key { grid-template-columns: 1fr; }
  .week-group, .week-guide li { grid-template-columns: 1fr; padding-block: 24px 32px; }
  .week-group-head p { max-width: none; }
}
@media (max-width: 420px) {
  .week-test-page .week-submit button { width: 100%; min-width: 0; }
  .week-choices span { font-size: 14px; white-space: normal; text-align: center; }
  .week-item { gap: 14px; }
}

/* Windows contrast themes drop background colors, so the checked answer
   uses the system highlight pair there, and an underline everywhere. */
@media (forced-colors: active) {
  .week-choices input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .week-choices input:focus-visible + span { outline-color: Highlight; }
}

@media print {
  @page { margin: 14mm; }
  .week-has-list .site-header, .week-has-list footer, .week-has-list .skip-link, .week-has-list .consent-banner,
  .week-has-list .week-test-opening, .week-has-list .week-test-questions, .week-has-list .week-next,
  .week-has-list .week-guide-section, .week-has-list .week-test-scope, .week-report-actions { display: none !important; }
  .week-has-list #main-content[data-header-offset] { padding-top: 0; }
  .week-report { padding: 0; }
  .week-report-head { border-top: 0; padding-top: 0; }
  .week-report-head h2 { font-size: 30pt; }
  .week-groups { margin-top: 18pt; }
  .week-group { grid-template-columns: 1fr; gap: 8pt; padding-block: 12pt; }
  .week-item { break-inside: avoid; }
  .week-group-stops .week-item-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .week-print-source { display: block; margin-top: 18pt; padding-top: 8pt; border-top: 1px solid var(--ink-25); font: 400 9pt/1.5 'IBM Plex Mono', monospace; color: var(--slate); }
}
