/* Security notices (/security/…). Shared by every notice page so a new notice only needs new HTML. */

:root {
  --sec-red: #e5484d;
  --sec-red-text: #ff8a8e;
  --sec-red-wash: rgba(229, 72, 77, 0.12);
  --sec-red-line: rgba(229, 72, 77, 0.5);
  --sec-green: #3dd68c;
  --sec-green-wash: rgba(61, 214, 140, 0.1);
  --sec-green-line: rgba(61, 214, 140, 0.45);
}

.sec-hero .sec-badge,
.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sec-red-wash);
  border: 1px solid var(--sec-red-line);
  color: var(--sec-red-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.sec-hero h1 {
  font-size: clamp(1.45rem, 4.4vw, 2.35rem);
  line-height: 1.45;
}

.sec-hero .sec-sub {
  margin: 14px 0 0;
  color: var(--c-text-strong);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.75;
}

.sec-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.sec-dates strong {
  color: var(--c-text);
  font-weight: 700;
}

.sec-wrap {
  max-width: 880px;
}

.sec-section {
  padding: clamp(36px, 6vw, 64px) 0 0;
}

.sec-section h2 {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--c-gold);
  color: var(--c-gold-soft);
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.5;
}

.sec-section h3 {
  margin: 28px 0 10px;
  color: var(--c-text-strong);
  font-size: clamp(1.05rem, 2.6vw, 1.18rem);
  line-height: 1.6;
}

.sec-section p,
.sec-section li {
  line-height: 1.95;
}

.sec-section p {
  margin: 0 0 14px;
}

.sec-section ul,
.sec-section ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.sec-term {
  color: var(--c-text-muted);
  font-size: 0.92em;
}

/* Summary + jump links */
.sec-summary {
  margin-top: 24px;
  padding: clamp(18px, 3.5vw, 28px);
  border: 1px solid var(--c-gold-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.sec-summary h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 1.1rem;
  color: var(--c-gold-soft);
}

.sec-summary ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.sec-summary li {
  line-height: 1.85;
  margin-bottom: 4px;
}

.sec-jump {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sec-jump a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-surface-2);
  color: var(--c-text-strong);
  font-weight: 700;
  line-height: 1.5;
}

.sec-jump a:hover,
.sec-jump a:focus-visible {
  border-color: var(--c-gold-line);
  color: var(--c-gold-soft);
}

.sec-jump small {
  display: block;
  color: var(--c-text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

/* Callouts */
.sec-note {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
}

.sec-note p:last-child,
.sec-note ul:last-child {
  margin-bottom: 0;
}

.sec-note-title {
  margin: 0 0 6px !important;
  font-weight: 800;
  color: var(--c-text-strong);
}

.sec-note.is-red {
  border-color: var(--sec-red-line);
  background: var(--sec-red-wash);
}

.sec-note.is-red .sec-note-title {
  color: var(--sec-red-text);
}

.sec-note.is-green {
  border-color: var(--sec-green-line);
  background: var(--sec-green-wash);
}

.sec-note.is-green .sec-note-title {
  color: var(--sec-green);
}

.sec-note.is-gold {
  border-color: var(--c-gold-line);
  background: var(--c-gold-wash);
}

.sec-note.is-gold .sec-note-title {
  color: var(--c-gold-soft);
}

/* Figures */
.sec-fig {
  margin: 22px 0 26px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-l);
  background: #101010;
}

.sec-fig-head {
  margin: 0 0 14px;
  color: var(--c-gold-soft);
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.6;
}

.sec-fig-num {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--c-gold);
  color: var(--c-on-gold);
  font-size: 0.82rem;
  vertical-align: 0.1em;
}

.sec-fig svg.sec-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sec-fig figcaption {
  margin-top: 14px;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.sec-panels {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .sec-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.sec-panel {
  padding: 14px;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
}

.sec-panel.is-red {
  border-color: var(--sec-red-line);
}

.sec-panel.is-green {
  border-color: var(--sec-green-line);
}

.sec-panel-title {
  margin: 0 0 10px !important;
  font-weight: 800;
  text-align: center;
  line-height: 1.5 !important;
}

.sec-panel.is-red .sec-panel-title {
  color: var(--sec-red-text);
}

.sec-panel.is-green .sec-panel-title {
  color: var(--sec-green);
}

.sec-panel ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 0.92rem;
}

.sec-panel li {
  line-height: 1.75;
}

/* Icon cards (damage, steps, user tips) */
.sec-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-cards > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  line-height: 1.75;
}

.sec-cards strong {
  display: block;
  color: var(--c-text-strong);
  font-size: 1rem;
}

.sec-cards span.sec-card-text {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.sec-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-gold-wash);
  border: 1px solid var(--c-gold-line);
  color: var(--c-gold-soft);
}

.sec-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sec-ico.is-red {
  background: var(--sec-red-wash);
  border-color: var(--sec-red-line);
  color: var(--sec-red-text);
}

.sec-ico.is-green {
  background: var(--sec-green-wash);
  border-color: var(--sec-green-line);
  color: var(--sec-green);
}

/* Steps */
.sec-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.sec-step {
  margin: 0 0 18px;
  padding: clamp(16px, 3.5vw, 24px);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
}

