/* template-skin:signal prefix:sg */
/**
 * Signal — quadro de turno (teal + coral)
 * Chrome distinto: rail lateral + bandas verticais (≠ forge/circuit tape+hero+dock)
 * Fontes: Space Grotesk / IBM Plex Sans via HTML
 */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0}
body{
  --sg-ink:#10221f;--sg-muted:#5a736e;--sg-paper:#f4f7f6;--sg-rail:#0b2e2a;
  --sg-coral:#ff6b4a;--sg-coral-deep:#e24f2f;--sg-line:#d5e0dc;--sg-band:#e8efed;
  --sg-font:"IBM Plex Sans","Segoe UI",sans-serif;--sg-display:"Space Grotesk","Arial Narrow",sans-serif;
  --sg-rail-w:248px;
  font-family:var(--sg-font);line-height:1.65;color:var(--sg-ink);
  background:var(--sg-paper);
}
img{max-width:100%;height:auto;display:block}
a{color:var(--sg-coral-deep);text-underline-offset:3px}
a:hover{color:var(--sg-ink)}

.sg-frame{min-height:100vh;display:grid}
@media(min-width:960px){
  .sg-frame{grid-template-columns:var(--sg-rail-w) 1fr}
}

/* —— Left rail (desktop) —— */
.sg-rail{
  display:none;background:var(--sg-rail);color:#d7e8e4;
  padding:1.25rem 1rem 1.5rem;position:sticky;top:0;height:100vh;
  flex-direction:column;gap:1.1rem;border-right:1px solid rgba(255,107,74,.25);
}
@media(min-width:960px){.sg-rail{display:flex}}
.sg-rail__brand{display:flex;align-items:center;gap:.55rem;text-decoration:none;color:#fff}
.sg-rail__mark{width:40px;height:40px;border-radius:6px;object-fit:cover;border:2px solid rgba(255,107,74,.55)}
.sg-rail__name{font-family:var(--sg-display);font-weight:700;font-size:1.05rem;letter-spacing:.02em}
.sg-rail__tag{display:block;font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,107,74,.95);margin-top:.15rem}
.sg-rail__nav{display:flex;flex-direction:column;gap:.15rem;margin-top:.35rem}
.sg-rail__nav a{
  text-decoration:none;color:#b9cfc9;font-weight:600;font-size:.9rem;
  padding:.55rem .65rem;border-radius:6px;border-left:3px solid transparent;
}
.sg-rail__nav a:hover,.sg-rail__nav a.is-active{
  background:rgba(255,107,74,.12);color:#fff;border-left-color:var(--sg-coral);
}
.sg-rail__tip{
  margin-top:auto;padding:.85rem;border-radius:8px;
  background:rgba(0,0,0,.28);border:1px solid rgba(255,107,74,.35);font-size:.82rem;
}
.sg-rail__tip strong{display:block;color:var(--sg-coral);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.35rem}
.sg-rail__cta{display:flex;flex-direction:column;gap:.45rem}

