/* Editorial reading surfaces. Navigation, hero layouts and buttons live in brand.css. */

/* Keep each numeric input on the same row as its own label. */
body.brand-editorial .tool-num{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:14px 18px;max-width:460px;align-items:center}
body.brand-editorial .tool-num > label{min-width:0;line-height:1.6}
body.brand-editorial .tool-num > input[type="number"]{width:130px;max-width:100%;min-width:0;margin:0}
@media(max-width:640px){
  body.brand-editorial .tool-num{grid-template-columns:minmax(0,1fr) 110px;gap:14px 12px}
  body.brand-editorial .tool-num > input[type="number"]{width:110px}
}

/* Quiet section hierarchy keeps long medical articles easy to follow. */
body.brand-editorial article > h2,
body.brand-editorial .health-article h2{
  color:#1D4568;background:none;border:0;border-bottom:1px solid var(--line);
  border-radius:0;padding:12px 0 14px;line-height:1.6;
}
body.brand-editorial article > h3,
body.brand-editorial .health-article h3{
  color:#1D4568;padding-left:0;border-left:0;line-height:1.65;
}
body.brand-editorial article h3::before{content:none}
body.brand-editorial .health-article{line-height:1.95;letter-spacing:.01em}
body.brand-editorial .health-article > h2{margin-top:54px;font-size:clamp(1.32rem,2.8vw,1.5rem)}
body.brand-editorial .health-article h3{margin-top:30px}
body.brand-editorial .health-article p{margin-bottom:1.2em}
body.brand-editorial .health-article > h2::before{color:var(--gold-text)}
body.brand-editorial .health-article > .reader-questions{
  background:#F3EFE5;border-left:2px solid #DBBE8A;padding:15px 20px;
}
body.brand-editorial .author-box{
  background:transparent;border:solid var(--line);border-width:1px 0;border-radius:0;
  box-shadow:none;padding:17px 0;line-height:1.75;
}
body.brand-editorial .author-avatar{border:1px solid var(--line);box-shadow:none}
body.brand-editorial .answer-box,
body.brand-editorial .health-article .answer-box{
  background:#F3EFE5;border:0;border-left:2px solid #DBBE8A;border-radius:0;
  padding:21px 24px;box-shadow:none;line-height:1.85;
}
body.brand-editorial .advice-box{
  background:#F3EFE5;border:0;border-top:1px solid #DBBE8A;
  border-radius:0;padding:24px 26px;box-shadow:none;
}
body.brand-editorial .advice-box::before{content:none}
body.brand-editorial .advice-box h2,
body.brand-editorial .advice-box h3{
  color:#1D4568;background:none;border:0;padding:0;margin:0 0 12px;
}
body.brand-editorial .refs{border-top:1px solid var(--line);padding-top:24px;line-height:1.85}

