/* ==========================================================================
   DRUGLY — SGK Geri Ödeme & SUT Merkezi
   Scoped styles for templates/sgk/*.html (every selector is .sgk-*).
   Builds on the base.html "Apothecary Modern" tokens (--ink, --paper, --teal,
   --coral, --acc-sut, --success/--warning/--danger, --r-*, --shadow-*).
   ========================================================================== */

:root {
  --sgk-green: #2D7A4D;
  --sgk-green-bg: #E9F4ED;
  --sgk-green-line: #B9DCC6;
  --sgk-amber: #9A5B0C;
  --sgk-amber-bg: #FCF2E2;
  --sgk-amber-line: #EDCF9E;
  --sgk-red: #B03442;
  --sgk-red-bg: #FBEBED;
  --sgk-red-line: #EDBDC3;
  --sgk-grey: #5B6975;
  --sgk-grey-bg: #EEF1F3;
  --sgk-grey-line: #D6DCE1;
  --sgk-blue: #3C5A99;
  --sgk-blue-bg: #EDF1FA;
  --sgk-dark: #3A4652;
  --sgk-dark-bg: #E6E9EC;
  --sgk-accent: var(--acc-sut, #9C2935);
  --sgk-accent-tint: var(--acc-sut-tint, rgba(156, 41, 53, 0.08));
  --sgk-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sgk-max: 1180px;
}

/* ------------------------------------------------------------------ layout */
.sgk-page {
  max-width: var(--sgk-max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.sgk-page--narrow { max-width: 920px; }
.sgk-stack > * + * { margin-top: 20px; }
.sgk-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sgk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}
.sgk-mono { font-family: var(--sgk-mono); font-size: 0.86em; letter-spacing: 0.01em; }
.sgk-muted { color: var(--ink-faint); }
.sgk-soft { color: var(--ink-soft); }
.sgk-nowrap { white-space: nowrap; }
.sgk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------- breadcrumb */
.sgk-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 0.84rem; color: var(--ink-faint); margin: 0 0 16px;
}
.sgk-crumbs a { color: var(--ink-soft); font-weight: 500; }
.sgk-crumbs a:hover { color: var(--teal); }
.sgk-crumbs .sep { opacity: .55; }
.sgk-crumbs strong { color: var(--ink); font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- headings */
.sgk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sgk-accent);
}
.sgk-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.sgk-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15; letter-spacing: -0.01em; font-weight: 600;
  color: var(--ink); margin: 8px 0 8px;
}
.sgk-h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem; font-weight: 600; color: var(--ink);
  margin: 0; display: flex; align-items: center; gap: 10px; line-height: 1.25;
}
.sgk-h2 > i { color: var(--sgk-accent); font-size: 1rem; }
.sgk-h2 .sgk-count {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700;
  background: var(--paper-deep); color: var(--ink-soft); border-radius: 999px; padding: 2px 9px;
}
.sgk-h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 0; font-family: 'Inter', sans-serif; }
.sgk-lead { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; margin: 0; max-width: 70ch; }
.sgk-section-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin: 0 0 14px;
}
.sgk-section-head .sgk-link-more { font-size: 0.86rem; font-weight: 600; }

/* ---------------------------------------------------------- cards */
.sgk-card {
  background: var(--surface, #fff);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.sgk-card--flush { padding: 0; overflow: hidden; }
.sgk-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--rule-soft);
}
.sgk-card__body { padding: 16px 20px; }
.sgk-card__foot {
  padding: 12px 20px; border-top: 1px solid var(--rule-soft); background: var(--teal-fade);
  font-size: 0.86rem;
}
.sgk-section { margin-top: 30px; scroll-margin-top: calc(var(--navbar-height, 68px) + 16px); }