/* —— Mobile top —— */
.sg-topbar{
  display:flex;align-items:center;gap:.55rem;padding:.7rem 1rem;
  background:var(--sg-rail);color:#fff;position:sticky;top:0;z-index:40;
}
@media(min-width:960px){.sg-topbar{display:none}}
.sg-topbar__brand{display:flex;align-items:center;gap:.45rem;text-decoration:none;color:#fff;min-width:0;flex:1}
.sg-topbar__brand img{width:36px;height:36px;border-radius:6px}
.sg-topbar__name{font-family:var(--sg-display);font-weight:700;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-toggle{width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:transparent;color:#fff;font-size:1.2rem;cursor:pointer}
.sg-drawer{display:none;flex-direction:column;gap:.35rem;padding:.75rem 1rem 1rem;background:#0e3833}
.sg-drawer.is-open{display:flex}
@media(min-width:960px){.sg-drawer{display:none!important}}
.sg-drawer a{text-decoration:none;color:#fff;font-weight:600;padding:.65rem .8rem;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}

.sg-main{min-width:0;display:flex;flex-direction:column}
.sg-wrap{width:min(820px,calc(100% - 2rem));margin-inline:auto}
.sg-wrap--wide{width:min(980px,calc(100% - 2rem))}

.sg-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
  border-radius:6px;padding:.7rem 1.05rem;font-weight:700;font-size:.9rem;
  text-decoration:none;border:1.5px solid transparent;cursor:pointer;
  font-family:var(--sg-display);letter-spacing:.02em;
}
.sg-btn--coral{background:var(--sg-coral);color:#fff;border-color:var(--sg-coral)}
.sg-btn--coral:hover{background:var(--sg-coral-deep);color:#fff}
.sg-btn--ghost{background:transparent;color:var(--sg-coral);border-color:rgba(255,107,74,.45)}
.sg-btn--ghost:hover{border-color:var(--sg-coral);color:var(--sg-ink)}
.sg-btn--rail{background:#fff;color:var(--sg-rail);border-color:#fff}
.sg-btn--rail:hover{background:var(--sg-coral);color:#fff;border-color:var(--sg-coral)}
.sg-btn--block{width:100%}
.sg-btn--lg{padding:.9rem 1.25rem;font-size:1rem}

/* —— Lead band (not a card hero) —— */
.sg-lead{
  padding:2.25rem 0 2.5rem;
  background:
    linear-gradient(135deg,rgba(255,107,74,.12),transparent 42%),
    linear-gradient(180deg,#fafcfb 0%,var(--sg-paper) 100%);
  border-bottom:1px solid var(--sg-line);
}
.sg-lead__kicker{margin:0 0 .75rem;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--sg-coral-deep)}
.sg-lead__title{
  font-family:var(--sg-display);font-weight:700;font-size:clamp(1.85rem,4.2vw,2.75rem);
  line-height:1.12;margin:0 0 .9rem;max-width:16ch;letter-spacing:-.02em;
}
.sg-lead__text{margin:0 0 1.35rem;color:var(--sg-muted);max-width:38em;font-size:1.05rem}
.sg-lead__actions{display:flex;flex-wrap:wrap;gap:.55rem}

/* —— Vertical turno timeline —— */
.sg-turno{padding:0;margin:0;list-style:none;counter-reset:sgturno}
.sg-turno__band{
  padding:1.75rem 0;border-bottom:1px solid var(--sg-line);
  background:var(--sg-paper);
}
.sg-turno__band:nth-child(even){background:var(--sg-band)}
.sg-turno__inner{display:grid;gap:.65rem}
@media(min-width:700px){
  .sg-turno__inner{grid-template-columns:72px 1fr auto;align-items:start;gap:1.25rem}
}
.sg-turno__n{
  counter-increment:sgturno;font-family:var(--sg-display);font-weight:700;
  font-size:1.6rem;color:var(--sg-coral);line-height:1;
}
.sg-turno__n::before{content:counter(sgturno, decimal-leading-zero)}
.sg-turno__body h2{margin:0 0 .35rem;font-family:var(--sg-display);font-size:1.25rem}
.sg-turno__body p{margin:0;color:var(--sg-muted);max-width:40em}
.sg-turno__go{font-weight:700;text-decoration:none;color:var(--sg-coral-deep);font-size:.9rem;white-space:nowrap;padding-top:.2rem}

/* —— Full-bleed media strip —— */
.sg-strip{display:grid;gap:0}
@media(min-width:760px){.sg-strip{grid-template-columns:1.2fr .8fr}}
.sg-strip img{width:100%;height:220px;object-fit:cover}
@media(min-width:760px){.sg-strip img{height:100%;min-height:280px}}
.sg-strip__copy{padding:1.5rem 1.25rem;background:var(--sg-rail);color:#d7e8e4;display:flex;flex-direction:column;justify-content:center}
.sg-strip__copy h2{margin:0 0 .5rem;font-family:var(--sg-display);font-size:1.35rem;color:#fff}
.sg-strip__copy p{margin:0;opacity:.9;font-size:.95rem}

/* —— Feed (news) —— */
.sg-section{padding:2rem 0}
.sg-section__head{margin-bottom:1.1rem}
.sg-section__head h2{margin:0;font-family:var(--sg-display);font-size:clamp(1.3rem,2.4vw,1.7rem)}
.sg-section__head p{margin:.35rem 0 0;color:var(--sg-muted)}

.sg-feed{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--sg-line)}
.sg-news-list{display:flex;flex-direction:column}
.sg-news-card{
  display:grid;gap:.35rem .9rem;padding:1rem 0;
  border-bottom:1px solid var(--sg-line);background:transparent;border-radius:0;
  grid-template-columns:1fr;
}
.sg-news-card.has-thumb{grid-template-columns:1fr}
@media(min-width:700px){
  .sg-news-card.has-thumb{grid-template-columns:96px 1fr;align-items:start}
}
.sg-news-card__media img{width:100%;height:72px;object-fit:cover;border-radius:4px}
@media(min-width:700px){.sg-news-card__media img{height:72px;width:96px}}
.sg-news-card__body{padding:0}
.sg-news-card__meta{display:flex;gap:.65rem;flex-wrap:wrap;font-size:.75rem;color:var(--sg-muted);margin:0 0 .25rem;font-variant-numeric:tabular-nums}
.sg-news-card__title{margin:0 0 .25rem;font-family:var(--sg-display);font-size:1.05rem;line-height:1.3}
.sg-news-card__title a{text-decoration:none;color:var(--sg-ink)}
.sg-news-card__title a:hover{color:var(--sg-coral-deep)}
.sg-news-card__excerpt{margin:0;color:var(--sg-muted);font-size:.9rem}
.sg-news-empty{padding:1rem 0;color:var(--sg-muted);border-bottom:1px dashed var(--sg-line)}

.sg-pager{margin-top:1.25rem;display:grid;gap:.5rem;justify-items:center}
.sg-pager__row{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:center}
.sg-pager__pages{display:flex;gap:.25rem;list-style:none;margin:0;padding:0}
.sg-pager__btn,.sg-pager__num{
  display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;
  padding:0 .45rem;border-radius:4px;border:1px solid var(--sg-line);background:#fff;
  color:var(--sg-ink);text-decoration:none;font-weight:700;font-size:.85rem;
}
.sg-pager__num.is-current{background:var(--sg-rail);color:#fff;border-color:var(--sg-rail)}
.sg-pager__btn.is-disabled{opacity:.4}
.sg-pager__gap{padding:.3rem;color:var(--sg-muted)}
.sg-pager__status{font-size:.78rem;color:var(--sg-muted)}

/* —— Inner pages —— */
.sg-page{padding:1.5rem 0 2.5rem}
.sg-crumb{font-size:.84rem;color:var(--sg-muted);margin:0 0 .85rem}
.sg-crumb a{text-decoration:none;font-weight:600;color:var(--sg-coral-deep)}
.sg-article__title{font-family:var(--sg-display);font-size:clamp(1.45rem,3vw,2rem);line-height:1.2;margin:0 0 .75rem;letter-spacing:-.02em}
.sg-lead-line{color:var(--sg-muted);font-size:1.02rem;border-left:3px solid var(--sg-coral);padding-left:.85rem;margin:0 0 1.25rem}
.sg-prose{max-width:40em}
.sg-prose h2{font-family:var(--sg-display);font-size:1.25rem;margin:1.5rem 0 .55rem}
.sg-prose h3{color:var(--sg-coral-deep);margin:1.1rem 0 .4rem}
.sg-prose p,.sg-prose li{color:var(--sg-muted)}
.sg-prose ol{padding-left:1.2rem}
.sg-figure{margin:1.15rem 0;border-radius:0;overflow:hidden;border:1px solid var(--sg-line);background:#0e1218}
.sg-figure img{width:100%;aspect-ratio:16/9;object-fit:cover}
.sg-figure figcaption{padding:.5rem .75rem;font-size:.82rem;color:var(--sg-muted);background:var(--sg-band)}
.sg-faq details{background:#fff;border:1px solid var(--sg-line);border-left:3px solid var(--sg-coral);border-radius:0;padding:.85rem 1rem;margin:0 0 .5rem}
.sg-faq summary{cursor:pointer;font-weight:700;color:var(--sg-ink)}
.sg-faq p{margin:.45rem 0 0;color:var(--sg-muted)}

.sg-news-hero{margin:.9rem 0 1.1rem;overflow:hidden;border:1px solid var(--sg-line)}
.sg-news-hero img{width:100%;aspect-ratio:16/9;object-fit:cover}
.sg-news-nav{display:grid;gap:.55rem;margin:1.5rem 0}
@media(min-width:700px){.sg-news-nav{grid-template-columns:1fr 1fr}}
.sg-news-nav a{display:block;padding:.85rem;border:1px solid var(--sg-line);border-left:3px solid var(--sg-coral);text-decoration:none;color:inherit;background:#fff}
.sg-news-nav a span{display:block;font-size:.75rem;color:var(--sg-muted);margin-bottom:.2rem}
.sg-news-nav a strong{font-size:.92rem}
.sg-news-related{margin:1.35rem 0;padding:1rem 0;border-top:1px solid var(--sg-line)}
.sg-news-related h2{margin:0 0 .55rem;font-family:var(--sg-display);font-size:1.1rem}
.sg-byline{font-weight:600;color:var(--sg-coral-deep)}
.sg-week-digest{margin:.5rem 0}

.sg-foot{
  margin-top:auto;padding:2rem 0 2.25rem;background:var(--sg-rail);color:#9eb8b2;
  border-top:3px solid var(--sg-coral);
}
.sg-foot a{color:#fff;text-decoration:none}
.sg-foot__grid{display:grid;gap:1.25rem}
@media(min-width:760px){.sg-foot__grid{grid-template-columns:1.4fr 1fr 1fr}}
.sg-foot__brand{font-family:var(--sg-display);font-size:1.25rem;color:#fff;margin:0 0 .4rem}
.sg-foot h3{margin:0 0 .5rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--sg-coral)}
.sg-foot ul{list-style:none;margin:0;padding:0}
.sg-foot li{margin:.28rem 0}
.sg-foot__meta{margin-top:1.35rem;padding-top:.85rem;border-top:1px solid rgba(158,184,178,.3);font-size:.78rem;opacity:.9}

/* no fixed dock — intentional chrome fingerprint */

/* --- CTA visibility (skin-matched) --- */
.sg-cta-rail {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 90;
  pointer-events: none;
}
.sg-cta-rail__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--sg-coral);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  border: 0;
}
.sg-cta-rail__btn:hover { filter: brightness(1.06); }
.sg-cta-rail__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 720px) {
  .sg-cta-rail {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
  .sg-cta-rail__btn { width: 100%; border-radius: 0.85rem; }
}
.sg-cta-mid {
  margin: 1.1rem 0 1.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.sg-cta-mid__btn {
  display: inline-flex !important;
  min-height: 2.6rem;
  padding: 0.7rem 1.35rem;
  font-weight: 700;
  text-decoration: none !important;
}
/* 若主按钮类未覆盖底色，给 mid 一个皮肤底 */
a.sg-cta-mid__btn:not([class*="--solid"]):not([class*="-cta"]):not([class*="--navy"]):not([class*="--teal"]):not([class*="--coral"]):not([class*="--forest"]) {
  color: #fff !important;
  background: var(--sg-coral);
  border-radius: 999px;
  border: 0;
  padding: 0.7rem 1.35rem;
}
.sg-btn--cta-vis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--sg-coral);
  border: 0;
}
