/* Shared page rhythm: slate introduction, white setup, pale community section. */
.bc-discord-landing,
.bc-discord-notification-setup {
  --bc-discord-brand: #5865f2;
  --bc-discord-slate: #304b62;
  --bc-discord-gold: #ffc433;
  --bc-discord-teal: #187d71;
  --bc-discord-ink: #203247;
  --bc-discord-muted: #52687b;
  --bc-discord-line: #d4dfe8;
  --bc-discord-soft: #edf4f9;
  --bc-discord-gutter: 32px;
  color: var(--bc-discord-ink);
  font: 14px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.bc-discord-landing { container: bc-discord-page / inline-size; max-width: 1100px; margin: 16px auto 64px; border: 1px solid #c5d3de; border-radius: 10px; background: #fff; }
.bc-discord-landing *,
.bc-discord-notification-setup * { box-sizing: border-box; }
.bc-discord-landing h1,
.bc-discord-landing h2,
.bc-discord-landing h3,
.bc-discord-notification-setup h1,
.bc-discord-notification-setup h2,
.bc-discord-notification-setup h3 { width: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; text-align: left; text-transform: none; box-shadow: none; }
.bc-discord-landing [id] { scroll-margin-top: 80px; }
.bc-discord-landing :focus-visible,
.bc-discord-notification-setup :focus-visible { outline: 3px solid #4957cf; outline-offset: 4px; }
.bc-discord-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.bc-discord-anchor { display: block; height: 0; }

/* The navigation is part of the introduction, rather than a second card. */
.bc-discord-page-topbar { display: flex; align-items: center; padding: 6px var(--bc-discord-gutter); border-bottom: 1px solid #ffffff24; border-radius: 9px 9px 0 0; background: var(--bc-discord-slate); }
.bc-discord-page-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.bc-discord-page-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 2px; border-bottom: 2px solid transparent; color: #dce8f1; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bc-discord-page-nav a:first-child { border-bottom-color: var(--bc-discord-gold); color: #fff; }
.bc-discord-landing:has(#bc-discord-title:target, #discord-benefits:target, #bc-discord-final-title:target, #bc-discord-faq-title:target) .bc-discord-page-nav a:first-child { border-bottom-color: transparent; color: #dce8f1; }
.bc-discord-landing:has(#bc-discord-title:target, #discord-benefits:target, #bc-discord-final-title:target) .bc-discord-page-nav a[href="#bc-discord-title"],
.bc-discord-landing:has(#bc-discord-faq-title:target) .bc-discord-page-nav a[href="#bc-discord-faq-title"] { border-bottom-color: var(--bc-discord-gold); color: #fff; }
.bc-discord-page-nav a:hover { color: #fff; border-bottom-color: #d7e5ee; }
.bc-discord-page-topbar :focus-visible { outline-color: var(--bc-discord-gold); }
.bc-discord-notification-setup { container: bc-discord-setup / inline-size; margin: 0; padding: 0; border: 0; background: #fff; }
.bc-discord-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 28px var(--bc-discord-gutter); background: var(--bc-discord-slate); color: #fff; }
.bc-discord-intro-copy { min-width: 0; }
.bc-discord-identity { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 16px; color: #fff; }
.bc-discord-identity-site { flex: 0 1 auto; min-width: 0; max-width: 145px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; }
.bc-discord-identity-site img { display: block; width: auto; max-width: 145px; height: 40px; object-fit: contain; }
.bc-discord-identity-on { color: #c0d1df; font-size: 11px; }
.bc-discord-identity-platform { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; }
.bc-discord-identity-glyph { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bc-discord-brand); }
.bc-discord-identity-glyph img { display: block; width: 20px; height: 20px; }
.bc-discord-notification-setup #discord-notifications-title { max-width: 21ch; color: #fff; font-size: clamp(28px, 3vw, 36px); font-weight: 750; line-height: 1.16; letter-spacing: -.035em; }
.bc-discord-title-accent { color: var(--bc-discord-gold); }
.bc-discord-intro-copy > p { max-width: 41ch; margin: 14px 0 22px; color: #e2edf5; font-size: 15px; line-height: 1.65; }
.bc-discord-intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.bc-discord-intro-actions > span { color: #dce8f1; font-size: 12px; }

/* Discord message structure uses the page's slate palette; this is a labelled example. */
.bc-discord-alert-preview { min-width: 0; margin: 0; padding: 14px; border: 1px solid #506b80; border-radius: 8px; background: #284257; color: #e2edf5; }
.bc-discord-alert-preview figcaption { margin: 0 0 10px; color: #c0d1df; font-size: 11px; line-height: 1.5; }
.bc-discord-preview-message { display: flex; align-items: flex-start; gap: 10px; }
.bc-discord-preview-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #20384d; }
.bc-discord-preview-avatar img { display: block; width: 40px; height: 40px; object-fit: contain; }
.bc-discord-preview-content { min-width: 0; flex: 1; }
.bc-discord-alert-preview .bc-discord-preview-content p.bc-discord-preview-author { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; }
.bc-discord-preview-author .bc-discord-app-badge { display: inline-flex; align-items: center; min-height: 15px; padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }
.bc-discord-preview-embed { padding: 12px; border-left: 3px solid #8791ff; border-radius: 0 4px 4px 0; background: #20384d; }
.bc-discord-preview-embed strong { color: #fff; font-size: 14px; font-weight: 650; }
.bc-discord-notification-setup .bc-discord-alert-preview .bc-discord-preview-embed p { margin: 5px 0 12px; color: #e2edf5; font-size: 13px; line-height: 1.55; }
.bc-discord-preview-embed .bc-discord-preview-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; }
.bc-discord-preview-fields > div { min-width: 0; }
.bc-discord-preview-fields dt { margin: 0 0 3px; color: #fff; font-size: 11px; font-weight: 650; line-height: 1.5; }
.bc-discord-preview-fields dd { margin: 0; color: #e2edf5; font-size: 12px; line-height: 1.5; }
.bc-discord-preview-link { display: inline-flex; align-items: center; gap: 6px; color: #b2d6ff; font-size: 12px; font-weight: 600; }
.bc-discord-preview-link .bc-discord-icon { width: 14px; height: 14px; flex-basis: 14px; }
.bc-discord-preview-site { display: block; margin-top: 8px; color: #c0d1df; font-size: 10px; line-height: 1.5; }

/* Setup is a single settings panel. Colour indicates the actual connected state. */
.bc-discord-onboarding { padding: 28px var(--bc-discord-gutter); }
.bc-discord-setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bc-discord-notification-setup .bc-discord-setup-heading h2 { color: var(--bc-discord-ink); font-size: 20px; }
.bc-discord-connection-state { display: inline-flex; align-items: center; gap: 5px; color: #63778a; font-size: 12px; white-space: nowrap; }
.bc-discord-connection-state.is-connected { color: var(--bc-discord-teal); }
.bc-discord-connection-state .bc-discord-icon { width: 16px; height: 16px; flex-basis: 16px; }
.bc-discord-notification-steps { border-top: 1px solid var(--bc-discord-line); }
.bc-discord-setup-step { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(220px, 280px); align-items: start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--bc-discord-line); }
.bc-discord-step-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border: 1px solid #bfd0dd; border-radius: 50%; background: #f0f5f8; color: #4f6578; font-size: 12px; font-weight: 650; }
.bc-discord-setup-step.is-complete .bc-discord-step-number { border-color: #a9d1c6; background: #eaf5f1; color: var(--bc-discord-teal); }
.bc-discord-step-copy { min-width: 0; }
.bc-discord-notification-setup .bc-discord-step-copy h3 { margin: 0 0 6px; color: var(--bc-discord-ink); font-size: 15px; line-height: 1.5; }
.bc-discord-step-copy p { max-width: 40ch; margin: 0; color: var(--bc-discord-muted); font-size: 13px; line-height: 1.6; }
.bc-discord-step-action { min-width: 0; align-self: center; }
.bc-discord-step-action > p { margin: 0; color: var(--bc-discord-muted); font-size: 13px; }
.bc-discord-notification-setup .bc-notification-channel-control label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0; background: transparent; color: var(--bc-discord-ink); font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.bc-discord-notification-setup .bc-notification-channel-control input { flex: 0 0 19px; width: 19px; height: 19px; margin: 0; accent-color: var(--bc-discord-brand); }
.bc-discord-notification-setup .bc-notification-channel-control label:has(input:disabled) { cursor: default; color: #617487; }
.bc-discord-notification-setup .bc-notification-channel-control p { margin: 3px 0 0; color: var(--bc-discord-muted); font-size: 12px; line-height: 1.55; }
.bc-discord-notification-setup [data-bc-notification-status]:empty { display: none; }
.bc-discord-notification-setup .bc-discord-setup-note { margin: 14px 0 0 40px; color: #617487; font-size: 12px; line-height: 1.6; }
.bc-discord-guest-setup { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--bc-discord-line); border-bottom: 1px solid var(--bc-discord-line); }
.bc-discord-guest-setup p { max-width: 45ch; margin: 0; color: var(--bc-discord-muted); font-size: 14px; }
.bc-discord-guest-setup > a { flex-shrink: 0; }

/* Page action is gold; account connection retains the official Discord colour. */
.bc-discord-intro-action,
.bc-discord-landing .bc-notification-primary,
.bc-discord-notification-setup .bc-notification-primary,
.bc-discord-notification-setup .dal-button,
.bc-discord-landing .bc-discord-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; max-width: 100%; min-height: 44px; margin: 0; padding: 10px 15px; border: 1px solid var(--bc-discord-action-border, var(--bc-discord-brand)); border-radius: 6px; background: var(--bc-discord-action-bg, var(--bc-discord-brand)); color: var(--bc-discord-action-text, #fff) !important; font: 650 13px/1.5 system-ui, sans-serif; text-align: center; text-decoration: none !important; white-space: normal; box-shadow: none; transform: none; transition: background-color .15s ease, border-color .15s ease; }
.bc-discord-intro-action { --bc-discord-action-bg: var(--bc-discord-gold); --bc-discord-action-border: var(--bc-discord-gold); --bc-discord-action-text: #1e3347; --bc-discord-action-hover: #edb52c; }
.bc-discord-landing .bc-discord-btn { --bc-discord-action-bg: transparent; --bc-discord-action-border: #7891a4; --bc-discord-action-text: #304b62; --bc-discord-action-hover: #dce8f1; }
.bc-discord-intro-action .bc-discord-icon,
.bc-discord-landing .bc-discord-btn .bc-discord-icon { width: 16px; height: 16px; flex-basis: 16px; }
.bc-discord-notification-setup .dal-button img.dal-icon { width: 17px; height: 17px; filter: none; }
.bc-discord-intro-action:hover,
.bc-discord-notification-setup .dal-button:hover,
.bc-discord-notification-setup .bc-notification-primary:hover,
.bc-discord-landing .bc-discord-btn:hover { border-color: var(--bc-discord-action-hover, #4752c4); background: var(--bc-discord-action-hover, #4752c4); box-shadow: none; transform: none; }
.bc-discord-intro-action:focus-visible,
.bc-discord-notification-setup .dal-button:focus-visible,
.bc-discord-notification-setup .bc-notification-primary:focus-visible,
.bc-discord-landing .bc-discord-btn:focus-visible { outline: 3px solid #31405f; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }

/* Community content is described once, in one compact section. */
.bc-discord-page { margin: 0; border-radius: 0 0 9px 9px; background: #fff; }
.bc-discord-community { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; padding: 36px var(--bc-discord-gutter); border-block: 1px solid #506b80; background: #20384d; color: #fff; }
.bc-discord-community-backdrop { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.bc-discord-community-backdrop img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center 65%; }
.bc-discord-community::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #122c40eb, #163247d6 48%, #173247b8); pointer-events: none; }
.bc-discord-community :focus-visible { outline-color: var(--bc-discord-gold); }
.bc-discord-landing .bc-discord-community .bc-discord-btn { --bc-discord-action-bg: var(--bc-discord-gold); --bc-discord-action-border: var(--bc-discord-gold); --bc-discord-action-text: #1e3347; --bc-discord-action-hover: #edb52c; }
.bc-discord-community > .bc-discord-anchor { position: absolute; top: 0; left: 0; }
.bc-discord-landing .bc-discord-community h2 { max-width: 24ch; font-size: 24px; line-height: 1.3; }
.bc-discord-community-copy > p { max-width: 45ch; margin: 12px 0 20px; color: #e2edf5; font-size: 14px; }
.bc-discord-landing .bc-discord-community ul.bc-discord-community-topics { margin: 0; padding: 0; list-style: none; }
.bc-discord-landing .bc-discord-community-topics > li { margin: 0; padding: 14px 0; border-top: 1px solid #b6cede40; }
.bc-discord-community-topics > li:first-child { padding-top: 0; border-top: 0; }
.bc-discord-community-topics > li:last-child { padding-bottom: 0; }
.bc-discord-landing .bc-discord-community-topics h3 { margin: 0 0 4px; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.bc-discord-community-topics p { margin: 0; color: #e2edf5; font-size: 13px; line-height: 1.6; }
.bc-discord-faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; padding: 32px var(--bc-discord-gutter); background: linear-gradient(115deg, #edf5f8, #f7fafc); }
.bc-discord-landing .bc-discord-faq-section h2 { font-size: 20px; }
.bc-discord-faq { min-width: 0; padding: 0 16px; border: 1px solid #d4dfe8; border-radius: 8px; background: #ffffffed; }
.bc-discord-faq details { padding: 0; border: 0; border-bottom: 1px solid var(--bc-discord-line); border-radius: 0; background: transparent; box-shadow: none; }
.bc-discord-faq details:last-child { border-bottom: 0; }
.bc-discord-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 0; color: #304b62; font-size: 13px; font-weight: 600; line-height: 1.6; list-style: none; cursor: pointer; }
.bc-discord-faq summary::-webkit-details-marker { display: none; }
.bc-discord-faq summary::after { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 3px; border-right: 1.5px solid #5b748a; border-bottom: 1.5px solid #5b748a; transform: rotate(45deg); }
.bc-discord-faq details[open] > summary::after { transform: rotate(225deg); }
.bc-discord-faq p { margin: 0 0 16px; padding-right: 24px; color: var(--bc-discord-muted); font-size: 13px; line-height: 1.7; }

/* Adapt to the theme's content column as well as the viewport. */
@container bc-discord-setup (max-width: 680px) {
  .bc-discord-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bc-discord-alert-preview { width: 100%; max-width: 460px; }
  .bc-discord-setup-step { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 12px; }
  .bc-discord-step-action { grid-column: 2; }
  .bc-discord-guest-setup { flex-direction: column; align-items: stretch; gap: 16px; }
  .bc-discord-notification-setup .bc-discord-setup-note { margin-left: 36px; }
}
@container bc-discord-page (max-width: 680px) {
  .bc-discord-community, .bc-discord-faq-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .bc-discord-intro, .bc-discord-community, .bc-discord-faq-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bc-discord-setup-step { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 12px; }
  .bc-discord-step-action { grid-column: 2; }
  .bc-discord-guest-setup { flex-direction: column; align-items: stretch; gap: 16px; }
}
@media (max-width: 520px) {
  .bc-discord-landing, .bc-discord-notification-setup { --bc-discord-gutter: 20px; }
  .bc-discord-landing { margin: 10px auto 54px; }
  .bc-discord-page-topbar { padding-block: 6px; }
  .bc-discord-page-nav { gap: 0 8px; }
  .bc-discord-page-nav a { padding: 8px 2px; font-size: 11px; }
  .bc-discord-intro { padding-block: 24px; }
  .bc-discord-notification-setup #discord-notifications-title { font-size: 28px; }
  .bc-discord-intro-copy > p { margin: 12px 0 18px; font-size: 14px; }
  .bc-discord-preview-message { gap: 8px; }
  .bc-discord-onboarding { padding-block: 24px; }
  .bc-discord-notification-setup .bc-discord-setup-heading h2 { font-size: 18px; }
  .bc-discord-connection-state { font-size: 11px; }
  .bc-discord-notification-setup .dal-button, .bc-discord-notification-setup .bc-notification-primary { width: 100%; }
  .bc-discord-notification-setup .bc-discord-setup-note { margin-left: 0; }
  .bc-discord-community, .bc-discord-faq-section { padding-block: 28px; }
  .bc-discord-landing .bc-discord-community h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-discord-landing a, .bc-discord-notification-setup .dal-button { transition: none; }
}

/* Compatibility with the site's page wrapper; other pages keep their title/spacing. */
body.dal-discord-landing-page #content { margin-top: 0; }
/* The theme's clearfix dot becomes a flex item and leaves a visible side strip. */
body.dal-discord-landing-page #content > .container.clearfix::after { content: none; }
body.dal-discord-landing-page #main_content > .articles > .one-post > .post-caption { display: none; }
/* The FAQ's own padding provides the final spacing before the site footer. */
body.dal-discord-landing-page #main_content > .articles > .one-post { margin-bottom: 0; padding-bottom: 0; }
body.dal-discord-landing-page .bc-discord-landing { width: 100%; max-width: none; margin-block: 0; border: 0; border-radius: 0; }
body.dal-discord-landing-page #main_content .bc-discord-page-topbar { border-radius: 0; }
body.dal-discord-landing-page .slider .fp-thumbnail > a,
body.dal-discord-landing-page .slider .fp-thumbnail picture,
body.dal-discord-landing-page .slider .fp-thumbnail img { display: block; }