/* ---------------------------------------------------------- buttons */
.sgk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 600; font-size: 0.9rem; line-height: 1.2;
  border: 1px solid var(--rule); background: var(--surface, #fff); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: var(--transition-smooth);
  white-space: nowrap;
}
.sgk-btn:hover { border-color: var(--ink-faint); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.sgk-btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }
.sgk-btn--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.sgk-btn--primary:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: #fff; }
.sgk-btn--accent { background: var(--sgk-accent); border-color: var(--sgk-accent); color: #fff; }
.sgk-btn--accent:hover { background: #7f1f2a; border-color: #7f1f2a; color: #fff; }
.sgk-btn--ghost { background: transparent; }
.sgk-btn--sm { padding: 7px 12px; font-size: 0.82rem; border-radius: var(--r-sm); }
.sgk-btn--lg { padding: 13px 22px; font-size: 1rem; }
.sgk-btn--block { width: 100%; }
.sgk-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------- verdict badge */
.sgk-verdict {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; font-weight: 700; line-height: 1.15;
  border: 1px solid transparent; white-space: nowrap; max-width: 100%;
}
.sgk-verdict__label { overflow: hidden; text-overflow: ellipsis; }
.sgk-verdict--sm { font-size: 0.74rem; padding: 3px 9px; gap: 5px; }
.sgk-verdict--md { font-size: 0.84rem; padding: 5px 12px; }
.sgk-verdict--lg { font-size: 1rem; padding: 8px 16px; gap: 9px; }
.sgk-verdict--lg i { font-size: 1.1em; }
.sgk-verdict--green { background: var(--sgk-green-bg); color: var(--sgk-green); border-color: var(--sgk-green-line); }
.sgk-verdict--amber { background: var(--sgk-amber-bg); color: var(--sgk-amber); border-color: var(--sgk-amber-line); }
.sgk-verdict--red   { background: var(--sgk-red-bg);   color: var(--sgk-red);   border-color: var(--sgk-red-line); }
.sgk-verdict--grey  { background: var(--sgk-grey-bg);  color: var(--sgk-grey);  border-color: var(--sgk-grey-line); }

/* ---------------------------------------------------------- chips */
.sgk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
  background: var(--sgk-grey-bg); color: var(--sgk-grey);
}
.sgk-chip i { font-size: 0.7em; }
.sgk-chip--green { background: var(--sgk-green-bg); color: var(--sgk-green); }
.sgk-chip--red   { background: var(--sgk-red-bg); color: var(--sgk-red); }
.sgk-chip--amber { background: var(--sgk-amber-bg); color: var(--sgk-amber); }
.sgk-chip--dark  { background: var(--sgk-dark-bg); color: var(--sgk-dark); }
.sgk-chip--blue  { background: var(--sgk-blue-bg); color: var(--sgk-blue); }
.sgk-chip--teal  { background: var(--teal-tint); color: var(--teal); }
.sgk-chip--accent { background: var(--sgk-accent-tint); color: var(--sgk-accent); }
.sgk-chip--outline { background: transparent; border: 1px solid var(--rule); color: var(--ink-soft); }
.sgk-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.sgk-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 2px 8px; background: var(--surface, #fff);
  white-space: nowrap;
}
.sgk-tag b { color: var(--ink); font-weight: 700; }
a.sgk-tag:hover { border-color: var(--teal-soft); color: var(--teal); }

/* reçete türü */
.sgk-rx {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--rule); background: var(--surface, #fff); color: var(--ink-soft);
}
.sgk-rx__dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink-faint); flex: none; }
.sgk-rx--red    { border-color: #EFC2C7; color: #A32635; } .sgk-rx--red .sgk-rx__dot { background: #D1293D; border-color: #D1293D; }
.sgk-rx--green  { border-color: #BFE0C8; color: #276B43; } .sgk-rx--green .sgk-rx__dot { background: #2E9A55; border-color: #2E9A55; }
.sgk-rx--orange { border-color: #F2D0A8; color: #A65A0B; } .sgk-rx--orange .sgk-rx__dot { background: #EE8A1E; border-color: #EE8A1E; }
.sgk-rx--purple { border-color: #D9C8EA; color: #6A3B96; } .sgk-rx--purple .sgk-rx__dot { background: #8350B8; border-color: #8350B8; }

/* ---------------------------------------------------------- citation */
.sgk-cite { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 0.84rem; }
.sgk-cite__ref {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap;
  color: var(--sgk-accent); background: var(--sgk-accent-tint);
  padding: 2px 8px; border-radius: var(--r-sm); font-size: 0.8rem;
}
a.sgk-cite__ref:hover { color: #fff; background: var(--sgk-accent); }
.sgk-cite__ref i { font-size: 0.85em; opacity: .85; }
.sgk-cite__quote { color: var(--ink-soft); font-style: italic; quotes: "“" "”"; }

/* section link */
.sgk-sec {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  text-decoration: none; color: var(--ink);
}
.sgk-sec__code {
  font-weight: 700; color: var(--sgk-accent); white-space: nowrap;
  background: var(--sgk-accent-tint); border-radius: var(--r-sm); padding: 1px 8px; font-size: 0.86em;
}
.sgk-sec__bent { font-weight: 600; opacity: .8; }
.sgk-sec__title { color: var(--ink); font-weight: 500; }
.sgk-sec:hover .sgk-sec__title { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.sgk-sec:hover .sgk-sec__code { background: var(--sgk-accent); color: #fff; }

/* ---------------------------------------------------------- freshness */
.sgk-fresh {
  background: var(--surface, #fff); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 16px 20px; box-shadow: var(--shadow-sm); font-size: 0.88rem;
}
.sgk-fresh__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sgk-fresh__title { font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.sgk-fresh__run { margin-left: auto; font-family: var(--sgk-mono); font-size: 0.74rem; color: var(--ink-faint); }
.sgk-fresh__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sgk-green); flex: none;
  box-shadow: 0 0 0 4px rgba(45, 122, 77, 0.14);
}
.sgk-fresh__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 22px; margin: 0; }
.sgk-fresh__grid dt { font-size: 0.74rem; font-weight: 600; color: var(--ink-faint); display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.sgk-fresh__grid dt i { width: 14px; text-align: center; color: var(--teal-soft); }
.sgk-fresh__grid dd { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.4; }
.sgk-fresh__grid dd small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; margin-top: 2px; }
.sgk-fresh__pending {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--sgk-amber-bg); color: var(--sgk-amber); display: flex; gap: 10px; align-items: flex-start; font-weight: 500;
}
.sgk-fresh__pending a { font-weight: 700; color: inherit; text-decoration: underline; }
.sgk-fresh--compact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 9px 14px; border-radius: var(--r-md); box-shadow: none; font-size: 0.8rem; color: var(--ink-soft);
}
.sgk-fresh--compact .sgk-fresh__dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(45, 122, 77, 0.14); }
.sgk-fresh__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sgk-fresh__item i { color: var(--ink-faint); font-size: 0.85em; }
.sgk-fresh--empty { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); }

/* ---------------------------------------------------------- disclaimer */
.sgk-disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 28px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--paper-deep); color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55;
  border: 1px dashed var(--rule);
}
.sgk-disclaimer > i { color: var(--ink-faint); margin-top: 3px; }
.sgk-disclaimer p { margin: 0; }
.sgk-disclaimer a { font-weight: 600; }

/* ---------------------------------------------------------- empty state */
.sgk-empty {
  text-align: center; padding: 40px 24px; border-radius: var(--r-lg); margin-bottom: 20px;
  background: var(--surface, #fff); border: 1px dashed var(--rule);
}
.sgk-empty__icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--paper-deep); color: var(--ink-faint); font-size: 1.3rem;
}
.sgk-empty h3 { font-size: 1.2rem; margin: 0 0 6px; }
.sgk-empty p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 16px; font-size: 0.93rem; }

