:root {
  --bg: #0c0e13;
  --bg-2: #13151d;
  --bg-3: #1a1d27;
  --accent: #8b0000;
  --accent-hot: #a81010;
  --border: #252836;
  --text: #d4d4d4;
  --muted: #8e8ea8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.94), rgba(5, 6, 10, 0.62)),
    url("../assets/background.bcae156b0734.jpg") center / cover fixed;
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #7c0b0b #2a2f39;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #2a2f39;
}

*::-webkit-scrollbar-thumb {
  background: #7c0b0b;
  border-radius: 999px;
  border: 2px solid #2a2f39;
}

/* ── Accessibility ──────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: #8b0000;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid #a81010;
  outline-offset: 2px;
}

/* ── Ranks CTA banner ──────────────────────────────────────────── */

.ranks-cta-banner {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 8px;
  background: rgba(139, 0, 0, 0.08);
  color: #d5d9e5;
  text-align: center;
}

.ranks-cta-banner a {
  color: #cc4a4a;
  font-weight: 800;
  text-decoration: none;
}

.ranks-cta-banner a:hover {
  color: #e05a5a;
}

/* ── Blog related posts ─────────────────────────────────────────── */

.blog-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.blog-related-title {
  margin: 0 0 1rem;
  color: #f0f0f0;
  font-size: 1rem;
  text-transform: uppercase;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 700px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

a {
  color: inherit;
}

.turnstile-slot {
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.turnstile-error,
.form-error {
  margin: 0.35rem 0 0;
  color: #fca5a5;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(139, 0, 0, 0.35);
  background: rgba(12, 14, 19, 0.9);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

/* Top row: social | brand | actions */

.site-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  gap: 1rem;
}

/* ---- Social icons (left) ---- */

.header-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-icon-link {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 18px rgba(6, 8, 14, 0.28);
  color: #f4f7ff;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.social-icon-link svg {
  width: 1.18rem;
  height: 1.18rem;
}

.social-icon-link:hover {
  color: #fff;
  background: rgba(139, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.34);
}

/* ---- Brand (centre) ---- */

.header-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.95rem;
  min-width: 0;
  color: #f1f1f1;
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  min-width: 0;
  white-space: normal;
}

.header-brand img {
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(139, 0, 0, 0.55));
}

.brand-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  color: #bcc3d6;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

/* ---- Actions (right) ---- */

.header-mobile-menu,
.header-mobile-search,
.header-mobile-login {
  display: none;
}

.header-mobile-toggle,
.header-mobile-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(214, 218, 230, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d6dbea;
  cursor: pointer;
  line-height: 0;
  vertical-align: middle;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-mobile-login {
  display: none;
  align-self: center;
  text-decoration: none;
}

.header-mobile-toggle svg,
.header-mobile-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
}

.header-mobile-toggle::-webkit-details-marker,
.header-mobile-icon::-webkit-details-marker {
  display: none;
}

