
:root {
  --shsg-accent: #d51f2b;
  --shsg-accent-dark: #a8151e;
  --shsg-ink: #18212f;
  --shsg-muted: #637083;
  --shsg-border: #e6e9ee;
  --shsg-soft: #f5f7fa;
  --shsg-soft-red: #fff3f4;
  --shsg-white: #ffffff;
  --shsg-shadow: 0 12px 32px rgba(19, 33, 52, .08);
  --shsg-radius: 18px;
}

.shsg-wrap,
.shsg-wrap * {
  box-sizing: border-box;
}

.shsg-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 60px;
  color: var(--shsg-ink);
  font-family: inherit;
  line-height: 1.65;
}

.shsg-wrap a {
  color: inherit;
}

.shsg-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shsg-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--shsg-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(213,31,43,.10), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--shsg-shadow);
}

.shsg-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -80px;
  border: 28px solid rgba(213,31,43,.055);
  border-radius: 50%;
  pointer-events: none;
}

.shsg-kicker {
  margin-bottom: 10px;
  color: var(--shsg-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.shsg-hero h1,
.shsg-detail-header h1 {
  margin: 0;
  color: var(--shsg-ink);
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 850;
}

.shsg-lead,
.shsg-detail-lead {
  max-width: 900px;
  margin: 18px 0 0;
  color: #4c596a;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.shsg-hero-note {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin-top: 24px;
  padding: 14px 17px;
  border-left: 4px solid var(--shsg-accent);
  border-radius: 0 12px 12px 0;
  background: var(--shsg-soft-red);
  color: #56252a;
  font-size: 14px;
}

.shsg-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  margin: 22px 0 14px;
}

.shsg-search,
.shsg-category-select {
  min-height: 54px;
  border: 1px solid var(--shsg-border);
  border-radius: 14px;
  background: var(--shsg-white);
  box-shadow: 0 5px 16px rgba(20,31,48,.04);
}

.shsg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.shsg-search svg {
  flex: 0 0 auto;
  fill: #7c8795;
}

.shsg-search input,
.shsg-category-select select {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--shsg-ink);
  font: inherit;
}

.shsg-category-select {
  position: relative;
  padding: 0 14px;
}

.shsg-letters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 5px 1px 10px;
  scrollbar-width: thin;
}

.shsg-letters button {
  flex: 0 0 auto;
  min-width: 39px;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--shsg-border);
  border-radius: 10px;
  background: #fff;
  color: #4e5a6b;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: .18s ease;
}

.shsg-letters button:hover,
.shsg-letters button:focus-visible,
.shsg-letters button.is-active {
  border-color: var(--shsg-accent);
  background: var(--shsg-accent);
  color: #fff;
}

.shsg-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 16px;
  color: var(--shsg-muted);
  font-size: 14px;
}

.shsg-result-bar strong {
  color: var(--shsg-ink);
}