/* ---------------------------------------------------------- event row */
.sgk-evlist { display: flex; flex-direction: column; }
.sgk-evlist > .sgk-ev + .sgk-ev { border-top: 1px solid var(--rule-soft); }
.sgk-ev { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; }
.sgk-card__body > .sgk-evlist { margin: -6px 0; }
.sgk-ev__icon {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 0.8rem; background: var(--sgk-grey-bg); color: var(--sgk-grey);
}
.sgk-ev--green .sgk-ev__icon { background: var(--sgk-green-bg); color: var(--sgk-green); }
.sgk-ev--red .sgk-ev__icon   { background: var(--sgk-red-bg);   color: var(--sgk-red); }
.sgk-ev--amber .sgk-ev__icon { background: var(--sgk-amber-bg); color: var(--sgk-amber); }
.sgk-ev--blue .sgk-ev__icon  { background: var(--sgk-blue-bg);  color: var(--sgk-blue); }
.sgk-ev--dark .sgk-ev__icon  { background: var(--sgk-dark-bg);  color: var(--sgk-dark); }
.sgk-ev__body { flex: 1 1 auto; min-width: 0; }
.sgk-ev__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sgk-ev__type { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.sgk-ev--green .sgk-ev__type { color: var(--sgk-green); }
.sgk-ev--red .sgk-ev__type { color: var(--sgk-red); }
.sgk-ev--amber .sgk-ev__type { color: var(--sgk-amber); }
.sgk-ev--blue .sgk-ev__type { color: var(--sgk-blue); }
.sgk-ev__soon { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--coral-tint); color: var(--coral-deep); border-radius: 999px; padding: 1px 7px; }
.sgk-ev__list { font-size: 0.66rem; font-weight: 700; background: var(--paper-deep); color: var(--ink-soft); border-radius: 999px; padding: 1px 7px; }
.sgk-ev__name { font-weight: 600; font-size: 0.92rem; line-height: 1.35; margin-top: 1px; overflow-wrap: anywhere; }
.sgk-ev__name a { color: var(--ink); }
.sgk-ev__name a:hover { color: var(--teal); }
.sgk-ev__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.76rem; color: var(--ink-faint); margin-top: 2px; }
.sgk-ev__meta i { margin-right: 4px; }
.sgk-ev__date { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.sgk-ev__eff { font-weight: 700; font-size: 0.86rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sgk-ev__pub { font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; }

/* ---------------------------------------------------------- alert banner */
.sgk-alert {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; margin-bottom: 18px;
}
.sgk-alert__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 0.95rem; }
.sgk-alert__title { font-weight: 700; margin: 0 0 2px; font-size: 0.96rem; }
.sgk-alert p { margin: 0; font-size: 0.88rem; }
.sgk-alert ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.88rem; }
.sgk-alert--amber { background: var(--sgk-amber-bg); border-color: var(--sgk-amber-line); color: #6E4208; }
.sgk-alert--amber .sgk-alert__icon { background: #F6DDB2; color: var(--sgk-amber); }
.sgk-alert--red { background: var(--sgk-red-bg); border-color: var(--sgk-red-line); color: #7D1F2A; }
.sgk-alert--red .sgk-alert__icon { background: #F4CBD0; color: var(--sgk-red); }
.sgk-alert--green { background: var(--sgk-green-bg); border-color: var(--sgk-green-line); color: #1E5535; }
.sgk-alert--green .sgk-alert__icon { background: #CBE7D5; color: var(--sgk-green); }
.sgk-alert--info { background: var(--teal-fade); border-color: var(--teal-tint); color: var(--ink); }
.sgk-alert--info .sgk-alert__icon { background: var(--teal-tint); color: var(--teal); }

/* ==========================================================================
   HERO + SEARCH (hub & search pages)
   ========================================================================== */
.sgk-hero {
  position: relative;   /* no overflow:hidden — the typeahead dropdown must escape the band */
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(156, 41, 53, 0.55), transparent 60%),
    radial-gradient(700px 360px at -5% 120%, rgba(26, 139, 139, 0.35), transparent 60%),
    linear-gradient(160deg, #182836 0%, #0F1B26 100%);
  color: #fff;
  padding: 46px 20px 40px;
}
.sgk-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
}
.sgk-hero__inner { position: relative; z-index: 5; max-width: 880px; margin: 0 auto; text-align: center; }
.sgk-hero .sgk-eyebrow { color: #F3B7BE; }
.sgk-hero h1 {
  font-family: 'Fraunces', Georgia, serif; color: #fff;
  font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 600;
  margin: 12px 0 12px;
}
.sgk-hero h1 em { font-style: italic; color: #F6C9A9; }
.sgk-hero__sub { color: rgba(255,255,255,0.78); font-size: 1.02rem; max-width: 62ch; margin: 0 auto 26px; line-height: 1.6; }
.sgk-hero .sgk-fresh--compact {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.78);
  justify-content: center; margin: 18px auto 0; max-width: 820px;
}
.sgk-hero .sgk-fresh--compact strong { color: #fff; }
.sgk-hero .sgk-fresh__item i { color: rgba(255,255,255,0.5); }
.sgk-hero--slim { padding: 22px 20px 22px; }
.sgk-hero--slim .sgk-hero__inner { max-width: var(--sgk-max); text-align: left; }
.sgk-hero--slim .sgk-search { margin: 0; max-width: 820px; }

/* search box */
.sgk-search { position: relative; max-width: 780px; margin: 0 auto; text-align: left; }
.sgk-search__bar {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border-radius: 16px; padding: 6px;
  box-shadow: 0 18px 48px rgba(5, 12, 20, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
  transition: box-shadow .2s ease;
}
.sgk-search__bar:focus-within { box-shadow: 0 18px 48px rgba(5, 12, 20, 0.35), 0 0 0 4px rgba(26, 139, 139, 0.45); }
.sgk-search__icon { display: grid; place-items: center; width: 44px; color: var(--ink-faint); font-size: 1.05rem; flex: none; }
.sgk-search__input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 1.08rem; color: var(--ink); padding: 12px 6px; font-family: 'Inter', sans-serif;
}
.sgk-search__input::placeholder { color: var(--ink-faint); }
.sgk-search__input::-webkit-search-cancel-button { cursor: pointer; }
.sgk-search__scan, .sgk-search__go {
  flex: none; border: 0; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; transition: var(--transition-smooth);
}
.sgk-search__scan { background: var(--paper-deep); color: var(--ink); margin-right: 6px; }
.sgk-search__scan:hover { background: var(--rule); }
.sgk-search__go { background: var(--sgk-accent); color: #fff; }
.sgk-search__go:hover { background: #7f1f2a; }
.sgk-search--md .sgk-search__bar { border-radius: 12px; padding: 4px; box-shadow: 0 8px 26px rgba(5, 12, 20, 0.25); }
.sgk-search--md .sgk-search__input { font-size: 1rem; padding: 9px 4px; }
.sgk-search--md .sgk-search__scan, .sgk-search--md .sgk-search__go { border-radius: 9px; padding: 0 13px; }
.sgk-search__examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.sgk-search__examples a {
  color: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 3px 11px;
  background: rgba(255,255,255,0.04);
}
.sgk-search__examples a:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* typeahead dropdown */
.sgk-ta {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1050;
  background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow-xl); max-height: min(70vh, 560px); overflow-y: auto; text-align: left;
  display: none; overscroll-behavior: contain;
}
.sgk-ta.is-open { display: block; }
.sgk-ta__group { padding: 6px 0; }
.sgk-ta__group + .sgk-ta__group { border-top: 1px solid var(--rule-soft); }
.sgk-ta__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 6px 16px 4px; display: flex; justify-content: space-between;
}
.sgk-ta__opt {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer;
  color: var(--ink); text-decoration: none; border-left: 3px solid transparent;
}
.sgk-ta__opt:hover, .sgk-ta__opt.is-active { background: var(--teal-fade); border-left-color: var(--teal); color: var(--ink); }
.sgk-ta__ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-deep); color: var(--ink-soft); font-size: 0.82rem; }
.sgk-ta__main { flex: 1 1 auto; min-width: 0; }
.sgk-ta__title { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgk-ta__title mark { background: #FFF1B8; color: inherit; padding: 0 1px; border-radius: 2px; }
.sgk-ta__sub { font-size: 0.76rem; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgk-ta__side { flex: none; }
.sgk-ta__msg { padding: 16px; font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.sgk-ta__msg a { font-weight: 700; }
.sgk-ta__foot { padding: 10px 16px; border-top: 1px solid var(--rule-soft); font-size: 0.8rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 8px; background: var(--paper); }
.sgk-ta__foot kbd { font-family: var(--sgk-mono); font-size: 0.72rem; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; color: var(--ink-soft); }

/* scanner overlay */
.sgk-scan { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 18, 26, 0.72); backdrop-filter: blur(3px); }
.sgk-scan.is-open { display: flex; }
.sgk-scan__panel { width: 100%; max-width: 480px; background: var(--surface, #fff); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-xl); }
.sgk-scan__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); }
.sgk-scan__head h3 { margin: 0; font-size: 1.05rem; }
.sgk-scan__close { border: 0; background: var(--paper-deep); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--ink); }
.sgk-scan__view { background: #0F1B26; min-height: 280px; position: relative; }
.sgk-scan__view video { width: 100% !important; display: block; }
.sgk-scan__body { padding: 14px 18px 18px; font-size: 0.86rem; color: var(--ink-soft); }
.sgk-scan__status { margin: 0 0 10px; }
.sgk-scan__status.is-error { color: var(--sgk-red); font-weight: 600; }
.sgk-scan__manual { display: flex; gap: 8px; }
.sgk-scan__manual input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 9px 12px; font-family: var(--sgk-mono); font-size: 0.86rem; }

/* ---------------------------------------------------------- hub tiles */
.sgk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sgk-tile {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 20px 18px; border-radius: var(--r-lg);
  background: var(--surface, #fff); border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; transition: var(--transition-smooth); min-height: 150px;
}
.sgk-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.sgk-tile__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem;
  background: var(--teal-tint); color: var(--teal);
}
.sgk-tile--accent .sgk-tile__icon { background: var(--sgk-accent-tint); color: var(--sgk-accent); }
.sgk-tile--coral .sgk-tile__icon { background: var(--coral-tint); color: var(--coral-deep); }
.sgk-tile--edu .sgk-tile__icon { background: var(--acc-edu-tint); color: var(--acc-edu); }
.sgk-tile--calc .sgk-tile__icon { background: var(--acc-calc-tint); color: var(--acc-calc); }
.sgk-tile--pharm .sgk-tile__icon { background: var(--acc-pharm-tint); color: var(--acc-pharm); }
.sgk-tile__title { font-weight: 700; font-size: 1rem; margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.sgk-tile__title .sgk-chip { font-size: 0.66rem; padding: 1px 7px; }
.sgk-tile__desc { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.sgk-tile__meta { margin-top: auto; padding-top: 6px; font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); display: flex; justify-content: space-between; align-items: center; }
.sgk-tile__meta i.fa-arrow-right { transition: transform .2s ease; color: var(--teal); }
.sgk-tile:hover .sgk-tile__meta i.fa-arrow-right { transform: translateX(4px); }
.sgk-tile--feature { grid-row: span 1; background: linear-gradient(150deg, #fff 0%, #FBF4F4 100%); border-color: #EAD3D6; }

/* week summary */
.sgk-week-dates { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--ink-soft); }
.sgk-week-dates b { color: var(--ink); }
.sgk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.sgk-stat { border-radius: var(--r-md); padding: 10px 12px; background: var(--paper); border: 1px solid var(--rule-soft); }
.sgk-stat__n { font-size: 1.35rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.sgk-stat__l { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.sgk-stat--green .sgk-stat__n { color: var(--sgk-green); }
.sgk-stat--red .sgk-stat__n { color: var(--sgk-red); }
.sgk-stat--amber .sgk-stat__n { color: var(--sgk-amber); }
.sgk-stat--blue .sgk-stat__n { color: var(--sgk-blue); }
.sgk-stat.is-zero { opacity: .55; }

.sgk-mini-list { list-style: none; margin: 0; padding: 0; }
.sgk-mini-list li { padding: 10px 0; border-top: 1px solid var(--rule-soft); display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; }
.sgk-mini-list li:first-child { border-top: 0; padding-top: 2px; }

.sgk-admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: rgba(255,255,255,.85); font-size: 0.86rem;
}
.sgk-admin-bar .sgk-btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.sgk-admin-bar .sgk-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */
.sgk-results-summary { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 16px; }
.sgk-results-summary b { color: var(--ink); }
.sgk-results-summary + .sgk-section, .sgk-notlisted + .sgk-section, .sgk-kk + .sgk-section { margin-top: 8px; }
.sgk-plist { display: flex; flex-direction: column; gap: 10px; }
.sgk-prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-md); background: var(--surface, #fff);
  border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: var(--transition-smooth);
  border-left: 4px solid var(--sgk-grey-line);
}
.sgk-prow:hover { box-shadow: var(--shadow-md); border-color: var(--ink-faint); color: var(--ink); transform: translateY(-1px); }
.sgk-prow--green { border-left-color: var(--sgk-green); }
.sgk-prow--amber { border-left-color: #D8962F; }
.sgk-prow--red { border-left-color: var(--sgk-red); }
.sgk-prow__name { font-weight: 700; font-size: 0.98rem; line-height: 1.3; overflow-wrap: anywhere; }
.sgk-prow__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; align-items: center; }
.sgk-prow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.sgk-hitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sgk-hit {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface, #fff); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: var(--transition-smooth);
}
.sgk-hit:hover { box-shadow: var(--shadow-md); color: var(--ink); border-color: var(--teal-soft); }
.sgk-hit__ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.sgk-hit__title { font-weight: 700; font-size: 0.95rem; }
.sgk-hit__sub { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }

.sgk-kk {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--teal-fade); border: 1px solid var(--teal-tint); margin-bottom: 18px;
}
.sgk-kk dl { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 6px 0 0; font-size: 0.84rem; }
.sgk-kk dt { font-weight: 600; color: var(--ink-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; }
.sgk-kk dd { margin: 0; font-family: var(--sgk-mono); color: var(--ink); }

.sgk-notlisted {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--sgk-red-line); background: var(--sgk-red-bg);
  margin-bottom: 22px;
}
.sgk-notlisted--ek4c { border-color: var(--sgk-amber-line); background: var(--sgk-amber-bg); }
.sgk-notlisted__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--sgk-red); font-size: 1.2rem; }
.sgk-notlisted--ek4c .sgk-notlisted__icon { color: var(--sgk-amber); }
.sgk-notlisted h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; margin: 0 0 4px; color: var(--ink); }
.sgk-notlisted p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.92rem; }
.sgk-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 10px 0 4px; }
.sgk-kv div { font-size: 0.86rem; }
.sgk-kv dt, .sgk-kv .k { font-size: 0.72rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.sgk-kv dd, .sgk-kv .v { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ==========================================================================
   PRODUCT PROFILE
   ========================================================================== */
.sgk-phead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 20px; align-items: stretch; }
.sgk-pid { padding: 22px 24px; display: flex; flex-direction: column; }
.sgk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.sgk-pid__ings + .sgk-facts, .sgk-pid > p + .sgk-facts { margin-top: 18px; }
.sgk-facts .k { font-size: 0.68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.sgk-facts .v { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-top: 2px; overflow-wrap: anywhere; line-height: 1.35; }
.sgk-pid__name { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.15; font-weight: 600; margin: 8px 0 10px; overflow-wrap: anywhere; }
.sgk-pid__ids { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sgk-pid__ings { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.86rem; color: var(--ink-soft); }

.sgk-vhero {
  --vc: var(--sgk-grey); --vbg: var(--sgk-grey-bg); --vline: var(--sgk-grey-line);
  border-radius: var(--r-lg); padding: 22px 22px 18px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--vbg) 0%, #fff 130%);
  border: 1px solid var(--vline); display: flex; flex-direction: column; gap: 10px;
}
.sgk-vhero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--vc); }
.sgk-vhero--green { --vc: var(--sgk-green); --vbg: var(--sgk-green-bg); --vline: var(--sgk-green-line); }
.sgk-vhero--amber { --vc: var(--sgk-amber); --vbg: var(--sgk-amber-bg); --vline: var(--sgk-amber-line); }
.sgk-vhero--red   { --vc: var(--sgk-red);   --vbg: var(--sgk-red-bg);   --vline: var(--sgk-red-line); }
.sgk-vhero__top { display: flex; gap: 14px; align-items: center; }
.sgk-vhero__icon {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--vc); color: #fff; font-size: 1.45rem; box-shadow: 0 8px 20px -8px var(--vc);
}
.sgk-vhero__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vc); opacity: .9; }
.sgk-vhero__label { font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--ink); margin: 2px 0 0; }
.sgk-vhero__line { margin: 0; font-size: 0.93rem; color: var(--ink); line-height: 1.55; }
.sgk-vhero__reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sgk-vhero__reasons li { display: flex; gap: 8px; align-items: baseline; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
.sgk-vhero__reasons li > i { color: var(--vc); font-size: 0.7rem; flex: none; transform: translateY(-1px); }
.sgk-vhero__reasons .sgk-ref { font-weight: 700; color: var(--ink); white-space: nowrap; }
.sgk-vhero__date { font-size: 0.76rem; color: var(--ink-faint); margin-top: auto; padding-top: 4px; }

.sgk-toc { position: sticky; top: calc(var(--navbar-height, 68px) + 16px); display: flex; flex-direction: column; gap: 14px; }
.sgk-toc nav { background: var(--surface, #fff); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 10px; }
.sgk-toc__label { font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 6px 10px 4px; }
.sgk-toc nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink-soft); font-size: 0.86rem; font-weight: 500; }
.sgk-toc nav a:hover { background: var(--teal-fade); color: var(--teal); }
.sgk-toc nav a span.n { font-size: 0.7rem; font-weight: 700; background: var(--paper-deep); color: var(--ink-soft); border-radius: 999px; padding: 1px 7px; }

/* condition cards */
.sgk-conds { display: flex; flex-direction: column; gap: 12px; }
.sgk-cond {
  background: var(--surface, #fff); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden; border-top: 3px solid var(--rule);
}
.sgk-cond--F { border-top-color: #D8962F; }
.sgk-cond--G { border-top-color: #C0602F; }
.sgk-cond--H { border-top-color: var(--sgk-red); }
.sgk-cond--E { border-top-color: var(--sgk-blue); }
.sgk-cond--D { border-top-color: var(--sgk-green); }
.sgk-cond--C { border-top-color: #8350B8; }
.sgk-cond--S { border-top-color: var(--sgk-accent); }
.sgk-cond__head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px 10px; }
.sgk-cond__badge {
  flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: .02em; border-radius: 8px; padding: 5px 8px; line-height: 1;
  background: var(--paper-deep); color: var(--ink); text-align: center; min-width: 58px; white-space: nowrap;
}
.sgk-cond__badge small { display: block; font-size: 0.64rem; font-weight: 600; color: var(--ink-faint); margin-top: 3px; letter-spacing: 0; }
.sgk-cond__title { font-weight: 700; font-size: 0.97rem; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.sgk-cond__kicker { font-size: 0.74rem; color: var(--ink-faint); margin-top: 2px; }
.sgk-cond__open { margin-left: auto; flex: none; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.sgk-cond__body { padding: 0 18px 14px; }
.sgk-req { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 2px 0 10px; }
.sgk-req__item { background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-sm); padding: 8px 10px; }
.sgk-req__k { font-size: 0.68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 6px; align-items: center; }
.sgk-req__v { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-top: 3px; line-height: 1.4; }
.sgk-req__v .sgk-chip { margin: 2px 4px 0 0; }
.sgk-conf { font-size: 0.72rem; color: var(--ink-faint); display: inline-flex; gap: 6px; align-items: center; }
.sgk-conf i { font-size: 0.6rem; }
.sgk-conf--high i { color: var(--sgk-green); } .sgk-conf--medium i { color: #D8962F; } .sgk-conf--low i { color: var(--sgk-red); }
.sgk-legend { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.sgk-legend li { display: flex; gap: 10px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
.sgk-legend b { flex: none; min-width: 52px; font-family: var(--sgk-mono); color: var(--sgk-blue); background: var(--sgk-blue-bg); border-radius: 5px; padding: 1px 6px; text-align: center; height: fit-content; font-size: 0.8rem; }

/* official text */
.sgk-official { border-top: 1px dashed var(--rule); margin-top: 4px; }
.sgk-official > summary {
  cursor: pointer; list-style: none; padding: 10px 0 2px; font-size: 0.8rem; font-weight: 700; color: var(--teal);
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.sgk-official > summary::-webkit-details-marker { display: none; }
.sgk-official > summary i.chev { transition: transform .2s ease; font-size: 0.7rem; }
.sgk-official[open] > summary i.chev { transform: rotate(90deg); }
.sgk-quote {
  margin: 8px 0 2px; padding: 12px 16px; border-left: 3px solid var(--sgk-accent);
  background: #FBF8F3; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: 'Fraunces', Georgia, serif; font-size: 0.95rem; line-height: 1.65; color: #2A3642;
  white-space: pre-line; overflow-wrap: anywhere;
}
.sgk-quote__src { display: block; margin-top: 8px; font-family: 'Inter', sans-serif; font-size: 0.74rem; color: var(--ink-faint); font-style: normal; }
.sgk-amend { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sgk-amend span { font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); background: var(--paper-deep); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.sgk-amend span.is-recent { background: var(--coral-tint); color: var(--coral-deep); }

.sgk-icds { display: flex; flex-wrap: wrap; gap: 5px; }
.sgk-icd { font-family: var(--sgk-mono); font-size: 0.76rem; font-weight: 600; border-radius: 5px; padding: 1px 7px; background: var(--sgk-green-bg); color: var(--sgk-green); white-space: nowrap; }
.sgk-icd-table { width: 100%; font-size: 0.82rem; margin-top: 8px; border-collapse: collapse; }
.sgk-icd-table td { padding: 4px 8px; border-top: 1px solid var(--rule-soft); vertical-align: top; }
.sgk-icd-table td:first-child { font-family: var(--sgk-mono); white-space: nowrap; font-weight: 600; width: 1%; }

/* SUT sections list */
.sgk-seclist { list-style: none; margin: 0; padding: 0; }
.sgk-seclist > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--rule-soft); }
.sgk-seclist > li:first-child { border-top: 0; }
.sgk-seclist__main { flex: 1 1 auto; min-width: 0; }
.sgk-seclist .sgk-sec__title { font-size: 0.93rem; }
.sgk-seclist__why { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.sgk-strength { font-size: 0.66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; white-space: nowrap; flex: none; margin-top: 2px; }
.sgk-strength--title, .sgk-strength--bent { background: var(--sgk-accent-tint); color: var(--sgk-accent); }
.sgk-strength--class { background: var(--sgk-blue-bg); color: var(--sgk-blue); }
.sgk-strength--entry { background: var(--teal-tint); color: var(--teal); }
.sgk-strength--body { background: var(--paper-deep); color: var(--ink-faint); }

/* data tables */
.sgk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sgk-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.87rem; }
.sgk-table th {
  text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint);
  padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--rule); white-space: nowrap; position: sticky; top: 0;
}
.sgk-table td { padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.sgk-table tr:last-child td { border-bottom: 0; }
.sgk-table tbody tr:hover td { background: var(--teal-fade); }
.sgk-table tr.is-self td { background: #FFF9EC; }
.sgk-table tr.is-dim td { opacity: .6; }
.sgk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sgk-table a.pname { font-weight: 600; color: var(--ink); }
.sgk-table a.pname:hover { color: var(--teal); }
.sgk-table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); }
.sgk-filter { position: relative; flex: 1 1 220px; max-width: 360px; }
.sgk-filter input { width: 100%; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 8px 12px 8px 34px; font-size: 0.88rem; background: #fff; }
.sgk-filter input:focus { outline: none; border-color: var(--teal-soft); box-shadow: var(--shadow-glow); }
.sgk-filter i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 0.85rem; }
.sgk-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); cursor: pointer; user-select: none; }
.sgk-seg { display: inline-flex; background: var(--paper-deep); border-radius: var(--r-md); padding: 3px; gap: 2px; flex-wrap: wrap; }
.sgk-seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 7px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.sgk-seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* item detail definition list */
.sgk-dl { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); margin: 0; font-size: 0.88rem; }
.sgk-dl dt, .sgk-dl dd { padding: 9px 0; border-top: 1px solid var(--rule-soft); margin: 0; }
.sgk-dl dt { color: var(--ink-faint); font-weight: 600; padding-right: 12px; font-size: 0.82rem; }
.sgk-dl dd { color: var(--ink); overflow-wrap: anywhere; }
.sgk-dl > dt:first-of-type, .sgk-dl > dt:first-of-type + dd { border-top: 0; }

/* timeline */
.sgk-timeline { position: relative; padding-left: 4px; }
.sgk-timeline .sgk-ev { position: relative; }
.sgk-timeline .sgk-ev:not(:last-child)::before {
  content: ""; position: absolute; left: 14px; top: 42px; bottom: -10px; width: 2px; background: var(--rule-soft);
}
.sgk-timeline .sgk-ev + .sgk-ev { border-top: 0; }

/* sources */
.sgk-sources { list-style: none; padding: 0; margin: 0; }
.sgk-sources li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--rule-soft); font-size: 0.88rem; }
.sgk-sources li:first-child { border-top: 0; }
.sgk-sources .ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-deep); color: var(--ink-soft); }
.sgk-sources .t { font-weight: 600; color: var(--ink); }
.sgk-sources .m { font-size: 0.76rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.sgk-sources .m a { font-weight: 600; }

.sgk-more-btn { display: block; width: 100%; text-align: center; padding: 10px; border: 0; background: var(--paper); color: var(--teal); font-weight: 600; font-size: 0.86rem; cursor: pointer; border-top: 1px solid var(--rule-soft); }
.sgk-more-btn:hover { background: var(--teal-fade); }
.sgk-hidden-row { display: none; }
.is-expanded .sgk-hidden-row { display: table-row; }
.is-expanded li.sgk-hidden-row, .is-expanded div.sgk-hidden-row { display: flex; }

/* ingredient page distribution bar */
.sgk-distbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--rule-soft); margin: 10px 0 8px; }
.sgk-distbar span { display: block; height: 100%; }
.sgk-distbar .g { background: var(--sgk-green); } .sgk-distbar .a { background: #D8962F; } .sgk-distbar .r { background: var(--sgk-red); } .sgk-distbar .x { background: var(--ink-faint); }
.sgk-distlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--ink-soft); }
.sgk-distlegend i { font-size: 0.6rem; margin-right: 5px; }

