/* =========================================================
   Dr. Austin — Science Pages (Factory / Ingredients / Verification)
   Visual references: Factory, Ingredients, Verification second-level pages
   ========================================================= */

.sc-main {
  background: linear-gradient(180deg, #fdfaec 0%, #fbf5dd 100%);
}
.sc-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0 120px;
}

/* ---------- Breadcrumb ---------- */
.sc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 13px;
}
.sc-breadcrumb a { color: var(--muted); transition: color .2s ease; }
.sc-breadcrumb a:hover { color: var(--navy); }
.crumb-sep { opacity: .55; }

/* ---------- Shared head ---------- */
.sc-head { text-align: center; margin-bottom: 52px; }
.sc-head h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 600;
}
.sc-head h1 em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.sc-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Check list / address ---------- */
.sc-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}
.sc-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #43537b;
  font-size: 14px;
  font-weight: 700;
}
.sc-checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  stroke-width: 3;
}
.sc-address {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.sc-address strong { color: var(--navy); }

/* =========================================================
   FACTORY PAGE
   ========================================================= */

/* US facility */
.sc-usfac {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 48px 100px 48px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 50px;
}
.usfac-media {
  border-radius: var(--r-md);
  overflow: hidden;
}
.usfac-media svg { width: 100%; height: auto; display: block; }
.usfac-body h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}
.sc-sub {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Singapore center */
.sc-sg {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 48px 48px 100px 48px;
  border-bottom: 1px solid var(--line-2);
}
.sg-body h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}
.sc-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.sg-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.sg-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #eef1f6;
}
.sg-tile svg { width: 100%; height: auto; display: block; }
.sg-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(18, 35, 79, 0.85);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
}

/* Accreditation */
.sc-accred {
  padding: 56px 40px 60px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--yellow-soft) 0%, var(--cream-2) 100%);
}
.sc-accred h2 {
  margin: 0 0 44px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
}
.accred-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.accred {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.accred-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--yellow-strong);
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}
.accred-name {
  min-height: 34px;
  color: #43537b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.accred-desc {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* =========================================================
   INGREDIENTS PAGE
   ========================================================= */

.ing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.ing-card {
  padding: 26px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  min-height: 200px;
}
.ing-top h3 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
}
.ing-img {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(150deg, #1d2d59 0%, #2f4a8f 100%);
}
.ing-initials {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}
.ing-pill {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}
.ing-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* =========================================================
   VERIFICATION PAGE
   ========================================================= */

.vf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.vf-tab {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--line);
  color: #43537b;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.vf-tab:hover { border-color: var(--yellow-strong); }
.vf-tab.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

.vf-active {
  padding: 44px 44px 52px;
  border-radius: var(--r-lg);
  background:radial-gradient(circle at 50% 70%, rgba(255, 233, 133, 0.5), rgba(255, 255, 255, 0) 100%),
    var(--white);
  margin-bottom: 64px;
}
.vf-prod-name {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  text-align: left;
}
.vf-clear {
  margin: 0 0 8px;
  text-align: left;
  color: #1d7a44;
  font-size: 14px;
  font-weight: 600;
}
.vf-purpose {
  margin: 0 auto 36px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.vf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vf-card {
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}
.vf-card-head em {
  flex: none;
  padding: 5px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}
.vf-card h3 {
  margin: 18px 18px 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.vf-desc {
  margin: 0 18px 8px;
  color: #5a6788;
  font-size: 12.5px;
  line-height: 1.65;
}
.vf-meta {
  margin: 0 18px 10px;
  color: #7a86a3;
  font-size: 11.5px;
  line-height: 1.7;
}
.vf-result {
  margin: 0 18px 16px;
  color: #1d7a44;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}
.vf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid var(--line-2);
}
.vf-card-foot a {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vf-card-foot a:hover { color: var(--yellow-strong); }
.vf-passed {
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}

.vf-about { margin-bottom: 44px; }
.vf-about h2 {
  margin: 0 0 16px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
}
.vf-about p {
  max-width: 90%;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.vf-guide {
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}
.vf-guide p {
  color: #43537b;
  font-size: 12px;
  line-height: 1.8;
}
.vf-guide::before {
  content: "";
  width:100px;
  height:5px;
  background-color: var(--yellow-strong);
  display: block;
  margin:40px auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .sc-usfac, .sc-sg { gap: 36px; padding: 36px 36px 80px 36px; }
  .accred-row { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
}

@media (max-width: 900px) {
  .sc-inner { padding: 30px 0 64px; }
  .sc-usfac, .sc-sg { grid-template-columns: 1fr; padding: 28px 28px 50px 28px; margin-bottom: 64px; }
  .sg-media { grid-template-columns: repeat(2, 1fr); }
  .vf-active { padding: 32px 22px 40px; }
  .vf-grid { grid-template-columns: 1fr; gap: 18px; }
  .accred-row { grid-template-columns: repeat(2, 1fr); }
  .ing-grid { gap: 18px; }
}

@media (max-width: 700px) {
  .ing-grid { grid-template-columns: 1fr; }
  .ing-card { padding: 20px 22px; }
}

@media (max-width: 520px) {
  .sc-head h1 { font-size: 26px; }
  .sc-usfac, .sc-sg { padding: 20px 20px 50px 20px; margin-bottom: 64px; }
  .sg-media { grid-template-columns: 1fr; }
  .accred-row { grid-template-columns: 1fr; }
  .accred-name { min-height: 0; }
  .ing-top h3 { font-size: 17px; }
  .ing-img { width: 72px; height: 72px; }
  .vf-tabs { gap: 8px; }
  .vf-tab { padding: 10px 16px; font-size: 12px; }
  .vf-card-head { flex-wrap: wrap; }
}