/* Keep all existing table scrolling and TOC behaviour intact. */
body.brand-editorial main table{border-radius:0;box-shadow:none;background:#FFFDF8}
body.brand-editorial main th{background:#EDF2F5;color:#1D4568}
body.brand-editorial main th,
body.brand-editorial main td{border-color:var(--line)}
body.brand-editorial main tbody tr:nth-child(even) td{background:rgba(237,242,245,.3)}
body.brand-editorial .toc,
body.brand-editorial .article-mobile-toc{
  background:#FFFDF8;border-color:var(--line);border-radius:4px;box-shadow:none;
}
body.brand-editorial .toc a{border-color:var(--line);background:transparent;color:#1D4568}
body.brand-editorial .toc a:hover{background:#EDF2F5;color:#1D4568;border-color:var(--line)}
body.brand-editorial .article-sidebar-nav{
  background:#FFFDF8;border-color:var(--line);border-top:1px solid #DBBE8A;
  border-radius:0;box-shadow:none;
}
body.brand-editorial .article-sidebar-toggle{
  border-color:var(--line);border-radius:6px;background:#FFFDF8;box-shadow:none;
}
body.brand-editorial .article-sidebar-toggle:hover{background:#EDF2F5;border-color:#1D4568;box-shadow:none}
body.brand-editorial .article-sidebar-nav a{border-radius:0;color:var(--text)}
body.brand-editorial .article-sidebar-nav a:hover,
body.brand-editorial .article-sidebar-nav a[aria-current="location"]{
  background:#EDF2F5;color:#1D4568;
}
body.brand-editorial .article-sidebar-nav a[aria-current="location"]{border-right-color:#1D4568}

/* Curated pathways and content cards use lines and type, with no lifting effect. */
body.brand-editorial .card,
body.brand-editorial .campus-card,
body.brand-editorial .treatment-choice-card{
  background:#FFFDF8;border:1px solid var(--line);border-top:1px solid #DBBE8A;
  border-radius:4px;box-shadow:none;transition:border-color .18s,background-color .18s;
}
body.brand-editorial .card:hover,
body.brand-editorial .campus-card:hover,
body.brand-editorial .treatment-choice-card:hover{
  transform:none;box-shadow:none;border-top-color:#1D4568;
}
body.brand-editorial .card .tag,
body.brand-editorial .tool-tag{
  background:transparent;border:0;border-radius:0;padding:0;color:var(--gold-text);letter-spacing:.06em;
}
body.brand-editorial .card h3,
body.brand-editorial .campus-card h3,
body.brand-editorial .treatment-choice-card h3{color:#1D4568;line-height:1.7}
body.brand-editorial .card h3 a,
body.brand-editorial .article-list-item :is(h2,h3) a{display:inline-flex;align-items:center;min-height:44px}
body.brand-editorial .choice-number{color:#9AABBA}
body.brand-editorial .treatment-choice-card .choice-summary{border-radius:4px;background:#EDF2F5}
body.brand-editorial .reader-paths{
  padding:25px 0 27px;background:transparent;border-width:1px 0;
  border-color:var(--line);border-radius:0;box-shadow:none;
}
body.brand-editorial .reader-paths-heading{margin-bottom:20px}
body.brand-editorial .reader-paths-heading h2{margin:0;padding:0;border:0;color:#1D4568;font-size:1.3rem}
body.brand-editorial .reader-path-card{
  padding:17px 10px 17px 0;background:transparent;border:0;border-top:1px solid #DBBE8A;
  border-radius:0;box-shadow:none;transition:background-color .18s,border-color .18s;
}
body.brand-editorial .reader-path-card:hover{background:#EDF2F5;border-top-color:#1D4568;transform:none;box-shadow:none}
body.brand-editorial .reader-path-number{background:transparent;color:#1D4568;border-radius:0;font-family:var(--font-display);font-size:1.18rem}
body.brand-editorial .reader-path-arrow{color:#1D4568}
body.brand-editorial .reader-path-card strong{font-size:.94rem}
body.brand-editorial .reader-path-card small{font-size:.8rem;line-height:1.65}
body.brand-editorial .article-list{gap:0}
body.brand-editorial .article-list-item{
  padding:27px 0;background:transparent;border:solid var(--line);border-width:0 0 1px;
  border-radius:0;box-shadow:none;transition:none;
}
body.brand-editorial .article-list-item:hover{transform:none;box-shadow:none}
body.brand-editorial .article-list-item h2,
body.brand-editorial .article-list-item h3{margin:0 0 8px;padding:0;border:0;color:#1D4568;font-size:1.18rem;line-height:1.7}
body.brand-editorial .article-list-item p{font-size:.95rem;line-height:1.85}
body.brand-editorial .article-list-item .meta{color:var(--text-soft);font-size:.83rem;letter-spacing:.02em}
body.brand-editorial .related-reading{
  padding:28px 0;background:transparent;border:0;border-top:1px solid #DBBE8A;border-radius:0;
}
body.brand-editorial .related-reading > h2{margin:3px 0 18px;padding:0;border:0;font-size:1.3rem}
body.brand-editorial .related-reading-grid > a{
  background:#F3EFE5;border:0;border-radius:4px;box-shadow:none;
  transition:background-color .18s;
}
body.brand-editorial .related-reading-grid > a:hover{background:#EDF2F5;transform:none;box-shadow:none}
body.brand-editorial .related-reading-grid strong{font-size:.95rem;line-height:1.7}
body.brand-editorial .related-reading-grid span{font-size:.84rem;line-height:1.75}

/* Questions and assessments retain clear, comfortable interactive controls. */
body.brand-editorial .faq-item{
  padding:4px 22px;border:1px solid var(--line);border-radius:4px;
  background:#FFFDF8;box-shadow:none;transition:border-color .18s,background-color .18s;
}
body.brand-editorial .faq-item:hover{border-color:#9AABBA;box-shadow:none}
body.brand-editorial .faq-item[open]{background:#F3EFE5;border-color:var(--line)}
body.brand-editorial .faq-item summary{min-height:48px;padding:16px 0;line-height:1.75;color:#1D4568}
body.brand-editorial .faq-item summary h3{margin:0;padding:0;border:0;font:inherit}
body.brand-editorial .faq-item p{font-size:.97rem;line-height:1.85}
body.brand-editorial .tool-box{
  background:#FFFDF8;border:1px solid var(--line);border-top:2px solid #1D4568;
  border-radius:4px;padding:28px;box-shadow:none;
}
body.brand-editorial .tool-box h2,
body.brand-editorial .tool-box h3{background:none;border:0;padding:0}
body.brand-editorial .tool-q{background:transparent;border:solid var(--line);border-width:0 0 1px;border-radius:0;padding:15px 0 20px}
body.brand-editorial .tool-q label{border-radius:4px;min-height:44px}
body.brand-editorial .tool-q label:hover{background:#EDF2F5}
body.brand-editorial .tool-box input[type="number"]{border-radius:6px;border-width:1px;background:#FFFDF8}
body.brand-editorial .tool-result{background:#EDF2F5;border:0;border-left:2px solid #1D4568;border-radius:0;box-shadow:none}
body.brand-editorial .tool-result .score{color:#1D4568}
body.brand-editorial .search-box input{min-height:48px;border-radius:6px;border-width:1px;box-shadow:none;background-color:#FFFDF8}
body.brand-editorial .search-empty{border:1px solid var(--line);border-radius:4px;background:#F3EFE5;box-shadow:none}
body.brand-editorial .chip{border-color:var(--line);background:#FFFDF8;border-radius:6px}
body.brand-editorial .chip:hover{background:#1D4568;border-color:#1D4568;color:#FFFDF8}

/* Supporting reading and policy panels follow the same restrained surface system. */
body.brand-editorial .evaluation-step,
body.brand-editorial .local-access-card,
body.brand-editorial .prepare-checklist,
body.brand-editorial .campus-decision-link{
  border:1px solid var(--line);border-radius:4px;background:#FFFDF8;box-shadow:none;
}
body.brand-editorial .local-access-panel{background:#F3EFE5;border:0;border-radius:4px}
body.brand-editorial .evaluation-outcome{background:#F3EFE5;border:0;border-left:2px solid #DBBE8A;border-radius:0}
body.brand-editorial .compare-next-actions a{background:#FFFDF8;border-color:var(--line);border-radius:6px}
body.brand-editorial .compare-next-actions a:hover{background:#EDF2F5}
body.brand-editorial .local-evidence-note{background:#EDF2F5;border-left:2px solid #1D4568;border-radius:0}
body.brand-editorial .policy-section:not(.policy-contact){
  margin-bottom:28px;padding:26px 0;border:0;border-top:1px solid #DBBE8A;
  border-radius:0;background:transparent;
}
body.brand-editorial .policy-section-alert:not(.policy-contact){padding:24px;background:#F3EFE5;border-top-color:#DBBE8A}
body.brand-editorial .policy-contact{background:#1D4568;border-color:#1D4568;border-radius:4px}
body.brand-editorial .policy-jump-nav a{display:inline-flex;align-items:center;min-height:44px}

@media (max-width:640px){
  body.brand-editorial .health-article{line-height:1.9}
  body.brand-editorial .health-article > h2{margin-top:42px;padding:10px 0 12px;font-size:1.3rem}
  body.brand-editorial .answer-box,
  body.brand-editorial .health-article .answer-box{padding:18px}
  body.brand-editorial .advice-box{padding:21px 18px}
  body.brand-editorial .reader-paths{padding:22px 0}
  body.brand-editorial .reader-paths-heading h2{font-size:1.2rem}
  body.brand-editorial .reader-path-card{padding:15px 8px 15px 0}
  body.brand-editorial .article-list-item{padding:23px 0}
  body.brand-editorial .article-list-item h2,
  body.brand-editorial .article-list-item h3{font-size:1.12rem}
  body.brand-editorial .related-reading{padding:24px 0}
  body.brand-editorial .faq-item{padding:3px 17px}
  body.brand-editorial .tool-box{padding:22px 17px}
  body.brand-editorial .tool-q{padding:12px 0 17px}
  body.brand-editorial .policy-section:not(.policy-contact){padding:23px 0}
  body.brand-editorial .policy-section-alert:not(.policy-contact){padding:20px 17px}
}

@media print{
  body.brand-editorial main table,
  body.brand-editorial main th,
  body.brand-editorial main td,
  body.brand-editorial .answer-box,
  body.brand-editorial .health-article .answer-box,
  body.brand-editorial .policy-section,
  body.brand-editorial .reader-path-card,
  body.brand-editorial .related-reading-grid > a{background:#fff;color:#000;box-shadow:none}
  body.brand-editorial article > h2,
  body.brand-editorial .health-article h2,
  body.brand-editorial article > h3,
  body.brand-editorial .health-article h3{color:#000}
}
