.ex-chrome {
  --hd-paper: #f5f4f1;
  --hd-paper-2: #eae7e1;
  --hd-paper-3: #ddd9d2;
  --hd-ink: #0a0908;
  --hd-ink-2: #1f1e1b;
  --hd-ink-3: #4a4844;
  --hd-ink-4: #8c8983;
  --hd-accent: #ff5a1f;
  --hd-accent-2: #e14812;
  --hd-accent-soft: rgba(255, 90, 31, 0.1);
  --hd-rule: rgba(10, 9, 8, 0.14);
  --hd-card: #ffffff;
  --hd-card-edge: rgba(10, 9, 8, 0.12);
  --hd-shadow: 0 4px 12px rgba(10, 9, 8, 0.08);
  --hd-shadow-lg: 0 12px 32px rgba(10, 9, 8, 0.12);
  --hd-gutter: clamp(20px, 3vw, 32px);
}

html[data-theme='dark'] .ex-chrome {
  --hd-paper: #0f0e0c;
  --hd-paper-2: #1a1917;
  --hd-paper-3: #262421;
  --hd-ink: #faf8f4;
  --hd-ink-2: #d4d0c9;
  --hd-ink-3: #9a968e;
  --hd-ink-4: #4a4844;
  --hd-accent: #ff7844;
  --hd-accent-2: #ff9670;
  --hd-accent-soft: rgba(255, 120, 68, 0.14);
  --hd-rule: rgba(250, 248, 244, 0.14);
  --hd-card: #1a1917;
  --hd-card-edge: rgba(250, 248, 244, 0.12);
  --hd-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  --hd-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .ex-chrome {
    --hd-paper: #0f0e0c;
    --hd-paper-2: #1a1917;
    --hd-paper-3: #262421;
    --hd-ink: #faf8f4;
    --hd-ink-2: #d4d0c9;
    --hd-ink-3: #9a968e;
    --hd-ink-4: #4a4844;
    --hd-accent: #ff7844;
    --hd-accent-2: #ff9670;
    --hd-accent-soft: rgba(255, 120, 68, 0.14);
    --hd-rule: rgba(250, 248, 244, 0.14);
    --hd-card: #1a1917;
    --hd-card-edge: rgba(250, 248, 244, 0.12);
    --hd-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    --hd-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--hd-gutter);
  background: var(--hd-card);
  border-bottom: 1px solid var(--hd-rule);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.6;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-head, system-ui, sans-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--hd-ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-header .brand:hover {
  color: var(--hd-ink);
  text-decoration: none;
}
.site-header .brand-dot {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  margin-bottom: 4px;
  background: var(--hd-accent);
  border-radius: 0;
  align-self: flex-end;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header .site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--hd-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.site-header .site-nav a:hover {
  color: var(--hd-accent);
  text-decoration: none;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .util-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--hd-card-edge);
  border-radius: 8px;
  color: var(--hd-ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.site-header .util-btn:hover {
  background: var(--hd-paper-2);
  color: var(--hd-ink);
}
.site-header .util-btn svg {
  flex: none;
}
.site-header .util-btn .caret {
  opacity: 0.6;
  margin-left: 2px;
}

.site-header .bookmark-btn[aria-pressed='true'] {
  background: var(--hd-accent-soft);
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.site-header .bookmark-btn[aria-pressed='true'] svg {
  fill: var(--hd-accent);
}

.site-header .nav-cta {
  padding: 9px 16px;
  background: var(--hd-accent);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .nav-cta:hover {
  background: var(--hd-accent-2);
  color: #ffffff;
  text-decoration: none;
}

.site-header .lang-picker {
  position: relative;
}
.site-header .lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 164px;
  padding: 6px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 10px;
  box-shadow: var(--hd-shadow-lg);
}
.site-header .lang-menu[hidden] {
  display: none;
}
.site-header .lang-opt {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--hd-ink-2);
  font-family: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.site-header .lang-opt:hover {
  background: var(--hd-paper-3);
  color: var(--hd-ink);
}
.site-header .lang-opt.is-active {
  background: var(--hd-accent-soft);
  color: var(--hd-accent);
  font-weight: 600;
}

.site-header .reading-controls {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hd-card-edge);
  border-radius: 8px;
  overflow: hidden;
}
.site-header .reading-btn {
  display: inline-flex;
  align-items: baseline;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hd-card-edge);
  border-radius: 0;
  color: var(--hd-ink-2);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.site-header .reading-btn:last-child {
  border-right: 0;
  font-size: 13px;
}
.site-header .reading-btn.is-reset {
  font-size: 15px;
}
.site-header .reading-btn:hover:not(:disabled) {
  background: var(--hd-paper-2);
  color: var(--hd-accent);
}
.site-header .reading-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.site-header .reading-sign {
  margin-left: 1px;
  font-size: 9px;
}

.site-header .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hd-card-edge);
  border-radius: 8px;
  color: var(--hd-ink-2);
  cursor: pointer;
}
.site-header .nav-toggle:hover {
  background: var(--hd-paper-2);
  color: var(--hd-ink);
}

.site-header .preview-flag {
  padding: 5px 10px;
  background: var(--hd-accent-soft);
  border-radius: 4px;
  color: var(--hd-accent);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .site-header .util-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-header .util-btn {
    padding: 8px 11px;
  }
  .site-header .site-nav {
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  .site-header .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--hd-gutter) 14px;
    background: var(--hd-card);
    border-bottom: 1px solid var(--hd-rule);
    box-shadow: var(--hd-shadow-lg);
  }
  .site-header .site-nav[data-open='true'] {
    display: flex;
  }
  .site-header .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--hd-rule);
    font-size: 15px;
  }
  .site-header .site-nav a:last-child {
    border-bottom: 0;
  }
  .site-header .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 880px) {
  .site-header .reading-controls,
  .site-header .lang-picker {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    padding: 12px 16px;
  }
  .site-header .brand {
    font-size: 19px;
  }
  .site-header .header-actions {
    gap: 8px;
  }
  .site-header .bookmark-btn {
    display: none;
  }
  .site-header .nav-cta {
    padding: 9px 13px;
  }
}

