/* Paddock design system — red / black / white, yellow for points & premium.
   Loaded last on every page. Section 1-4: tokens, base, components (pd-*), shell.
   Section 5: legacy re-skin of components still rendered by site.js. */

/* ===================== 1. Tokens ===================== */

:root {
  --pd-bg: #0b0b0c;
  --pd-panel: #141415;
  --pd-panel-2: #1c1c1e;
  --pd-line: #2a2a2d;
  --pd-line-2: #222225;
  --pd-ink: #f4f4f1;
  --pd-soft: #c9c9ce;
  --pd-mute: #8c8c92;
  --pd-red: #e10a17;
  --pd-red-hi: #ff3d41;
  --pd-red-dark: #b5000d;
  --pd-yellow: #ffd100;
  --pd-display: "Archivo", "Arial Narrow", sans-serif;
  --pd-mono: "JetBrains Mono", ui-monospace, monospace;
  --pd-slant: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  --pd-slant-sm: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  --pd-cut: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  --pd-cut-sm: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  --pd-gutter: clamp(16px, 3vw, 32px);
  --pd-max: 1376px;
  --pd-header-h: 68px;

  --bg: var(--pd-bg);
  --panel: var(--pd-panel);
  --panel-strong: var(--pd-panel-2);
  --ink: var(--pd-ink);
  --ink-soft: var(--pd-soft);
  --muted: var(--pd-mute);
  --line: var(--pd-line);
  --line-dark: var(--pd-line);
  --line-soft: var(--pd-line);
  --blue: var(--pd-red);
  --red: var(--pd-red);
  --yellow: var(--pd-yellow);
  --dark: var(--pd-panel);
  color-scheme: dark;
}

/* ===================== 2. Base ===================== */

*,
*::before,
*::after {
  border-color: var(--pd-line) !important;
}

* {
  scrollbar-color: var(--pd-red) transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--pd-red);
  background-clip: padding-box;
}

html,
body,
.site-main {
  background: var(--pd-bg) !important;
}

body {
  color: var(--pd-ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-stretch: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--pd-red);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -0.01em !important;
}

h1 { line-height: 0.92 !important; }
h2 { line-height: 0.95; }
h3 { font-stretch: 112%; font-weight: 800 !important; line-height: 1.12; }

a { transition: color 0.15s ease; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pd-red) !important;
  outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: var(--pd-red);
}

/* ===================== 3. Components (pd-*) ===================== */

.pd-container {
  width: 100%;
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 0 var(--pd-gutter);
  box-sizing: border-box;
}

.pd-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pd-d {
  margin: 0;
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900 !important;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.pd-m {
  font-family: var(--pd-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pd-mute);
}

.pd-kicker {
  font-family: var(--pd-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--pd-red-hi);
}

.pd-kicker--yellow { color: var(--pd-yellow); }
.pd-ink { color: var(--pd-ink) !important; }
.pd-red { color: var(--pd-red-hi) !important; }
.pd-yellow { color: var(--pd-yellow) !important; }

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 30px;
  border: 0;
  cursor: pointer;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  clip-path: var(--pd-slant);
  background: var(--pd-red);
  color: #fff;
}

