/* Moved from the retired sitewide sheets (R20 correction, R36 evidence type, R21 optical polish);
   this page sheet now owns them. */
/* Mobile Advisory: fieldsets own hierarchy; answers read as rows, not a tile matrix. */
@media (max-width: 760px) {
  .page-advisory .question {
    padding-block: 34px 38px;
  }

  .page-advisory .question:first-child {
    padding-top: 0;
  }

  .page-advisory .options,
  .page-advisory .options-four {
    display: block;
    border-left: 0;
  }

  .page-advisory .option {
    display: block;
    border-right: 0;
    background: transparent;
  }

  .page-advisory .option span {
    padding: 16px 2px 17px;
  }

  .page-advisory .option:has(input:checked) {
    padding-left: 12px;
    box-shadow: inset 2px 0 0 var(--forest);
  }
}

/* Advisory working brief · scene programme batch 1 · 2026-10-27.
   Choices on the left, a brief that always holds a real answer on the right:
   a labelled example until the visitor chooses, then their own brief. */
.page-advisory .advisory-decisions{
  background:#fafaf6;
  border-top:1px solid rgba(18,45,32,.1);
  padding-top:clamp(48px,5vw,72px);
  padding-bottom:clamp(56px,6vw,88px);
  scroll-margin-top:var(--nav-height);
}
.page-advisory .diagnostic{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:clamp(32px,5vw,88px);
  align-items:start;
}
.page-advisory .diagnostic-questions{min-width:0}
.page-advisory .advisory-decisions .section-title{max-width:16ch;text-wrap:balance;margin-bottom:clamp(24px,2.6vw,32px);font-size:clamp(36px,3.6vw,54px);line-height:1.02}
.page-advisory .question{margin:0 0 clamp(22px,2.4vw,30px);padding:0;border:0;min-width:0}
.page-advisory .question legend{
  margin:0 0 12px;
  padding:0;
  color:#4c574f;
  font:500 12px/1.3 var(--mono);
  letter-spacing:.12em;
  text-transform:uppercase;
}
.page-advisory .question legend:focus{outline:none}
.page-advisory .question-step{color:#294b37}
.page-advisory .options{display:grid;gap:10px;margin:0}
.page-advisory .options-four{grid-template-columns:repeat(2,minmax(0,1fr))}
.page-advisory .option{position:relative;display:block;cursor:pointer}
.page-advisory .option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.page-advisory .option span{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  height:100%;
  min-height:92px;
  padding:16px 18px;
  border:1px solid rgba(18,45,32,.16);
  border-radius:4px;
  background:#f4f1e7;
  transition:border-color .16s var(--ease),background .16s var(--ease),box-shadow .16s var(--ease);
}
.page-advisory .option b{display:block;color:#18231c;font-size:clamp(16px,1.25vw,18px);font-weight:600;line-height:1.28;letter-spacing:-.015em}
.page-advisory .option small{display:block;color:#5d675f;font-size:13px;line-height:1.4}
.page-advisory .option:hover span{border-color:rgba(18,45,32,.36)}
.page-advisory .option input:checked + span{border-color:#173727;background:#e4ede1;box-shadow:inset 0 0 0 1px #173727}
.page-advisory .option input:focus-visible + span{outline:3px solid #173727;outline-offset:3px}
.page-advisory .options-stage{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid rgba(18,45,32,.16);border-radius:4px;overflow:hidden}
.page-advisory .options-stage .option span{min-height:52px;padding:10px 14px;border:0;border-right:1px solid rgba(18,45,32,.16);border-radius:0}
.page-advisory .options-stage .option:last-child span{border-right:0}
.page-advisory .options-stage .option b{font-size:15px}
.page-advisory .judgment-reset{
  min-height:44px;
  padding:0;
  border:0;
  background:transparent;
  color:#4e6557;
  cursor:pointer;
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:4px;
}

/* The brief */
.page-advisory .judgment{
  position:sticky;
  top:calc(var(--nav-height) + 20px);
  display:flex;
  flex-direction:column;
  margin:0;
  padding:clamp(24px,3vw,40px);
  border-radius:6px;
  background:#18362c;
  color:#f3f1ea;
}
.page-advisory .judgment:focus{outline:none}
.page-advisory .judgment:focus-visible{outline:3px solid #b9d7b4;outline-offset:3px}
.page-advisory .judgment-tag{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:0;
  color:#b9d7b4;
  font:500 11px/1.4 var(--mono);
  letter-spacing:.14em;
  text-transform:uppercase;
}
.page-advisory .judgment-tag span:last-child{color:#c8cfc6;text-align:right}
.page-advisory .judgment-change{display:none}
.page-advisory .judgment h3{
  margin:18px 0 6px;
  color:#fff;
  font-family:var(--serif);
  font-size:clamp(26px,2.4vw,36px);
  font-weight:400;
  line-height:1.12;
  letter-spacing:-.02em;
}
.page-advisory .judgment.is-example h3{color:#e8ebe3}
.page-advisory .result-stage-label{margin:0 0 18px;color:#b9d7b4;font:500 13px/1.4 var(--mono);letter-spacing:.04em}
.page-advisory .result-summary{max-width:46ch;margin:0 0 8px;color:#f3f1ea;font-size:17px;line-height:1.5}
.page-advisory .judgment .result-stage{max-width:46ch;margin:0 0 22px;color:#cbd3c9;font-size:15px;line-height:1.5}
.page-advisory .result-plan{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.18)}
.page-advisory .result-plan dt{margin:0 0 8px;color:#b9d7b4;font:500 11px/1.3 var(--mono);letter-spacing:.14em;text-transform:uppercase}
.page-advisory .result-plan dd{margin:0;color:#f3f1ea;font-size:15px;line-height:1.5}
.page-advisory .judgment-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin-top:4px}
.page-advisory .judgment-hint{margin:0;color:#cbd3c9;font-size:14px}
.page-advisory .judgment-link{gap:10px;min-height:48px;padding:0 24px;background:#f3f1ea!important;color:#18362c!important;border-color:#f3f1ea}
.page-advisory .judgment-link:hover,.page-advisory .judgment-link:focus-visible{background:#fff!important}
.page-advisory .judgment-link:focus-visible{outline-color:#b9d7b4}
.page-advisory .judgment-carry{margin:0;color:#cbd3c9;font-size:13px;line-height:1.45}
@keyframes advisory-judgment-resolve{0%{opacity:.4;transform:translateY(4px)}100%{opacity:1;transform:none}}
.page-advisory .judgment.is-resolving .judgment-response{animation:advisory-judgment-resolve .18s var(--ease) both}
.page-advisory .diagnostic-noscript-action{padding:4px 0}
.page-advisory .diagnostic-noscript-action .btn{min-height:46px;background:#173727;color:#fff}
.page-advisory .diagnostic-noscript-action p{margin:10px 0 0;color:#687169;font-size:13px;line-height:1.5}

/* Older sitewide passes (global-shell-authority, sitewide-correction-r20) restyle the
   retired row layout; the scene owns these properties now. */
.page-advisory .option:has(input:checked){padding-left:0;box-shadow:none}

/* Phone shortcut to the brief */
.page-advisory .diagnostic-peek{display:none}

@media(max-width:1024px){
  .page-advisory .diagnostic{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
  .page-advisory .options-four{grid-template-columns:1fr}
  .page-advisory .option span{min-height:68px}
  .page-advisory .result-plan{grid-template-columns:1fr}
}
@media(max-width:760px){
  .page-advisory .diagnostic{grid-template-columns:1fr;gap:28px}
  .page-advisory .advisory-decisions .section-title{font-size:clamp(32px,9vw,40px)}
  .page-advisory .option span{min-height:64px;padding:14px 16px}
  .page-advisory .judgment{position:static;min-height:0;scroll-margin-top:calc(var(--nav-height) + 8px)}
  .page-advisory .judgment-change{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-top:6px;color:#f3f1ea;font-size:13px}
  .page-advisory .judgment-change[hidden]{display:none}
  .page-advisory .diagnostic-peek{
    position:fixed;
    left:12px;
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    z-index:60;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 8px 8px 16px;
    border-radius:999px;
    background:#18362c;
    color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.25);
    font-size:14px;
    text-decoration:none;
  }
  .page-advisory .diagnostic-peek[hidden]{display:none}
  .page-advisory .diagnostic-peek span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .page-advisory .diagnostic-peek b{flex:none;min-height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border-radius:999px;background:#f3f1ea;color:#18362c;font:600 12px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}
}
@media(max-width:420px){
  .page-advisory .options-stage .option span{padding:10px}
  .page-advisory .options-stage .option b{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .page-advisory .option span{transition:none}
  .page-advisory .judgment.is-resolving .judgment-response{animation:none}
}
/* CD review 2026-10-28: while the example brief shows, its two choices (evidence, fund) are marked dashed so the example reads as an answer to these questions. */
.page-advisory .advisory-decisions:has(.judgment.is-example) .option:has(input[value="evidence"]) span,.page-advisory .advisory-decisions:has(.judgment.is-example):not(:has(input[name="startingPoint"]:checked)) .option:has(input[value="fund"]) span{border:1px dashed #173727;background:#eef2ea}