.shsg-reset {
  border: 0;
  background: transparent;
  color: var(--shsg-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.shsg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.shsg-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--shsg-border);
  border-radius: var(--shsg-radius);
  background: #fff;
  box-shadow: 0 6px 18px rgba(19,33,52,.035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shsg-card:hover {
  transform: translateY(-2px);
  border-color: #d7dce4;
  box-shadow: var(--shsg-shadow);
}

.shsg-card[hidden] {
  display: none !important;
}

.shsg-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}

.shsg-category,
.shsg-severity {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.shsg-category {
  background: #f0f3f7;
  color: #4c5969;
}

.shsg-severity {
  background: #eef2f7;
  color: #526174;
}

.shsg-severity--dusuk { background: #edf8f0; color: #27723b; }
.shsg-severity--orta { background: #fff7df; color: #8a6211; }
.shsg-severity--yuksek { background: #fff0e6; color: #a24d17; }
.shsg-severity--kritik { background: #ffeaec; color: #a8151e; }

.shsg-card h2 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.016em;
}

.shsg-card h2 a {
  text-decoration: none;
}

.shsg-card h2 a:hover {
  color: var(--shsg-accent);
}

.shsg-card p {
  margin: 0 0 14px;
  color: var(--shsg-muted);
  font-size: 14px;
  line-height: 1.65;
}

.shsg-codes,
.shsg-detail-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shsg-codes {
  margin-top: auto;
  padding-top: 4px;
}

.shsg-codes span,
.shsg-detail-codes span {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid #dce1e8;
  border-radius: 7px;
  background: #fafbfd;
  color: #4e5b6a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.shsg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--shsg-accent) !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.shsg-empty {
  padding: 50px 20px;
  border: 1px dashed #ccd3dd;
  border-radius: 16px;
  text-align: center;
  color: var(--shsg-muted);
}

.shsg-empty strong,
.shsg-empty span {
  display: block;
}

.shsg-empty strong {
  margin-bottom: 4px;
  color: var(--shsg-ink);
  font-size: 20px;
}

.shsg-disclaimer,
.shsg-medical-note {
  margin-top: 24px;
  padding: 17px 19px;
  border: 1px solid var(--shsg-border);
  border-radius: 14px;
  background: var(--shsg-soft);
  color: #566274;
  font-size: 13px;
}

/* Detail page */
.shsg-detail {
  margin-top: 24px;
}

.shsg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #798393;
  font-size: 13px;
}

.shsg-breadcrumb a {
  color: #596679;
  text-decoration: none;
}

.shsg-breadcrumb a:hover {
  color: var(--shsg-accent);
}

.shsg-detail-header {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--shsg-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 5%, rgba(213,31,43,.09), transparent 28%),
    #fff;
  box-shadow: var(--shsg-shadow);
}

.shsg-detail-header h1 {
  max-width: 1000px;
  font-size: clamp(30px, 4.2vw, 50px);
}

.shsg-detail-codes {
  align-items: center;
  margin-top: 20px;
  color: #536071;
  font-size: 13px;
}

.shsg-detail-codes strong {
  margin-right: 2px;
}

.shsg-quick-answer {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #f0d0d4;
  border-radius: 16px;
  background: var(--shsg-soft-red);
}

.shsg-quick-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--shsg-accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.shsg-quick-answer h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.shsg-quick-answer p {
  margin: 5px 0 0;
  color: #563b3e;
  font-size: 14px;
}

.shsg-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 22px;
}

.shsg-detail-main {
  min-width: 0;
}

.shsg-content-section {
  margin-bottom: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--shsg-border);
  border-radius: 17px;
  background: #fff;
}

.shsg-content-section h2,
.shsg-aside-card h2,
.shsg-related h2 {
  margin: 0 0 14px;
  color: var(--shsg-ink);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25;
  letter-spacing: -.018em;
}

.shsg-content-section p {
  margin: 0 0 12px;
  color: #586577;
}

.shsg-check-list {
  display: grid;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.shsg-check-list li {
  position: relative;
  margin: 0 !important;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid #eef1f4;
  color: #4e5b6c;
}

.shsg-check-list li:last-child {
  border-bottom: 0;
}

.shsg-check-list li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #fcebed;
  color: var(--shsg-accent);
  font-size: 11px;
  font-weight: 900;
}

.shsg-safety-section {
  border-color: #efd2d5;
  background: #fffafb;
}

.shsg-detail-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.shsg-aside-card {
  padding: 20px;
  border: 1px solid var(--shsg-border);
  border-radius: 16px;
  background: #fff;
}

.shsg-aside-card h2 {
  font-size: 18px;
}

.shsg-aside-card dl {
  margin: 0;
}

.shsg-aside-card dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef1f4;
}

.shsg-aside-card dt {
  color: #7a8594;
  font-size: 12px;
  font-weight: 700;
}

.shsg-aside-card dd {
  margin: 0;
  color: #394759;
  font-size: 13px;
  font-weight: 750;
}

.shsg-aside-warning {
  background: #fffafb;
  border-color: #f0d6d9;
}

.shsg-aside-warning p {
  margin: 0;
  color: #665156;
  font-size: 13px;
}

.shsg-back-button {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--shsg-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.shsg-back-button:hover {
  background: var(--shsg-accent);
}

.shsg-related {
  margin-top: 34px;
}

.shsg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.shsg-section-heading .shsg-kicker {
  margin: 0 0 4px;
}

.shsg-section-heading h2 {
  margin: 0;
}

.shsg-section-heading > a {
  color: var(--shsg-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.shsg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.shsg-related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--shsg-border);
  border-radius: 15px;
  background: #fff;
  text-decoration: none !important;
  transition: .18s ease;
}

.shsg-related-card:hover {
  transform: translateY(-2px);
  border-color: #d7dce3;
  box-shadow: var(--shsg-shadow);
}

.shsg-related-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--shsg-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.shsg-related-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--shsg-ink);
  font-size: 16px;
  line-height: 1.3;
}

.shsg-related-card small {
  display: block;
  color: var(--shsg-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .shsg-grid,
  .shsg-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shsg-detail-layout {
    grid-template-columns: 1fr;
  }

  .shsg-detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shsg-back-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .shsg-wrap {
    width: min(100% - 20px, 1180px);
    margin-top: 20px;
  }

  .shsg-toolbar,
  .shsg-grid,
  .shsg-related-grid,
  .shsg-detail-aside {
    grid-template-columns: 1fr;
  }

  .shsg-hero,
  .shsg-detail-header {
    border-radius: 17px;
  }

  .shsg-hero h1,
  .shsg-detail-header h1 {
    font-size: 31px;
  }

  .shsg-result-bar,
  .shsg-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shsg-card {
    padding: 18px;
  }

  .shsg-quick-answer {
    grid-template-columns: 1fr;
  }

  .shsg-detail-aside {
    display: grid;
  }

  .shsg-aside-card dl > div {
    grid-template-columns: 80px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shsg-card,
  .shsg-related-card,
  .shsg-letters button {
    transition: none;
  }
}
