/*
 * Source Foshan content remediation pack
 * Scope: every rule lives below .sf-content-pack so it can be added to the
 * current theme without changing legacy page layouts.
 */

.sf-content-pack {
  --sfcp-red: #c8102e;
  --sfcp-red-dark: #991127;
  --sfcp-ink: #1f2328;
  --sfcp-muted: #62676e;
  --sfcp-line: #dedbd5;
  --sfcp-warm: #f6f1e8;
  --sfcp-paper: #fffdf9;
  --sfcp-sage: #dfe9e2;
  --sfcp-blue: #e3edf4;
  --sfcp-radius: 18px;
  color: var(--sfcp-ink);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(52px, 7vw, 96px) clamp(20px, 4vw, 52px);
}

.sf-content-pack *,
.sf-content-pack *::before,
.sf-content-pack *::after { box-sizing: border-box; }

.sf-content-pack a {
  color: var(--sfcp-red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sf-content-pack img {
  display: block;
  height: auto;
  max-width: 100%;
}

.sf-content-pack__intro {
  align-items: end;
  border-bottom: 1px solid var(--sfcp-line);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  margin-bottom: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(42px, 6vw, 72px);
}

.sf-content-pack__eyebrow {
  color: var(--sfcp-red);
  display: block;
  font: 800 12px/1.2 "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: .13em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.sf-content-pack__intro h2,
.sf-content-pack__page-title {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
  margin: 0;
  max-width: 18ch;
}

.sf-content-pack__summary {
  color: #41464d;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin: 24px 0 0;
  max-width: 62ch;
}

.sf-content-pack__figure {
  background: #ece8e1;
  border-radius: var(--sfcp-radius);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.sf-content-pack__figure img {
  aspect-ratio: 8 / 5;
  object-fit: cover;
  width: 100%;
}

.sf-content-pack__figure figcaption {
  background: rgba(31, 35, 40, .94);
  bottom: 0;
  color: #fff;
  font-size: 13px;
  left: 0;
  line-height: 1.45;
  padding: 12px 16px;
  position: absolute;
  right: 0;
}

.sf-content-pack__gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(36px, 6vw, 72px) 0;
}

.sf-content-pack__gallery > .sf-content-pack__figure,
.sf-content-pack__gallery > .wp-block-image {
  margin: 0;
}

.sf-content-pack__gallery > :only-child {
  grid-column: 1 / -1;
  max-width: 860px;
  width: 100%;
}

.sf-content-pack__section {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.5fr);
  padding: clamp(44px, 7vw, 84px) 0;
}

.sf-content-pack__section + .sf-content-pack__section {
  border-top: 1px solid var(--sfcp-line);
}

.sf-content-pack__section-head {
  align-self: start;
  position: sticky;
  top: 32px;
}

.sf-content-pack__section-index {
  color: var(--sfcp-red);
  display: block;
  font: 800 13px/1 "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.sf-content-pack__section h2,
.sf-content-pack__section h3 {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0;
}

.sf-content-pack__section h2 { font-size: clamp(28px, 3.6vw, 46px); }
.sf-content-pack__section h3 { font-size: clamp(22px, 2.5vw, 30px); margin-top: 34px; }

.sf-content-pack__section-lead {
  color: var(--sfcp-muted);
  margin: 18px 0 0;
}

.sf-content-pack__body > :first-child { margin-top: 0; }
.sf-content-pack__body > :last-child { margin-bottom: 0; }
.sf-content-pack__body p { margin: 0 0 22px; }

.sf-content-pack__checklist,
.sf-content-pack__steps {
  counter-reset: sfcp-item;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 28px 0;
  padding: 0;
}

.sf-content-pack__checklist li,
.sf-content-pack__steps li {
  background: var(--sfcp-paper);
  border: 1px solid var(--sfcp-line);
  border-radius: 12px;
  padding: 16px 18px 16px 52px;
  position: relative;
}

.sf-content-pack__checklist li::before {
  border: 2px solid var(--sfcp-red);
  border-radius: 4px;
  content: "";
  height: 18px;
  left: 19px;
  position: absolute;
  top: 19px;
  width: 18px;
}

.sf-content-pack__steps li { counter-increment: sfcp-item; }
.sf-content-pack__steps li::before {
  color: var(--sfcp-red);
  content: counter(sfcp-item, decimal-leading-zero);
  font: 800 13px/1 "Plus Jakarta Sans", Arial, sans-serif;
  left: 17px;
  position: absolute;
  top: 21px;
}

.sf-content-pack__steps strong { display: block; margin-bottom: 3px; }
.sf-content-pack__steps span { color: var(--sfcp-muted); }

.sf-content-pack__table-wrap {
  margin: 30px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sf-content-pack__table {
  border-collapse: collapse;
  font-size: 15px;
  min-width: 680px;
  width: 100%;
}

.sf-content-pack__table caption {
  color: var(--sfcp-muted);
  caption-side: bottom;
  font-size: 13px;
  padding-top: 10px;
  text-align: left;
}

.sf-content-pack__table th,
.sf-content-pack__table td {
  border-bottom: 1px solid var(--sfcp-line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.sf-content-pack__table th {
  background: var(--sfcp-ink);
  color: #fff;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sf-content-pack__table tbody tr:nth-child(even) td { background: #faf8f4; }

.sf-content-pack__callout {
  background: var(--sfcp-warm);
  border-left: 5px solid var(--sfcp-red);
  border-radius: 0 14px 14px 0;
  margin: 28px 0;
  padding: 20px 22px;
}

.sf-content-pack__callout--evidence { background: var(--sfcp-sage); }
.sf-content-pack__callout--warning { background: #fff0d7; border-color: #b45e00; }
.sf-content-pack__callout strong { display: block; margin-bottom: 4px; }
.sf-content-pack__callout p { margin: 0; }

.sf-content-pack__faq { border-top: 1px solid var(--sfcp-line); }
.sf-content-pack__faq details { border-bottom: 1px solid var(--sfcp-line); padding: 18px 0; }
.sf-content-pack__faq summary { cursor: pointer; font-weight: 800; list-style: none; padding-right: 40px; position: relative; }
.sf-content-pack__faq summary::-webkit-details-marker { display: none; }
.sf-content-pack__faq summary::after { color: var(--sfcp-red); content: "+"; font-size: 24px; position: absolute; right: 4px; top: -5px; }
.sf-content-pack__faq details[open] summary::after { content: "−"; }
.sf-content-pack__faq p { color: var(--sfcp-muted); margin: 14px 0 0; }

.sf-content-pack__links {
  background: var(--sfcp-ink);
  border-radius: var(--sfcp-radius);
  color: #fff;
  margin-top: clamp(52px, 7vw, 88px);
  padding: clamp(28px, 4vw, 48px);
}

.sf-content-pack__links h2 { color: #fff; font: 800 clamp(25px, 3vw, 38px)/1.05 "Bricolage Grotesque", Arial, sans-serif; margin: 0 0 24px; }
.sf-content-pack__link-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-content-pack__link-grid a { background: #30353b; border-radius: 12px; color: #fff; display: block; padding: 16px; text-decoration: none; }
.sf-content-pack__link-grid a:hover { background: var(--sfcp-red); }
.sf-content-pack__link-grid strong { display: block; }
.sf-content-pack__link-grid span { color: #c9cdd1; display: block; font-size: 13px; margin-top: 4px; }

.sf-content-pack__gate {
  background: repeating-linear-gradient(-45deg, #fff7e8, #fff7e8 10px, #fff1d5 10px, #fff1d5 20px);
  border: 2px solid #b45e00;
  border-radius: var(--sfcp-radius);
  margin-bottom: 48px;
  padding: 22px;
}
.sf-content-pack__gate strong { display: block; font-size: 20px; }
.sf-content-pack__gate p { margin: 6px 0 0; }

.sf-content-pack__answer {
  background: #fff;
  border: 1px solid var(--sfcp-line);
  border-left: 5px solid var(--sfcp-red);
  border-radius: 0 14px 14px 0;
  margin-top: 24px;
  padding: 20px 22px;
}
.sf-content-pack__answer > strong {
  color: var(--sfcp-red);
  display: block;
  font: 800 12px/1.2 "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.sf-content-pack__answer p { margin: 0; }

.sf-content-pack__query-map {
  background: var(--sfcp-sage);
  border-radius: var(--sfcp-radius);
  margin: -10px 0 clamp(48px, 7vw, 78px);
  padding: clamp(24px, 4vw, 38px);
}
.sf-content-pack__query-map h2 {
  font: 800 clamp(23px, 3vw, 34px)/1.08 "Bricolage Grotesque", Arial, sans-serif;
  margin: 0 0 18px;
}
.sf-content-pack__query-map ul {
  display: grid;
  gap: 10px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 20px;
}

.sf-content-pack__verification {
  border-top: 1px solid var(--sfcp-line);
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.45fr);
  margin-top: clamp(62px, 9vw, 112px);
  padding-top: clamp(42px, 6vw, 72px);
}
.sf-content-pack__verification h3 { margin: 28px 0 10px; }
.sf-content-pack__verification li { margin-bottom: 8px; }
.sf-content-pack__review-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sf-content-pack__review-meta span {
  background: #f6f4ef;
  border: 1px solid var(--sfcp-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.sf-content-pack__review-meta strong { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.sf-content-pack__sources span { color: var(--sfcp-muted); display: block; font-size: 13px; }
.sf-content-pack__method { border-top: 1px solid var(--sfcp-line); color: var(--sfcp-muted); margin-top: 26px; padding-top: 18px; }

.sf-content-pack__source-note {
  color: var(--sfcp-muted);
  font-size: 13px;
  margin-top: 42px;
}

@media (max-width: 820px) {
  .sf-content-pack__intro,
  .sf-content-pack__section,
  .sf-content-pack__verification { grid-template-columns: 1fr; }
  .sf-content-pack__gallery { grid-template-columns: 1fr; }
  .sf-content-pack__gallery > :only-child { grid-column: auto; max-width: none; }
  .sf-content-pack__section-head { position: static; }
  .sf-content-pack__link-grid { grid-template-columns: 1fr; }
  .sf-content-pack__intro h2,
  .sf-content-pack__page-title { max-width: none; }
  .sf-content-pack__query-map ul,
  .sf-content-pack__review-meta { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .sf-content-pack { font-size: 16px; padding-left: 18px; padding-right: 18px; }
  .sf-content-pack__intro { gap: 24px; }
  .sf-content-pack__figure figcaption { font-size: 12px; position: static; }
}

@media print {
  .sf-content-pack { max-width: none; padding: 20px; }
  .sf-content-pack__section-head { position: static; }
  .sf-content-pack__section { break-inside: avoid; }
}

/* Ordinary question articles: E01-E13 completion batch */
.sf-content-pack__question {
  border-bottom: 1px solid var(--sfcp-line);
  padding: 18px 0;
}
.sf-content-pack__question:first-child { border-top: 1px solid var(--sfcp-line); }
.sf-content-pack__question h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  margin: 0;
}
.sf-content-pack__question p {
  color: var(--sfcp-muted);
  margin: 10px 0 0;
}

/* Editor-managed guides render Gutenberg supplements inside an existing band. */
.sf-guide-body {
  --sfcp-red: #c8102e;
  --sfcp-red-dark: #991127;
  --sfcp-ink: #1f2328;
  --sfcp-muted: #62676e;
  --sfcp-line: #dedbd5;
  --sfcp-warm: #f6f1e8;
  --sfcp-paper: #fffdf9;
  --sfcp-sage: #dfe9e2;
  --sfcp-blue: #e3edf4;
  --sfcp-radius: 18px;
}
.sf-guide-body .sf-content-pack--embedded {
  margin: 0;
  max-width: none;
  padding: clamp(28px, 4vw, 52px) 0;
}