.sec-step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.sec-step-no {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  background: var(--c-gold);
  color: var(--c-on-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sec-step p:last-child,
.sec-step ul:last-child {
  margin-bottom: 0;
}

/* Version table */
.sec-table-wrap {
  margin: 14px 0 16px;
  overflow-x: auto;
}

.sec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sec-table th,
.sec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line-strong);
  text-align: left;
  line-height: 1.6;
  vertical-align: top;
}

.sec-table thead th {
  color: var(--c-gold-soft);
  font-size: 0.85rem;
  border-bottom-color: var(--c-gold-line);
}

.sec-table td.fix {
  color: var(--sec-green);
  font-weight: 800;
  white-space: nowrap;
}

.sec-table tr.is-eol td {
  color: var(--sec-red-text);
}

/* FAQ uses the site-wide .faq-list (native <details>, readable without JS). */

/* Sources */
.sec-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-sources li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.7;
}

.sec-sources a {
  color: var(--c-gold-soft);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-sources small {
  display: block;
  color: var(--c-text-muted);
}

.sec-history {
  margin: 0;
  padding-left: 1.2em;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

/* Closing message */
.sec-message {
  margin-top: clamp(40px, 7vw, 72px);
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-gold-line);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.1), rgba(23, 23, 23, 0.95) 60%);
  text-align: center;
}

.sec-message img {
  width: 120px;
  height: auto;
  margin: 0 auto 18px;
}

.sec-message h2 {
  border: 0;
  padding: 0;
  text-align: center;
}

.sec-message p {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.sec-message .sec-sign {
  margin-top: 18px;
  color: var(--c-text-strong);
  font-weight: 800;
}

.sec-back {
  margin-top: 10px;
}

/* Notice list (/security/) */
.sec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--sec-red-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
  color: var(--c-text-strong);
}

.sec-list a:hover,
.sec-list a:focus-visible {
  border-color: var(--c-gold-line);
}

.sec-list strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.6;
}

.sec-list small {
  color: var(--c-text-muted);
}

/* SVG palette (inline illustrations) */
.sv-line { fill: none; stroke: #5c5c5c; stroke-width: 2; }
.sv-body { fill: #1f1f1f; stroke: #6b6b6b; stroke-width: 2; }
.sv-screen { fill: #2b2b2b; }
.sv-gold { fill: #d4af37; }
.sv-gold-s { fill: none; stroke: #d4af37; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sv-red { fill: #e5484d; }
.sv-red-s { fill: none; stroke: #e5484d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sv-green { fill: #3dd68c; }
.sv-green-s { fill: none; stroke: #3dd68c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sv-grey { fill: #8f8f8f; }
.sv-t { fill: #e6e6e6; font-family: var(--font-sans); font-size: 21px; font-weight: 700; }
.sv-t-s { fill: #b5b5b5; font-family: var(--font-sans); font-size: 18px; font-weight: 700; }
.sv-t-gold { fill: #ecd27a; font-family: var(--font-sans); font-size: 21px; font-weight: 800; }
.sv-t-red { fill: #ff8a8e; font-family: var(--font-sans); font-size: 20px; font-weight: 800; }
.sv-t-green { fill: #3dd68c; font-family: var(--font-sans); font-size: 20px; font-weight: 800; }
.sv-t-dark { fill: #080808; font-family: var(--font-sans); font-weight: 900; font-size: 22px; }
.sv-ico { fill: none; stroke: #ecd27a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .sv-pulse {
    animation: sv-pulse 2.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  @keyframes sv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
  }
}

@media print {
  .sec-jump,
  .sec-back {
    display: none;
  }
}

/* Wide / phone variants of a figure */
.sec-only-narrow {
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .sec-fig svg.sec-only-narrow {
    display: none;
  }
}

@media (max-width: 599.98px) {
  .sec-fig svg.sec-only-wide {
    display: none;
  }
}

/* 60-second explainer video (vertical) */
.sec-video-kicker {
  margin: 0 0 6px !important;
  color: var(--sec-red-text);
  font-weight: 800;
}

.sec-player {
  max-width: 360px;
  margin: 8px auto 12px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-gold-line);
  background: #000;
  aspect-ratio: 9 / 16;
}

.sec-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

@media (max-width: 599.98px) {
  .sec-player {
    max-width: min(100%, 420px);
  }
}

.sec-video-meta {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.sec-transcript {
  margin: 0 auto 14px;
  max-width: 640px;
  padding: 12px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-surface);
}

.sec-transcript summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
}

.sec-transcript ol {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.sec-video-cta {
  text-align: center;
}

.sec-player {
  position: relative;
}

.sec-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 26px 14px;
  border: 2px solid var(--c-gold);
  border-radius: 20px;
  background: rgba(8, 8, 8, 0.78);
  color: var(--c-gold-soft);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.sec-play:hover,
.sec-play:focus-visible {
  background: var(--c-gold);
  color: var(--c-on-gold);
}

.sec-player.is-started .sec-play {
  display: none;
}

.sec-step-tag {
  margin-left: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-s);
  background: var(--sec-green-wash);
  border: 1px solid var(--sec-green-line);
  color: var(--sec-green);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Command examples (server-basics guide) */
.sec-cmd {
  margin: 8px 0 14px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-s);
  background: var(--c-surface-2);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre;
}

.sec-cmd code {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
}