.header-mobile-panel,
.header-mobile-search-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  border: 1px solid rgba(139, 0, 0, 0.38);
  border-radius: 1rem;
  background: rgba(13, 15, 22, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.header-mobile-panel {
  left: 0;
  width: min(20rem, calc(100vw - 2rem));
  padding: 1rem;
}

.header-mobile-search-panel {
  right: 0;
  display: flex;
  align-items: center;
  width: min(16rem, calc(100vw - 2rem));
  height: 3rem;
  padding: 0 0 0 0.7rem;
  overflow: hidden;
}

.header-mobile-nav {
  display: grid;
  gap: 0.3rem;
}

.header-mobile-nav a {
  padding: 0.65rem 0.7rem;
  border-radius: 0.7rem;
  color: #d8dcea;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.header-mobile-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.header-mobile-language {
  margin-top: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.header-search {
  display: inline-flex;
  align-items: center;
  min-width: min(21rem, 37vw);
  height: 2.5rem;
  border: 1px solid rgba(214, 218, 230, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.header-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search-prefix {
  padding-left: 0.9rem;
  color: #c3cada;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 0.85rem 0 0.55rem;
  border: 0;
  background: transparent;
  color: #f0f3fb;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  outline: none;
}

.header-search-input::-moz-placeholder {
  color: #7f879b;
}

.header-search-input::placeholder {
  color: #7f879b;
}

.header-search-btn {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(214, 218, 230, 0.1);
  background: transparent;
  color: #c6cbda;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.header-search-btn:hover,
.header-search:focus-within .header-search-btn {
  color: #fff;
  background: rgba(139, 0, 0, 0.14);
}

.header-search:focus-within {
  border-color: rgba(139, 0, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(139, 0, 0, 0.14);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.language-switch form {
  margin: 0;
}

.language-switch-btn {
  min-width: 2.05rem;
  min-height: 1.8rem;
  padding: 0.28rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ea6bb;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.language-switch-btn.is-active,
.language-switch-btn:hover {
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.52), rgba(95, 0, 0, 0.52));
  color: #f7f8fb;
}

.header-login-btn,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.42rem 1rem;
  border: 1px solid rgba(214, 218, 230, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d6dbea;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.header-login-btn svg,
.btn svg {
  width: 1rem;
  height: 1rem;
  color: #b8bfd1;
}

.header-login-btn:hover,
.header-login-btn:focus-visible,
.btn:hover,
.btn:focus-visible {
  background: rgba(139, 0, 0, 0.22);
  color: #fff;
  border-color: rgba(139, 0, 0, 0.52);
}

.header-login-btn:disabled,
.header-login-btn.is-busy,
.btn:disabled,
.btn.is-busy,
.btn[aria-disabled="true"],
.btn.is-disabled {
  background: rgba(139, 0, 0, 0.2);
  color: #fff;
  border-color: rgba(139, 0, 0, 0.58);
  opacity: 0.88;
  cursor: not-allowed;
}

.header-login-btn.is-busy,
.btn.is-busy {
  cursor: progress;
}

.header-login-btn:hover svg,
.header-login-btn:focus-visible svg,
.btn:hover svg,
.btn:focus-visible svg {
  color: currentColor;
}

.header-icon-btn,
.btn-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(214, 218, 230, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #c6cbda;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.header-icon-btn svg,
.btn-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.header-icon-btn:hover,
.btn-icon:hover {
  color: #fff;
  background: rgba(139, 0, 0, 0.16);
  border-color: rgba(139, 0, 0, 0.6);
}

.header-user-chip {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b0b5c6;
  letter-spacing: 0.06em;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-wip-notice {
  margin: 0;
  padding: 0.48rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 245, 157, 0.22);
  border-bottom: 1px solid rgba(255, 245, 157, 0.22);
  background: rgba(255, 206, 66, 0.16);
  color: #fff2a8;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ---- Nav row (bottom of header) ---- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 1.2rem);
  padding: 0.55rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-nav a {
  color: #a9a9bd;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.78);
  text-underline-offset: 0.45rem;
}

.header-mobile-nav a[aria-current="page"] {
  color: #fff;
  border-color: rgba(139, 0, 0, 0.55);
  background: rgba(139, 0, 0, 0.16);
}

/* ============================================================
   MAIN SHELL (home + inner pages)
   ============================================================ */

.site-shell {
  min-height: 100vh;
  padding-top: 7.5rem;
  /* header height */
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.94), rgba(5, 6, 10, 0.62)),
    url("../assets/background.bcae156b0734.jpg") center / cover fixed;
}

/* ============================================================
   HOME HERO (legacy link styles still in use)
   ============================================================ */

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-link {
  background: #8b0000;
  color: #fff;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.35);
}

.secondary-link {
  border: 1px solid rgba(212, 212, 212, 0.2);
  background: rgba(19, 21, 29, 0.72);
  color: #dedee8;
}

/* ============================================================
   HOME BAND
   ============================================================ */

/* ============================================================
   CONTENT PAGES
   ============================================================ */

.content-page {
  padding: 2.5rem 1rem 5rem;
}

.content-page-inner {
  width: min(100%, 56rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(139, 0, 0, 0.28);
  border-radius: 8px;
  background: rgba(13, 15, 22, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.content-page--hc,
.content-page--cal {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.content-page-inner--hc {
  width: min(100%, 84rem);
  min-height: 60vh;
}

.section-kicker {
  margin: 0 0 0.9rem;
  color: #cc4a4a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-page-title {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.content-page-lead {
  margin: 1.1rem 0 0;
  color: #d0d2dd;
  font-size: 1.08rem;
  line-height: 1.7;
}

.content-page-body {
  margin-top: 1.8rem;
}

.content-page-body p {
  margin: 0 0 1rem;
  color: #aeb3c2;
  line-height: 1.75;
}

.content-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.member-area-grid {
  display: grid;
  gap: 1.2rem;
}

.account-panel {
  border: 1px solid rgba(139, 0, 0, 0.24);
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.82);
  padding: 1.2rem;
}

.account-panel h2 {
  margin: 0 0 1rem;
  color: #ededed;
  font-size: 1rem;
  text-transform: uppercase;
}

.account-facts {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.account-facts div {
  display: grid;
  gap: 0.2rem;
}

.account-facts dt {
  color: #8d91a6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-facts dd {
  margin: 0;
  color: #f0f0f0;
}

.device-list {
  display: grid;
  gap: 0.9rem;
}

.device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
}

.device-card-title,
.device-card-meta {
  margin: 0;
}

.device-card-title {
  color: #f0f0f0;
  font-weight: 800;
}

.device-card-meta {
  color: #9ea3b5;
  font-size: 0.82rem;
}

.device-revoke-btn {
  min-width: 5.5rem;
}

.rich-page-body {
  color: #aeb3c2;
  line-height: 1.75;
}

.rich-page-body p {
  margin: 0 0 1rem;
}

.content-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.join-us-layout {
  display: grid;
  gap: 1.5rem;
}

.join-us-panel,
.join-us-frame-shell {
  border: 1px solid rgba(139, 0, 0, 0.24);
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.82);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  overflow: hidden;
}

.join-us-panel h2,
.join-us-frame-shell h2 {
  margin: 0 0 0.85rem;
  color: #f0f0f0;
  font-size: 1rem;
  text-transform: uppercase;
}

.join-us-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #aeb3c2;
}

.join-us-panel li + li {
  margin-top: 0.65rem;
}

.join-us-frame-note {
  margin: 0 0 1rem;
  color: #aeb3c2;
}

.join-us-frame {
  width: calc(100% / 1.06);
  height: 165vh;
  border: 1px solid rgba(214, 218, 230, 0.14);
  border-radius: 8px;
  background: #0c0e13;
  transform: scale(1.06);
  transform-origin: top left;
  margin-bottom: calc(-165vh * 0.06);
}

.action-row,
.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.action-row {
  align-items: center;
}

.action-stack {
  align-items: stretch;
}

.resource-search-form {
  display: grid;
  gap: 0.55rem;
}

.resource-search-label {
  color: #8d91a6;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-search-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.85rem;
  border: 1px solid rgba(214, 218, 230, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 21, 30, 0.98), rgba(11, 13, 20, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.resource-search-shell:focus-within {
  border-color: rgba(139, 0, 0, 0.52);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.resource-search-icon {
  flex: 0 0 auto;
  color: #8d91a6;
}

.resource-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #eef1f7;
  font: inherit;
  font-size: 0.96rem;
}

.resource-search-input::-moz-placeholder {
  color: #737a8d;
}

.resource-search-input::placeholder {
  color: #737a8d;
}

.resource-search-input:focus {
  outline: 0;
}

.resource-search-button {
  flex: 0 0 auto;
  min-height: 2.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-radius: 999px;
  background: rgba(139, 0, 0, 0.2);
  color: #f5f7fb;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.resource-search-button:hover,
.resource-search-button:focus-visible {
  background: rgba(139, 0, 0, 0.34);
  border-color: rgba(139, 0, 0, 0.74);
  color: #fff;
}

.blog-local-search {
  margin-bottom: 1rem;
}

.blog-filter-summary {
  margin: 0;
  color: #9ca3b7;
  font-size: 0.84rem;
  line-height: 1.5;
}

.blog-filter-summary a {
  color: #f1d0d0;
  font-weight: 800;
  text-decoration: none;
}

.form-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(214, 218, 230, 0.14);
  border-radius: 0.9rem;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, rgba(18, 21, 30, 0.98), rgba(11, 13, 20, 0.96));
  color: #eef1f7;
  font: inherit;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

select.form-input {
  padding-right: 3rem;
  background-image:
    linear-gradient(180deg, rgba(18, 21, 30, 0.98), rgba(11, 13, 20, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23cfd5e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, calc(100% - 1rem) 50%;
  background-size: auto, 0.85rem;
}

select.form-input option {
  background: #12161f;
  color: #eef1f7;
}

textarea.form-input {
  min-height: 6rem;
  resize: vertical;
}

input.form-input[type="file"] {
  padding: 0.4rem;
  line-height: 1.35;
}

input.form-input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 0.75rem;
  background: rgba(139, 0, 0, 0.18);
  color: #f5f7fb;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

input.form-input[type="file"]::file-selector-button:hover {
  background: rgba(139, 0, 0, 0.32);
}

input.form-input[type="search"]::-webkit-search-cancel-button {
  filter: invert(0.92);
}

.form-input::-moz-placeholder {
  color: #7f879b;
}

.form-input::placeholder {
  color: #7f879b;
}

.form-input:focus {
  outline: 0;
  border-color: rgba(139, 0, 0, 0.48);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.14);
}

.merch-editor-page {
  width: min(100%, 76rem);
}

.merch-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.merch-editor-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.merch-editor-card--main {
  grid-column: 1 / -1;
}

.merch-editor-card--guide {
  align-content: start;
  grid-column: 1 / -1;
}

.merch-editor-card--full {
  grid-column: 1 / -1;
}

.merch-editor-header {
  display: grid;
  gap: 0.5rem;
}

.merch-editor-header h2,
.merch-editor-subsection-head h3 {
  margin: 0;
  color: #f2f4fa;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.merch-editor-eyebrow {
  margin: 0;
  color: #cc4a4a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.merch-editor-note,
.merch-editor-subsection-head p,
.merch-editor-inline-hint {
  margin: 0;
  color: #9ea6bb;
  line-height: 1.6;
}

.merch-editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.merch-editor-field-grid--image {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 8rem;
}

.merch-editor-field {
  display: grid;
  gap: 0.45rem;
}

.merch-editor-field span {
  color: #dfe3ef;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.merch-editor-input--textarea {
  min-height: 8rem;
  resize: vertical;
}

.merch-editor-subsection {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(214, 218, 230, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.merch-editor-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.merch-editor-pill-list span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(214, 218, 230, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef1f7;
  font-size: 0.82rem;
  font-weight: 700;
}

.merch-editor-actions {
  align-items: center;
}

.merch-editor-collection {
  display: grid;
  gap: 0.7rem;
}

.merch-variant-generate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
}

.merch-variant-generate-form .merch-editor-note {
  flex: 1 1 16rem;
}

.merch-editor-collection-item {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.merch-inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.merch-inline-form--variant {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.merch-inline-form--image {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 8rem;
}

.merch-inline-form--rule {
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) minmax(0, 12rem) auto;
}

.merch-inline-form__submit {
  align-self: end;
  justify-self: start;
}

.merch-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  color: #cfd5e5;
  font-size: 0.9rem;
}

.merch-price-toggle {
  justify-content: flex-start;
}

.merch-price-toggle span {
  color: #e8ecf6;
  font-weight: 800;
}

.merch-field-hint {
  display: block;
  min-height: 1.1rem;
  color: #8d94a8;
  font-size: 0.78rem;
  line-height: 1.4;
}

.merch-inline-check--variant {
  min-height: 3.4rem;
  padding-bottom: 0.45rem;
}

.merch-editor-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
}

.merch-editor-card--images {
  gap: 1.1rem;
}

.merch-editor-image-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: grab;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.merch-editor-image-card.is-dragging {
  opacity: 0.75;
  cursor: grabbing;
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.3);
}

.merch-editor-image-card.is-drop-target {
  border-color: rgba(147, 197, 253, 0.75);
  transform: translateY(-2px);
}

.merch-editor-image-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.merch-editor-image-card__handle {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.55rem;
  cursor: grab;
}

.merch-editor-image-card__handle:active {
  cursor: grabbing;
}

.merch-editor-image-card__order {
  font-size: 0.76rem;
  font-weight: 700;
  color: #aab2c5;
}

.merch-editor-image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
}

.merch-image-cropper {
  display: none;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
}

.merch-image-cropper.is-active,
.merch-image-cropper--inline {
  display: grid;
}

.merch-image-cropper--inline:not(.is-active) {
  display: none;
}

.merch-inline-form--image .merch-image-cropper,
.merch-inline-form--image .merch-inline-form__submit {
  grid-column: 1 / -1;
}

.merch-inline-form--image .merch-inline-form__submit {
  margin-top: 0.35rem;
}

.merch-editor-field--image-order {
  max-width: 8rem;
}

.merch-image-cropper__stage {
  display: grid;
  place-items: center;
  min-height: 16rem;
  border-radius: 0.8rem;
  background: rgba(10, 12, 18, 0.94);
  overflow: hidden;
}

.merch-image-cropper__preview {
  display: block;
  max-width: 100%;
  max-height: 22rem;
}

.merch-image-cropper__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.merch-selector-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
}

.merch-selector-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.merch-selector-card.is-enabled {
  border-color: rgba(139, 0, 0, 0.38);
  background: rgba(139, 0, 0, 0.08);
}

.merch-selector-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #f2f4fa;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.merch-selector-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #8b0000;
}

.merch-selector-values {
  min-height: 7rem;
}

.merch-editor-field--wide {
  grid-column: span 2;
}

.merch-branch-search {
  min-height: 2.55rem;
}

.merch-editor-field--variant-label,
.merch-editor-field--variant-select,
.merch-editor-field--variant-price,
.merch-editor-field--variant-sku,
.merch-editor-field--variant-order {
  min-width: 0;
}

.merch-branch-picker {
  position: relative;
}

.merch-branch-picker[open] {
  z-index: 2;
}

.merch-branch-picker__summary {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  cursor: pointer;
  list-style: none;
}

.merch-branch-picker__summary::-webkit-details-marker {
  display: none;
}

.merch-branch-picker__summary::after {
  content: "▾";
  margin-left: auto;
  color: #7e8799;
  font-size: 0.85rem;
}

.merch-branch-picker__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(139, 0, 0, 0.28);
  border-radius: 1rem;
  background: rgba(12, 14, 19, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
}

.merch-branch-picker__list {
  display: grid;
  gap: 0.45rem;
  max-height: 15rem;
  overflow-y: auto;
}

.merch-branch-picker__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e6f0;
}

.merch-branch-picker__option input {
  accent-color: #8b0000;
}

.merch-branch-picker__option[hidden] {
  display: none;
}

.merch-row-list {
  display: grid;
  gap: 0.65rem;
}

.merch-expand-row {
  border: 1px solid rgba(214, 218, 230, 0.12);
  border-left: 3px solid rgba(214, 218, 230, 0.22);
  border-radius: 8px;
  background: rgba(14, 17, 27, 0.86);
  overflow: hidden;
}

.merch-expand-row.is-warning {
  border-left-color: #f59e0b;
}

.merch-expand-row.is-success {
  border-left-color: #22c55e;
}

.merch-expand-row.is-danger {
  border-left-color: #ef4444;
}

.merch-expand-row.is-muted {
  border-left-color: #8d91a6;
}

.merch-expand-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.merch-expand-row summary::-webkit-details-marker {
  display: none;
}

.merch-expand-row summary::after {
  content: "⌄";
  color: #9ea6bb;
  font-weight: 900;
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
  transform: translateX(0.3rem);
}

.merch-expand-row[open] summary::after {
  content: "⌃";
}

.merch-expand-row summary span:first-child {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.merch-expand-row summary strong {
  color: #f4f6fb;
  overflow-wrap: anywhere;
}

.merch-expand-row summary small {
  color: #9ea6bb;
  font-size: 0.78rem;
  line-height: 1.35;
}

.merch-row-total {
  padding-right: 1.3rem;
  color: #f4f6fb;
  font-weight: 800;
  white-space: nowrap;
}

.merch-row-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.merch-detail-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.merch-detail-gallery-card,
.merch-detail-order-card {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
  align-content: start;
}

.merch-detail-page {
  display: grid;
  gap: 1rem;
}

.merch-detail-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.merch-detail-title {
  margin: 0;
  line-height: 0.98;
}

.merch-detail-price {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merch-detail-description {
  margin: 0;
  color: #cbd2e4;
}

.merch-detail-gallery {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.merch-detail-gallery__stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(18rem, 48vw, 40rem);
  max-height: 42rem;
  padding: clamp(0.75rem, 1.6vw, 1.25rem);
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 1rem;
  background: rgba(7, 9, 15, 0.96);
  overflow: hidden;
}

.merch-detail-gallery__main {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(64vh, 38rem);
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.merch-detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.8rem;
}

.merch-detail-gallery__thumb {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  padding: 0.4rem;
  border: 1px solid rgba(214, 218, 230, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.merch-detail-gallery__thumb:hover,
.merch-detail-gallery__thumb:focus-visible,
.merch-detail-gallery__thumb.is-active {
  border-color: rgba(139, 0, 0, 0.62);
  transform: translateY(-1px);
}

.merch-detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  max-height: 8rem;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.merch-detail-gallery__thumb span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #c8c8d4;
  text-align: center;
  line-height: 1.3;
}

.merch-detail-gallery__caption {
  margin-top: 0.75rem;
  text-align: center;
}

.merch-detail-order-form {
  display: grid;
  gap: 0.95rem;
}

.merch-detail-order-summary {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(214, 218, 230, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
}

.merch-detail-order-summary__label,
.merch-detail-order-summary__value {
  margin: 0;
}

.merch-detail-order-summary__label {
  color: #9ea6bb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merch-detail-order-summary__value {
  color: #f5f7fb;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.merch-detail-order-submit {
  justify-content: center;
  width: 100%;
}

.merch-detail-mobile-bar {
  display: none;
}

.merch-detail-mobile-bar__summary {
  display: grid;
  gap: 0.2rem;
}

.merch-detail-mobile-bar__label,
.merch-detail-mobile-bar__value {
  margin: 0;
}

.merch-detail-mobile-bar__label {
  color: #9ea6bb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merch-detail-mobile-bar__value {
  color: #f5f7fb;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.merch-detail-mobile-bar__submit {
  min-width: min(13rem, 100%);
  justify-content: center;
}

.merch-detail-grid h2,
.merch-row-body h2 {
  margin: 0 0 0.4rem;
  color: #e8ecf6;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.merch-line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  margin: 0;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(214, 218, 230, 0.08);
  color: #cbd2e4;
  font-size: 0.86rem;
}

.merch-line-item span:first-child {
  overflow-wrap: anywhere;
}

.merch-line-item span:last-child {
  color: #f4f6fb;
  white-space: nowrap;
}

.merch-payment-box,
.merch-variant-demand {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid rgba(214, 218, 230, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.merch-payment-box p {
  margin: 0;
  color: #cbd2e4;
  font-size: 0.86rem;
}

.merch-payment-box__barcode {
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(100%, 22rem);
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #ffffff;
  overflow: visible;
}

.merch-payment-box__barcode img,
.merch-payment-box__barcode svg,
.merch-payment-box__barcode canvas {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

.merch-payment-box__barcode pre {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.merch-payment-box.is-warning {
  border-color: rgba(245, 158, 11, 0.42);
}

.merch-payment-box.is-success {
  border-color: rgba(34, 197, 94, 0.45);
}

.merch-payment-box.is-danger {
  border-color: rgba(239, 68, 68, 0.45);
}

.merch-payment-box.is-muted {
  border-color: rgba(141, 145, 166, 0.45);
}

.merch-preorder-line-picker {
  display: grid;
  gap: 0.55rem;
  max-height: 22rem;
  overflow: auto;
  padding: 0.65rem;
  border: 1px solid rgba(214, 218, 230, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
}

.merch-preorder-line-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.65rem;
  background: rgba(8, 10, 16, 0.68);
  color: #e8ecf6;
}

.merch-preorder-line-option input {
  margin-top: 0.2rem;
  accent-color: #8b0000;
}

.merch-preorder-line-option span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.merch-preorder-line-option small {
  color: #9ea6bb;
  line-height: 1.4;
}

.merch-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: #9ea6bb;
  font-size: 0.8rem;
}

.merch-breadcrumbs a {
  color: #d8dcea;
  text-decoration: none;
}

.merch-breadcrumbs a:hover {
  color: #ffffff;
}

.shop-panel {
  border-color: rgba(214, 218, 230, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.shop-title {
  color: #f5f7fb;
}

.shop-meta {
  color: #aeb6ca;
}

.button-primary,
.button-secondary,
.button-danger,
.button-icon {
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.button-primary {
  border-color: rgba(139, 0, 0, 0.62);
}

.button-secondary {
  border-color: rgba(214, 218, 230, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.button-danger {
  border-color: rgba(185, 28, 28, 0.52);
  background: rgba(127, 29, 29, 0.18);
}

.button-icon {
  justify-content: center;
}

.button-primary:hover,
.button-secondary:hover,
.button-danger:hover,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.button-danger:focus-visible {
  transform: translateY(-1px);
}

.merch-helper-copy {
  margin: 0 0 1rem;
  color: #aeb6ca;
  font-size: 0.9rem;
}

.merch-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.merch-inline-message {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 218, 230, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe2f2;
}

.merch-inline-message.is-warning {
  border-color: rgba(245, 158, 11, 0.4);
}

.merch-availability-note {
  margin-top: 0.5rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(139, 0, 0, 0.12);
  color: #f1c4c4;
  font-size: 0.9rem;
}

.merch-variant-reason {
  margin-top: 0.35rem;
}

.merch-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.merch-shop-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(139, 0, 0, 0.45);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #12141b;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.merch-shop-card:hover {
  border-color: rgba(139, 0, 0, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}

.merch-shop-card.is-unavailable {
  opacity: 0.62;
}

.merch-shop-card__link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.merch-shop-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.merch-shop-card__media {
  position: absolute;
  inset: 0;
}

.merch-shop-card__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.merch-shop-card__media--placeholder {
  background:
    radial-gradient(circle at 25% 25%, rgba(139, 0, 0, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.merch-shop-card__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1rem;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.merch-shop-card__price,
.merch-shop-card__status {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merch-shop-card__price {
  color: #d2d8e6;
}

.merch-shop-card__status {
  color: #f0b0b0;
}

.merch-shop-card__reason {
  margin: 0;
  color: #d6dbea;
  font-size: 0.8rem;
  line-height: 1.45;
}

.merch-shop-card__title {
  margin: 0;
  color: #f6f7fb;
  font-size: 1.18rem;
  line-height: 1.2;
}

.merch-shop-card__excerpt {
  margin: 0;
  color: #b6bdd0;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merch-shop-card__actions {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.merch-shop-card__actions--unavailable {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: calc(100% - 2.5rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.merch-shop-card__quick-form {
  margin: 0;
}

.merch-shop-card__quick-link {
  min-width: 8.5rem;
  justify-content: center;
}

.merch-shop-card__quick-link--unavailable {
  min-width: 0;
  width: min(14rem, 100%);
  padding-inline: 1rem;
  border-color: rgba(139, 0, 0, 0.78);
  background: rgba(12, 14, 20, 0.88);
  color: #f5d0d0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.merch-confirmation-card {
  display: grid;
  gap: 1rem;
}

.merch-confirmation-summary {
  display: grid;
  gap: 1rem;
}

.merch-confirmation-line {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(214, 218, 230, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
}

.merch-confirmation-line img {
  width: 100%;
  aspect-ratio: 1 / 1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.7rem;
}

.merch-confirmation-line h2,
.merch-confirmation-line p,
.merch-confirmation-total {
  margin: 0;
}

@media (max-width: 640px) {
  .action-stack,
  .content-page-actions,
  .form-actions,
  .comment-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .action-stack > *,
  .content-page-actions > *,
  .form-actions > *,
  .comment-form-actions > *,
  .merch-toolbar > * {
    width: 100%;
  }

  .action-stack .btn,
  .content-page-actions .btn,
  .form-actions .btn,
  .comment-form-actions .btn,
  .merch-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .resource-search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 1.2rem;
  }

  .resource-search-icon {
    display: none;
  }

  .resource-search-input,
  .resource-search-button {
    width: 100%;
  }

  .resource-search-input {
    min-height: 2.9rem;
    padding: 0 0.2rem;
  }

  .resource-search-button {
    justify-content: center;
  }

  .comment-cancel-btn {
    margin-left: 0;
  }

  .comment-replies {
    padding-left: 0.75rem;
  }

  .merch-expand-row summary,
  .merch-line-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .merch-expand-row summary::after {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    transform: none;
  }

  .merch-row-total,
  .merch-line-item span:last-child {
    padding-right: 0;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .merch-detail-page {
    padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-cookie-notice .merch-detail-page {
    padding-bottom: calc(16rem + env(safe-area-inset-bottom, 0px));
  }

  .merch-editor-grid {
    grid-template-columns: 1fr;
  }

  .merch-editor-field-grid,
  .merch-editor-field-grid--image,
  .merch-inline-form,
  .merch-inline-form--image,
  .merch-inline-form--variant,
  .merch-inline-form--rule {
    grid-template-columns: 1fr;
  }

  .merch-editor-field--image-order {
    max-width: none;
  }

  .merch-editor-field--wide,
  .merch-shop-card {
    grid-column: auto;
  }

  .merch-shop-grid {
    grid-template-columns: 1fr;
  }

  .merch-shop-card {
    aspect-ratio: auto;
    display: grid;
    min-height: 0;
  }

  .merch-shop-card__link {
    position: relative;
    inset: auto;
    display: grid;
  }

  .merch-shop-card__media {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
  }

  .merch-shop-card__copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 1rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .merch-shop-card__actions {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 0 1rem 1rem;
  }

  .merch-shop-card__actions--unavailable {
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    justify-content: stretch;
    pointer-events: auto;
  }

  .merch-shop-card__quick-form,
  .merch-shop-card__quick-link {
    width: 100%;
  }

  .merch-confirmation-line {
    grid-template-columns: 1fr;
  }

  .merch-detail-gallery__stage {
    width: 100%;
  }

  .merch-detail-gallery__main {
    height: 100%;
  }

  .merch-detail-mobile-bar {
    position: fixed;
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(139, 0, 0, 0.34);
    border-radius: 1rem;
    background: rgba(8, 10, 16, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .merch-detail-mobile-bar[hidden] {
    display: none;
  }

  body.has-cookie-notice .merch-detail-mobile-bar {
    bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  }

  .merch-detail-mobile-bar__value {
    font-size: 1.2rem;
  }

  .merch-detail-mobile-bar__submit {
    min-height: 3rem;
  }
}

.content-contact-form {
  margin-top: 1.8rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid rgba(139, 0, 0, 0.25);
  background: rgba(8, 9, 13, 0.98);
  padding: 3rem clamp(1rem, 5vw, 4rem);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #c0c0cc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 1.8rem;
  height: 1.8rem;
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  max-width: 54rem;
  margin: 0;
  color: #3c3c52;
  font-size: 0.65rem;
  line-height: 1.6;
}

.footer-copy {
  margin: 0;
  color: #2e2e40;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.cookie-notice {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 120;
  width: min(32rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(191, 43, 43, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(24, 8, 10, 0.96), rgba(10, 12, 19, 0.96));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__inner {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.cookie-notice__copy {
  flex: 1;
  min-width: 0;
}

.cookie-notice__title {
  margin: 0 0 0.35rem;
  color: #f4ebeb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-notice__text {
  margin: 0;
  color: #b6bac8;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cookie-notice__text a {
  color: #f2c7c7;
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.cookie-notice__text a:hover {
  color: #fff3f3;
}

.cookie-notice__button {
  flex-shrink: 0;
  border: 1px solid rgba(226, 79, 79, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 29, 29, 0.96), rgba(112, 14, 14, 0.96));
  color: #fff4f4;
  padding: 0.75rem 1rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cookie-notice__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(122, 18, 18, 0.28);
  filter: brightness(1.04);
}

.cookie-notice__button:focus-visible {
  outline: 2px solid rgba(255, 224, 168, 0.9);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .site-header {
    border-bottom-width: 2px;
  }

  .site-header-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .header-mobile-menu,
  .header-mobile-search {
    display: block;
  }

  .header-mobile-login {
    display: grid;
  }

  .header-mobile-menu {
    position: relative;
    justify-self: start;
  }

  .site-header .header-social,
  .site-header .site-nav,
  .site-header .header-search,
  .site-header .header-actions > .header-login-btn,
  .site-header .header-user-chip {
    display: none;
  }

  /* Hide only the desktop language switch (not the one inside mobile menu) */

  .site-header-top > .language-switch,
  .header-actions .language-switch {
    display: none;
  }

  .header-actions {
    position: relative;
    justify-self: end;
    gap: 0.55rem;
  }

  .header-brand {
    justify-self: center;
    gap: 0.7rem;
  }

  .site-shell {
    padding-top: 5.5rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .cookie-notice {
    width: min(34rem, calc(100vw - 1.5rem));
  }

  .cookie-notice__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-notice__button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-brand {
    gap: 0.6rem;
  }

  .header-brand img {
    width: 2.8rem;
    height: 2.8rem;
  }

  .brand-lockup {
    align-items: flex-start;
    white-space: normal;
  }

  .brand-title {
    font-size: 0.78rem;
  }

  .brand-subtitle {
    font-size: 0.54rem;
  }

  .site-shell {
    padding-top: 5rem;
    background: #0c0e13;
  }

  .cookie-notice {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  .cookie-notice__inner {
    padding: 0.95rem;
  }

  .cookie-notice__text {
    font-size: 0.77rem;
  }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    linear-gradient(rgba(5, 6, 10, 0.88), rgba(5, 6, 10, 0.94)),
    url("../assets/background.bcae156b0734.jpg") center / cover no-repeat;
}

.auth-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(139, 0, 0, 0.18), transparent 32rem);
}

/* ── Blog form (new post / edit) ─────────────────────────────────── */

.blog-form-container {
  width: 100%;
  padding: 0;
}

.blog-form-inner {
  max-width: min(95%, 78rem);
  margin: 0 auto 8rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  background: rgba(18, 20, 30, 0.95);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(139, 0, 0, 0.12), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: clamp(1.6rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2rem);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 8px;
  background: rgba(18, 20, 30, 0.97);
  box-shadow: 0 0 60px rgba(139, 0, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.auth-brand {
  display: block;
  margin: 0 auto 1rem;
  width: -moz-fit-content;
  width: fit-content;
}

.auth-brand img {
  width: 3.2rem;
  height: 3.2rem;
  filter: drop-shadow(0 0 14px rgba(139, 0, 0, 0.5));
}

.auth-title {
  margin: 0;
  color: #eaeaea;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-error {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 6px;
  background: rgba(139, 0, 0, 0.12);
  color: #f87171;
  font-size: 0.8rem;
  text-align: left;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.4rem;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  color: #8888a4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(12, 14, 19, 0.9);
  color: #e0e0ec;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-help-text {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(12, 14, 19, 0.9);
  color: #e0e0ec;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-field input:focus {
  border-color: rgba(139, 0, 0, 0.7);
}

.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(139, 0, 0, 0.7);
}

.form-field select[multiple] {
  min-height: 8.8rem;
}

.form-field ul.errorlist {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: #f87171;
  font-size: 0.74rem;
}

.contact-success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  min-height: 2.8rem;
  border: none;
  border-radius: 8px;
  background: #8b0000;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
}

.auth-submit:hover {
  background: #a81010;
}

.auth-submit-danger {
  background: #5f0a0a;
}

.auth-submit-danger:hover {
  background: #7a1111;
}

.auth-submit-outline {
  background: transparent;
  border: 1px solid rgba(139, 0, 0, 0.5);
  color: #e8c0c0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0;
  color: #3a3a52;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

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

.auth-sso-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 20, 30, 0.7);
  color: #c0c0d8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.15s, background 0.15s;
}

.auth-sso-button:hover {
  border-color: rgba(139, 0, 0, 0.5);
  background: rgba(139, 0, 0, 0.1);
}

/* ============================================================
   PROMO QR PAGE
   ============================================================ */

.promo-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5rem 1rem 2rem;
  overflow: hidden;
  background: #05060a;
}

.promo-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
}

.promo-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 0, 0, 0.22), transparent 32rem),
    linear-gradient(180deg, rgba(12, 14, 19, 0.1), rgba(12, 14, 19, 0.78));
}

.language-controls {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.language-button {
  min-width: 2.9rem;
  min-height: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(18, 20, 30, 0.92);
  color: #8c8ca4;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-button.active,
.language-button:hover {
  border-color: var(--accent);
  background: rgba(139, 0, 0, 0.18);
  color: #f0c0c0;
}

.promo-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  padding: clamp(1.6rem, 5vw, 2.75rem) clamp(1.25rem, 5vw, 2.25rem);
  border: 1px solid rgba(139, 0, 0, 0.45);
  border-radius: 8px;
  background: rgba(18, 20, 30, 0.62);
  box-shadow:
    0 0 70px rgba(139, 0, 0, 0.18),
    0 24px 48px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.promo-logo {
  display: block;
  width: clamp(4.5rem, 18vw, 5.5rem);
  height: clamp(4.5rem, 18vw, 5.5rem);
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 18px rgba(139, 0, 0, 0.5));
}

.promo-title {
  margin: 0;
  color: #eaeaea;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.imperial-rule {
  height: 2px;
  margin: 1.6rem 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.promo-copy {
  margin: 0 0 1.75rem;
  color: #8f8faa;
  font-size: 0.86rem;
  line-height: 1.7;
}

.promo-copy strong {
  color: #c4c4dc;
  font-weight: 700;
}

.promo-actions {
  display: grid;
  gap: 0.85rem;
}

.action-button {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 0.55rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.action-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.action-button-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.34);
}

.action-button-instagram {
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(224, 80, 90, 0.32);
}

.action-button-website {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 52%, #38bdf8 100%);
  color: #f0f9ff;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.3);
}

.action-button-register {
  border-color: rgba(187, 38, 81, 0.45);
  background: linear-gradient(135deg, #7f1d1d 0%, #be123c 52%, #fb7185 100%);
  color: #fff3f4;
  box-shadow: 0 0 22px rgba(190, 24, 93, 0.28);
}

.action-button-discord:hover,
.action-button-instagram:hover,
.action-button-website:hover,
.action-button-register:hover {
  transform: translateY(-1px);
}

.action-button-muted {
  border-color: #2a2d3e;
  background: #1a1d27;
  color: #a0a0b8;
  cursor: default;
  overflow: hidden;
}

.wip-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-13deg);
  padding: 0.22rem 0.9rem;
  border: 1px solid rgba(255, 181, 197, 0.4);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.95) 0%, rgba(190, 24, 93, 0.92) 100%);
  color: #fff1f2;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.promo-footer {
  margin: 1.75rem 0 0;
  color: #45455a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   EMMY LINK PAGE
   ============================================================ */

.emmy-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(38, 88, 97, 0.18), rgba(14, 30, 39, 0.78)),
    radial-gradient(circle at top, rgba(255, 240, 205, 0.32), transparent 24rem),
    url("../assets/emmy-background.5bf43f5e4542.jpg") center / cover no-repeat,
    linear-gradient(180deg, #4f8e92 0%, #17313a 100%);
}

.emmy-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(227, 248, 246, 0.06), rgba(5, 18, 26, 0.66)),
    radial-gradient(circle at 15% 25%, rgba(255, 211, 177, 0.24), transparent 18rem),
    radial-gradient(circle at 82% 18%, rgba(226, 251, 255, 0.18), transparent 26rem);
}

.emmy-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.32;
}

.emmy-glow-left {
  left: -7rem;
  bottom: -8rem;
  background: rgba(255, 195, 152, 0.7);
}

.emmy-glow-right {
  top: -8rem;
  right: -8rem;
  background: rgba(175, 232, 240, 0.55);
}

.emmy-card {
  position: relative;
  z-index: 1;
  width: min(100%, 68rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(16rem, 30vw, 27rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(236, 245, 244, 0.22);
  border-radius: 2rem;
  background: rgba(27, 49, 58, 0.42);
  box-shadow:
    0 2rem 4rem rgba(5, 20, 27, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  overflow: hidden;
}

.emmy-portrait {
  position: relative;
  min-height: clamp(24rem, 42vw, 36rem);
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 236, 222, 0.04), rgba(5, 12, 18, 0.48)),
    radial-gradient(circle at top, rgba(255, 231, 198, 0.4), transparent 50%),
    rgba(18, 28, 33, 0.72);
}

.emmy-portrait::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1.25rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 179, 120, 0.24), transparent 70%);
  filter: blur(18px);
}

.emmy-portrait-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 12, 18, 0.34)),
    url("../assets/emmy-card-photo.bc0a3ddc1242.png") center top / cover no-repeat,
    linear-gradient(180deg, rgba(225, 230, 232, 0.85), rgba(76, 83, 97, 0.65));
  transform: scale(1.02);
}

.emmy-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  padding: clamp(0.3rem, 1vw, 0.7rem) clamp(0.1rem, 0.8vw, 0.5rem);
}

.emmy-kicker {
  margin: 0;
  color: rgba(233, 245, 246, 0.82);
  font-size: clamp(0.72rem, 0.8vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.emmy-title {
  width: 100%;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: clamp(0.02em, 0.25vw, 0.05em);
  color: #fff2dd;
  text-align: left;
  white-space: nowrap;
  text-shadow: 0 0.35rem 1.5rem rgba(23, 42, 49, 0.35);
  background: linear-gradient(90deg, #e6a443 0%, #cf6f78 32%, #ab4da6 60%, #f0b64a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.emmy-intro {
  width: 100%;
  max-width: 18em;
  margin: 0;
  color: #f5f8f8;
  font-family: "Lobster Two", cursive;
  font-size: clamp(1.2rem, 2.1vw, 2.05rem);
  line-height: 1.18;
  text-align: left;
  text-shadow:
    0 0 0.16em rgba(255, 255, 255, 0.85),
    0 0.2rem 0.8rem rgba(15, 34, 42, 0.45);
}

.emmy-links {
  display: grid;
  gap: 0.8rem;
}

.emmy-link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 1.1rem 2rem rgba(10, 23, 30, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.emmy-link-copy {
  min-width: 0;
}

.emmy-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.5rem 2.2rem rgba(10, 23, 30, 0.3);
  border-color: rgba(255, 255, 255, 0.34);
}

.emmy-link-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
}

.emmy-link-icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.emmy-link-label,
.emmy-link-handle {
  display: block;
  min-width: 0;
}

.emmy-link-label {
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emmy-link-handle {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.96);
}

.emmy-link-instagram {
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.92), rgba(188, 24, 136, 0.92));
}

.emmy-link-tiktok {
  background: linear-gradient(135deg, rgba(15, 16, 18, 0.94), rgba(54, 212, 209, 0.6));
}

.emmy-credit {
  position: relative;
  z-index: 1;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(16, 34, 41, 0.46);
  border: 1px solid rgba(240, 246, 246, 0.15);
  color: rgba(245, 249, 249, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.emmy-credit img {
  width: 1.6rem;
  height: 1.6rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 48rem) {
  .site-header-top {
    grid-template-columns: auto 1fr auto;
  }

  .header-brand {
    flex-direction: row;
    font-size: 0.62rem;
  }

  .header-brand img {
    width: 2rem;
    height: 2rem;
  }

  .promo-shell {
    align-items: start;
    padding-top: 4.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .promo-veil {
    background:
      radial-gradient(circle at 50% 18%, rgba(139, 0, 0, 0.10), transparent 16rem),
      linear-gradient(180deg, rgba(12, 14, 19, 0.05), rgba(12, 14, 19, 0.55));
  }

  .emmy-shell {
    padding: 1rem 1rem 1.5rem;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(38, 88, 97, 0.18), rgba(14, 30, 39, 0.78)),
      radial-gradient(circle at top, rgba(255, 240, 205, 0.32), transparent 24rem),
      url("../assets/emmy-background.5bf43f5e4542.jpg") center / cover no-repeat,
      linear-gradient(180deg, #4f8e92 0%, #17313a 100%);
  }

  .emmy-card {
    grid-template-columns: 1fr;
    width: min(100%, 34rem);
    border-radius: 1.6rem;
    padding: 1rem;
  }

  .emmy-portrait {
    min-height: 23rem;
  }

  .emmy-copy {
    gap: 0.9rem;
    padding: 0.25rem 0.15rem 0;
  }

  .emmy-kicker {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .emmy-title {
    width: 100%;
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
  }

  .emmy-intro {
    max-width: none;
    font-size: clamp(1.05rem, 5.3vw, 1.5rem);
    line-height: 1.16;
    text-align: center;
  }

  .emmy-link {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    row-gap: 0.15rem;
  }

  .emmy-link-copy {
    display: grid;
    gap: 0.15rem;
  }

  .emmy-link-handle {
    grid-column: 2;
    justify-self: start;
  }

  .language-controls {
    top: 1rem;
    right: 1rem;
  }

  .action-button {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 30rem) {
  .site-header-top {
    padding: 0.65rem 0.85rem;
  }

  .emmy-title {
    font-size: clamp(1.3rem, 8vw, 1.75rem);
    line-height: 1;
    white-space: nowrap;
  }

  .emmy-intro {
    font-size: clamp(0.96rem, 6.4vw, 1.2rem);
    line-height: 1.14;
  }

  .emmy-portrait {
    min-height: 15rem;
  }

  .emmy-link {
    min-height: 4.35rem;
    padding: 0.75rem 0.8rem;
    gap: 0.7rem;
  }

  .emmy-link-icon {
    width: 3rem;
    height: 3rem;
  }

  .emmy-link-icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .emmy-link-label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .emmy-link-handle {
    font-size: 0.82rem;
  }

  .emmy-credit {
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
  }

  .site-nav {
    gap: 0.5rem 0.8rem;
    padding: 0.5rem 0.85rem;
  }
}

/* ============================================================
   BLOG
   ============================================================ */

.blog-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 5vw, 4rem) 6rem;
}

.blog-header {
  padding: 2rem clamp(1rem, 5vw, 3rem) 2rem;
  background: rgba(13, 15, 22, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.blog-content-card {
  padding: 1.5rem clamp(1rem, 5vw, 3rem) 2.25rem;
  background: rgba(13, 15, 22, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.blog-header-inner {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.blog-header-inner h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  color: #f0f0f0;
  letter-spacing: 0.04em;
}

.section-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  width: 100%;
  order: -1;
}

/* Language toggle (blog + article) */

.lang-toggle {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.12s, border-color 0.12s;
}

.lang-btn.active,
.lang-btn:hover {
  color: #fff;
  border-color: rgba(139, 0, 0, 0.6);
}

/* Category filter chips */

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--border);
}

.cat-chip {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.cat-chip.active,
.cat-chip:hover {
  color: #f0f0f0;
  border-color: rgba(139, 0, 0, 0.55);
  background: rgba(139, 0, 0, 0.12);
}

/* Post grid */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  padding-top: 1.4rem;
}

.blog-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(139, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  background: #18181f;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.blog-card:hover {
  border-color: rgba(139, 0, 0, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

/* Make the whole card a clickable link */

.blog-card-link {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.blog-card-img {
  position: absolute;
  inset: 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.blog-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1.1rem 1rem;
  gap: 0.4rem;
  background: rgba(8, 10, 16, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.blog-card-cat {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #eee;
}

.blog-card:hover .blog-card-title {
  color: #fff;
}

.blog-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  height: calc(2 * 1.5 * 0.84rem);
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.7rem;
  color: #666680;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.blog-card--pinned {
  border-color: var(--accent);
}

.blog-card--hero {
  border-color: rgba(220, 38, 38, 0.85);
}

.blog-card--secondary {
  border-color: rgba(139, 0, 0, 0.72);
}

.blog-card-pin-form {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}

.blog-card-pin-btn {
  background: rgba(8, 10, 16, 0.75);
  border: 1px solid rgba(90, 92, 112, 0.5);
  border-radius: 4px;
  color: rgba(140, 142, 165, 0.6);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.blog-card-pin-btn:hover {
  color: #ffd700;
  border-color: #ffd700;
}

.blog-card-pin-btn--active {
  color: #ffd700;
  border-color: #ffd70066;
}

.blog-card-feature-form {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-feature-select {
  min-height: 1.8rem;
  max-width: 9.5rem;
  border: 1px solid rgba(90, 92, 112, 0.65);
  border-radius: 4px;
  background: rgba(8, 10, 16, 0.82);
  color: #d4d7e6;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.35rem;
}

.blog-card-feature-apply {
  min-height: 1.8rem;
  border: 1px solid rgba(90, 92, 112, 0.65);
  border-radius: 4px;
  background: rgba(8, 10, 16, 0.82);
  color: #d4d7e6;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.48rem;
  cursor: pointer;
}

.blog-card-feature-apply:hover,
.blog-card-feature-select:hover {
  border-color: rgba(220, 38, 38, 0.75);
}

/* Pagination */

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2.5rem;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s;
}

.pager-btn:hover {
  color: #fff;
  border-color: rgba(139, 0, 0, 0.5);
}

.pager-info {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-empty {
  padding-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

/* ---- Blog article (detail) ---- */

.blog-article {
  max-width: 56rem;
  margin: 2rem auto 2rem;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  background: #13131a;
  border: 1px solid rgba(139, 0, 0, 0.6);
  border-radius: 10px;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.blog-article-title {
  margin: 0.6rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  color: #f2f2f2;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: #666680;
}

.blog-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.blog-avatar {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
  background: #1b1b26;
}

.blog-avatar--author {
  width: 2.2rem;
  height: 2.2rem;
}

.blog-avatar--card {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.58rem;
}

.blog-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eeeeff;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #8b0000, #24243a);
}

.blog-article-header {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag-chip {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
}

.edit-post-link {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0a0a0;
  text-decoration: none;
  transition: background 0.15s;
}

.edit-post-link:hover {
  background: rgba(139, 0, 0, 0.18);
}

.blog-article-cover img {
  width: 100%;
  height: auto;
  max-height: none;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: block;
}

.blog-article-body {
  color: #d8d8ee;
  font-size: 1rem;
  line-height: 1.8;
}

.blog-article-body p {
  margin: 0 0 1.4em;
}

.blog-article-body p:empty,
.blog-article-body p:has(> br:only-child) {
  display: none;
}

.blog-article-body p:has(> img:only-child) {
  margin: 1.8rem 0;
}

.blog-article-body h2,
.blog-article-body h3 {
  color: #f0f0f0;
  margin: 2em 0 0.6em;
}

.blog-article-body a {
  color: #e08080;
  text-decoration: underline;
}

.blog-article-body .ql-align-center {
  text-align: center;
}

.blog-article-body .ql-align-right {
  text-align: right;
}

.blog-article-body .ql-align-left {
  text-align: left;
}

.blog-article-body img {
  max-width: min(100%, 760px);
  height: auto;
  display: block;
  margin: 1.8rem auto;
  border-radius: 6px;
}

.blog-article-body p:has(> img:only-child) img {
  margin: 0 auto;
}

.blog-gallery {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blog-gallery-title {
  margin: 0;
  font-size: 1.15rem;
  color: #f0f0f0;
}

.blog-gallery-counter {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.blog-gallery-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.blog-gallery-figure {
  position: relative;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.blog-gallery-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1017;
}

.blog-gallery-expand {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 14, 19, 0.82);
  color: #f0f2f8;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.blog-gallery-expand:hover {
  border-color: rgba(224, 128, 128, 0.55);
  background: rgba(40, 14, 14, 0.88);
}

.blog-gallery-caption {
  min-height: 1.4rem;
  color: #b8bdcd;
  font-size: 0.84rem;
  line-height: 1.5;
}

.blog-gallery-nav {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #e7e8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.blog-gallery-nav:hover:not(:disabled) {
  border-color: rgba(224, 128, 128, 0.55);
  color: #fff;
  background: rgba(139, 0, 0, 0.18);
}

.blog-gallery-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.blog-gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(5rem, 6.5rem);
  gap: 0.7rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.blog-gallery-thumb {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}

.blog-gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.blog-gallery-thumb:hover,
.blog-gallery-thumb.is-active {
  opacity: 1;
  border-color: rgba(224, 128, 128, 0.55);
  transform: translateY(-1px);
}

.gallery-lightbox-open {
  overflow: hidden;
}

.blog-gallery-lightbox[hidden] {
  display: none;
}

.blog-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.blog-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
}

.blog-gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 78rem);
  max-height: 92vh;
  margin: 4vh auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(13, 16, 23, 0.98);
}

.blog-gallery-lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #f2f2f8;
  font-size: 1rem;
  cursor: pointer;
}

.blog-gallery-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.blog-gallery-lightbox-image {
  width: 100%;
  max-height: calc(92vh - 7rem);
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  background: #090b11;
}

.blog-gallery-lightbox-caption {
  color: #c8cfde;
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .blog-gallery-stage {
    grid-template-columns: 1fr;
  }

  .blog-gallery-nav {
    width: 100%;
    height: 2.5rem;
    border-radius: 6px;
  }

  .blog-gallery-thumbs {
    grid-auto-columns: minmax(4.5rem, 5.5rem);
  }

  .blog-gallery-lightbox-dialog {
    width: 96vw;
    margin: 2vh auto;
    padding: 0.85rem;
  }

  .blog-gallery-lightbox-image {
    max-height: calc(96vh - 6rem);
  }
}

/* Blog comments */

.blog-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comment-form-shell,
.comment-login-prompt {
  margin-bottom: 1.5rem;
}

.comment-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.comment-login-prompt p {
  margin: 0 0 0.9rem;
  color: #aeb3c2;
}

.comments-title {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #ddd;
}

.comment-card {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0e0e14;
  margin-bottom: 0.8rem;
}

.comment-author {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}

.comment-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #bbbbd0;
}

.editor-cover-preview {
  margin-top: 0.8rem;
}

.editor-cover-preview img {
  width: 100%;
  max-height: 15rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.editor-sidecar {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.editor-history {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.72);
}

.revision-list {
  display: grid;
  gap: 0.8rem;
}

.revision-card {
  padding: 0.9rem;
  border: 1px solid rgba(139, 0, 0, 0.18);
  border-radius: 6px;
  background: rgba(19, 21, 29, 0.72);
}

.revision-meta,
.revision-comment {
  margin: 0 0 0.55rem;
}

.revision-meta {
  color: #9da2b6;
  font-size: 0.78rem;
}

.revision-comment {
  color: #d8dae5;
  line-height: 1.55;
}

/* Blog form extras */

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 36rem) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .device-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    aspect-ratio: auto;
  }

  .blog-card-link {
    position: static;
    display: grid;
  }

  .blog-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
  }

  .blog-card-body {
    position: static;
    background: rgba(12, 14, 21, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .blog-card-meta {
    flex-wrap: wrap;
  }

  .blog-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .lang-toggle {
    margin-left: 0;
  }
}

/* =============================================================================
   CALENDAR
   ============================================================================= */

.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ical-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.3rem;
  padding: 0.25rem 0.6rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ical-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.events-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.events-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.events-past .events-section-title {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.event-card {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s;
}

.event-card:hover {
  border-color: var(--accent);
}

.event-card--past {
  opacity: 0.65;
}

.event-card--past:hover {
  opacity: 0.9;
}

.event-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
  line-height: 1;
}

.event-card-cover {
  width: 100%;
  height: 11rem;
  border-radius: 0.45rem;
  overflow: hidden;
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.event-day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.event-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.event-card-body {
  flex: 1;
  min-width: 0;
}

.event-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.event-card-title a {
  color: var(--text);
  text-decoration: none;
}

.event-card-title a:hover {
  color: var(--accent);
}

.event-card-location,
.event-card-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.event-card-manage {
  margin: 0.4rem 0 0;
}

.event-related-post-cta {
  margin: 1.3rem 0 0;
}

.calendar-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* Event detail */

.event-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.event-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.event-detail-meta-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.cover-crop-wrap {
  margin-top: 0.8rem;
}

.cover-crop-preview {
  margin-top: 0.7rem;
  max-width: 100%;
  border-radius: 6px;
  display: none;
}

.cover-crop-actions {
  display: none;
  margin-top: 0.6rem;
  gap: 0.5rem;
}

.cover-crop-actions button {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: #1b1d2a;
  color: #d8d8e8;
  border-radius: 6px;
  cursor: pointer;
}

/* =============================================================================
   RANKS
   ============================================================================= */

.ranks-canvas-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0 0 0.8rem;
}

.ranks-canvas-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
}

.ranks-hc-section {
  margin: 0.85rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(8, 10, 16, 0.94);
}

.ranks-hc-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.ranks-hc-logo {
  width: 3.8rem;
  height: 3.8rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.ranks-hc-title {
  margin: 0;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f0c640;
}

.ranks-hc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ranks-rank-card--hc {
  min-height: 3.3rem;
}

.ranks-matrix {
  min-width: -moz-max-content;
  min-width: max-content;
  display: grid;
  gap: 0.5rem;
}

.ranks-row {
  display: grid;
  grid-template-columns: repeat(var(--ranks-branch-count), minmax(13rem, 1fr));
  gap: 0.5rem;
}

.ranks-cell {
  background: rgba(8, 10, 16, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
}

.ranks-cell--head {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #f0c640;
  text-align: center;
}

.ranks-cell--branch-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ranks-branch-logo {
  width: 3.8rem;
  height: 3.8rem;
  -o-object-fit: contain;
     object-fit: contain;
  flex-shrink: 0;
}

.ranks-branch-logo--hidden {
  display: none;
}

.ranks-branch-name {
  line-height: 1.2;
}

.ranks-cell--priority {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d6d9e8;
}

.ranks-slot {
  min-height: 4.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
}

.ranks-slot--empty {
  opacity: 0.35;
}

.ranks-rank-card {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
  background: rgba(18, 21, 32, 0.92);
}

.rank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-align: center;
}

.rank-insignia {
  width: 2rem;
  height: 2rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.rank-insignia--placeholder {
  width: 2rem;
  height: 2rem;
  background: var(--border);
  border-radius: 0.3rem;
}

.rank-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.rank-abbr {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* =============================================================================
   HIGH COMMAND
   ============================================================================= */

.hc-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  min-width: -moz-max-content;
  min-width: max-content;
}

.hc-node {
  position: relative;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
}

.hc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 18, 27, 0.96);
  border: 2px solid rgba(255, 56, 0, 0.9);
  border-radius: 0.6rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.75rem;
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(100%, 34rem);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.hc-depth-0 > .hc-card {
  margin-inline: auto;
}

.hc-depth-0 {
  margin-inline: auto;
}

.hc-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.hc-avatar--placeholder {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface-2, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.hc-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hc-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f7f7f9;
}

.hc-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #f3cb50;
  font-weight: 500;
}

.hc-rank-insignia {
  width: 0.95rem;
  height: 0.95rem;
  -o-object-fit: contain;
     object-fit: contain;
  flex-shrink: 0;
}

.hc-role-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.hc-children {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  position: relative;
}

.hc-children::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 2px;
  height: 0.9rem;
  background: rgba(255, 56, 0, 0.9);
}

.hc-children > .hc-node::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 2px;
  height: 0.9rem;
  background: rgba(255, 56, 0, 0.9);
}

.hc-children > .hc-node::after {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: -0.5rem;
  right: -0.5rem;
  border-top: 2px solid rgba(255, 56, 0, 0.9);
}

.hc-children > .hc-node:first-child::after {
  left: 50%;
}

.hc-children > .hc-node:last-child::after {
  right: 50%;
}

.hc-children > .hc-node[data-secondary-parent-id]:not([data-secondary-parent-id=""])::before,
.hc-children > .hc-node[data-secondary-parent-id]:not([data-secondary-parent-id=""])::after {
  display: none;
}

.hc-canvas-controls {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  justify-content: flex-end;
}

.hc-zoom-btn {
  border: 1px solid var(--border);
  background: rgba(20, 23, 34, 0.95);
  color: #dbe2ff;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.hc-canvas-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.35rem 0 0.8rem;
  position: relative;
}

.hc-shared-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hc-tree {
  position: relative;
  z-index: 2;
}

/* ── Row-based HC layout ─────────────────────────────────────────────────── */

.hc-connector-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hc-rows {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 1rem 1rem 2rem;
  min-width: -moz-max-content;
  min-width: max-content;
}

.hc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.hc-row--unassigned {
  opacity: 0.65;
  border-top: 1px dashed var(--border);
  padding-top: 1.2rem;
  flex-wrap: wrap;
}

.hc-unassigned-label {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.hc-card--unassigned {
  border-color: var(--border) !important;
  opacity: 0.8;
}

.hc-row-level-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.hc-ctrl-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

/* =============================================================================
   EDITORIAL TOOLS (member area)
   ============================================================================= */

.account-panel--editorial {
  border-top: 2px solid var(--accent);
}

.account-subheading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}

.editor-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.editor-post-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.editor-post-item a:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.editor-post-item a:first-child:hover {
  color: var(--accent);
}

.post-status-chip {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
  flex-shrink: 0;
}

.post-status-chip--published {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.post-status-chip--draft {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #f59e0b;
}

.post-status-chip--archived {
  background: color-mix(in srgb, var(--text-muted) 15%, transparent);
  color: var(--text-muted);
}

.edit-post-link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.edit-post-link:hover {
  text-decoration: underline;
}

/* Blog header actions (new post + lang toggle row) */

.blog-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Info banners for error states */

.info-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.info-banner--warn {
  border-color: #f59e0b;
  color: #f59e0b;
  background: color-mix(in srgb, #f59e0b 8%, transparent);
}

/* =============================================================================
   HC EDIT MODE
   ============================================================================= */

/* Management bar (Edit / Done button) */

.hc-manage-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
  margin-bottom: 1.5rem;
}

.hc-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  transition: background 0.15s, color 0.15s;
}

.hc-edit-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

.hc-edit-toggle--exit {
  color: var(--text-muted);
  border-color: var(--border);
}

.hc-edit-toggle--exit:hover {
  background: var(--surface);
  color: var(--text);
}

.hc-order-status {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
  min-width: 3rem;
}

.hc-order-status--ok  {
  color: #22c55e;
}

.hc-order-status--err {
  color: #f87171;
}

/* Add member panel */

.hc-add-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.hc-add-panel-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.hc-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hc-search-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
}

.hc-search-results {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg);
}

.hc-search-result {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.hc-search-result:last-child {
  border-bottom: none;
}

.hc-search-result:hover, .hc-search-result--selected {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.hc-search-result-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hc-search-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

.hc-search-avatar--placeholder {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hc-search-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.hc-search-rank {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}

.hc-add-options-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.hc-parent-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text);
}

.hc-add-placement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.hc-add-options {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.hc-search-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  border-left: 2px solid var(--border);
}

.hc-uuid-fallback {
  margin-top: 0.75rem;
}

.hc-uuid-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 0.25rem 0;
}

.hc-uuid-summary:hover {
  color: var(--accent);
}

.hc-uuid-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  align-items: center;
}

.hc-uuid-status {
  font-size: 0.78rem;
  color: #f87171;
  margin: 0.25rem 0 0;
}

/* HC card edit state */

.hc-card--edit {
  flex-wrap: wrap;
  gap: 0.5rem;
  cursor: default;
}

.hc-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  flex-shrink: 0;
  touch-action: none;
}

.hc-drag-handle:active {
  cursor: grabbing;
}

.hc-edit-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.hc-ctrl-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.hc-ctrl-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

.hc-ctrl-btn--danger:hover {
  border-color: #f87171;
  color: #f87171;
}

/* Note editing form inside each HC card */

.hc-note-form {
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: var(--surface);
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.hc-note-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hc-note-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

.hc-link-parent-select {
  width: 100%;
  margin-top: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text);
}

.hc-link-save-btn {
  margin-top: 0.5rem;
}

/* Ghost while dragging */

.hc-node--dragging {
  opacity: 0.4;
}

/* Empty children drop zone in edit mode */

.hc-children--empty {
  min-height: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 0.4rem;
  margin-left: 0;
  margin-top: 0.25rem;
}

@media (max-width: 820px) {
  .hc-children {
    justify-content: flex-start;
  }

  .hc-card {
    min-width: 13.5rem;
  }
}

.role-channel-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

.role-channel-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
}

.role-channel-matrix {
  min-width: -moz-max-content;
  min-width: max-content;
  display: grid;
  gap: 0.5rem;
}

.role-channel-header,
.role-channel-row {
  display: grid;
  grid-template-columns: 8rem repeat(var(--role-branch-count), minmax(12rem, 1fr));
  gap: 0.5rem;
}

.role-cell {
  background: rgba(8, 10, 16, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
}

.role-cell--head {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #f0c640;
  text-align: center;
}

.role-cell--priority {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d6d9e8;
}

.role-slot {
  min-height: 4.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
}

.role-slot-empty {
  opacity: 0.35;
}

.role-rank-card {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem;
  align-items: center;
  background: rgba(20, 22, 32, 0.95);
  border: 1px solid rgba(255, 56, 0, 0.8);
  border-radius: 6px;
  padding: 0.3rem;
}

.role-rank-card img {
  width: 2rem;
  height: 2rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.role-rank-name {
  font-size: 0.76rem;
  line-height: 1.25;
  color: #eceff8;
}

/* Event form helpers */

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-field--check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ranks-page-kicker {
  margin-bottom: 1.8rem;
}

.ranks-page-title {
  margin-top: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.form-cancel-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.form-cancel-link:hover {
  color: var(--text);
}

.form-delete-btn {
  background: none;
  border: 1px solid #f87171;
  border-radius: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f87171;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.form-delete-btn:hover {
  background: #f87171;
  color: #fff;
}

.form-error {
  font-size: 0.8rem;
  color: #f87171;
  margin: 0.2rem 0 0;
}

/* ── Comment reply styles ─────────────────────────────────────────── */

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.comment-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.72rem;
}

.comment-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
}

.comment-replies {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--border);
}

.comment-card--reply {
  background: #111118;
  border-color: rgba(255,255,255,0.07);
}

.comment-reply-btn {
  margin-top: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.comment-reply-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.comment-cancel-btn {
  background: none;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  margin-left: 0.6rem;
}

.comment-cancel-btn:hover {
  border-color: #f87171;
  color: #f87171;
}

.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reply-context {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border-left: 2px solid var(--accent);
}

/* ── Home hero ──────────────────────────────────────────────────── */

.home-hero {
  padding: 2rem clamp(0.75rem, 3vw, 1.5rem);
  display: flex;
  justify-content: center;
}

.home-hero-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, 78rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(139, 0, 0, 0.34);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 15, 22, 0.92);
}

.home-hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 14, 0.97) 0%, rgba(8, 10, 16, 0.84) 54%, rgba(8, 10, 16, 0.94) 100%),
    var(--home-hero-bg) center/cover no-repeat;
  opacity: 0.92;
  z-index: -2;
}

.home-hero-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8rem;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0), rgba(8, 10, 16, 0.76));
  z-index: -1;
}

.home-hero-copy,
.home-hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-hero-copy {
  max-width: 44rem;
}

.home-hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.home-hero-header-copy {
  min-width: 0;
}

.home-hero-header-subtitle {
  margin: 0.35rem 0 0;
  color: #d5d9e5;
  font-size: 1rem;
  line-height: 1.45;
}

.home-hero-copy .content-page-lead {
  max-width: 42rem;
}

.home-hero-points {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.home-hero-points li {
  position: relative;
  padding-left: 1.2rem;
  color: #d8dbe8;
  line-height: 1.65;
}

.home-hero-points li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #cc4a4a;
  box-shadow: 0 0 14px rgba(204, 74, 74, 0.4);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.home-hero-panel {
  display: grid;
  gap: 0.9rem;
  align-self: stretch;
  align-content: start;
  width: 100%;
  max-width: 36rem;
}

.home-hero-snapshot-card,
.home-hero-snapshot-item {
  border: 1px solid rgba(139, 0, 0, 0.24);
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.84);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.home-hero-logo {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.home-hero-snapshot-title,
.home-hero-snapshot-item strong,
.home-hero-snapshot-item span {
  margin: 0;
}

.home-hero-snapshot-title {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero-snapshot-card {
  padding: 1rem;
}

.home-hero-snapshot-intro {
  margin: 0.8rem 0 0;
  color: #d5d9e5;
  line-height: 1.6;
}

.home-hero-snapshot-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.home-hero-snapshot-item {
  padding: 0.9rem 1rem;
}

.home-hero-snapshot-item strong {
  display: block;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.home-hero-snapshot-item span {
  display: block;
  margin-top: 0.38rem;
  color: #b9bfd0;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 2rem;
  }

  .home-hero-frame {
    padding: 1.15rem;
  }

  .home-hero-logo {
    width: 3.4rem;
    height: 3.4rem;
  }

  .home-hero-header-subtitle {
    font-size: 0.92rem;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions .primary-link,
  .home-hero-actions .secondary-link {
    width: 100%;
  }
}

/* ── Home featured post ───────────────────────────────────────────── */

.home-featured-post {
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  margin: 0 0 2rem;
  display: flex;
  justify-content: center;
}

.home-featured-secondary {
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  margin: 0 0 2rem;
  display: flex;
  justify-content: center;
}

.home-featured-secondary-grid {
  width: min(100%, 78rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.recent-post-card.recent-post-card--secondary-featured {
  border: 1px solid rgba(139, 0, 0, 0.6);
  background: var(--bg);
}

/* Use double class for specificity to beat .recent-post-card base styles */

.recent-post-card.recent-post-card--featured {
  position: relative;
  width: min(100%, 78rem);
  aspect-ratio: 16 / 9;
  /* 25% shorter than 4/3 */
  border: 1px solid rgba(139, 0, 0, 0.6);
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}

.recent-post-card.recent-post-card--featured .recent-post-cover {
  position: absolute;
  inset: 0;
  aspect-ratio: unset;
  height: 100%;
}

.recent-post-card.recent-post-card--featured .recent-post-cover img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.recent-post-card.recent-post-card--featured .recent-post-body {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  /* span full card height */
  max-width: 34%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(13, 15, 22, 0.9);
  padding: 1.5rem 2rem 1.5rem;
  gap: 0.5rem;
}

.recent-post-card.recent-post-card--featured .recent-post-title {
  font-size: 1.7rem;
  flex-shrink: 0;
  height: unset;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.recent-post-card.recent-post-card--featured .recent-post-excerpt {
  flex: 1;
  min-height: 0;
  /* allow flex child to shrink */
  overflow: hidden;
  height: unset;
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
  white-space: pre-line;
}

.recent-post-card.recent-post-card--featured .recent-post-time {
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0;
}

/* Mobile: bottom-overlay layout for featured card */

@media (max-width: 700px) {
  .recent-post-card.recent-post-card--featured {
    aspect-ratio: 4 / 3;
  }

  .recent-post-card.recent-post-card--featured .recent-post-body {
    top: auto;
    /* unpin from top */
    max-width: 100%;
    padding: 1rem 1.1rem 1.1rem;
    gap: 0.35rem;
  }

  .recent-post-card.recent-post-card--featured .recent-post-title {
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .recent-post-card.recent-post-card--featured .recent-post-excerpt {
    font-size: 0.8rem;
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .recent-post-card.recent-post-card--featured .recent-post-time {
    font-size: 0.73rem;
  }

  .home-featured-secondary-grid {
    grid-template-columns: 1fr;
  }
}

.pinned-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  width: -moz-fit-content;
  width: fit-content;
}

/* ── Home recent posts reel ───────────────────────────────────────── */

.home-recent-posts {
  margin: 0 0 2rem;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recent-posts-card {
  width: min(100%, 78rem);
  border: 1px solid rgba(139, 0, 0, 0.6);
  border-radius: 8px;
  background: var(--bg);
  padding: 1rem 1.2rem 0.8rem;
}

.recent-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
}

.recent-posts-header .section-kicker {
  font-size: 0.85rem;
  margin: 0;
}

.recent-posts-header .secondary-link {
  min-height: unset;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.recent-posts-reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - ((var(--cards-per-view, 4) - 1) * 0.85rem)) / var(--cards-per-view, 4));
  gap: 0.85rem;
  transition: transform 0.45s ease;
}

.recent-posts-carousel {
  --cards-per-view: 4;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.recent-posts-viewport {
  flex: 1;
  overflow: hidden;
  /* allow momentum scrolling on iOS without interfering with JS */
  -webkit-overflow-scrolling: touch;
}

.recent-carousel-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(19, 22, 34, 0.92);
  color: #d8dbe8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.recent-carousel-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .recent-posts-carousel {
    --cards-per-view: 3;
  }
}

@media (max-width: 700px) {
  .recent-posts-carousel {
    --cards-per-view: 1;
    gap: 0;
  }

  .recent-carousel-nav {
    display: none;
  }

  /* Consistent top gap = same as left/right edge padding */

  .home-featured-post {
    padding-top: clamp(0.75rem, 3vw, 1.5rem);
  }

  .content-page {
    padding-top: clamp(0.75rem, 3vw, 1.5rem);
    padding-left: clamp(0.75rem, 3vw, 1.5rem);
    padding-right: clamp(0.75rem, 3vw, 1.5rem);
  }

  .content-page--hc,
  .content-page--cal {
    padding-top: clamp(0.75rem, 3vw, 1.5rem);
  }

  .blog-shell {
    padding-top: clamp(0.75rem, 3vw, 1.5rem);
  }
}

.recent-post-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(139, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}

.recent-post-card:hover {
  border-color: rgba(139, 0, 0, 0.75);
  transform: translateY(-2px);
}

.recent-post-cover {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
}

.recent-post-cover img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.recent-post-cover--placeholder {
  background: var(--bg);
}

.recent-post-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@media (prefers-reduced-motion: reduce) {
  .recent-posts-reel,
  .recent-post-card,
  .blog-card,
  .social-icon-link,
  .resource-search-button {
    transition: none;
  }

  .site-header,
  .blog-card-body,
  .recent-post-body {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.recent-post-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ddd;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: auto;
}

.recent-post-excerpt {
  font-size: 0.73rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  height: calc(2 * 1.4 * 0.73rem);
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Load-more spinner ────────────────────────────────────────────── */

.load-more-spinner {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.load-more-spinner::after {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(139, 0, 0, 0.25);
  border-top-color: #8b0000;
  border-radius: 50%;
  animation: load-more-spin 0.7s linear infinite;
}

@keyframes load-more-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Save toast ──────────────────────────────────────────────────── */

.save-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: rgba(24, 90, 38, 0.95);
  color: #c8f5d2;
  border: 1px solid rgba(80, 200, 100, 0.45);
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.save-toast--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Form section divider ─────────────────────────────────────────── */

.form-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0;
}
