:root {
  --detail-navy: #062b4d;
  --detail-teal: #087f8c;
  --detail-ink: #172b40;
  --detail-muted: #5d6d7e;
  --detail-line: #dfe7ee;
  --detail-soft: #f4f8fb;
}
body {
  color: var(--detail-ink);
  background: var(--detail-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.detail-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 28px 0 64px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #496276;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.detail-back:hover { color: var(--detail-teal); text-decoration: underline; text-underline-offset: 3px; }
.detail-page { min-width: 0; }
.detail-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--detail-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(6, 43, 77, .07);
}
.detail-hero-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--detail-teal), #37a858);
  content: "";
}
.detail-tags { margin-bottom: 12px; }
.detail-tags span { padding: 5px 9px; border-radius: 999px; font-weight: 750; }
.detail-title {
  max-width: 950px;
  margin: 0 0 9px;
  color: var(--detail-navy);
  font-size: clamp(1.72rem, 3.5vw, 2.55rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.detail-official-name { max-width: 920px; margin: 0 0 22px; color: #718195; font-size: .78rem; line-height: 1.55; }
.detail-title-spacer { height: 12px; }
.detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 11px;
  margin: 0;
}
.detail-overview-grid > div {
  min-width: 0;
  min-height: 88px;
  border-color: #dce6ed;
  border-radius: 14px;
  padding: 14px;
  background: #f7fafc;
}
.detail-overview-grid p { overflow-wrap: anywhere; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.detail-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: clamp(21px, 3vw, 32px);
  border: 1px solid var(--detail-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(6, 43, 77, .055);
}
.detail-section {
  margin: 0;
  padding: 25px 0;
  border-bottom: 1px solid #e5edf2;
}
.detail-section:first-child { padding-top: 0; }
.detail-section:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-summary + .detail-section { padding-top: 0; }
.detail-section h3 {
  margin-bottom: 13px;
  color: var(--detail-navy);
  font-size: 1.06rem;
}
.detail-section table { width: 100%; table-layout: fixed; }
.detail-section td { padding: 11px 8px; overflow-wrap: anywhere; vertical-align: top; }
.detail-section td:first-child { width: 36%; padding-left: 0; }
.detail-section td:last-child { padding-right: 0; }
.detail-section a { color: var(--detail-teal); font-weight: 700; }
.detail-summary {
  margin: 0 0 24px;
  border-color: #bde1e4;
  border-radius: 15px;
  background: #edf8f8;
}
.detail-summary h2 { color: #08717b; }
.detail-translation { margin: 0 0 16px; border-radius: 13px; }
.detail-action + .detail-translation { margin-top: 16px; }
.detail-sidebar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 92px;
}
.detail-sidebar-panel {
  padding: 19px;
  border: 1px solid var(--detail-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(6, 43, 77, .055);
}
.detail-facts-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 0; }
.detail-facts-grid > div { min-width: 0; border-radius: 13px; padding: 12px; background: #f8fafc; }
.detail-facts-grid p { overflow-wrap: anywhere; }
.detail-action { margin: 17px 0 0; padding-top: 17px; border-top: 1px solid #e3ebf0; }
.detail-action a {
  padding: 14px 15px;
  border-radius: 13px;
  background: var(--detail-teal);
  box-shadow: 0 8px 20px rgba(8, 127, 140, .22);
}
.detail-action a:hover { background: #056d78; }
.detail-action p { color: #718195; line-height: 1.5; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { grid-column: 1; grid-row: 1; position: static; }
  .detail-content { grid-column: 1; grid-row: 2; }
  .detail-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .detail-shell { width: min(100% - 24px, 1120px); padding: 18px 0 42px; }
  .detail-hero-card { padding: 22px 18px; border-radius: 17px; }
  .detail-title { font-size: 1.65rem; }
  .detail-overview-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { gap: 14px; margin-top: 14px; }
  .detail-sidebar-panel, .detail-content { padding: 18px; border-radius: 17px; }
  .detail-facts-grid { grid-template-columns: 1fr; }
  .detail-section td:first-child { width: 43%; }
}
@media (max-width: 390px) {
  .detail-overview-grid { grid-template-columns: 1fr; }
  .detail-section table, .detail-section tbody, .detail-section tr, .detail-section td { display: block; width: 100%; }
  .detail-section tr { padding: 9px 0; border-bottom: 1px solid #edf2f5; }
  .detail-section td { padding: 2px 0; border: 0; }
  .detail-section td:first-child { width: 100%; }
}