.site-footer {
  margin-top: 40px;
  padding: 0;
  background: var(--hd-paper-2);
  border-top: 1px solid var(--hd-rule);
  color: var(--hd-ink-2);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.6;
}
.site-footer .footer-main {
  max-width: none;
  margin: 0;
  padding: 56px var(--hd-gutter) 40px;
}
.site-footer a {
  color: var(--hd-ink-2);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--hd-accent);
  text-decoration: none;
}

.site-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer .footer-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hd-rule);
  color: var(--hd-ink);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer .footer-col-head::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--hd-accent);
  border-radius: 2px;
}
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.site-footer .footer-links a::before {
  content: '\2192';
  color: var(--hd-ink-4);
  font-size: 12px;
  transition: color 0.15s, transform 0.15s;
}
.site-footer .footer-links a:hover::before {
  color: var(--hd-accent);
  transform: translateX(2px);
}

.site-footer .footer-brand-row {
  display: grid;
  grid-template-columns: 1.6fr minmax(320px, 1fr);
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--hd-rule);
}
.site-footer .footer-about-brand {
  display: inline-flex;
  align-items: flex-end;
  margin-bottom: 12px;
  color: var(--hd-ink);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 26px;
  font-weight: 700;
}
.site-footer .footer-about-brand .brand-dot {
  width: 7px;
  height: 7px;
  margin-left: 4px;
  margin-bottom: 6px;
  background: var(--hd-accent);
}
.site-footer .footer-about p {
  max-width: 640px;
  margin-bottom: 20px;
  color: var(--hd-ink-2);
  font-size: 14px;
  line-height: 1.65;
}
.site-footer .footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-meta li {
  color: var(--hd-ink-3);
  font-size: 13px;
  line-height: 1.5;
}
.site-footer .footer-meta strong {
  margin-right: 6px;
  color: var(--hd-ink);
  font-family: var(--font-head, system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-footer .footer-meta a {
  color: var(--hd-ink);
  border-bottom: 1px dashed var(--hd-card-edge);
}
.site-footer .footer-meta a:hover {
  color: var(--hd-accent);
  border-bottom-color: var(--hd-accent);
}

.site-footer .footer-newsletter {
  padding: 24px 26px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 14px;
  align-self: start;
}
.site-footer .footer-newsletter-head {
  margin: 0 0 8px;
  color: var(--hd-ink);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.site-footer .footer-newsletter-copy {
  margin: 0 0 16px;
  color: var(--hd-ink-3);
  font-size: 13px;
  line-height: 1.5;
}
.site-footer .footer-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.site-footer .footer-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: var(--hd-paper);
  border: 1px solid var(--hd-card-edge);
  border-radius: 8px;
  color: var(--hd-ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.site-footer .footer-form input[type='email']:focus {
  border-color: var(--hd-accent);
}
.site-footer .footer-form button {
  padding: 11px 20px;
  background: var(--hd-accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.site-footer .footer-form button:hover {
  background: var(--hd-accent-2);
}
.site-footer .footer-form button[disabled] {
  opacity: 0.6;
  cursor: default;
}
.site-footer .footer-form-error {
  margin: 0 0 12px;
  color: var(--hd-accent-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.site-footer .footer-form-error[hidden] {
  display: none;
}
.site-footer .footer-newsletter-fine {
  margin: 0;
  color: var(--hd-ink-4);
  font-size: 11px;
  line-height: 1.5;
}
.site-footer .footer-newsletter-fine a {
  color: var(--hd-ink-3);
}

.site-footer .footer-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hd-rule);
}
.site-footer .footer-social-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 8px;
  color: var(--hd-ink-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.site-footer .footer-social-list a:hover {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #ffffff;
  transform: translateY(-2px);
}
.site-footer .footer-social-list svg {
  width: 16px;
  height: 16px;
}
.site-footer .footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 999px;
  color: var(--hd-ink-3);
  font-size: 12.5px;
}

.site-footer .footer-bottom {
  padding: 20px var(--hd-gutter);
  background: var(--hd-paper-3);
  border-top: 1px solid var(--hd-rule);
  color: var(--hd-ink-3);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}
.site-footer .footer-bottom-inner {
  max-width: none;
  margin: 0;
}

@media (max-width: 1080px) {
  .site-footer .footer-brand-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 780px) {
  .site-footer .footer-main {
    padding: 40px 20px 32px;
  }
  .site-footer .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    margin-bottom: 36px;
  }
  .site-footer .footer-about-brand {
    font-size: 23px;
  }
  .site-footer .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .site-footer .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer .footer-newsletter {
    padding: 20px;
  }
  .site-footer .footer-form {
    flex-direction: column;
  }
  .site-footer .footer-social-list {
    flex-wrap: wrap;
  }
}

.ex-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 48px);
  padding: 12px 20px;
  background: var(--hd-ink);
  border-radius: 10px;
  color: var(--hd-paper);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--hd-shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.ex-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ex-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: var(--font-body, system-ui, sans-serif);
  overflow-y: auto;
}
.ex-modal[hidden] {
  display: none;
}
.ex-modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.62);
  backdrop-filter: blur(3px);
}
.ex-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 34px 34px 30px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 16px;
  box-shadow: var(--hd-shadow-lg);
  color: var(--hd-ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.ex-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--hd-ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ex-modal-close:hover {
  background: var(--hd-paper-2);
  color: var(--hd-ink);
}
.ex-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--hd-accent-soft);
  border-radius: 12px;
  color: var(--hd-accent);
}
.ex-modal-kicker {
  margin: 0 0 6px;
  color: var(--hd-accent);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ex-modal-title {
  margin: 0 0 10px;
  color: var(--hd-ink);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.ex-modal-lede {
  margin: 0 0 22px;
  color: var(--hd-ink-3);
  font-size: 14px;
}
.ex-modal-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 26px;
  padding: 20px;
  background: var(--hd-paper);
  border: 1px solid var(--hd-rule);
  border-radius: 12px;
  list-style: none;
}
.ex-modal-perks li {
  display: flex;
  gap: 12px;
}
.ex-modal-perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 8px;
  color: var(--hd-accent);
}
.ex-modal-perk-copy {
  display: block;
}
.ex-modal-perk-copy strong {
  display: block;
  color: var(--hd-ink);
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ex-modal-perk-copy span {
  display: block;
  color: var(--hd-ink-3);
  font-size: 13px;
  line-height: 1.55;
}
.ex-modal-cta {
  display: block;
  padding: 14px 20px;
  background: var(--hd-accent);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-head, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}
.ex-modal-cta:hover {
  background: var(--hd-accent-2);
  color: #ffffff;
  text-decoration: none;
}
.ex-modal-fine {
  margin: 14px 0 0;
  color: var(--hd-ink-4);
  font-size: 12.5px;
  text-align: center;
}
.ex-modal-fine a {
  color: var(--hd-ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ex-modal-fine a:hover {
  color: var(--hd-accent);
}

@media (max-width: 520px) {
  .ex-modal-card {
    padding: 28px 22px 24px;
  }
  .ex-modal-title {
    font-size: 22px;
  }
  .ex-modal-perks {
    padding: 16px;
  }
  .ex-toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .ex-toast,
  .ex-modal {
    display: none !important;
  }
}

.site-header .search-btn {
  padding: 8px 11px;
}

.ex-search {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(60px, 12vh, 140px) 16px 24px;
}
.ex-search[hidden] {
  display: none;
}
.ex-search-veil {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--hd-ink) 28%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: ex-search-veil 0.18s ease;
}
@keyframes ex-search-veil {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ex-search-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(680px, 100%);
  animation: ex-search-drop 0.2s ease;
}
@keyframes ex-search-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.ex-search-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 4px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 10px;
  color: var(--hd-ink-2);
  cursor: pointer;
  box-shadow: var(--hd-shadow);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ex-search-close:hover {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #fff;
}

.ex-search .hsearch {
  position: relative;
  flex: 1;
  min-width: 0;
  font-family: var(--font-body, system-ui, sans-serif);
}
.ex-search .hsearch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 12px;
  box-shadow: var(--hd-shadow-lg);
}
.ex-search .hsearch:focus-within .hsearch-bar {
  border-color: var(--hd-accent);
}
.ex-search .hsearch-bar > svg {
  flex: none;
  color: var(--hd-ink-4);
}
.ex-search .hsearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hd-ink);
  font: inherit;
  font-size: 16px;
}
.ex-search .hsearch input::placeholder {
  color: var(--hd-ink-4);
}
.ex-search .hsearch button[type='submit'] {
  flex: none;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--hd-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}