.pd-btn:hover { background: #ff2a33; color: #fff; }
.pd-btn--lg { min-height: 56px; padding: 0 36px; font-size: 16px; }
.pd-btn--sm { min-height: 40px; padding: 0 20px; font-size: 12px; }
.pd-btn--ghost { background: #1f1f22; color: var(--pd-ink); }
.pd-btn--ghost:hover { background: #2c2c30; color: #fff; }
.pd-btn--white { background: var(--pd-ink); color: var(--pd-bg); }
.pd-btn--white:hover { background: #fff; color: var(--pd-red); }
.pd-btn--yellow { background: var(--pd-yellow); color: var(--pd-bg); }
.pd-btn--yellow:hover { background: #ffe14d; color: var(--pd-bg); }
.pd-btn--black { background: var(--pd-bg); color: var(--pd-yellow); }
.pd-btn--black:hover { background: #1f1f22; color: var(--pd-yellow); }
.pd-btn[disabled],
.pd-btn.is-disabled { background: #1f1f22; color: #6e6e74; cursor: not-allowed; }

.pd-ib {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--pd-line);
  background: transparent;
  color: var(--pd-ink);
  cursor: pointer;
  flex: none;
}

.pd-ib:hover { border-color: var(--pd-ink) !important; color: #fff; }
.pd-ib svg { width: 20px; height: 20px; }

.pd-meter {
  position: relative;
  height: 12px;
  background: repeating-linear-gradient(110deg, #2a2a2d 0 5px, transparent 5px 9px);
}

.pd-meter > i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--pd-ink) 55%, var(--pd-red-hi));
  -webkit-mask: repeating-linear-gradient(110deg, #000 0 5px, transparent 5px 9px);
  mask: repeating-linear-gradient(110deg, #000 0 5px, transparent 5px 9px);
}

.pd-meter--yellow > i { background: linear-gradient(90deg, var(--pd-ink) 45%, var(--pd-yellow)); }
.pd-meter--thin { height: 8px; }
.pd-meter--lg { height: 18px; }

.pd-pos {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  background: var(--pd-ink);
  color: var(--pd-bg);
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 14px;
  clip-path: var(--pd-slant-sm);
}

.pd-pos.is-p1 { background: var(--pd-red); color: #fff; }
.pd-pos.is-gold { background: var(--pd-yellow); color: var(--pd-bg); }

.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--pd-line);
  background: transparent;
  color: var(--pd-soft);
  font-family: var(--pd-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.pd-chip:hover { border-color: var(--pd-ink) !important; color: #fff; }
.pd-chip.is-on,
.pd-chip[aria-pressed="true"] { background: var(--pd-ink); color: var(--pd-bg); border-color: var(--pd-ink) !important; }

.pd-slanttab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  background: var(--pd-panel);
  color: var(--pd-soft);
  cursor: pointer;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.pd-slanttab:hover { background: #232326; color: #fff; }
.pd-slanttab.is-on,
.pd-slanttab[aria-selected="true"],
.pd-slanttab[aria-pressed="true"] { background: var(--pd-ink); color: var(--pd-bg); }
.pd-slanttab small { font-family: var(--pd-mono); font-style: normal; font-weight: 500; font-size: 10px; letter-spacing: 0.08em; opacity: 0.7; }

.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid var(--pd-line);
}

.pd-tab {
  padding: 16px 4px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #b4b4ba;
  cursor: pointer;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
}

.pd-tab:hover { color: #fff; }
.pd-tab.is-on,
.pd-tab[aria-selected="true"] { color: var(--pd-ink); border-bottom-color: var(--pd-red) !important; }

.pd-panel {
  background: var(--pd-panel);
  border: 1px solid var(--pd-line);
}

.pd-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.pd-panel-head h2,
.pd-panel-head h3 { margin: 0; font-size: 22px; }

.pd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-top: 1px solid var(--pd-line-2) !important;
  color: var(--pd-ink);
  text-decoration: none;
}

a.pd-row:hover { background: #18181a; color: #fff; }

.pd-cover {
  position: relative;
  overflow: hidden;
  clip-path: var(--pd-cut);
  background-color: var(--pd-panel-2);
  background-size: cover;
  background-position: center;
}

.pd-cover--sm { clip-path: var(--pd-cut-sm); }

.pd-cover-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 8px;
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-family: var(--pd-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pd-cover-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  background: var(--pd-ink);
  color: var(--pd-bg);
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.pd-cover-num {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
}

.pd-cover-title {
  position: absolute;
  right: 14px;
  bottom: 22px;
  left: 14px;
  z-index: 2;
  margin: 0;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.12;
  text-transform: uppercase;
}

.pd-tt {
  display: inline;
  padding: 2px 8px;
  background: var(--pd-bg);
  color: var(--pd-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Poster patterns: used when a list has no image, or as decoration */
.pd-pat-a { background: #f4f4f1 linear-gradient(90deg, #0b0b0c 0 7%, transparent 7% 12%, #e10a17 12% 19%, transparent 19% 23%, #0b0b0c 23% 25%, transparent 25% 33%, #e10a17 33% 46%, transparent 46% 50%, #0b0b0c 50% 58%, transparent 58% 61%, #e10a17 61% 63%, transparent 63% 70%, #0b0b0c 70% 72%, transparent 72% 78%, #e10a17 78% 90%, transparent 90% 93%, #0b0b0c 93%); }
.pd-pat-b { background: linear-gradient(160deg, transparent 0 58%, #0b0b0c 58%), linear-gradient(90deg, #e10a17 0 18%, #0b0b0c 18% 22%, #e10a17 22% 40%, #ffd100 40% 42%, #e10a17 42% 66%, #0b0b0c 66% 74%, #e10a17 74%); }
.pd-pat-c { background: linear-gradient(90deg, #0b0b0c 10%, transparent 80%), repeating-linear-gradient(180deg, #0b0b0c 0 13px, #e10a17 13px 16px); }
.pd-pat-d { background: repeating-linear-gradient(135deg, #ffd100 0 18px, #0b0b0c 18px 36px); }
.pd-pat-e { background: linear-gradient(115deg, #f4f4f1 0 42%, #e10a17 42% 60%, #0b0b0c 60% 64%, #f4f4f1 64%); }
.pd-pat-f { background: #e10a17 linear-gradient(90deg, transparent 0 50%, #0b0b0c 50% 55%, transparent 55% 59%, #0b0b0c 59% 70%, transparent 70% 72%, #f4f4f1 72% 73.5%, transparent 73.5% 80%, #0b0b0c 80% 88%, transparent 88% 91%, #0b0b0c 91%); }
.pd-pat-hatch { background: #1c1c1e repeating-linear-gradient(135deg, transparent 0 10px, #222225 10px 11px); }

.pd-stripe {
  height: 10px;
  background: #f4f4f1 linear-gradient(90deg, #0b0b0c 0 7%, transparent 7% 12%, #e10a17 12% 19%, transparent 19% 23%, #0b0b0c 23% 25%, transparent 25% 33%, #e10a17 33% 46%, transparent 46% 50%, #0b0b0c 50% 58%, transparent 58% 61%, #ffd100 61% 63%, transparent 63% 70%, #0b0b0c 70% 72%, transparent 72% 78%, #e10a17 78% 90%, transparent 90% 93%, #0b0b0c 93%);
}

.pd-ghost {
  color: transparent !important;
  -webkit-text-stroke: 1.5px #26262a;
  pointer-events: none;
  user-select: none;
}

.pd-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.pd-stat strong,
.pd-stat .pd-stat-value {
  display: block;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
}

.pd-stat span,
.pd-stat .pd-stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--pd-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pd-mute);
}

.pd-slash {
  width: 2px;
  height: 56px;
  background: var(--pd-red);
  transform: skewX(-18deg);
  flex: none;
}

.pd-section {
  padding-bottom: 72px;
}

.pd-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.pd-section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3vw, 40px);
}

.pd-section-head .pd-kicker { letter-spacing: 0.5em; }

.pd-link {
  color: var(--pd-ink);
  font-family: var(--pd-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.pd-link:hover { color: var(--pd-red-hi); }

.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.pd-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: #2a2a2d;
  background-size: cover;
  background-position: center;
  color: var(--pd-ink);
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.pd-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 48px 28px;
  border: 1px dashed #3a3a3e !important;
  color: var(--pd-soft);
}

.pd-skel {
  background: linear-gradient(90deg, #141415 0, #1f1f22 40%, #141415 80%);
  background-size: 200% 100%;
  animation: pd-skel 1.2s linear infinite;
}

@keyframes pd-skel { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .pd-skel { animation: none; }
}

/* ===================== 4. Shell ===================== */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex !important;
  align-items: center;
  gap: 16px;
  height: var(--pd-header-h) !important;
  min-height: var(--pd-header-h);
  padding: 0 var(--pd-gutter) 0 0 !important;
  background: var(--pd-bg) !important;
  border-bottom: 1px solid var(--pd-line) !important;
  grid-template-columns: none !important;
}

body .topbar,
body.site-dark-mode .topbar {
  background: var(--pd-bg) !important;
}

.topbar::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 380px;
  max-width: 70%;
  height: 3px;
  background: linear-gradient(90deg, var(--pd-red) 0 56%, transparent 56% 60%, var(--pd-ink) 60% 64%, transparent 64% 70%, var(--pd-yellow) 70% 74%, transparent 74%);
  content: "";
  pointer-events: none;
}

.topbar-left {
  display: flex !important;
  align-self: stretch;
  align-items: center;
  gap: 12px;
  padding: 0 28px 0 var(--pd-gutter);
  border-right: 1px solid var(--pd-line);
}

.brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark,
.footer-mark {
  display: block !important;
  width: 18px !important;
  min-width: 18px;
  height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  background: linear-gradient(90deg, var(--pd-red) 0 58%, transparent 58% 74%, var(--pd-yellow) 74%) !important;
  color: transparent !important;
  font-size: 0 !important;
  clip-path: none !important;
  transform: skewX(-18deg);
  box-shadow: none !important;
}

.brand-name,
.footer-brand h2 {
  display: inline !important;
  color: var(--pd-ink) !important;
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900 !important;
  font-size: 22px !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name b,
.pd-versus {
  color: var(--pd-red-hi);
  font-weight: inherit;
}

.pd-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  min-width: 0;
  margin-left: -4px;
}

.pd-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: -8px;
  padding: 0 24px;
  color: #a9a9af;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.pd-nav-link i {
  color: var(--pd-red-hi);
  font-family: var(--pd-mono);
  font-style: normal;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.pd-nav-link:hover { background: var(--pd-panel-2); color: #fff; }
.pd-nav-link.is-active,
.pd-nav-link.is-active:hover { background: var(--pd-red); color: #fff; }
.pd-nav-link.is-active i { color: var(--pd-yellow); }
.pd-nav-link[hidden] { display: none !important; }

.topbar .search-form::before,
.topbar .search-form::after {
  display: none !important;
}

.topbar .search-form {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  max-width: 360px;
  height: 44px;
  margin-left: auto;
  padding: 0 14px;
  background: var(--pd-panel) !important;
  border: 1px solid var(--pd-line) !important;
  border-left: 3px solid var(--pd-red) !important;
  clip-path: none !important;
}

.topbar .search-form input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--pd-ink);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.topbar .search-form input::placeholder { color: var(--pd-mute); }
.topbar .search-form .ui-icon { width: 18px; height: 18px; color: var(--pd-mute); }

.topbar-actions {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.pd-create {
  min-height: 44px !important;
  padding: 0 22px !important;
}

.pd-create.is-active { background: var(--pd-ink); color: var(--pd-bg); }

.auth-header-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px !important;
  background: var(--pd-panel) !important;
  border: 1px solid var(--pd-line) !important;
  color: var(--pd-ink) !important;
  clip-path: var(--pd-slant) !important;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
}

.auth-header-button[data-auth-signed-in="true"] {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  clip-path: none !important;
}

.auth-header-button[data-auth-signed-in="true"]::before {
  background-color: var(--pd-ink) !important;
  color: var(--pd-bg) !important;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
}

.notification-header-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: 1px solid var(--pd-line) !important;
  color: var(--pd-ink) !important;
  clip-path: none !important;
}

.notification-count {
  background: var(--pd-red) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-family: var(--pd-mono);
  font-weight: 700;
}

.site-main {
  margin-left: 0 !important;
  padding-top: var(--pd-header-h) !important;
}

.menu-button {
  display: none !important;
}

/* Drawer (mobile) — the legacy sidebar is kept for site.js hooks */
.sidebar {
  background: var(--pd-bg) !important;
  clip-path: none !important;
  border-right: 1px solid var(--pd-line) !important;
}

.sidebar .nav-link {
  border-left: 4px solid transparent !important;
  color: #a9a9af !important;
  font-family: var(--pd-display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  clip-path: none !important;
}

.sidebar .nav-link:hover { background: var(--pd-panel-2) !important; color: #fff !important; }
.sidebar .nav-link.active { background: var(--pd-red) !important; border-left-color: var(--pd-yellow) !important; color: #fff !important; }
.sidebar .nav-link::after { display: none !important; }
.subscription-panel,
.subscription-user { background: var(--pd-panel) !important; }
.mini-avatar { background: var(--pd-red) !important; clip-path: none !important; }

.topbar-left,
.pd-nav,
.topbar-actions {
  flex: none;
}

.brand-name {
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Search collapses to an icon when the header gets tight; it expands on focus. */
@media (max-width: 1400px) and (min-width: 761px) {
  .topbar .search-form {
    flex: 0 0 44px;
    width: 44px;
    margin-left: auto;
    padding: 0;
    justify-content: center;
    border-left-width: 1px !important;
    transition: flex-basis 0.18s ease, width 0.18s ease;
  }

  .topbar .search-form input {
    position: absolute;
    inset: 0;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 0 12px 0 40px !important;
    opacity: 0;
    cursor: pointer;
  }

  .topbar .search-form .ui-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    margin: 0 !important;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .topbar .search-form:focus-within {
    flex-basis: 260px;
    width: 260px;
    justify-content: flex-start;
    padding-left: 12px;
    border-left-width: 3px !important;
  }

  .topbar .search-form:focus-within input {
    opacity: 1;
    cursor: text;
  }
}

@media (max-width: 1320px) and (min-width: 1121px) {
  .pd-nav-link { padding: 0 16px; font-size: 12.5px; }
  .topbar-left { padding-right: 18px; }
  .brand-name { font-size: 19px !important; }
}

@media (min-width: 1121px) {
  .sidebar,
  .sidebar-backdrop {
    display: none !important;
  }

  :root,
  body.sidebar-collapsed {
    --sidebar-width: 0px;
    --topbar-height: 68px;
  }
}

@media (max-width: 1120px) {
  :root { --topbar-height: 64px; --pd-header-h: 64px; }

  .pd-nav,
  .pd-create { display: none !important; }

  .topbar-left { border-right: 0; padding-right: 8px; }

  .menu-button {
    display: grid !important;
    place-content: center;
    gap: 4px;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: var(--pd-panel) !important;
    border: 1px solid var(--pd-line) !important;
    clip-path: none !important;
  }

  .menu-button span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;
    background: var(--pd-ink) !important;
  }

  .topbar .search-form { max-width: none; }
}

@media (max-width: 760px) {
  .topbar .brand,
  .topbar .brand-name { display: flex !important; }
  .topbar .brand-name { display: inline !important; font-size: 18px !important; }
  .topbar .search-form { flex: 0 0 44px; width: 44px; padding: 0; justify-content: center; border-left-width: 1px !important; }
  .topbar .search-form input { display: none; }
  .auth-header-button:not([data-auth-signed-in="true"]) { padding: 0 14px !important; }
}

/* Footer */
.footer {
  position: relative;
  margin-top: 0 !important;
  background: var(--pd-bg) !important;
  border-top: 1px solid var(--pd-line) !important;
  clip-path: none !important;
}

.footer::before {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background: #f4f4f1 linear-gradient(90deg, #0b0b0c 0 7%, transparent 7% 12%, #e10a17 12% 19%, transparent 19% 23%, #0b0b0c 23% 25%, transparent 25% 33%, #e10a17 33% 46%, transparent 46% 50%, #0b0b0c 50% 58%, transparent 58% 61%, #ffd100 61% 63%, transparent 63% 70%, #0b0b0c 70% 72%, transparent 72% 78%, #e10a17 78% 90%, transparent 90% 93%, #0b0b0c 93%);
  content: "";
}

.footer-brand p { color: #a9a9af !important; }
.footer-brand a,
.footer-links a { color: var(--pd-ink) !important; text-decoration: none; }
.footer-links a:hover { color: var(--pd-red-hi) !important; }

.footer-links h3 {
  color: var(--pd-mute) !important;
  font-family: var(--pd-mono) !important;
  font-size: 11px !important;
  font-style: normal;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  font-stretch: 100%;
}

.footer-bottom,
.footer-bottom p {
  color: var(--pd-mute) !important;
  font-family: var(--pd-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===================== 5. Legacy re-skin ===================== */

.eyebrow,
[class*="eyebrow"] {
  color: var(--pd-red-hi) !important;
  font-family: var(--pd-mono);
  font-size: 11px !important;
  font-style: normal;
  font-weight: 500 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
}

label,
small,
em,
.card-meta,
.list-card-stat,
.metric-top {
  font-family: var(--pd-mono);
  font-style: normal;
}

.list-card-stat,
.card-meta,
.metric-top {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

em { color: var(--pd-mute) !important; }

.text-action,
.premium-banner-link,
.auth-modal-submit,
.auth-submit,
.premium-plan-button,
.primary-button,
.button-primary,
[class*="-primary"]:is(a, button),
[class*="play-button"] {
  background: var(--pd-red) !important;
  color: #fff !important;
  border: 0 !important;
  clip-path: var(--pd-slant) !important;
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.text-action:hover,
.premium-banner-link:hover,
.auth-modal-submit:hover,
[class*="-primary"]:is(a, button):hover {
  background: #ff2a33 !important;
}

.save-button,
.list-finish-later-button,
.grid-arrow,
.rail-button {
  background: var(--pd-panel) !important;
  border: 1px solid var(--pd-line) !important;
  color: var(--pd-ink) !important;
  clip-path: none !important;
}

.save-button:hover,
.list-finish-later-button:hover,
.grid-arrow:hover,
.rail-button:hover {
  border-color: var(--pd-ink) !important;
}

.section-dot {
  width: 7px !important;
  height: 26px !important;
  background: var(--pd-red) !important;
  border-radius: 0 !important;
  clip-path: none !important;
  transform: skewX(-18deg);
}

.versus-card,
.mini-card {
  background: var(--pd-panel) !important;
  border: 1px solid var(--pd-line) !important;
  clip-path: var(--pd-cut) !important;
}

.versus-card:hover,
.mini-card:hover { border-color: var(--pd-ink) !important; }

.card-media,
.mini-media { background-color: var(--pd-panel-2) !important; }
.card-body,
.mini-card-body { background: var(--pd-panel) !important; }

.creator-link {
  color: var(--pd-red-hi) !important;
  font-family: var(--pd-mono);
  font-size: 12px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  border-color: var(--pd-line) !important;
  border-radius: 0;
  clip-path: none !important;
}

/* Auth modal */
.auth-modal-panel {
  background: var(--pd-bg) !important;
  border: 1px solid var(--pd-line) !important;
  border-top: 4px solid var(--pd-red) !important;
  clip-path: var(--pd-cut) !important;
}

.auth-modal-logo,
.auth-logo {
  width: 22px !important;
  height: 32px !important;
  padding: 0 !important;
  background: linear-gradient(90deg, var(--pd-red) 0 58%, transparent 58% 74%, var(--pd-yellow) 74%) !important;
  color: transparent !important;
  font-size: 0 !important;
  clip-path: none !important;
  transform: skewX(-18deg);
}

.auth-modal-tabs,
.auth-tabs {
  background: var(--pd-panel) !important;
  clip-path: none !important;
  gap: 0 !important;
}

.auth-modal-tabs button,
.auth-tabs button {
  color: var(--pd-mute) !important;
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.auth-modal-tabs .is-active,
.auth-tabs button.is-active {
  background: var(--pd-red) !important;
  color: #fff !important;
}

.auth-tabs button.is-active::after { display: none !important; }

.auth-modal-control,
.auth-control,
.google-auth-button,
.social-auth button {
  background: var(--pd-panel) !important;
  color: var(--pd-ink) !important;
  clip-path: none !important;
}

.auth-control input { background: transparent !important; color: var(--pd-ink) !important; }
.auth-modal-forgot,
.forgot-link,
.auth-legal a { color: var(--pd-red-hi) !important; }

@media (max-width: 440px) {
  .topbar { gap: 8px; padding-right: 12px !important; }
  .topbar-left { gap: 8px; padding-left: 12px; padding-right: 0; }
  .topbar-actions { gap: 6px; }
  .brand { gap: 8px; }
  .topbar .brand-name { font-size: 15px !important; }
  .brand-mark { width: 12px !important; min-width: 12px; height: 20px !important; }
  .menu-button,
  .notification-header-button,
  .auth-header-button[data-auth-signed-in="true"] { width: 40px !important; min-width: 40px !important; height: 40px !important; }
  .topbar .search-form { flex: 0 0 40px; width: 40px; height: 40px; }
}

/* ===================== 6. Font override (legacy home.css forces Chakra Petch with !important) ===================== */

body,
button,
input,
textarea,
select {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif !important;
}

.pd-m,
.pd-kicker,
.pd-chip,
.pd-link,
.pd-cover-tag,
.pd-stat span,
.pd-stat .pd-stat-label,
.pd-slanttab small,
.pd-nav-link i,
.eyebrow,
.footer-links h3,
.footer-bottom,
.footer-bottom p {
  font-family: var(--pd-mono) !important;
}

.pd-d,
.pd-btn,
.pd-pos,
.pd-slanttab,
.pd-tab,
.pd-cover-badge,
.pd-cover-num,
.pd-cover-title,
.pd-stat strong,
.pd-stat .pd-stat-value,
.pd-avatar,
.pd-nav-link,
.brand-name,
.auth-header-button,
h1,
h2,
h3 {
  font-family: var(--pd-display) !important;
}

/* ===================== 7. Auth gate (full-screen sign in / sign up, markup in site.js, FX in pd/gate.js) ===================== */

html body .pd-gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--pd-bg);
  color: var(--pd-ink);
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  --gate-px: 0;
  --gate-py: 0;
  --gate-charge: 0;
}

html body.auth-modal-open .pd-gate {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}

html body.auth-modal-open { overflow: hidden !important; }
html body.pd-gate-page .pd-gate { transition: none; }

.pd-gate-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ---------- top bar ---------- */
.pd-gate-top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
  padding: 0 var(--pd-gutter);
  background: var(--pd-bg);
  border-bottom: 1px solid var(--pd-line);
}

.pd-gate-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, var(--pd-red) 0 62%, transparent 62% 64%, var(--pd-yellow) 64% 70%, transparent 70% 72%, var(--pd-ink) 72% 74%, transparent 74%);
}

html body .pd-gate .pd-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pd-ink) !important;
  text-decoration: none;
}

.pd-gate-brand-name {
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--pd-ink);
}

.pd-gate-brand-name b { color: var(--pd-red); font-weight: 900; }

.pd-gate-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pd-mute);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pd-gate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pd-red);
  box-shadow: 0 0 0 0 rgba(225, 10, 23, 0.6);
  animation: gate-dot 1.6s ease-out infinite;
}

html body .pd-gate .pd-gate-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  height: 40px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--pd-line);
  background: transparent !important;
  color: var(--pd-ink) !important;
  cursor: pointer;
  clip-path: var(--pd-slant-sm);
  transition: background 0.18s ease;
}

html body .pd-gate .pd-gate-close:hover { background: var(--pd-red) !important; }
.pd-gate-close .pd-m { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.pd-gate-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- layout ---------- */
.pd-gate-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  min-height: calc(100vh - 68px);
}

/* ---------- visual side ---------- */
.pd-gate-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  min-height: 600px;
  box-sizing: border-box;
  padding: 40px clamp(24px, 4vw, 64px) 84px;
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(225, 10, 23, 0.22), transparent 60%),
    linear-gradient(180deg, #0e0e0f, #0b0b0c);
  box-shadow: inset -1px 0 0 var(--pd-line);
}

.pd-gate-speed {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 46px 48px, transparent 48px 120px, rgba(225, 10, 23, 0.08) 120px 124px);
  animation: gate-speed 7s linear infinite;
  pointer-events: none;
}

html body .pd-gate.is-busy .pd-gate-speed { animation-duration: 0.9s; }

.pd-gate-visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  bottom: 0;
  width: 120px;
  background: var(--pd-red);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  pointer-events: none;
}

.pd-gate-ghost {
  position: absolute;
  right: 6%;
  bottom: -6%;
  font-size: clamp(220px, 42vh, 460px) !important;
  line-height: 0.8;
  color: transparent !important;
  -webkit-text-stroke: 2px #232326;
  transform: translate(calc(var(--gate-px) * -40px), calc(var(--gate-py) * -24px));
  transition: transform 0.25s ease-out;
  pointer-events: none;
  user-select: none;
}

.pd-gate-lightsbox,
.pd-gate-licence,
.pd-gate-slogan { position: relative; z-index: 1; }

/* start lights */
.pd-gate-lights {
  display: flex;
  gap: 12px;
}

.pd-gate-lights > span {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #050505;
  border: 1px solid var(--pd-line);
}

.pd-gate-lights > span::before {
  content: "";
  position: absolute;
  top: -14px;
  left: calc(50% - 2px);
  width: 4px;
  height: 13px;
  background: var(--pd-line);
}

.pd-gate-lights i {
  display: block;
  width: clamp(26px, 2.6vw, 36px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b0d0f, #160607 70%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.pd-gate-lights > span.is-on i {
  background: radial-gradient(circle at 35% 32%, #ff8a8d, #ff2a31 35%, #e10a17 62%, #7d0009);
  box-shadow: 0 0 18px rgba(225, 10, 23, 0.75), 0 0 46px rgba(225, 10, 23, 0.35);
}

.pd-gate-lights > span.is-pop { animation: gate-pop 0.32s ease-out; }
html body .pd-gate.is-check .pd-gate-lights > span.is-on i { background: radial-gradient(circle at 35% 32%, #fff3b0, #ffd100 50%, #8a6f00); box-shadow: 0 0 18px rgba(255, 209, 0, 0.6); }
html body .pd-gate.is-ready .pd-gate-lights > span.is-on i { animation: gate-glow 1.4s ease-in-out infinite; }
html body .pd-gate.is-busy .pd-gate-lights > span i { animation: gate-scan 0.9s linear infinite; }
html body .pd-gate.is-busy .pd-gate-lights > span:nth-child(2) i { animation-delay: 0.12s; }
html body .pd-gate.is-busy .pd-gate-lights > span:nth-child(3) i { animation-delay: 0.24s; }
html body .pd-gate.is-busy .pd-gate-lights > span:nth-child(4) i { animation-delay: 0.36s; }
html body .pd-gate.is-busy .pd-gate-lights > span:nth-child(5) i { animation-delay: 0.48s; }
html body .pd-gate.is-fail .pd-gate-lights > span i { animation: gate-fail 0.28s steps(2, jump-none) 3; }
html body .pd-gate.is-out .pd-gate-lights > span i {
  background: radial-gradient(circle at 35% 35%, #2b0d0f, #160607 70%) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8) !important;
  animation: none !important;
  transition: none;
}

.pd-gate-lights-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 372px;
  margin-top: 14px;
  color: var(--pd-mute);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pd-gate-count { color: var(--pd-ink); }
html body .pd-gate.is-ready .pd-gate-lights-meta,
html body .pd-gate.is-ready .pd-gate-count { color: var(--pd-yellow); }

/* competitor licence */
.pd-gate-licence {
  width: min(100%, 520px);
  padding: 22px 24px 18px;
  background: var(--pd-panel);
  clip-path: var(--pd-cut);
  transform: perspective(1000px) rotateY(calc(var(--gate-px) * 9deg)) rotateX(calc(var(--gate-py) * -7deg));
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
  box-shadow: inset 0 0 0 1px var(--pd-line);
}

.pd-gate-licence::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pd-red) 0 calc(var(--gate-charge) * 100%), #2a2a2d calc(var(--gate-charge) * 100%));
  transition: background 0.3s ease;
}

html body .pd-gate.is-ready .pd-gate-licence { box-shadow: inset 0 0 0 1px var(--pd-yellow); }
html body .pd-gate.is-ready .pd-gate-licence::before { background: linear-gradient(90deg, var(--pd-red) 0 82%, var(--pd-yellow) 82%); }

.pd-gate-licence-head,
.pd-gate-strength-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--pd-mute);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pd-gate-licence-state {
  padding: 4px 10px;
  background: var(--pd-panel-2);
  color: var(--pd-soft);
  clip-path: var(--pd-slant-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.pd-gate-licence-state[data-tone="ready"] { background: var(--pd-yellow); color: #0b0b0c; }
.pd-gate-licence-state[data-tone="busy"] { background: var(--pd-ink); color: #0b0b0c; animation: gate-blink 0.6s steps(2, jump-none) infinite; }
.pd-gate-licence-state[data-tone="fail"] { background: var(--pd-red); color: #fff; }

.pd-gate-licence-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 20px;
}

.pd-gate-num {
  min-width: 2ch;
  font-size: 76px !important;
  line-height: 0.9;
  color: transparent !important;
  -webkit-text-stroke: 2px var(--pd-red);
}

.pd-gate-num.is-roll { animation: gate-roll 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }

.pd-gate-licence-id { display: grid; gap: 6px; min-width: 0; }

.pd-gate-name {
  overflow: hidden;
  font-size: clamp(20px, 1.9vw, 28px) !important;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pd-mute);
  transition: color 0.2s ease;
}

.pd-gate-licence.has-name .pd-gate-name { color: var(--pd-ink); }
.pd-gate-name.is-tick { animation: gate-tick 0.22s ease-out; }
.pd-gate-handle { overflow: hidden; color: var(--pd-mute); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.pd-gate-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--pd-panel-2);
  color: var(--pd-mute) !important;
  font-size: 20px !important;
  clip-path: var(--pd-slant-sm);
  transition: background 0.25s ease, color 0.25s ease;
}

.pd-gate-licence.has-name .pd-gate-avatar { background: var(--pd-red); color: #fff !important; }

.pd-gate-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: var(--pd-line);
  border: 1px solid var(--pd-line);
}

.pd-gate-specs > div { display: grid; gap: 4px; padding: 10px 12px; background: var(--pd-panel); }
.pd-gate-specs .pd-m { color: var(--pd-mute); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.pd-gate-specs strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }

.pd-gate-segs {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.pd-gate-segs i {
  flex: 1;
  height: 12px;
  background: var(--pd-panel-2);
  transform: skewX(-22deg);
  transition: background 0.18s ease;
}

.pd-gate-segs i.is-weak { background: var(--pd-red-dark); }
.pd-gate-segs i.is-fair { background: var(--pd-red); }
.pd-gate-segs i.is-strong { background: var(--pd-ink); }
.pd-gate-segs i.is-max { background: var(--pd-yellow); }
.pd-gate-licence[data-strength="max"] [data-gate-strength] { color: var(--pd-yellow); }

.pd-gate-code {
  display: block;
  height: 20px;
  margin-top: 18px;
  opacity: 0.5;
  background: repeating-linear-gradient(90deg, var(--pd-ink) 0 2px, transparent 2px 5px, var(--pd-ink) 5px 6px, transparent 6px 9px, var(--pd-ink) 9px 12px, transparent 12px 14px);
}

.pd-gate-slogan {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.pd-gate-slogan .pd-d { font-size: clamp(36px, 4.2vw, 68px) !important; line-height: 1; }
.pd-gate-win { color: var(--pd-red) !important; }

.pd-gate-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  height: 38px;
  overflow: hidden;
  background: var(--pd-red);
}

.pd-gate-marquee span {
  flex: none;
  padding-right: 0;
  color: #fff;
  font-size: 12px;
  line-height: 38px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: gate-marquee 28s linear infinite;
}

/* ---------- form side ---------- */
.pd-gate-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--pd-gutter) 56px;
  background: var(--pd-bg);
}

.pd-gate-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 440px);
}

.pd-gate-kicker {
  color: var(--pd-red);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

html body .pd-gate.is-ready .pd-gate-kicker { color: var(--pd-yellow); }

html body .pd-gate .pd-gate-title {
  margin: 0;
  color: var(--pd-ink);
  font-size: clamp(42px, 4.2vw, 64px) !important;
  line-height: 0.95;
  text-transform: uppercase;
}

.pd-gate-title.is-flip { animation: gate-flip 0.42s cubic-bezier(0.7, 0, 0.2, 1); }
.pd-gate-copy { margin: -4px 0 4px; color: var(--pd-mute); font-size: 15px; line-height: 1.5; }

/* tabs */
.pd-gate-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 54px;
  background: var(--pd-panel);
  box-shadow: inset 0 0 0 1px var(--pd-line);
}

html body .pd-gate .pd-gate-tabs button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0 !important;
  background: transparent !important;
  color: var(--pd-mute) !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

html body .pd-gate .pd-gate-tabs button:hover { color: var(--pd-ink) !important; }
html body .pd-gate .pd-gate-tabs button.is-active { color: #fff !important; }
.pd-gate-tabs button .pd-m { font-size: 11px; opacity: 0.8; }
html body .pd-gate .pd-gate-tabs button.is-active .pd-m { color: var(--pd-yellow); opacity: 1; }

.pd-gate-tabs-ink {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--pd-red);
  clip-path: var(--pd-slant);
  transition: transform 0.38s cubic-bezier(0.7, 0, 0.2, 1);
}

.pd-gate-tabs[data-mode="signup"] .pd-gate-tabs-ink { transform: translateX(100%); }

/* google */
html body .pd-gate .pd-gate-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  border: 0 !important;
  background: var(--pd-ink) !important;
  color: #0b0b0c !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  clip-path: var(--pd-slant);
  transition: transform 0.18s ease, background 0.18s ease;
}

html body .pd-gate .pd-gate-google:hover { background: #fff !important; transform: translateX(4px); }
.pd-gate-google .google-logo { display: grid; place-items: center; width: 22px; height: 22px; }
.pd-gate-google .google-logo svg { width: 20px; height: 20px; }

.pd-gate-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--pd-mute);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pd-gate-divider::before,
.pd-gate-divider::after { content: ""; flex: 1; height: 1px; background: var(--pd-line); }

.pd-gate-error {
  margin: 0;
  padding: 12px 14px;
  background: rgba(225, 10, 23, 0.12);
  box-shadow: inset 3px 0 0 var(--pd-red);
  color: #ffb3b5;
  font-size: 14px;
  line-height: 1.45;
}

.pd-gate-error[hidden],
.pd-gate-form[hidden] { display: none !important; }
.pd-gate-error.is-shake { animation: gate-shake 0.42s ease; }

/* fields */
.pd-gate-form {
  display: grid;
  gap: 26px;
}

.pd-gate-form.is-enter { animation: gate-enter 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }

.pd-gate-field {
  position: relative;
  height: 60px;
  background: var(--pd-panel);
  box-shadow: inset 0 0 0 1px var(--pd-line);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.pd-gate-field::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 3px;
  background: var(--pd-red);
  transform: scaleY(0);
  transition: transform 0.22s ease;
}

.pd-gate-field:focus-within { background: #18181a; box-shadow: inset 0 0 0 1px #3a3a3e; }
.pd-gate-field:focus-within::before { transform: scaleY(1); }
.pd-gate-field.is-valid::before { background: var(--pd-yellow); transform: scaleY(1); }
.pd-gate-field.is-invalid { box-shadow: inset 0 0 0 1px var(--pd-red); }
.pd-gate-field.is-reject { animation: gate-shake 0.32s ease; }

html body .pd-gate .pd-gate-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px 92px 8px 18px !important;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pd-ink) !important;
  font-size: 16px !important;
  caret-color: var(--pd-red);
}

html body .pd-gate .pd-gate-input::-ms-reveal,
html body .pd-gate .pd-gate-input::-ms-clear { display: none; }

html body .pd-gate .pd-gate-input:-webkit-autofill {
  -webkit-text-fill-color: var(--pd-ink);
  -webkit-box-shadow: 0 0 0 60px #18181a inset !important;
}

.pd-gate-label {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--pd-mute);
  font-size: 15px;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, letter-spacing 0.18s ease;
  pointer-events: none;
}

.pd-gate-input:focus + .pd-gate-label,
.pd-gate-input:not(:placeholder-shown) + .pd-gate-label,
.pd-gate-input:-webkit-autofill + .pd-gate-label {
  top: 17px;
  color: var(--pd-mute);
  font-family: var(--pd-mono) !important;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pd-gate-input:focus + .pd-gate-label { color: var(--pd-red-hi); }
.pd-gate-field.is-valid .pd-gate-input:focus + .pd-gate-label { color: var(--pd-yellow); }
.pd-gate-field.is-invalid .pd-gate-label { color: var(--pd-red-hi) !important; }

.pd-gate-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pd-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pd-gate-field:focus-within .pd-gate-line,
.pd-gate-field.is-invalid .pd-gate-line { transform: scaleX(1); }
.pd-gate-field.is-valid .pd-gate-line { background: var(--pd-yellow); }
.pd-gate-field.is-key .pd-gate-line { animation: gate-key 0.24s ease-out; }

.pd-gate-ok {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  background: var(--pd-yellow);
  transform: scale(0) rotate(-45deg);
  transition: transform 0.28s cubic-bezier(0.3, 1.6, 0.5, 1);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.pd-gate-ok svg { width: 16px; height: 16px; fill: none; stroke: #0b0b0c; stroke-width: 3; }
.pd-gate-field.is-valid .pd-gate-ok { transform: scale(1) rotate(0); }
.pd-gate-field:has(.pd-gate-eye) .pd-gate-ok { right: 56px; }

html body .pd-gate .pd-gate-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--pd-mute) !important;
  cursor: pointer;
}

html body .pd-gate .pd-gate-eye:hover,
html body .pd-gate .pd-gate-eye.is-on { color: var(--pd-ink) !important; }
.pd-gate-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-gate-eye.is-on svg path:first-child { stroke: var(--pd-red); }

.pd-gate-hint {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--pd-mute);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pd-gate-hint:empty { display: none; }
.pd-gate-hint[data-tone="ok"],
.pd-gate-hint[data-tone="max"] { color: var(--pd-yellow); }
.pd-gate-hint[data-tone="warn"] { color: var(--pd-yellow); }
.pd-gate-hint[data-tone="warn"]::before { content: "\25B2  "; }
.pd-gate-field.is-invalid .pd-gate-hint { color: var(--pd-red-hi); }

.pd-gate-row { display: flex; justify-content: flex-end; margin-top: -14px; }

html body .pd-gate .pd-gate-forgot {
  color: var(--pd-mute) !important;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

html body .pd-gate .pd-gate-forgot:hover { color: var(--pd-red-hi) !important; }

/* submit: charges with the lights */
html body .pd-gate .pd-gate-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 26px 0 28px;
  overflow: hidden;
  border: 0 !important;
  background: var(--pd-panel-2) !important;
  color: #fff !important;
  cursor: pointer;
  clip-path: var(--pd-slant);
}

.pd-gate-submit-fill {
  position: absolute;
  inset: 0;
  background: var(--pd-red);
  transform: scaleX(var(--gate-charge));
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pd-gate-submit-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-120%);
}

html body .pd-gate.is-ready .pd-gate-submit-fill::after { animation: gate-shine 2.2s ease-in-out infinite; }
html body .pd-gate.is-busy .pd-gate-submit-fill {
  transform: scaleX(1);
  background: repeating-linear-gradient(-60deg, var(--pd-red) 0 18px, var(--pd-red-dark) 18px 36px);
  background-size: 200% 100%;
  animation: gate-stripes 0.6s linear infinite;
}

.pd-gate-submit-label {
  position: relative;
  font-family: var(--pd-display) !important;
  font-stretch: 125%;
  font-style: italic;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pd-gate-submit-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.pd-gate-submit-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; }
html body .pd-gate .pd-gate-submit:hover .pd-gate-submit-arrow { transform: translateX(5px); }
html body .pd-gate.is-ready .pd-gate-submit-arrow { animation: gate-nudge 1s ease-in-out infinite; }
html body .pd-gate .pd-gate-submit[aria-busy] { cursor: progress; }
html body .pd-gate .pd-gate-submit:focus-visible { outline: 2px solid var(--pd-yellow) !important; outline-offset: 3px; }

.pd-gate-switch { margin: 4px 0 0; color: var(--pd-mute); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

html body .pd-gate .pd-gate-switch button {
  margin-left: 10px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--pd-ink) !important;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--pd-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-transform: uppercase;
  cursor: pointer;
}

.pd-gate-legal { margin: 0; color: var(--pd-mute); font-size: 12px; line-height: 1.5; }
html body .pd-gate .pd-gate-legal a { color: var(--pd-soft) !important; }

/* ---------- success wipe ---------- */
.pd-gate-wipe {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.pd-gate-wipe i {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 190vw;
  transform: translateX(calc(-100% - 80vh)) skewX(-16deg);
}

.pd-gate-wipe i:nth-child(1) { background: var(--pd-yellow); }
.pd-gate-wipe i:nth-child(2) { background: var(--pd-ink); }
.pd-gate-wipe i:nth-child(3) { background: #0b0b0c; }
.pd-gate-wipe i:nth-child(4) { background: var(--pd-red); }

html body .pd-gate.is-go .pd-gate-wipe i { animation: gate-wipe 0.7s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
html body .pd-gate.is-go .pd-gate-wipe i:nth-child(2) { animation-delay: 0.05s; }
html body .pd-gate.is-go .pd-gate-wipe i:nth-child(3) { animation-delay: 0.1s; }
html body .pd-gate.is-go .pd-gate-wipe i:nth-child(4) { animation-delay: 0.16s; }

.pd-gate-wipe [data-gate-go] {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 92vw;
  overflow: hidden;
  color: #fff !important;
  font-size: clamp(56px, 11vw, 180px) !important;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

html body .pd-gate.is-go .pd-gate-wipe [data-gate-go] { animation: gate-go 0.5s 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* ---------- intro ---------- */
html body .pd-gate.is-intro .pd-gate-visual { animation: gate-reveal 0.6s cubic-bezier(0.7, 0, 0.2, 1) both; }
html body .pd-gate.is-intro .pd-gate-col > * { animation: gate-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html body .pd-gate.is-intro .pd-gate-col > :nth-child(2) { animation-delay: 0.05s; }
html body .pd-gate.is-intro .pd-gate-col > :nth-child(3) { animation-delay: 0.1s; }
html body .pd-gate.is-intro .pd-gate-col > :nth-child(4) { animation-delay: 0.15s; }
html body .pd-gate.is-intro .pd-gate-col > :nth-child(5) { animation-delay: 0.2s; }
html body .pd-gate.is-intro .pd-gate-col > :nth-child(6) { animation-delay: 0.24s; }
html body .pd-gate.is-intro .pd-gate-col > :nth-child(n+7) { animation-delay: 0.28s; }
html body .pd-gate.is-intro .pd-gate-licence { animation: gate-card 0.7s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes gate-dot { 0% { box-shadow: 0 0 0 0 rgba(225, 10, 23, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(225, 10, 23, 0); } }
@keyframes gate-speed { to { transform: translateX(265px); } }
@keyframes gate-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes gate-glow { 50% { box-shadow: 0 0 26px rgba(225, 10, 23, 0.95), 0 0 70px rgba(225, 10, 23, 0.5); } }
@keyframes gate-scan { 0%, 60%, 100% { background: radial-gradient(circle at 35% 35%, #2b0d0f, #160607 70%); box-shadow: none; } 20% { background: radial-gradient(circle at 35% 32%, #ff8a8d, #e10a17 62%); box-shadow: 0 0 20px rgba(225, 10, 23, 0.8); } }
@keyframes gate-fail { 0% { background: #fff; box-shadow: 0 0 22px rgba(255, 255, 255, 0.7); } 100% { background: #e10a17; box-shadow: 0 0 22px rgba(225, 10, 23, 0.9); } }
@keyframes gate-blink { 50% { opacity: 0.45; } }
@keyframes gate-roll { 0% { opacity: 0; transform: translateY(40%) skewY(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes gate-tick { 0% { color: var(--pd-red-hi); transform: translateX(-3px); } 100% { transform: none; } }
@keyframes gate-marquee { to { transform: translateX(-100%); } }
@keyframes gate-flip { 0% { clip-path: inset(0 100% 0 0); transform: translateX(-12px); } 100% { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes gate-enter { 0% { opacity: 0; transform: translateX(26px); } 100% { opacity: 1; transform: none; } }
@keyframes gate-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes gate-key { 0% { filter: brightness(2.2); } 100% { filter: none; } }
@keyframes gate-shine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
@keyframes gate-stripes { to { background-position: -72px 0; } }
@keyframes gate-nudge { 50% { transform: translateX(6px); } }
@keyframes gate-wipe { to { transform: translateX(-30vw) skewX(-16deg); } }
@keyframes gate-go { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes gate-reveal { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes gate-rise { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }
@keyframes gate-card { 0% { opacity: 0; transform: perspective(1000px) rotateY(-24deg) translateX(-40px); } 100% { opacity: 1; } }

/* ---------- responsive ---------- */
@media (min-width: 961px) and (max-height: 860px) {
  .pd-gate-slogan { display: none; }
}

@media (max-width: 960px) {
  .pd-gate-grid { grid-template-columns: 1fr; min-height: 0; }
  .pd-gate-visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px 24px;
    padding: 26px var(--pd-gutter) 30px;
    box-shadow: inset 0 -1px 0 var(--pd-line);
  }
  .pd-gate-visual::after,
  .pd-gate-slogan,
  .pd-gate-marquee,
  .pd-gate-specs,
  .pd-gate-code { display: none; }
  .pd-gate-ghost { right: -4%; bottom: -30%; font-size: 260px !important; }
  .pd-gate-licence { width: 100%; padding: 16px 18px 14px; transform: none; }
  .pd-gate-licence-body { margin: 12px 0 12px; gap: 14px; }
  .pd-gate-num { font-size: 52px !important; }
  .pd-gate-avatar { width: 46px; height: 46px; font-size: 16px !important; }
  .pd-gate-panel { align-items: flex-start; padding: 32px var(--pd-gutter) 48px; }
}

@media (max-width: 640px) {
  .pd-gate-top { gap: 12px; height: 60px; }
  .pd-gate-top-meta { display: none; }
  .pd-gate-close .pd-m { display: none; }
  html body .pd-gate .pd-gate-close { padding: 0 12px; }
  .pd-gate-visual { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; padding-bottom: 22px; }
  .pd-gate-lights { gap: 8px; }
  .pd-gate-lights > span { padding: 6px; gap: 6px; grid-auto-flow: column; }
  .pd-gate-lights > span::before { display: none; }
  .pd-gate-lights i { width: 22px; }
  .pd-gate-lights-meta { max-width: none; margin-top: 10px; }
  .pd-gate-licence-head { display: none; }
  .pd-gate-licence-body { margin-top: 0; }
  .pd-gate-name { font-size: 24px !important; }
  html body .pd-gate .pd-gate-title { font-size: 42px !important; }
  .pd-gate-panel { padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-gate *,
  .pd-gate *::before,
  .pd-gate *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .pd-gate-licence,
  .pd-gate-ghost { transform: none !important; }
}

/* ===================== 8. Guards against legacy `body.site-dark-mode button/*` overrides ===================== */

html body .pd-btn { color: #fff !important; }
html body .pd-btn--ghost { color: var(--pd-ink) !important; }
html body .pd-btn--white,
html body .pd-btn--yellow { color: var(--pd-bg) !important; }
html body .pd-btn--white:hover { color: var(--pd-red) !important; }
html body .pd-btn--black { color: var(--pd-yellow) !important; }
html body .pd-btn[disabled],
html body .pd-btn.is-disabled { color: #6e6e74 !important; }

html body .pd-chip { color: var(--pd-soft) !important; }
html body .pd-chip:hover { color: #fff !important; }
html body .pd-chip.is-on,
html body .pd-chip[aria-pressed="true"] { color: var(--pd-bg) !important; background: var(--pd-ink) !important; }

html body .pd-slanttab { color: var(--pd-soft) !important; }
html body .pd-slanttab:hover { color: #fff !important; }
html body .pd-slanttab.is-on,
html body .pd-slanttab[aria-selected="true"],
html body .pd-slanttab[aria-pressed="true"] { color: var(--pd-bg) !important; background: var(--pd-ink) !important; }

html body .pd-tab {
  color: #b4b4ba !important;
  border-width: 0 0 3px !important;
  border-style: solid !important;
  border-color: transparent !important;
}
html body .pd-tab:hover { color: #fff !important; }
html body .pd-tab.is-on,
html body .pd-tab[aria-selected="true"] { color: var(--pd-ink) !important; border-bottom-color: var(--pd-red) !important; }

html body .pd-pos:not(.pd-list-num) { color: var(--pd-bg) !important; }
html body .pd-pos.is-p1 { color: #fff !important; }
html body .pd-ib { color: var(--pd-ink) !important; }
html body .pd-nav-link { color: #a9a9af !important; }
html body .pd-nav-link:hover,
html body .pd-nav-link.is-active { color: #fff !important; }
html body .pd-create.is-active { color: var(--pd-bg) !important; }

/* ===================== 9. Long real-world titles ===================== */

/* Poster titles scale with the poster width and never spill out of it. */
.pd-cover { container-type: inline-size; }

html body .pd-cover .pd-cover-title {
  font-size: clamp(14px, 9.5cqw, 30px) !important;
  line-height: 1.16 !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.pd-disc-pick-title,
.pd-profile-poster-title { overflow-wrap: anywhere; }

/* Hero and page titles step down when the text is long (classes set by the page scripts). */
html body .pd-home-hero-title.pd-len-l { font-size: clamp(40px, 4.8vw, 72px); }
html body .pd-home-hero-title.pd-len-xl { font-size: clamp(34px, 3.8vw, 56px); }
html body .pd-list-title.pd-len-l { font-size: clamp(36px, 4vw, 60px) !important; }
html body .pd-list-title.pd-len-xl { font-size: clamp(30px, 3.2vw, 46px) !important; }

@media (max-width: 760px) {
  html body .pd-home-hero-title.pd-len-l { font-size: 34px; }
  html body .pd-home-hero-title.pd-len-xl { font-size: 28px; }
  html body .pd-list-title.pd-len-l { font-size: 28px !important; }
  html body .pd-list-title.pd-len-xl { font-size: 24px !important; }
}

/* Subscriptions are only mentioned to signed-in members. */
body:not(.site-authenticated) .subscription-panel { display: none !important; }