/* ==========================================================================
   PAYWALL / TEASER
   ========================================================================== */
.sgk-pw { max-width: 1040px; margin: 0 auto; padding: 36px 20px 64px; }
.sgk-pw__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sgk-pw__lock {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sgk-accent); color: #fff; font-size: 1.3rem; box-shadow: 0 10px 24px -10px var(--sgk-accent);
}
.sgk-pw__subject {
  margin: 18px 0 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface, #fff); border: 1px solid var(--rule);
  display: flex; gap: 12px; align-items: flex-start;
}
.sgk-pw__subject .k { font-size: 0.68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.sgk-pw__subject .v { font-weight: 700; color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.sgk-pw__features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.sgk-pw__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.sgk-pw__features li i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); font-size: 0.8rem; margin-top: 1px; }
.sgk-pw__features li b { color: var(--ink); display: block; }
.sgk-pw__cta {
  background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 26px 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.sgk-pw__cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 100% 0%, rgba(156, 41, 53, 0.55), transparent 70%); pointer-events: none; }
.sgk-pw__cta > * { position: relative; }
.sgk-pw__cta h2 { color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; margin: 0 0 8px; }
.sgk-pw__cta p { color: rgba(255,255,255,.78); font-size: 0.92rem; margin: 0 0 18px; }
.sgk-pw__cta .sgk-btn { width: 100%; }
.sgk-pw__cta .sgk-btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.sgk-pw__cta .sgk-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.sgk-pw__cta .sgk-actions { flex-direction: column; }
.sgk-pw__cta .sgk-pw__fine { font-size: 0.78rem; color: rgba(255,255,255,.55); margin: 14px 0 0; }
.sgk-pw__fine a { color: rgba(255,255,255,.85); text-decoration: underline; }
.sgk-pw__preview { margin-top: 18px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--surface, #fff); padding: 16px; position: relative; overflow: hidden; }
.sgk-pw__preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.95) 100%); }
.sgk-pw__locked {
  position: absolute; z-index: 2; left: 50%; top: 58%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.sgk-skel { display: block; height: 10px; border-radius: 999px; background: var(--rule-soft); margin: 8px 0; }
.sgk-skel--pill { width: 150px; height: 26px; }
.sgk-skel--pill.g { background: var(--sgk-green-bg); } .sgk-skel--pill.a { background: var(--sgk-amber-bg); }
.sgk-skel--row { display: flex; gap: 10px; align-items: center; }
.sgk-skel--row span { display: block; height: 10px; border-radius: 999px; background: var(--rule-soft); }
.sgk-pw__compare { margin-top: 26px; }
.sgk-pw__compare table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: var(--surface, #fff); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); }
.sgk-pw__compare th, .sgk-pw__compare td { padding: 9px 12px; border-top: 1px solid var(--rule-soft); text-align: left; }
.sgk-pw__compare th { background: var(--paper); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); border-top: 0; }
.sgk-pw__compare td.c { text-align: center; width: 90px; }
.sgk-pw__compare .fa-check { color: var(--sgk-green); } .sgk-pw__compare .fa-minus { color: var(--ink-faint); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1099px) {
  .sgk-layout { grid-template-columns: minmax(0, 1fr); }
  .sgk-toc { display: none; }
}
@media (max-width: 991px) {
  .sgk-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sgk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgk-phead { grid-template-columns: minmax(0, 1fr); }
  .sgk-pw__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sgk-page { padding: 18px 16px 48px; }
  .sgk-hero { padding: 30px 16px 26px; }
  .sgk-hero__sub { font-size: 0.94rem; margin-bottom: 18px; }
  .sgk-search__bar { border-radius: 13px; padding: 5px; }
  .sgk-search__icon { width: 34px; }
  .sgk-search__input { font-size: 1rem; padding: 10px 2px; }
  .sgk-search__scan span, .sgk-search__go span { display: none; }
  .sgk-search__scan, .sgk-search__go { padding: 0 13px; }
  .sgk-hero .sgk-fresh--compact { justify-content: flex-start; }
  .sgk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sgk-tile { min-height: 0; gap: 8px; padding: 14px; }
  .sgk-tile__icon { flex: none; width: 36px; height: 36px; font-size: .95rem; }
  .sgk-tile__title { font-size: .92rem; line-height: 1.25; }
  .sgk-tile__title .sgk-chip { display: none; }
  .sgk-tile__desc, .sgk-tile__meta { display: none; }
  .sgk-facts { display: none; }
  .sgk-card { padding: 16px; }
  .sgk-card__head, .sgk-card__body { padding-left: 16px; padding-right: 16px; }
  .sgk-prow { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .sgk-prow__side { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .sgk-ev__date { min-width: 74px; }
  .sgk-ev__pub { display: none; }
  .sgk-pid { padding: 18px; }
  .sgk-vhero { padding: 18px 18px 16px; }
  .sgk-vhero__label { font-size: 1.25rem; }
  .sgk-cond__head { padding: 12px 14px 8px; flex-wrap: wrap; }
  .sgk-cond__open { margin-left: 0; width: 100%; }
  .sgk-cond__body { padding: 0 14px 12px; }
  .sgk-seclist > li { padding: 12px 14px; flex-wrap: wrap; }
  .sgk-dl { grid-template-columns: minmax(0, 1fr); }
  .sgk-dl dt { padding-bottom: 0; }
  .sgk-dl dd { border-top: 0; padding-top: 2px; }
  .sgk-table.sgk-table--stack thead { display: none; }
  .sgk-table.sgk-table--stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); }
  .sgk-table.sgk-table--stack tr.sgk-hidden-row { display: none; }
  .is-expanded .sgk-table.sgk-table--stack tr.sgk-hidden-row { display: block; }
  .sgk-table.sgk-table--stack td { display: inline-block; padding: 2px 8px 2px 0; border: 0; }
  .sgk-table.sgk-table--stack td.cell-main { display: block; }
  .sgk-table.sgk-table--stack td[data-empty] { display: none; }
  .sgk-notlisted { grid-template-columns: minmax(0, 1fr); }
  .sgk-alert { padding: 12px 14px; }
  .sgk-crumbs strong { max-width: 60vw; }
  .sgk-pw { padding-top: 20px; }
  .sgk-pw__preview { display: none; }     /* bring the CTA above the fold on phones */
}

/* ==========================================================================
   PRINT — clean black-on-white monograph
   ========================================================================== */
@media print {
  @page { margin: 14mm 12mm; }
  body { background: #fff !important; }
  .sgk-hero { background: #fff !important; color: var(--ink) !important; padding: 0 0 8px !important; }
  .sgk-hero::after { display: none; }
  .sgk-hero h1, .sgk-hero .sgk-hero__sub { color: var(--ink) !important; }
  .sgk-noprint, .sgk-search, .sgk-toc, .sgk-actions, .sgk-scan, .sgk-more-btn, .sgk-table-tools, #scrollToTop, .sgk-admin-bar,
  .pro-use-banner, .sgk-search__examples, .sgk-crumbs { display: none !important; }
  .sgk-page { padding: 0 !important; max-width: none; }
  .sgk-layout, .sgk-phead, .sgk-grid-2 { display: block !important; }
  .sgk-card, .sgk-cond, .sgk-fresh, .sgk-vhero { box-shadow: none !important; break-inside: avoid; }
  .sgk-vhero { margin-top: 12px; }
  .sgk-section { margin-top: 18px; }
  .sgk-hidden-row { display: table-row !important; }
  li.sgk-hidden-row, div.sgk-hidden-row { display: flex !important; }
  .sgk-table th { position: static; }
  .sgk-quote { background: #fff; }
  a { color: inherit !important; text-decoration: none !important; }
  .sgk-print-only { display: block !important; }
}
.sgk-print-only { display: none; }
