/*
Theme Name: DICEWIKI 正式版（请勿切换）
Theme URI: https://dicewiki.com/
Author: DICEWIKI
Description: Editorial block theme for The Global Encyclopedia of Dice.
Version: 0.3.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: dicewiki-demo
*/

:root {
  --dw-ink: #101113;
  --dw-paper: #f5f1e9;
  --dw-soft: #faf9f5;
  --dw-line: #b9b7b1;
  --dw-blue: #003f98;
  --dw-lime: #d9ff00;
  --dw-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --dw-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* Unified account access page */
.page-id-77 .wp-block-post-title { display: none; }
.page-id-76 .dw-page-shell > .wp-block-post-content > .wp-block-group > .wp-block-heading { display: none; }
.dw-empty-token { display: none; }
.dw-auth-hub { width: min(560px, 100%); margin: 0 auto; }
.dw-auth-title { margin: 0 0 12px; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; }
.dw-auth-intro { margin: 0 0 26px; color: #3d3e40; font-size: 17px; }
.dw-auth-card { padding: 28px; background: var(--dw-soft); border: 1px solid var(--dw-line); }
.dw-auth-switch { display: grid; grid-template-columns: 1fr 1fr; margin: -28px -28px 26px; border-bottom: 1px solid var(--dw-line); }
.dw-auth-switch a { padding: 15px 16px; color: var(--dw-ink); text-align: center; text-decoration: none; }
.dw-auth-switch a.is-active { background: var(--dw-ink); color: var(--dw-soft); }
.dw-auth-form p { margin: 0 0 18px; }
.dw-auth-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.dw-auth-form input[type="text"], .dw-auth-form input[type="email"], .dw-auth-form input[type="password"] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #8c8d8b; background: #fff; color: var(--dw-ink); }
.dw-auth-form input[type="checkbox"] { margin-right: 7px; accent-color: var(--dw-blue); }
.dw-auth-form button { border: 0; cursor: pointer; }
.dw-auth-form > p:last-child { margin-bottom: 0; }
.dw-auth-form a, .dw-auth-card a { color: var(--dw-blue); }
.dw-auth-form .dw-form-notice { padding: 10px 12px; border-left: 3px solid var(--dw-blue); background: #e9eef7; }
.dw-auth-form .dw-form-notice--error { border-left-color: #a52d22; background: #f8e8e4; }
.dw-auth-form .dw-form-notice--success { border-left-color: #567b28; background: #edf4df; }
.dw-auth-social { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--dw-line); }
.dw-auth-divider { display: block; margin-bottom: 12px; color: #5c5d60; font: 11px var(--dw-mono); text-transform: uppercase; letter-spacing: .08em; }
.dw-auth-social a, .dw-auth-social button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; }
.dw-auth-status { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.dw-auth-card .dw-auth-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dw-auth-card .dw-button-secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--dw-ink); color: var(--dw-ink); text-decoration: none; }
@media (max-width: 600px) {
  .dw-auth-card { padding: 20px; }
  .dw-auth-switch { margin: -20px -20px 20px; }
  .dw-auth-title { font-size: 38px; }
  .dw-auth-intro { font-size: 15px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dw-paper);
  color: var(--dw-ink);
  font-family: var(--dw-sans);
  font-size: 16px;
  line-height: 1.5;
}
body, button, input, textarea, select { font-family: var(--dw-sans); }
a { color: var(--dw-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dw-ink); }
img { max-width: 100%; height: auto; }

.dw-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--dw-soft);
  border-bottom: 1px solid var(--dw-line);
}
.dw-brand, .dw-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--dw-ink); text-decoration: none; white-space: nowrap; }
.dw-brand > span:last-child, .dw-footer-brand strong, .dw-footer-brand-lockup > span:last-child { font-size: 21px; letter-spacing: -.04em; font-weight: 700; }
.dw-brand-logo { display: block; object-fit: contain; }
.dw-brand-logo--horizontal { width: 180px; height: 50px; mix-blend-mode: normal; }
.dw-brand-logo--vertical { width: 124px; height: 124px; mix-blend-mode: normal; }
.dw-logo-glyph {
  display: inline-block;
  width: 38px;
  height: 44px;
  background-image: url("/wp-content/themes/dicewiki-demo-vy4RRTv1/assets/browse-icons.png");
  background-position: 0 0;
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.dw-header-inner { width: 100%; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.dw-primary-nav { flex: 1; min-width: 0; }
.dw-primary-nav .wp-block-navigation__container { justify-content: center; gap: 22px; flex-wrap: nowrap; }
.dw-primary-nav .wp-block-navigation-item__content, .dw-account-link { color: var(--dw-ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.dw-account-link { margin-left: auto; }
.dw-header-cta { margin-left: 4px; flex-shrink: 0; }
.dw-header-cta a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--dw-lime); color: var(--dw-ink); padding: 11px 14px; font-size: 13px; text-decoration: none; }
.dw-header-cta a:hover { background: var(--dw-ink); color: var(--dw-lime); }

.dw-home { max-width: none; overflow: hidden; }
.dw-hero {
  position: relative;
  min-height: 540px;
  padding: 52px 32px 32px;
  background: var(--dw-ink);
  color: var(--dw-soft);
}
.dw-technical-frame { position: absolute; inset: 24px; border: 1px dotted #707277; pointer-events: none; }
.dw-cross { position: absolute; width: 20px; height: 20px; }
.dw-cross::before, .dw-cross::after { content: ""; position: absolute; background: #d6d7d2; }
.dw-cross::before { width: 20px; height: 1px; left: 0; top: 10px; }
.dw-cross::after { width: 1px; height: 20px; left: 10px; top: 0; }
.dw-cross--tl { left: -10px; top: -10px; } .dw-cross--tr { right: -10px; top: -10px; }
.dw-cross--bl { left: -10px; bottom: -10px; } .dw-cross--br { right: -10px; bottom: -10px; }
.dw-measure { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); padding: 0 10px; background: var(--dw-ink); color: #cfd0cb; font: 11px var(--dw-mono); }
.dw-hero-inner { position: relative; z-index: 1; max-width: 1280px; min-height: 455px; margin: auto; display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: 30px; }
.dw-hero-copy { padding-left: 58px; }
.dw-hero h1 { max-width: 620px; margin: 0 0 24px; color: var(--dw-soft); font-size: clamp(54px, 6.1vw, 82px); font-weight: 600; letter-spacing: -.065em; line-height: .99; }
.dw-lime-dot { color: var(--dw-lime); }
.dw-hero p { margin: 0 0 28px; color: #f0efea; font-size: 18px; line-height: 1.55; }
.dw-hero-search { max-width: 530px; }
.dw-hero-search .wp-block-search__inside-wrapper { border: 1px solid var(--dw-lime); border-radius: 0; padding: 0; }
.dw-hero-search .wp-block-search__input { min-height: 48px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--dw-soft); font: 14px var(--dw-mono); }
.dw-hero-search .wp-block-search__input::placeholder { color: #d6d7d2; opacity: 1; }
.dw-hero-search .wp-block-search__button { min-height: 48px; margin: 0; padding: 0 22px; border: 0; border-radius: 0; background: var(--dw-lime); color: var(--dw-ink); font-size: 14px; }
.dw-hero-art { position: relative; min-height: 390px; display: flex; align-items: center; justify-content: center; }
.dw-hero-art picture { display: block; width: 100%; }
.dw-hero-art::before, .dw-hero-art::after { content: ""; position: absolute; border-top: 1px dotted #55575a; width: 100%; left: 0; }
.dw-hero-art::before { top: 20%; } .dw-hero-art::after { bottom: 20%; }
.dw-hero-art img {
  display: block;
  width: min(100%, 540px);
  margin: 0 auto;
  opacity: .9;
  /* The source artwork background is already the exact Hero color
     (#101113). Do not filter or blend the full raster, or its background
     becomes a visibly different shade from the surrounding surface. */
  mix-blend-mode: normal;
  filter: none;
}
.dw-art-note { position: absolute; color: #a7a8a5; font: 10px/1.2 var(--dw-mono); letter-spacing: .08em; }
.dw-art-note strong { color: var(--dw-soft); font-size: 11px; font-weight: 400; }
.dw-art-note--faces { top: 10%; left: 2%; } .dw-art-note--edges { top: 49%; left: 0; } .dw-art-note--vertices { bottom: 13%; left: 13%; }

.dw-promise { max-width: 1120px; padding: 48px 20px 42px; }
.dw-promise h2 { margin: 0 auto 34px; text-align: center; font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
.dw-promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dw-promise-grid article { min-height: 88px; padding: 0 34px; border-right: 1px solid var(--dw-line); }
.dw-promise-grid article:first-child { padding-left: 0; } .dw-promise-grid article:last-child { border-right: 0; }
.dw-promise h3, .dw-featured h3, .dw-news-panel h3, .dw-community-panel h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.2; font-weight: 600; }
.dw-promise p, .dw-featured p, .dw-community-panel p { margin: 0; font-size: 13px; line-height: 1.65; }

.dw-community-cta { width: min(1280px, calc(100% - 48px)); max-width: none; margin: 18px auto 0; padding: 0; background: var(--dw-lime); color: var(--dw-ink); }
.dw-community-cta-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 56px; padding: 48px 58px 52px; }
.dw-community-cta-copy { max-width: 620px; }
.dw-community-kicker { margin: 0 0 14px; color: #4c5300; font: 11px var(--dw-mono); font-weight: 700; letter-spacing: .12em; }
.dw-community-cta h2 { margin: 0 0 16px; font-size: clamp(34px, 4.4vw, 58px); line-height: .98; letter-spacing: -.06em; font-weight: 600; }
.dw-community-cta h2 .dw-lime-dot { color: var(--dw-ink); }
.dw-community-cta-copy > p:not(.dw-community-kicker) { max-width: 52ch; margin: 0; font-size: 16px; line-height: 1.55; }
.dw-community-cta-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 30px; }
.dw-community-cta-primary, .dw-community-cta-secondary { display: inline-flex; align-items: center; text-decoration: none; }
.dw-community-cta-primary { padding: 13px 17px; background: var(--dw-ink); color: var(--dw-soft); font-size: 14px; }
.dw-community-cta-primary:hover { background: var(--dw-blue); color: var(--dw-soft); }
.dw-community-cta-secondary { color: var(--dw-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.dw-community-steps { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(16,17,19,.45); }
.dw-community-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0 18px 28px; border-bottom: 1px solid rgba(16,17,19,.45); }
.dw-community-step:first-child { padding-top: 0; }
.dw-community-step:last-child { padding-bottom: 0; border-bottom: 0; }
.dw-community-step > span { font: 12px var(--dw-mono); }
.dw-community-step strong, .dw-community-step small { display: block; }
.dw-community-step strong { margin-bottom: 4px; font-size: 18px; line-height: 1.1; }
.dw-community-step small { font-size: 13px; line-height: 1.45; }

.dw-module { max-width: 1280px; padding: 28px 38px 46px; }
.dw-module-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.dw-module-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; font-weight: 600; white-space: nowrap; }
.dw-rule-mark { flex: 1; border-top: 1px solid var(--dw-line); }
.dw-heading-cross { color: #62646a; font-size: 23px; line-height: 1; }
.dw-browse-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dw-browse-column + .dw-browse-column { border-left: 1px solid var(--dw-line); padding-left: 28px; }
.dw-index-row { display: grid; grid-template-columns: 33px 64px 1fr; gap: 12px; align-items: center; min-height: 122px; border-bottom: 1px solid var(--dw-line); color: var(--dw-ink); text-decoration: none; }
.dw-index { align-self: start; padding-top: 19px; font: 14px var(--dw-mono); }
.dw-icon { width: 62px; height: 70px; background-image: url("/wp-content/themes/dicewiki-demo-vy4RRTv1/assets/browse-icons.png"); background-size: 300% 200%; background-repeat: no-repeat; }
.dw-icon--die { background-position: 0 0; } .dw-icon--history { background-position: -100% 0; } .dw-icon--materials { background-position: -200% 0; }
.dw-icon--brands { background-position: 0 -100%; } .dw-icon--games { background-position: -100% -100%; } .dw-icon--tools { background-position: -200% -100%; }
.dw-index-copy { display: flex; flex-direction: column; gap: 6px; }
.dw-index-copy strong { color: var(--dw-blue); font-size: 17px; font-weight: 600; }
.dw-index-copy small { font-size: 13px; line-height: 1.45; }
.dw-index-row:hover .dw-index-copy strong, .dw-index-row:focus-visible .dw-index-copy strong { color: var(--dw-blue); text-decoration: underline; text-underline-offset: 4px; }
.dw-index-row,
.dw-news-row,
.dw-community-row { transition: background-color .18s ease; }
.dw-index-row:hover,
.dw-index-row:focus-visible,
.dw-news-row:hover,
.dw-news-row:focus-visible,
.dw-community-row:hover,
.dw-community-row:focus-visible { background: rgba(217,255,0,.12); }
.dw-news-row:hover > span,
.dw-news-row:focus-visible > span,
.dw-panel-link:hover,
.dw-panel-link:focus-visible,
.dw-community-row:hover > span:first-child,
.dw-community-row:focus-visible > span:first-child,
.dw-inline-links a:hover,
.dw-inline-links a:focus-visible,
.dw-related a:hover,
.dw-related a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.dw-featured { padding-top: 24px; }
.dw-featured-grid { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 28px; align-items: start; padding-top: 8px; }
.dw-featured-image { border-right: 1px dotted var(--dw-line); padding-right: 24px; }
.dw-featured-image img { width: 155px; aspect-ratio: 1; object-fit: cover; opacity: .85; }
.dw-featured-copy { padding-top: 4px; }
.dw-featured-copy h3 { margin-bottom: 12px; }
.dw-featured-copy h3 a, .dw-related a { color: var(--dw-blue); text-decoration: none; }
.dw-inline-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 23px; font-size: 13px; }
.dw-last-revised { margin-top: 22px !important; font: 11px var(--dw-mono); }
.dw-related { border-left: 1px solid var(--dw-line); padding-left: 28px; }
.dw-related h3 { color: var(--dw-ink); }
.dw-related a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--dw-line); font-size: 13px; }

.dw-news-community { padding-top: 18px; padding-bottom: 54px; }
.dw-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.dw-news-panel { padding-right: 28px; border-right: 1px solid var(--dw-line); }
.dw-news-row, .dw-community-row { display: grid; align-items: center; gap: 12px; min-height: 55px; border-bottom: 1px solid var(--dw-line); text-decoration: none; }
.dw-news-row { grid-template-columns: 1fr auto; color: var(--dw-blue); font-size: 13px; }
.dw-news-row b { padding: 4px 7px; background: var(--dw-lime); color: var(--dw-ink); font: 10px var(--dw-mono); font-weight: 700; }
.dw-utility-icon { display: inline-block; width: 25px; height: 30px; background-image: url("/wp-content/themes/dicewiki-demo-vy4RRTv1/assets/utility-icons.png"); background-size: 300% 200%; background-repeat: no-repeat; }
.dw-utility-document { background-position: 0 0; } .dw-utility-revision { background-position: -100% 0; } .dw-utility-database { background-position: -200% 0; }
.dw-utility-community { background-position: 0 -100%; } .dw-utility-pencil { background-position: -100% -100%; } .dw-utility-book { background-position: -200% -100%; }
.dw-community-panel { padding-left: 0; }
.dw-community-panel p { margin-bottom: 22px; font-size: 16px; }
.dw-community-row { grid-template-columns: 1fr; color: var(--dw-blue); font-size: 14px; }

/* Homepage information bands: events and news share the first row; FAQ and
   community guidance share the second row. */
.dw-events-news { padding-top: 18px; padding-bottom: 42px; }
.dw-events-news-grid,
.dw-faq-community-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.dw-events-panel { min-width: 0; padding-right: 28px; border-right: 1px solid var(--dw-line); }
.dw-events-news .dw-news-panel { min-width: 0; padding-right: 0; border-right: 0; }
.dw-events-news .dw-module-heading,
.dw-faq-community .dw-module-heading { margin-bottom: 20px; }
.dw-panel-intro { max-width: 42ch; margin: 0 0 18px; color: #4b4d50; font-size: 14px; line-height: 1.55; }
.dw-events-kicker { margin: -8px 0 10px; color: var(--dw-blue); font: 10px var(--dw-mono); font-weight: 700; letter-spacing: .14em; }
.dw-event-row { min-height: 72px; padding: 12px 0; box-sizing: border-box; }
.dw-event-row > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.dw-event-row > span strong { color: var(--dw-blue); font-weight: 500; }
.dw-event-date { color: #62646a; font-size: 12px; line-height: 1.3; }
.dw-panel-link { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--dw-blue); font-size: 13px; text-decoration: none; }
.dw-faq-community { padding-top: 18px; padding-bottom: 54px; }
.dw-faq-community .dw-community-panel { min-width: 0; padding-left: 28px; border-left: 1px solid var(--dw-line); }
.dw-faq-community .dw-community-panel p { max-width: 30ch; }

/* Homepage FAQ: useful disclosure content with a quiet editorial treatment. */
.dw-home-faq { padding-top: 24px; padding-bottom: 52px; }
.dw-faq-list { border-top: 1px solid var(--dw-line); }
.dw-faq-list details { border-bottom: 1px solid var(--dw-line); }
.dw-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 62px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; }
.dw-faq-list summary::-webkit-details-marker { display: none; }
.dw-faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--dw-blue); font: 22px/1 var(--dw-mono); font-weight: 400; }
.dw-faq-list details[open] summary::after { content: "−"; }
.dw-faq-list details p { max-width: 72ch; margin: -2px 42px 20px 0; color: #4b4d50; font-size: 15px; line-height: 1.65; }
.dw-faq-list summary:focus-visible { outline: 2px solid var(--dw-blue); outline-offset: 3px; }

.dw-site-footer { padding: 58px 42px 24px; background: var(--dw-ink); color: var(--dw-soft); border-top: 1px solid #56575a; }
.dw-footer-inner { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(180px, .95fr) minmax(250px, 1.5fr) minmax(420px, 2.5fr); gap: 52px; align-items: start; }
.dw-site-footer .dw-footer-brand { display: block; white-space: normal; }
.dw-footer-brand { min-width: 0; }
.dw-footer-logo-crop { width: 180px; height: 165px; overflow: hidden; background: var(--dw-ink); }
.dw-footer-logo-crop img { display: block; width: 180px; height: 180px; max-width: none; object-fit: cover; object-position: center top; }
.dw-footer-tagline { margin: 12px 0 0; color: #d6d7d2; font: 13px/1.45 var(--dw-mono); letter-spacing: .01em; }
.dw-footer-about { max-width: 34ch; padding-top: 4px; }
.dw-footer-kicker, .dw-footer-contact-kicker, .dw-footer-nav-group h2 { color: #aeb0ac; font: 11px/1.2 var(--dw-mono); letter-spacing: .1em; text-transform: uppercase; }
.dw-footer-about p { margin: 16px 0 22px; color: #f0f0eb; font-size: 15px; line-height: 1.65; }
.dw-footer-action { display: inline-flex; align-items: center; color: var(--dw-lime); font-size: 15px; line-height: 1.45; font-weight: 500; text-decoration: none; }
.dw-footer-contact { margin-top: 22px; }
.dw-footer-contact-kicker { display: block; margin: 0 0 7px; }
.dw-footer-about .dw-footer-contact p { margin: 0; color: #d6d7d2; font-size: 14px; line-height: 1.45; }
.dw-footer-contact a { display: inline-block; margin-top: 3px; color: var(--dw-lime); text-decoration: none; }
.dw-footer-nav-groups { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 26px; padding-top: 4px; }
.dw-footer-nav-group { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.dw-footer-nav-group h2 { margin: 0 0 5px; }
.dw-footer-nav-group a { color: #f0f0eb; font-size: 14px; line-height: 1.45; text-decoration: none; }
.dw-footer-nav-group a:hover, .dw-footer-nav-group a:focus-visible, .dw-footer-action:hover, .dw-footer-action:focus-visible, .dw-footer-contact a:hover, .dw-footer-contact a:focus-visible { color: var(--dw-lime); }
.dw-footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid #4a4b4e; color: #b8b9b6; font: 11px/1.45 var(--dw-mono); }

@media (max-width: 1100px) {
  .dw-site-header { padding: 0 22px; gap: 18px; }
  .dw-primary-nav .wp-block-navigation__container { gap: 13px; }
  .dw-primary-nav .wp-block-navigation-item__content, .dw-account-link, .dw-header-cta a { font-size: 12px; }
  .dw-brand-logo--horizontal { width: 160px; height: 44px; }
  .dw-hero-copy { padding-left: 26px; }
  .dw-module { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 781px) {
  .dw-site-header { min-height: auto; padding: 18px 20px; flex-wrap: wrap; }
  .dw-primary-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-top: 4px; }
  .dw-primary-nav .wp-block-navigation__container { justify-content: flex-start; gap: 18px; }
  .dw-account-link { margin-left: auto; }
  .dw-hero { min-height: auto; padding: 42px 20px 24px; }
  .dw-technical-frame { inset: 14px; }
  .dw-hero-inner { display: block; min-height: auto; }
  .dw-hero-copy { padding: 24px 22px 0; }
  .dw-hero h1 { font-size: clamp(46px, 11vw, 70px); }
  .dw-hero p { font-size: 16px; }
  .dw-hero-search .wp-block-search__inside-wrapper { display: grid; grid-template-columns: 1fr auto; }
  .dw-hero-art { position: absolute; right: -8%; bottom: -7%; z-index: 0; width: 90%; min-height: 0; margin: 0; opacity: .2; pointer-events: none; }
  .dw-hero-art::before, .dw-hero-art::after { display: none; }
  .dw-hero-art img { width: 100%; max-width: none; margin: 0; opacity: 1; }
  .dw-hero-copy { position: relative; z-index: 1; }
  .dw-promise { padding: 38px 20px 28px; }
  .dw-promise h2 { font-size: 21px; text-align: left; }
  .dw-promise-grid { grid-template-columns: 1fr; gap: 20px; }
  .dw-promise-grid article, .dw-promise-grid article:first-child { min-height: auto; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--dw-line); }
  .dw-promise-grid article:last-child { border-bottom: 0; padding-bottom: 0; }
  .dw-community-cta { width: calc(100% - 40px); margin-top: 14px; }
  .dw-community-cta-inner { grid-template-columns: 1fr; gap: 30px; padding: 32px 24px 34px; }
  .dw-community-cta h2 { font-size: clamp(36px, 10vw, 52px); }
  .dw-community-cta-copy > p:not(.dw-community-kicker) { font-size: 15px; }
  .dw-community-steps { border-left: 0; border-top: 1px solid rgba(16,17,19,.45); }
  .dw-community-step { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0; }
  .dw-community-step:first-child { padding-top: 22px; }
  .dw-community-step:last-child { padding-bottom: 0; }
  .dw-module { padding: 26px 20px 38px; }
  .dw-module-heading h2 { font-size: 22px; }
  .dw-browse-columns, .dw-featured-grid, .dw-lower-grid, .dw-events-news-grid, .dw-faq-community-grid { grid-template-columns: 1fr; gap: 24px; }
  .dw-home-faq { padding-top: 18px; padding-bottom: 38px; }
  .dw-faq-list summary { min-height: 58px; font-size: 15px; }
  .dw-faq-list details p { margin-right: 0; font-size: 14px; }
  .dw-browse-column + .dw-browse-column { border-left: 0; padding-left: 0; }
  .dw-featured-image { border-right: 0; border-bottom: 1px dotted var(--dw-line); padding: 0 0 20px; }
  .dw-featured-image img { width: 180px; }
  .dw-related { border-left: 0; border-top: 1px solid var(--dw-line); padding: 22px 0 0; }
  .dw-news-panel { padding-right: 0; border-right: 0; }
  .dw-events-panel { padding-right: 0; border-right: 0; }
  .dw-faq-community .dw-community-panel { padding-left: 0; border-left: 0; border-top: 1px solid var(--dw-line); padding-top: 22px; }
  .dw-community-panel { border-top: 1px solid var(--dw-line); padding-top: 22px; }
  .dw-site-footer { padding: 42px 22px 22px; }
  .dw-footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .dw-footer-about { max-width: 52ch; }
  .dw-footer-nav-groups { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .dw-footer-bottom { grid-column: auto; display: block; }
  .dw-footer-bottom span { display: block; margin-top: 8px; }
}
@media (max-width: 420px) {
  .dw-site-header { padding-left: 14px; padding-right: 14px; }
  .dw-brand-logo--horizontal { width: 142px; height: 40px; }
  .dw-brand-logo--vertical { width: 104px; height: 104px; }
  .dw-logo-glyph { width: 32px; height: 38px; }
  .dw-footer-logo-crop { width: 156px; height: 143px; }
  .dw-footer-logo-crop img { width: 156px; height: 156px; }
  .dw-footer-nav-groups { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .dw-footer-nav-group:first-child { grid-column: 1 / -1; }
  .dw-footer-tagline { font-size: 12px; }
  .dw-account-link { font-size: 11px; }
  .dw-header-cta a { padding: 9px 10px; font-size: 11px; }
  .dw-hero-copy { padding-left: 4px; padding-right: 4px; }
  .dw-hero h1 { font-size: 45px; }
  .dw-hero p { font-size: 15px; }
  .dw-hero-search .wp-block-search__button { padding-left: 13px; padding-right: 13px; }
  .dw-index-row { grid-template-columns: 25px 54px 1fr; gap: 8px; min-height: 112px; }
  .dw-icon { width: 54px; height: 60px; }
  .dw-index-copy strong { font-size: 15px; }
  .dw-index-copy small { font-size: 12px; }
  .dw-desktop-only { display: none; }
}

/* DICEWIKI navigation and icon-free editorial text layout */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > header.dw-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dw-soft);
}
.admin-bar .wp-site-blocks > header.wp-block-template-part,
.admin-bar .wp-site-blocks > header.dw-site-header { top: 32px; }
.dw-index-row {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  column-gap: 20px;
}
.dw-index-copy { min-width: 0; }
.dw-index-copy strong,
.dw-index-copy small {
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
}
.dw-index-copy small { max-width: 34ch; }
.dw-news-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px;
}
.dw-news-row > span {
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
}
.dw-news-row b {
  justify-self: end;
  white-space: nowrap;
}
.dw-community-row {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
}
.dw-community-row > span:first-child {
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 782px) {
  .admin-bar .wp-site-blocks > header.wp-block-template-part,
  .admin-bar .wp-site-blocks > header.dw-site-header { top: 46px; }
}
@media (max-width: 420px) {
  .dw-index-row {
    grid-template-columns: 26px minmax(0, 1fr) 22px !important;
    column-gap: 10px;
  }
}

/* Demo fidelity corrections: keep the archive frame full-width and let each
   module own its editorial measure instead of inheriting WordPress' 760px
   constrained child width. */
.dw-home,
.dw-home > * { gap: 0 !important; }
.dw-home > * { margin-block-start: 0 !important; }
.dw-home > .dw-hero,
.dw-home > .dw-promise,
.dw-home > .dw-module { max-width: none !important; }
.dw-hero > .dw-technical-frame { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.dw-hero-inner,
.dw-promise,
.dw-module { max-width: 1280px !important; }
.dw-promise { width: min(1120px, calc(100% - 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
.dw-module { width: min(1280px, calc(100% - 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
.dw-hero-inner > *,
.dw-promise > *,
.dw-module > * { max-width: none !important; }

.dw-header-inner,
.dw-footer-inner { max-width: none !important; }
.dw-site-header { padding-left: 24px; padding-right: 24px; }
.dw-logo-glyph {
  width: 44px;
  height: 44px;
  background-image: url("/wp-content/themes/dicewiki-demo-vy4RRTv1/assets/logo-icon.png");
  background-position: center;
  background-size: cover;
}
.dw-footer-brand-lockup .dw-logo-glyph { filter: grayscale(1) brightness(2.4); }

.dw-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.dw-hero-copy { padding-left: 28px; }
.dw-hero h1 { max-width: 760px; font-size: clamp(54px, 5.6vw, 76px); letter-spacing: -.06em; }
.dw-promise h2 { max-width: none !important; white-space: nowrap; }

.dw-hero-search .wp-block-search__inside-wrapper {
  background-color: transparent !important;
  background-image: url("/wp-content/themes/dicewiki-demo-vy4RRTv1/assets/search-icon.png");
  background-position: 14px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}
.dw-hero-search .wp-block-search__input {
  padding-left: 44px !important;
  background-color: transparent !important;
  color: var(--dw-soft) !important;
}
.dw-hero-search .wp-block-search__input::placeholder { color: #d6d7d2 !important; }
.dw-hero-art img {
  opacity: .9;
  mix-blend-mode: normal;
  filter: none;
}

.dw-promise,
.dw-browse,
.dw-featured,
.dw-news-community,
.dw-events-news,
.dw-faq-community { background: var(--dw-paper); }
.dw-icon,
.dw-utility-icon { mix-blend-mode: multiply; opacity: .92; }
.dw-featured-image img { width: 180px; opacity: 1; object-fit: cover; }
.dw-heading-cross { position: relative; width: 20px; height: 20px; font-size: 0; flex: 0 0 20px; }
.dw-heading-cross::before,
.dw-heading-cross::after { content: ""; position: absolute; background: #62646a; }
.dw-heading-cross::before { width: 20px; height: 1px; left: 0; top: 10px; }
.dw-heading-cross::after { width: 1px; height: 20px; left: 10px; top: 0; }

@media (max-width: 900px) {
  .dw-primary-nav { order: initial; flex: 0 0 auto; width: auto; overflow: visible; padding-top: 0; }
  /* Keep the desktop container rule from hiding the nested mobile overlay list. */
  .dw-primary-nav > .wp-block-navigation__container { display: none !important; }
  .dw-primary-nav .wp-block-navigation__responsive-container-open { display: inline-flex !important; }
  .dw-primary-nav .wp-block-navigation__responsive-container-close { display: inline-flex; }
  .dw-primary-nav .wp-block-navigation__responsive-container-content {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 72px 24px 28px;
  }
  .dw-primary-nav .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
    display: flex !important;
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  .dw-primary-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
  .dw-primary-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    width: 100%;
  }
  .dw-primary-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #d4d2cc;
    color: var(--dw-ink);
    font-size: 18px;
    text-align: left;
  }
  .dw-primary-nav button { color: var(--dw-ink); }
  .dw-site-header { padding-left: 20px; padding-right: 20px; }
  .dw-promise h2 { white-space: normal; }
}

@media (max-width: 781px) {
  .dw-home > .dw-hero { margin-top: 0 !important; }
  .dw-hero-inner { display: block; }
  .dw-hero-copy { padding-left: 22px; }
  .dw-hero h1 { max-width: 100%; }
}

@media (max-width: 420px) {
  .dw-site-header { padding-left: 14px; padding-right: 14px; }
  .dw-logo-glyph { width: 40px; height: 40px; }
  .dw-hero-copy { padding-left: 4px; padding-right: 4px; }
  .dw-hero h1 { font-size: 45px; }
}

/* Dynamic breadcrumb trail injected by dicewiki-core on inner views. */
.dw-breadcrumbs {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 0;
  color: #6a6c6e;
  font: 11px/1.4 var(--dw-mono);
  letter-spacing: .02em;
}
.dw-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dw-breadcrumbs li { display: inline-flex; align-items: center; }
.dw-breadcrumbs li + li::before {
  content: "/";
  margin: 0 9px;
  color: #aaaeb1;
}

/* Homepage layout system: one measure, one rhythm, and clear editorial bands. */
.dw-home {
  --dw-home-measure: min(1280px, calc(100% - 48px));
  --dw-home-line: #c9c7c0;
  --dw-home-surface: #f1eee7;
  --dw-home-surface-strong: #ebe7de;
}
.dw-home > .dw-promise,
.dw-home > .dw-module {
  width: var(--dw-home-measure) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.dw-home > .dw-promise,
.dw-home > .dw-browse,
.dw-home > .dw-featured,
.dw-home > .dw-events-news,
.dw-home > .dw-faq-community {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.dw-home > .dw-promise {
  padding: clamp(42px, 5vw, 64px) clamp(28px, 4vw, 56px) clamp(36px, 4vw, 52px);
  background: var(--dw-home-surface);
  border: 1px solid var(--dw-home-line);
}
.dw-promise h2 {
  margin-bottom: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}
.dw-promise-grid { gap: 0; }
.dw-promise-grid article {
  min-height: 96px;
  padding: 0 clamp(22px, 3vw, 40px);
  border-color: var(--dw-home-line);
}
.dw-promise-grid article:first-child { padding-left: 0; }
.dw-promise-grid article:last-child { padding-right: 0; }

.dw-home > .dw-browse {
  padding-top: clamp(52px, 6vw, 78px);
  padding-bottom: clamp(52px, 6vw, 78px);
  background: #f8f6f0;
  border-bottom: 1px solid var(--dw-home-line);
}
.dw-module-heading {
  min-height: 28px;
  margin-bottom: 24px;
}
.dw-module-heading h2 { line-height: 1.15; }
.dw-rule-mark { border-color: var(--dw-home-line); }
.dw-browse-columns { gap: 32px; }
.dw-browse-column + .dw-browse-column {
  border-color: var(--dw-home-line);
  padding-left: 32px;
}
.dw-index-row { min-height: 116px; border-color: var(--dw-home-line); }

.dw-home > .dw-community-cta {
  margin-top: clamp(30px, 4vw, 56px) !important;
  margin-bottom: clamp(30px, 4vw, 56px) !important;
}
.dw-community-cta-inner { padding: clamp(42px, 5vw, 58px) clamp(34px, 5vw, 62px); }

.dw-home > .dw-featured {
  padding: clamp(28px, 3vw, 40px);
  background: var(--dw-home-surface);
  border: 1px solid var(--dw-home-line);
}
.dw-featured-grid {
  gap: 32px;
  padding-top: 4px;
}
.dw-featured-image {
  border-right-color: var(--dw-home-line);
  padding-right: 28px;
}
.dw-related {
  border-left-color: var(--dw-home-line);
  padding-left: 32px;
}

.dw-home > .dw-events-news,
.dw-home > .dw-faq-community {
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 48px);
  background: #f8f6f0;
}
.dw-events-news-grid,
.dw-faq-community-grid {
  gap: 32px;
  align-items: stretch;
}
.dw-events-panel,
.dw-events-news .dw-news-panel,
.dw-faq-column,
.dw-faq-community .dw-community-panel {
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  background: var(--dw-home-surface);
  border: 1px solid var(--dw-home-line);
}
.dw-events-panel,
.dw-events-news .dw-news-panel {
  display: flex;
  flex-direction: column;
}
.dw-events-panel { border-right: 1px solid var(--dw-home-line); }
.dw-events-news .dw-news-panel { border-right: 1px solid var(--dw-home-line); }
.dw-events-news .dw-module-heading,
.dw-faq-community .dw-module-heading { margin-bottom: 22px; }
.dw-panel-intro { margin-bottom: 16px; }
.dw-news-row,
.dw-community-row {
  min-height: 58px;
  border-color: var(--dw-home-line);
}
.dw-panel-link { margin-top: auto; padding-top: 18px; }
.dw-events-news .dw-news-panel h3 { margin-bottom: 8px; }

.dw-faq-community .dw-community-panel {
  display: flex;
  flex-direction: column;
}
.dw-faq-community .dw-community-panel {
  padding-left: clamp(24px, 3vw, 32px);
  border-left: 1px solid var(--dw-home-line);
}
.dw-faq-community .dw-community-panel p { margin-bottom: 22px; }
.dw-faq-community .dw-community-row { margin-top: auto; }
.dw-faq-community .dw-community-row + .dw-community-row { margin-top: 0; }
.dw-founding-callout { margin: 4px 0 20px; padding: 20px; background: var(--dw-lime); color: var(--dw-ink); }
.dw-founding-callout .dw-founding-kicker { margin: 0 0 10px; color: var(--dw-ink); font: 11px/1.2 var(--dw-mono); font-weight: 700; letter-spacing: .12em; }
.dw-founding-callout h3 { margin: 0 0 10px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -.045em; }
.dw-founding-callout > p:not(.dw-founding-kicker) { max-width: 34ch; margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.dw-founding-callout-link { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; background: var(--dw-ink); color: var(--dw-lime); font-size: 13px; text-decoration: none; }
.dw-founding-callout-link:hover, .dw-founding-callout-link:focus-visible { background: #2b2c2f; color: #fff; }
.dw-faq-list { border-color: var(--dw-home-line); }
.dw-faq-list details { border-color: var(--dw-home-line); }

@media (max-width: 900px) {
  .dw-home > .dw-promise,
  .dw-home > .dw-module { width: calc(100% - 40px) !important; }
  .dw-home > .dw-promise { padding: 34px 22px 30px; }
  .dw-promise-grid article,
  .dw-promise-grid article:first-child,
  .dw-promise-grid article:last-child { padding-left: 0; padding-right: 0; }
  .dw-home > .dw-featured { padding: 24px 22px 28px; }
  .dw-events-panel,
  .dw-events-news .dw-news-panel,
  .dw-faq-column,
  .dw-faq-community .dw-community-panel { height: auto; padding: 24px 22px; }
}

@media (max-width: 781px) {
  .dw-home > .dw-promise,
  .dw-home > .dw-module { width: calc(100% - 28px) !important; }
  /* The desktop browse grid becomes one continuous list on mobile. Keep
     both source columns on the same left baseline after the later desktop
     spacing overrides are applied. */
  .dw-home > .dw-browse .dw-browse-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dw-home > .dw-browse .dw-browse-column + .dw-browse-column {
    border-left: 0;
    padding-left: 0;
  }
  .dw-home > .dw-browse,
  .dw-home > .dw-events-news,
  .dw-home > .dw-faq-community { padding-top: 36px; padding-bottom: 36px; }
  .dw-home > .dw-community-cta { margin-top: 24px !important; margin-bottom: 24px !important; }
  .dw-events-panel,
  .dw-events-news .dw-news-panel,
  .dw-faq-column,
  .dw-faq-community .dw-community-panel {
    border: 1px solid var(--dw-home-line);
  }
  .dw-faq-community .dw-community-panel { padding-top: 24px; }
  .dw-founding-callout { margin-top: 2px; padding: 18px; }
  .dw-founding-callout h3 { font-size: 25px; }
  .dw-panel-link { margin-top: 16px; }
}
.dw-breadcrumbs a { color: var(--dw-blue); text-decoration: none; }
.dw-breadcrumbs a:hover,
.dw-breadcrumbs a:focus-visible { text-decoration: underline; }
.dw-breadcrumbs [aria-current="page"] { color: #4d4f52; }

@media (max-width: 600px) {
  .dw-breadcrumbs { width: calc(100% - 28px); padding-top: 14px; }
  .dw-breadcrumbs ol { row-gap: 4px; }
}

/* Contribution form: a deliberate editorial intake layout rather than
   browser-default inline paragraphs and controls. */
.dw-contribute-form { color: var(--dw-ink); }
.dw-form-heading { margin-bottom: 28px; max-width: 720px; }
.dw-form-kicker { margin: 0 0 8px; color: var(--dw-blue); font: 11px/1.2 var(--dw-mono); letter-spacing: .1em; text-transform: uppercase; }
.dw-form-heading h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.045em; line-height: 1.08; }
.dw-form-summary { margin: 0; color: #4b4d50; font-size: 15px; line-height: 1.6; }
.dw-contribution-form { display: grid; gap: 24px; margin: 0; }
.dw-contribution-form input[type="hidden"] { display: none; }
.dw-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.dw-honeypot input { width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.dw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.dw-form-field { min-width: 0; }
.dw-form-field--wide { grid-column: 1 / -1; }
.dw-form-field label { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; color: var(--dw-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.dw-form-field label > span[aria-hidden="true"] { color: var(--dw-blue); }
.dw-form-optional { color: #6d6f72; font: 10px/1 var(--dw-mono); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.dw-form-field input:not([type="hidden"]), .dw-form-field select, .dw-form-field textarea { display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid #8f9190; border-radius: 0; background: #fff; color: var(--dw-ink); font: inherit; line-height: 1.35; box-shadow: none; }
.dw-form-field select { padding-right: 38px; cursor: pointer; }
.dw-form-field textarea { min-height: 190px; resize: vertical; }
.dw-editor-wrap { border: 1px solid #8f9190; background: #fff; }
.dw-editor-wrap .wp-editor-tools { min-height: 38px; padding: 5px 8px; border-bottom: 1px solid #d6d7d5; background: #f4f4f1; }
.dw-editor-wrap .mce-toolbar-grp { padding: 4px 6px !important; background: #f4f4f1 !important; }
.dw-editor-wrap .mce-top-part::before { display: none; }
.dw-editor-wrap .mce-edit-area { border-top: 0 !important; }
.dw-editor-wrap .wp-editor-container textarea { min-height: 220px; padding: 14px !important; border: 0 !important; }
.dw-editor-wrap .mce-content-body { padding: 14px 16px !important; font: 16px/1.65 var(--dw-sans); color: var(--dw-ink); }
.dw-editor-wrap .mce-content-body p { margin: 0 0 12px; }
.dw-editor-wrap .mce-content-body:focus { outline: 2px solid rgba(0, 63, 152, .16); outline-offset: -2px; }
.dw-form-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dw-form-label-row label { margin-bottom: 0; }
.dw-image-limit { color: #67696b; font: 11px/1.2 var(--dw-mono); letter-spacing: .04em; text-transform: uppercase; }
.dw-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.dw-image-slot { min-width: 0; padding: 16px; border: 1px solid var(--dw-line); background: rgba(255,255,255,.42); }
.dw-image-slot__number { margin: 0 0 14px; color: var(--dw-blue); font: 11px/1 var(--dw-mono); letter-spacing: .1em; }
.dw-image-slot label { margin-top: 12px; font-size: 12px; }
.dw-image-slot input[type="file"] { min-height: 52px; padding: 10px; font-size: 12px; }
.dw-image-slot input[type="text"] { min-height: 44px; padding: 10px 11px; font-size: 13px; }
.dw-form-field input::placeholder, .dw-form-field textarea::placeholder { color: #7b7d7c; opacity: 1; }
.dw-form-field input:focus, .dw-form-field select:focus, .dw-form-field textarea:focus { border-color: var(--dw-blue); outline: 2px solid rgba(0, 63, 152, .16); outline-offset: 2px; }
.dw-form-help { margin: 8px 0 0; color: #67696b; font-size: 12px; line-height: 1.5; }
.dw-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; padding-top: 2px; border-top: 1px solid var(--dw-line); }
.dw-form-actions .wp-element-button { min-height: 50px; margin: 20px 0 0; padding: 12px 20px; border: 1px solid var(--dw-lime); border-radius: 0; background: var(--dw-lime); color: var(--dw-ink); font: inherit; font-weight: 700; cursor: pointer; }
.dw-form-actions .wp-element-button:hover { border-color: var(--dw-ink); background: var(--dw-ink); color: var(--dw-lime); }
.dw-form-actions > a { margin-top: 20px; color: var(--dw-blue); font-size: 14px; }
.dw-contribute-form .dw-form-notice { margin: 0 0 2px; padding: 14px 16px; border-left: 3px solid var(--dw-blue); background: #e9eef7; }
.dw-contribute-form .dw-form-notice--error { border-left-color: #a52d22; background: #f8e8e4; }
.dw-contribute-form .dw-form-notice--success { border-left-color: #567b28; background: #edf4df; }

@media (max-width: 680px) {
  .dw-form-grid { grid-template-columns: 1fr; gap: 20px; }
  .dw-form-field--wide { grid-column: auto; }
  .dw-form-heading { margin-bottom: 22px; }
  .dw-form-field textarea { min-height: 170px; }
  .dw-image-grid { grid-template-columns: 1fr; gap: 12px; }
  .dw-form-label-row { display: block; }
  .dw-image-limit { display: block; margin-top: 6px; }
  .dw-form-actions { align-items: stretch; flex-direction: column; gap: 0; }
  .dw-form-actions .wp-element-button, .dw-form-actions > a { width: 100%; text-align: center; }
}

/* Unified editorial page system.
   Public pages share one readable measure, one vertical rhythm, and one
   responsive grid so archives, records, tools, account pages, and forms do
   not fall back to browser-default WordPress spacing. */
.dw-page,
.dw-contribute-page,
.dw-archive,
.dw-single,
.dw-tools-page { background: var(--dw-paper); }

.dw-page-shell,
.dw-article-shell,
.dw-archive-header,
.dw-archive-query,
.dw-tool-grid,
.dw-tools-page > .alignwide { width: min(1120px, calc(100% - 48px)); max-width: none; margin-left: auto; margin-right: auto; }

.dw-page-shell,
.dw-article-shell { padding-top: 72px !important; padding-bottom: 84px !important; }

.dw-page-shell > .wp-block-post-title,
.dw-article-shell > .wp-block-post-title,
.dw-contribute-page .dw-page-shell > .wp-block-post-title { max-width: 820px; margin: 0 0 28px; font-size: clamp(44px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.06em; line-height: 1.02; }

.dw-page-shell > .wp-block-post-content,
.dw-article-shell > .wp-block-post-content,
.dw-article-shell > .wp-block-post-featured-image,
.dw-article-shell > .wp-block-post-date,
.dw-article-shell > .wp-block-post-terms,
.dw-article-shell > .wp-block-separator,
.dw-article-shell > .wp-block-heading,
.dw-article-shell > p { max-width: 760px; margin-left: 0; margin-right: auto; }

.dw-page-shell > .wp-block-post-content > *,
.dw-article-shell > .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 20px; }
.dw-page-shell > .wp-block-post-content > h2,
.dw-article-shell > .wp-block-post-content > h2 { margin-top: 48px; margin-bottom: 16px; font-size: 30px; letter-spacing: -.045em; }
.dw-page-shell > .wp-block-post-content > h3,
.dw-article-shell > .wp-block-post-content > h3 { margin-top: 34px; margin-bottom: 12px; font-size: 21px; letter-spacing: -.03em; }
.dw-page-shell > .wp-block-post-content p,
.dw-page-shell > .wp-block-post-content li,
.dw-article-shell > .wp-block-post-content p,
.dw-article-shell > .wp-block-post-content li { font-size: 17px; line-height: 1.72; }
.dw-page-shell > .wp-block-post-content ul,
.dw-page-shell > .wp-block-post-content ol,
.dw-article-shell > .wp-block-post-content ul,
.dw-article-shell > .wp-block-post-content ol { padding-left: 1.35em; }
.dw-page-shell > .wp-block-post-content li + li,
.dw-article-shell > .wp-block-post-content li + li { margin-top: 8px; }

.dw-kicker { margin: 0 0 14px; color: var(--dw-blue); font: 11px/1.2 var(--dw-mono); letter-spacing: .1em; text-transform: uppercase; }
.dw-article-shell > .wp-block-post-terms { margin-bottom: 16px; color: var(--dw-blue); font: 11px/1.2 var(--dw-mono); letter-spacing: .08em; text-transform: uppercase; }
.dw-article-shell > .wp-block-post-date { margin-bottom: 30px; color: #67696b; font: 11px/1.4 var(--dw-mono); }
.dw-article-shell > .wp-block-post-featured-image { margin-top: 0; margin-bottom: 38px; }
.dw-article-shell > .wp-block-post-featured-image img { width: 100%; max-height: 520px; object-fit: cover; }
.dw-article-shell > .wp-block-separator { margin-top: 46px; margin-bottom: 28px; border-color: var(--dw-line); }
.dw-article-shell > .wp-block-heading { margin-top: 0; margin-bottom: 12px; font-size: 22px; letter-spacing: -.035em; }
.dw-article-shell > p.has-text-color { color: #55575a !important; font-size: 14px; line-height: 1.65; }

.dw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 760px; margin: 0 0 34px; padding: 14px 0; border-top: 1px solid var(--dw-line); border-bottom: 1px solid var(--dw-line); }
.dw-share-label { color: #67696b; font: 11px/1.2 var(--dw-mono); letter-spacing: .08em; text-transform: uppercase; }
.dw-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-share-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 10px; border: 1px solid var(--dw-line); border-radius: 0; background: transparent; color: var(--dw-ink); font: inherit; font-size: 12px; line-height: 1; text-decoration: none; cursor: pointer; }
.dw-share-button:hover, .dw-share-button:focus-visible { border-color: var(--dw-ink); background: var(--dw-ink); color: var(--dw-paper); }
.dw-share-button--native { border-color: var(--dw-blue); color: var(--dw-blue); }
.dw-share-status { min-height: 1em; color: var(--dw-blue); font-size: 12px; }

.dw-comments { width: 100%; max-width: 760px !important; margin: 12px 0 0 !important; padding-top: 8px; }
.dw-comments .wp-block-comments-title { margin: 0 0 20px; font-size: 15px; color: #55575a; }
.dw-comments .wp-block-comment { padding: 18px 0; border-bottom: 1px solid var(--dw-line); }
.dw-comments .wp-block-comment-content { margin: 8px 0; font-size: 15px; line-height: 1.65; }
.dw-comments .comment-form-comment textarea { min-height: 150px; }

.dw-archive-header { padding-top: 72px !important; padding-bottom: 28px !important; }
.dw-archive-header .wp-block-query-title,
.dw-archive-header > .wp-block-heading { margin: 0 0 14px; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.06em; line-height: 1.02; }
.dw-archive-header > .wp-block-term-description,
.dw-archive-header > .wp-block-paragraph,
.dw-archive-header > p { max-width: 680px; margin: 0; color: #55575a; font-size: 17px; line-height: 1.65; }
.dw-archive-query { padding-bottom: 84px; }
.dw-archive-query > .wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; background: var(--dw-line); list-style: none; }
.dw-archive-query > .wp-block-post-template > li { margin: 0; min-width: 0; list-style: none; }
.dw-archive-query .wp-block-post-template > li > .dw-entity-card { display: flex !important; flex-direction: column; align-items: stretch; justify-content: flex-start; height: 100%; min-height: 320px; padding: 24px !important; background: var(--dw-paper); }
.dw-archive-query .dw-entity-card > * { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.dw-archive-query .dw-entity-card .wp-block-post-featured-image { flex: 0 0 auto; margin: 0 0 22px; }
.dw-archive-query .dw-entity-card .wp-block-post-featured-image img { display: block; width: 100%; height: 180px; object-fit: cover; }
.dw-archive-query .dw-entity-card .wp-block-post-featured-image:not(:has(img)) { display: none; }
.dw-archive-query .dw-entity-card .wp-block-post-title { width: 100%; max-width: none; margin: 0 0 10px; font-size: 22px; letter-spacing: -.035em; line-height: 1.15; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
.dw-entity-card .wp-block-post-title a { color: var(--dw-blue); text-decoration: none; }
.dw-archive-query .dw-entity-card .wp-block-post-excerpt { width: 100%; max-width: none; margin: 0 0 18px; color: #4d4f52; font-size: 14px; line-height: 1.55; }
.dw-archive-query .dw-entity-card .wp-block-post-date { width: 100%; max-width: none; margin: auto 0 0; color: #6a6c6e; font: 10px/1.3 var(--dw-mono); }
.dw-archive-query > .wp-block-query-no-results { max-width: 760px; padding: 24px 0 0; font-size: 17px; }
.dw-archive-query > .wp-block-query-pagination { display: flex; gap: 14px; align-items: center; padding-top: 28px; }

.dw-contribute-page .dw-page-shell { padding-bottom: 96px !important; }
.dw-contribute-page .dw-page-shell > .wp-block-post-content { max-width: 760px; }
.dw-contribute-page .dw-page-shell > h2,
.dw-contribute-page .dw-page-shell > ul,
.dw-contribute-page .dw-page-shell > p { max-width: 760px; }
.dw-contribute-page .dw-page-shell > h2 { margin-top: 48px; margin-bottom: 14px; font-size: 28px; letter-spacing: -.045em; }
.dw-contribute-page .dw-page-shell > ul { margin-top: 0; margin-bottom: 28px; padding-left: 1.35em; }
.dw-contribute-page .dw-page-shell > ul li { margin-top: 8px; font-size: 16px; line-height: 1.6; }
.dw-contribute-page .dw-page-shell > p { font-size: 17px; line-height: 1.7; }
.dw-contribute-form { max-width: 840px; margin-top: 48px; padding: 36px; background: var(--dw-soft); border: 1px solid var(--dw-line); }

.dw-tools-page .dw-archive-header { padding-bottom: 42px !important; }
.dw-tools-page .dw-archive-header > .wp-block-heading { max-width: 820px; }
.dw-tools-page .dw-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--dw-line); }
.dw-tool-card { min-height: 300px; padding: 28px !important; background: var(--dw-paper); }
.dw-tool-card h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.04em; }
.dw-tool-card > p { max-width: 420px; margin: 0 0 24px; color: #55575a; line-height: 1.6; }
.dw-tool-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.dw-tool-fields label { display: grid; gap: 7px; color: #55575a; font: 11px/1.2 var(--dw-mono); text-transform: uppercase; }
.dw-tool-fields input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #8f9190; background: #fff; font: 16px var(--dw-sans); }
.dw-tool-card .wp-element-button { min-height: 46px; padding: 10px 16px; border: 1px solid var(--dw-lime); border-radius: 0; background: var(--dw-lime); color: var(--dw-ink); font-weight: 700; cursor: pointer; }
.dw-tool-output { display: flex; align-items: baseline; gap: 10px; margin-top: 24px !important; padding-top: 18px; border-top: 1px solid var(--dw-line); }
.dw-tool-output strong { font: 26px var(--dw-mono); }

.page-id-75 .dw-page-shell,
.page-id-76 .dw-page-shell,
.page-id-77 .dw-page-shell,
.page-id-78 .dw-page-shell { width: min(760px, calc(100% - 48px)); }
.page-id-76 .dw-page-shell > .wp-block-post-content,
.page-id-78 .dw-page-shell > .wp-block-post-content { max-width: 760px; }
.dw-account, .dw-submissions { max-width: 760px; }
.dw-account > p:first-child { margin-top: 0; font-size: 20px; }
.dw-account > p { line-height: 1.6; }
.dw-submissions h2 { margin-top: 42px; font-size: 28px; letter-spacing: -.045em; }
.dw-submissions ul { padding-left: 1.2em; }

@media (max-width: 900px) {
  .dw-page-shell, .dw-article-shell, .dw-archive-header, .dw-archive-query, .dw-tool-grid, .dw-tools-page > .alignwide { width: min(100% - 40px, 760px); }
  .dw-archive-query > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-tools-page .dw-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .dw-page-shell, .dw-article-shell { padding-top: 50px !important; padding-bottom: 60px !important; }
  .dw-page-shell > .wp-block-post-title, .dw-article-shell > .wp-block-post-title, .dw-contribute-page .dw-page-shell > .wp-block-post-title { margin-bottom: 22px; font-size: clamp(40px, 11vw, 56px); }
  .dw-page-shell > .wp-block-post-content p, .dw-page-shell > .wp-block-post-content li, .dw-article-shell > .wp-block-post-content p, .dw-article-shell > .wp-block-post-content li { font-size: 16px; }
  .dw-share { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .dw-share-actions { width: 100%; }
  .dw-share-button { min-height: 36px; padding: 8px 11px; }
  .dw-archive-header { padding-top: 50px !important; padding-bottom: 24px !important; }
  .dw-archive-header .wp-block-query-title, .dw-archive-header > .wp-block-heading { font-size: 42px; }
  .dw-archive-query { padding-bottom: 60px; }
  .dw-archive-query > .wp-block-post-template { grid-template-columns: 1fr; }
  .dw-entity-card { min-height: 0; padding: 22px !important; }
  .dw-archive-query .dw-entity-card .wp-block-post-featured-image img { height: 160px; }
  .dw-contribute-form { margin-top: 34px; padding: 22px; }
  .dw-tool-card { padding: 22px !important; }
  .dw-tool-fields { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .dw-page-shell, .dw-article-shell, .dw-archive-header, .dw-archive-query, .dw-tool-grid, .dw-tools-page > .alignwide, .page-id-75 .dw-page-shell, .page-id-76 .dw-page-shell, .page-id-77 .dw-page-shell, .page-id-78 .dw-page-shell { width: calc(100% - 28px); }
  .dw-page-shell > .wp-block-post-title, .dw-article-shell > .wp-block-post-title, .dw-contribute-page .dw-page-shell > .wp-block-post-title { font-size: 40px; }
  .dw-page-shell > .wp-block-post-content > h2, .dw-contribute-page .dw-page-shell > h2 { font-size: 26px; }
  .dw-contribute-form { padding: 18px; }
}

/* Archive hardening: block metadata from the Query Loop can add a nested
   constrained/flex layout after theme CSS. Keep every archive card a full
   width block and remove empty media shells instead of showing grey blanks. */
.dw-archive-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--dw-line) !important;
  list-style: none !important;
}
.dw-archive-query .wp-block-post-template > li {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.dw-archive-query .wp-block-post-template .dw-entity-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 320px;
  margin: 0 !important;
  padding: 24px !important;
  background: var(--dw-paper) !important;
  overflow: visible !important;
}
.dw-archive-query .dw-entity-card > .wp-block-post-title,
.dw-archive-query .dw-entity-card > .wp-block-post-excerpt,
.dw-archive-query .dw-entity-card > .wp-block-post-date {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  position: static !important;
  clear: both !important;
}
.dw-archive-query .dw-entity-card > .wp-block-post-title {
  margin: 0 0 12px !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.dw-archive-query .dw-entity-card > .wp-block-post-excerpt {
  margin: 0 0 20px !important;
  line-height: 1.55 !important;
}
.dw-archive-query .dw-entity-card > .wp-block-post-date {
  margin: 0 !important;
}

@media (max-width: 900px) {
  .dw-archive-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
  .dw-archive-query .wp-block-post-template { grid-template-columns: 1fr !important; }
  .dw-archive-query .wp-block-post-template .dw-entity-card { min-height: 0; padding: 22px !important; }
}