.ex-search .hsearch button[type='submit']:hover {
  background: var(--hd-accent-2);
}
.ex-search .hsearch-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  max-height: min(52vh, 380px);
  overflow-y: auto;
  padding: 6px;
  background: var(--hd-card);
  border: 1px solid var(--hd-card-edge);
  border-radius: 12px;
  box-shadow: var(--hd-shadow-lg);
  text-align: left;
}
.ex-search .hsearch-results a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--hd-ink);
  text-decoration: none;
}
.ex-search .hsearch-results a:hover,
.ex-search .hsearch-results a:focus-visible {
  background: var(--hd-accent-soft);
  outline: 0;
}
.ex-search .hsearch-results .r-kind {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--hd-accent-soft);
  color: var(--hd-accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.ex-search .hsearch-results .r-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-search .hsearch-results .r-in {
  flex: none;
  color: var(--hd-ink-4);
  font-size: 12px;
}
.ex-search .hsearch-empty {
  padding: 16px 12px;
  color: var(--hd-ink-3);
  font-size: 13.5px;
  text-align: center;
}
.ex-search .hsearch-empty a {
  color: var(--hd-accent);
}

@media (max-width: 560px) {
  .ex-search {
    padding: 70px 12px 20px;
  }
  .ex-search-panel {
    gap: 8px;
  }
  .ex-search-close {
    width: 40px;
    height: 40px;
  }
  .ex-search .hsearch button[type='submit'] {
    padding: 0 12px;
  }
  .ex-search .hsearch-results .r-in {
    display: none;
  }
}

.page-search-btn,
.cd-page .page-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 12px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 8px;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.page-search-btn:hover,
.cd-page .page-search-btn:hover {
  background: color-mix(in srgb, currentColor 18%, transparent);
  border-color: color-mix(in srgb, currentColor 65%, transparent);
}
.page-search-btn svg {
  flex: none;
  opacity: 0.85;
}
.page-search-btn kbd,
.cd-page .page-search-btn kbd {
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.breadcrumb > ol {
  flex: 1;
  min-width: 0;
}
.crumbs {
  justify-content: space-between;
}
.crumbs .page-search-btn {
  margin-left: auto;
}

.page-search {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  width: min(560px, calc(100vw - 24px));
  font-family: var(--font-body, system-ui, sans-serif);
  animation: ex-ps-drop 0.18s ease;
}
.page-search[hidden] {
  display: none;
}
@keyframes ex-ps-drop {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.page-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--hd-card);
  border: 1px solid var(--hd-accent);
  border-radius: 12px;
  box-shadow: var(--hd-shadow-lg);
}
.page-search .ps-ico {
  display: inline-flex;
  flex: none;
  color: var(--hd-ink-3);
}
.page-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hd-ink);
  font: inherit;
  font-size: 16px;
}
.page-search input::placeholder {
  color: var(--hd-ink-4);
}
.page-search .ps-count {
  flex: none;
  white-space: nowrap;
  color: var(--hd-ink-4);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
}
.page-search .ps-nav,
.page-search .ps-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 5px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--hd-ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.page-search .ps-nav:hover,
.page-search .ps-close:hover {
  background: var(--hd-paper-2);
  color: var(--hd-accent);
}
.page-search .ps-close {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid var(--hd-rule);
}

@media (max-width: 560px) {
  .page-search-btn span {
    display: none;
  }
  .page-search-btn kbd {
    display: none;
  }
  .page-search {
    top: 10px;
    width: calc(100vw - 20px);
  }
  .page-search-bar {
    padding: 8px 10px;
    gap: 6px;
  }
}

mark.ps-hit {
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(255, 90, 31, 0.26);
  color: inherit;
}
mark.ps-hit.ps-current {
  background: #ff5a1f;
  color: #fff;
}
