/* Editor help: the dashboard welcome box, the Editing guide screen and the login. Admin-only; theme.json palette values. */
#nbcc_welcome .postbox-header { border-bottom: 3px solid #C72C60; }
.nbcc-welcome__title { font-family: "Playfair Display", Georgia, serif; font-size: 26px; line-height: 1.2; color: #5E0B23; margin: 4px 0 16px; }
.nbcc-welcome__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.nbcc-welcome__links li { margin: 0; }
.nbcc-welcome__link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #D4D4D4; border-radius: 6px; background: #FAF9F6; color: #1A1A1A; font-family: Mulish, -apple-system, sans-serif; font-weight: 700; text-decoration: none; }
.nbcc-welcome__link:hover, .nbcc-welcome__link:focus { border-color: #C72C60; background: #F5D6E0; color: #5E0B23; }
.nbcc-welcome__link .dashicons { flex: none; color: #C72C60; }
/* With the stock boxes gone the right column is empty: hide its dashed
   "Drag boxes here" outline, except while a box is being dragged. */
body:not(.is-dragging-metaboxes) #dashboard-widgets .meta-box-sortables.empty-container { outline: none; border: 0; min-height: 0; height: 0; }
body:not(.is-dragging-metaboxes) #dashboard-widgets .meta-box-sortables.empty-container::after { content: none; display: none; }

/* ---------------------------------------------------------------- guide
   Dashboard → Editing guide. One bold element: the title band carries the dot motif of NBCC's
   news headers. Everything else is quiet: each section pairs the text with what the editor
   will actually see. Admin grey around a white sheet; theme.json palette. */
.nbcc-guide { max-width: 1120px; font-family: Mulish, -apple-system, sans-serif; color: #1A1A1A; }

.nbcc-guide__hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 18px 0 0; padding: 48px 52px 46px; border-radius: 10px;
  background: linear-gradient(100deg, #5E0B23 0%, #3E1230 48%, #0B3751 100%);
  color: #fff;
}
/* The halftone dots: small and faint near the title, larger and brighter to
   the right, as on the news headers. Three dot sizes layered, each faded in. */
.nbcc-guide__hero::before,
.nbcc-guide__hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #C72C60 0 var(--dot), transparent calc(var(--dot) + .6px));
  background-size: 26px 26px; background-position: right -6px center;
}
.nbcc-guide__hero::before {
  --dot: 4px;
          mask-image: linear-gradient(90deg, transparent 38%, rgba(0,0,0,.55) 62%, transparent 78%);
}
.nbcc-guide__hero::after {
  --dot: 9px;
          mask-image: linear-gradient(90deg, transparent 62%, rgba(0,0,0,.9) 100%);
}
.nbcc-guide .nbcc-guide__hero h1 {
  margin: 0; padding: 0; border: 0;
  font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 46px; line-height: 1.08; letter-spacing: -.01em; color: #fff;
}
.nbcc-guide .nbcc-guide__lead { max-width: 34em; margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.86); }
.nbcc-guide .wp-header-end { margin: 0; visibility: hidden; }

.nbcc-guide__toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 32px; margin: 20px 4px 22px; }
.nbcc-guide__toc a { color: #5E0B23; text-decoration: none; }
.nbcc-guide__toc a:hover, .nbcc-guide__toc a:focus { color: #C72C60; text-decoration: underline; }
.nbcc-guide__toc .nbcc-guide__toc-section { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 800; border-bottom: 1px solid rgba(199,44,96,.35); padding-bottom: 1px; }
.nbcc-guide__toc ul { margin: 6px 0 0; padding: 0; list-style: none; }
.nbcc-guide__toc li { margin: 0 0 3px; font-size: 13px; line-height: 1.45; }
.nbcc-guide h3[id], .nbcc-guide__buttons > div[id] { scroll-margin-top: 48px; }

.nbcc-guide__sheet { background: #fff; border: 1px solid #DCDCDE; border-radius: 10px; }
.nbcc-guide__section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 44px; align-items: start;
  padding: 38px 44px; scroll-margin-top: 48px;
}
.nbcc-guide__section + .nbcc-guide__section { border-top: 1px solid #ECECEE; }
.nbcc-guide__section--wide { grid-template-columns: minmax(0, 1fr); }

.nbcc-guide h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 27px; line-height: 1.2; color: #5E0B23;
}
.nbcc-guide h2 .dashicons { flex: none; width: 22px; height: 22px; font-size: 22px; color: #C72C60; }
.nbcc-guide p, .nbcc-guide dd { max-width: 62ch; margin: 0 0 14px; font-size: 15px; line-height: 1.75; color: #3D3D3D; }
.nbcc-guide p:last-child, .nbcc-guide dd:last-child { margin-bottom: 0; }
/* Scannable: one bold label per topic, caveats as bullets */
.nbcc-guide h3 { margin: 30px 0 6px; font-size: 16px; font-weight: 800; line-height: 1.4; color: #5E0B23; }
.nbcc-guide h2 + h3, .nbcc-guide h2 + p + h3 { margin-top: 14px; }
.nbcc-guide dd p { margin-bottom: 6px; }
.nbcc-guide ul:not(.nbcc-guide__mock-menu) { max-width: 62ch; margin: 0; padding-left: 20px; list-style: disc; }
.nbcc-guide ul:not(.nbcc-guide__mock-menu) li { margin: 0 0 4px; font-size: 15px; line-height: 1.65; color: #3D3D3D; }
.nbcc-guide ul:not(.nbcc-guide__mock-menu) li::marker { color: #C72C60; }

/* What the editor will see */
.nbcc-guide__figures { display: grid; gap: 22px; }
.nbcc-guide__figure { margin: 0; }
.nbcc-guide__figure img { display: block; width: 100%; height: auto; border: 1px solid #DCDCDE; border-radius: 8px; }
/* A section's one picture stays beside the text while it scrolls (below the 32px toolbar). */
.nbcc-guide__section > .nbcc-guide__figure { position: sticky; top: 48px; }
/* A side panel, shown at the width it has in the editor. */
.nbcc-guide__figure--narrow img { max-width: 280px; }
/* A section without a picture sets its topics in two columns. */
.nbcc-guide__topics { columns: 2 340px; column-gap: 48px; }
.nbcc-guide__topic { break-inside: avoid; padding-bottom: 26px; }
.nbcc-guide__topic > h3 { margin-top: 0; }
.nbcc-guide__figure figcaption { margin-top: 9px; font-size: 13px; color: #646970; }

/* A new post, drawn (a screenshot would leave a draft behind every time) */
.nbcc-guide__mock-post { display: grid; gap: 14px; padding: 30px 30px 34px; background: #FAF9F6; border: 1px solid #DCDCDE; border-radius: 8px; }
.nbcc-guide__mock-title { font-family: "Playfair Display", Georgia, serif; font-size: 40px; line-height: 1; color: #8C8F94; }
.nbcc-guide__mock-prompt { font-size: 15px; line-height: 1.6; color: #8C8F94; }

/* The left menu, drawn in WordPress's own colours */
.nbcc-guide__mock-menu { margin: 0; padding: 10px 0; list-style: none; background: #1D2327; border-radius: 8px; max-width: 300px; }
.nbcc-guide__mock-menu li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 18px; font-size: 14px; color: #F0F0F1; }
.nbcc-guide__mock-menu .dashicons { color: #A7AAAD; }

/* Buttons named in the text, drawn as they look in WordPress */
.nbcc-ui { display: inline-block; padding: 2px 10px; border: 1px solid #2271B1; border-radius: 3px; background: #fff; color: #2271B1; font: 600 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: nowrap; vertical-align: 1px; }
.nbcc-ui--plus { width: 22px; height: 22px; padding: 0; border-color: #3858E9; background: #3858E9; color: #fff; text-align: center; font-size: 18px; line-height: 21px; border-radius: 2px; }
.nbcc-guide__buttons { display: grid; gap: 16px; margin: 0 0 22px; }
.nbcc-guide__buttons > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.nbcc-guide__buttons dt { margin: 0; font-size: 14px; font-weight: 800; color: #5E0B23; }
.nbcc-guide__buttons dd { margin: 0; }

/* The one rule that matters before publishing a change */
.nbcc-guide__before { margin: 22px 0 0; padding: 30px 44px 32px; background: #FBEFF3; border-left: 4px solid #C72C60; border-radius: 0 10px 10px 0; }
.nbcc-guide__before h2 { font-size: 23px; }

.nbcc-guide .nbcc-guide__signoff { margin: 30px 4px 10px; font-family: "Playfair Display", Georgia, serif; font-size: 21px; color: #5E0B23; }

.nbcc-guide a:focus-visible { outline: 2px solid #C72C60; outline-offset: 2px; box-shadow: none; }

@media (max-width: 1100px) {
  .nbcc-guide__section { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 26px; }
  .nbcc-guide__section > .nbcc-guide__figure { position: static; }
  .nbcc-guide__hero { padding: 36px 30px; }
  .nbcc-guide .nbcc-guide__hero h1 { font-size: 38px; }
  .nbcc-guide__before { padding: 26px; }
}
@media (max-width: 600px) {
  .nbcc-guide__buttons > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nbcc-guide__hero::before { display: none; }
}

/* Site Settings: the colour logo above the page title, as on the login page */
.toplevel_page_nbcc-site-settings .wrap > h1::before { content: ""; display: block; width: 140px; height: 46px; margin-bottom: 10px; background: url(../images/logo-color.svg) left center / contain no-repeat; }

/* Login: the site's burgundy wash (the banners' deep → burgundy → navy), the white logo with
   its tagline, the form on a white card under the magenta rule. The same sheet dresses the WP 2FA
   code screen, which is a login-page form too. */
body.login { background: linear-gradient(135deg, #3D0A1A 0%, #5E0B23 45%, #0B3751 100%) fixed; font-family: Mulish, -apple-system, sans-serif; }
.login h1 a { background: url(../images/logo-white-tag.svg) center / contain no-repeat; width: 240px; height: 88px; margin-bottom: 28px; }
.login form { background: #FFFFFF; border: 0; border-top: 4px solid #C72C60; border-radius: 10px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); padding: 28px 28px 32px; }
.login label { font-weight: 600; color: #1A1A1A; }
.login input[type=text], .login input[type=password] { border: 1px solid #D4D4D4; border-radius: 6px; padding: 6px 12px; font-size: 1rem; }
.login input[type=text]:focus, .login input[type=password]:focus { border-color: #C72C60; box-shadow: 0 0 0 1px #C72C60; }
.login .wp-hide-pw { color: #6B6B6B; }
.login .button-primary { background: #C72C60; border-color: #C72C60; border-radius: 999px; padding: 0 24px; min-height: 42px; font-weight: 700; letter-spacing: 0.01em; text-shadow: none; }
.login .button-primary:hover, .login .button-primary:focus { background: #5E0B23; border-color: #5E0B23; }
.login .button-primary:focus { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #C72C60; } /* a ring that shows on the white card */
.login label[for=rememberme] { font-weight: 400; }
.login #nav, .login #backtoblog { text-align: center; }
.login #nav a, .login #backtoblog a, .login .privacy-policy-page-link a, .login .backup-methods a { color: #FFFFFF; } /* .backup-methods: WP 2FA's "use a backup code" link, printed on the wash outside the card */
.login #nav a:hover, .login #backtoblog a:hover, .login .privacy-policy-page-link a:hover, .login .backup-methods a:hover, .login #nav a:focus, .login #backtoblog a:focus, .login .backup-methods a:focus { color: #E8D18C; }
.login #nav a:focus, .login #backtoblog a:focus, .login .privacy-policy-page-link a:focus, .login .backup-methods a:focus { outline: 2px solid #FFFFFF; outline-offset: 2px; box-shadow: none; } /* WordPress's blue ring is 2.4:1 on the wash */
.login .message, .login .notice, .login .success, .login #login_error { border-left-color: #C72C60; border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
@media (max-width: 360px) { .login #login { width: auto; margin-inline: 16px; } } /* the card keeps a gutter on the narrowest phones and at 400% zoom */
@media (forced-colors: active) { .login h1 a { background-image: url(../images/logo-color.svg); } } /* the white logo vanishes on a forced Canvas */

/* ---------------------------------------------------------------- Site Settings: the campaign bar's drawings (their motion: build/css/campaign-art.css) */
.nbcc-art-previews { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.nbcc-art-preview { width: 104px; margin: 0; text-align: center; font-size: 12px; line-height: 1.3; } /* one column each, so the boxes keep one rhythm and a long name wraps under its box */
.nbcc-art-preview .campaign-bar__art { display: block; width: 72px; height: 72px; margin: 0 auto 6px; padding: 10px; border-radius: 8px; background: #5E0B23; color: #FFFFFF; }

/* Site Settings' charity seals as the seals band shows them (frontend.css .charity-ratings__logo:
   120px tall, at most 220px wide, whole): the field previews the full file (the plugin's
   inc/options.php), so a wide seal is sharp on a high-density screen; ACF writes max-height: 300px
   inline on the img, which only !important outranks. */
.acf-field[data-key="field_nbcc_charity_seal_image"] .image-wrap img { height: 120px; width: auto; max-width: 220px; max-height: none !important; object-fit: contain; }

/* Site Settings' save box stays in view while the page scrolls (the campaign bar, the part
   that changes most, is at the foot of a long page); below 851px WordPress puts the box
   under the fields, where it stays in the flow. Its title and button say Save (the
   plugin's inc/options.php). */
@media (min-width: 851px) {
  .toplevel_page_nbcc-site-settings #post-body { display: flow-root; } /* its two columns are floats: without this it is 0px tall and the box has no room to travel */
  .toplevel_page_nbcc-site-settings #postbox-container-1 { position: sticky; top: 52px; }
}
