/* Homepage only. Navigation, editorial pages and taxonomies retain their own settings. */
.home #content { margin-top:0; }
.home #content-in { max-width:1200px; padding:0 24px; }
.home #main { width:100%; padding:0; border:0; background:transparent; }
.home .breadcrumb, .home #breadcrumb { display:none; }
.dh-home { --dh-ink:#20344e; --dh-muted:#536579; --dh-line:#dce5ec; color:var(--dh-ink); font-family:inherit; }
.dh-home *, .dh-home *::before, .dh-home *::after { box-sizing:border-box; }
.dh-home h1,.dh-home h2,.dh-home h3,.dh-home p { margin:0; padding:0; border:0; background:none; color:inherit; }
.dh-home a { color:inherit; text-decoration:none; }
.dh-home a:focus-visible { outline:3px solid #4b7295; outline-offset:5px; }
.dh-home img { display:block; width:100%; height:100%; object-fit:cover; }
.dh-home-hero { display:grid; grid-template-columns:1.85fr 1fr; align-items:center; padding:42px 0 40px; gap:32px; border-bottom:1px solid var(--dh-line); }
.dh-home-kicker { font-size:12px; font-weight:700; line-height:1.7; letter-spacing:.12em; color:var(--dh-muted)!important; }
.dh-home h1 { font-weight:700; letter-spacing:.01em; margin-top:0; line-height:1.6; }
.dh-home .dh-home-lead { margin-top:0; font-size:clamp(30px,3vw,42px); font-weight:700; line-height:1.7; letter-spacing:.01em; }
.dh-home-lead strong { display:inline-block; font-weight:700; }
.dh-home-lead-tail { display:inline-block; }
.dh-home .dh-home-intro { margin-top:18px; color:var(--dh-muted); font-size:15px; line-height:1.9; }
.dh-home-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px 24px; margin-top:24px; }
.dh-home .dh-home-button { display:inline-flex; align-items:center; gap:24px; background:#304d70; color:#fff; padding:13px 18px; font-size:14px; font-weight:700; border-radius:6px; min-height:48px; }
.dh-home-button:hover { background:#20344e; }
.dh-home-text-link { display:inline-flex; align-items:center; gap:12px; font-size:14px; font-weight:700; line-height:1.7; padding:10px 0; }
.dh-home-text-link:hover { text-decoration:underline; }
.dh-home-thread { padding:25px 0; text-align:center; }
.dh-home-thread svg { display:block; width:100%; max-height:230px; }
.dh-home-thread p { color:#718598; font-size:12px; letter-spacing:.12em; margin-top:6px; }
.dh-home-section { padding:38px 0; border-bottom:1px solid var(--dh-line); scroll-margin-top:24px; }
.dh-home-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:22px; }
.dh-home h2 { font-size:25px; line-height:1.5; font-weight:700; letter-spacing:.03em; margin-top:5px; }
.dh-home-guide-grid,.dh-home-new-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.dh-home-guide { position:relative; overflow:hidden; border:1px solid var(--dh-line); border-radius:10px; background:#fff; transition:border-color .15s ease; }
.dh-home-guide:hover { border-color:#7c96ab; }
.dh-home-guide-image { aspect-ratio:16/9; background:#eaf0f5; overflow:hidden; }
.dh-home-guide-image img { margin:0; transition:transform .2s ease; }
.dh-home-guide:hover img { transform:scale(1.025); }
.dh-home-guide-copy { position:relative; padding:16px 18px 20px; min-height:150px; }
.dh-home-card-label { display:inline-block; font-size:10px; color:var(--dh-muted); letter-spacing:.06em; padding:3px 8px; border:1px solid var(--dh-line); border-radius:20px; margin-bottom:8px; }
.dh-home h3 { font-size:18px; line-height:1.6; font-weight:700; overflow-wrap:anywhere; }
.dh-home-guide-copy p { font-size:13px; line-height:1.75; color:var(--dh-muted); margin-top:7px; padding-right:22px; }
.dh-home-guide-arrow { position:absolute; right:18px; bottom:17px; color:#4b7295; font-size:20px; }
.dh-home-quick-links { display:flex; flex-wrap:wrap; gap:10px 20px; margin-top:18px; }
.dh-home-quick-links a { display:inline-flex; align-items:center; gap:12px; padding:9px 13px; border-radius:5px; background:#eef4f8; font-size:12px; font-weight:700; min-height:40px; }
.dh-home-quick-links a:hover { background:#dce8f0; }
.dh-home-theme-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.dh-home-theme { position:relative; padding:22px 20px; border:1px solid var(--dh-line); border-radius:8px; background:#f5f8fa; min-height:130px; }
.dh-home-theme:hover { background:#eef4f8; }
.dh-home-theme h3 { font-size:17px; }
.dh-home-theme p { font-size:13px; line-height:1.8; color:var(--dh-muted); margin-top:8px; padding-right:10px; }
.dh-home-theme > span { position:absolute; bottom:15px; right:18px; font-size:20px; color:#4b7295; }
.dh-home-new-card { display:grid; grid-template-columns:112px minmax(0,1fr); gap:14px; padding:0 0 18px; border-bottom:1px solid var(--dh-line); }
.dh-home-new-card:hover h3 { text-decoration:underline; }
.dh-home-new-image { width:112px; height:auto; aspect-ratio:16/9; border-radius:6px; overflow:hidden; background:#eaf0f5; }
.dh-home-new-copy time { font-size:11px; color:#66798b; line-height:1.5; display:block; margin-bottom:5px; }
.dh-home .dh-home-new-copy h3 { font-size:13px; line-height:1.8; }
.dh-home-about { display:grid; grid-template-columns:160px minmax(0,1fr); gap:32px; align-items:center; padding:32px; margin:32px 0 8px; border:1px solid var(--dh-line); border-radius:10px; background:#f5f8fa; }
.dh-home-about > img { width:160px; height:160px; border-radius:50%; object-position:center 25%; }
.dh-home-about h2 { font-size:23px; margin-bottom:12px; }
.dh-home-about p { font-size:14px; line-height:1.9; }
.dh-home .dh-home-about-note { color:var(--dh-muted); font-size:12px; margin-top:10px; }
.dh-home-about .dh-home-text-link { margin-top:8px; }
@media(max-width:1023px){
  .dh-home-guide-grid { gap:16px; }
  .dh-home-new-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dh-home-lead { font-size:32px!important; }
  .dh-home-guide-copy { padding:14px; }
  .dh-home h3 { font-size:16px; }
}
@media(max-width:834px){
  .home #content-in { padding:0 18px; }
  .dh-home-hero { grid-template-columns:minmax(0,1fr); padding:26px 0 30px; gap:0; }
  .dh-home-thread { display:none; }
  .dh-home .dh-home-lead { font-size:clamp(28px,4.5vw,34px)!important; }
  .dh-home-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dh-home-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dh-home-section { padding:30px 0; }
  .dh-home h2 { font-size:22px; }
  .dh-home-section-heading { align-items:flex-start; }
  .dh-home-section-heading > .dh-home-text-link { font-size:12px; }
  .dh-home-about { gap:22px; padding:24px; grid-template-columns:120px minmax(0,1fr); }
  .dh-home-about > img { width:120px; height:120px; }
}
@media(max-width:600px){
  .home #content-in { padding:0 16px; }
  .dh-home .dh-home-lead { font-size:clamp(22px,6.5vw,30px)!important; }
  .dh-home-lead-tail { display:block; }
  .dh-home .dh-home-intro { font-size:13px; }
  .dh-home-actions { gap:10px 18px; }
  .dh-home .dh-home-button { font-size:13px; padding:12px 15px; }
  .dh-home-text-link { font-size:13px; }
  .dh-home-section-heading { flex-direction:column; gap:3px; margin-bottom:16px; }
  .dh-home-guide-grid,.dh-home-theme-grid,.dh-home-new-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .dh-home-guide-copy { min-height:0; padding:15px 16px 20px; }
  .dh-home h3 { font-size:18px; }
  .dh-home-guide-copy p { font-size:13px; }
  .dh-home-theme { min-height:116px; padding:20px 18px; }
  .dh-home-quick-links { gap:8px; }
  .dh-home-quick-links a { font-size:11px; }
  .dh-home-new-card { grid-template-columns:112px minmax(0,1fr); gap:14px; }
  .dh-home .dh-home-new-copy h3 { font-size:14px; }
  .dh-home-about { grid-template-columns:minmax(0,1fr); gap:18px; padding:24px 20px; margin-top:24px; }
  .dh-home-about > img { width:100px; height:100px; }
  .dh-home-about h2 { font-size:21px; }
  .dh-home-about p { font-size:13px; }
  .dh-home-about br { display:none; }
}
@media(prefers-reduced-motion:reduce){.dh-home-guide,.dh-home-guide-image img { transition:none; }.dh-home-guide:hover img { transform:none; }}

/* Section colors. Keep the approved five-section layout and publishing data intact. */
.home #content-in { padding-bottom:36px; }
.dh-home a:focus-visible { outline-color:#315678; }
.dh-home-hero {
  padding:36px; margin:24px 0 28px; gap:24px;
  border:1px solid #e1dfe9; border-radius:12px;
  background:linear-gradient(115deg,#fbf0f4 0%,#f4f1f7 48%,#ecf3fb 100%);
}
.dh-home-lead strong {
  background:linear-gradient(transparent 72%,#f1dfa8 72%,#f1dfa8 94%,transparent 94%);
}
.dh-home-thread p { color:#596a7f; }
.dh-home-section {
  --dh-section-accent:#527a9d; --dh-section-label:#3e6180;
  --dh-section-surface:#eaf2fa; --dh-section-line:#c8dae8;
  padding:32px; margin:28px 0; scroll-margin-top:24px;
  border:1px solid var(--dh-section-line);
  border-top:4px solid var(--dh-section-accent);
  border-radius:12px; background:var(--dh-section-surface);
}
#dh-themes {
  --dh-section-accent:#a37837; --dh-section-label:#775723;
  --dh-section-surface:#fbf3e7; --dh-section-line:#e8d8be;
}
#dh-new {
  --dh-section-accent:#56836e; --dh-section-label:#37694f;
  --dh-section-surface:#edf5f0; --dh-section-line:#cadfd2;
}
.dh-home-about {
  --dh-section-accent:#9c6b80; --dh-section-label:#835269;
  --dh-section-surface:#f9edf2; --dh-section-line:#e4cbd5;
  margin-bottom:0;
}
.dh-home-section .dh-home-kicker { color:var(--dh-section-label)!important; }
.dh-home-section-heading { margin-bottom:24px; }
.dh-home-guide { border-color:#cadbe9; }
.dh-home-guide:hover { border-color:#527a9d; }
.dh-home-card-label { color:#3e6180; border-color:#c8dae8; background:#edf4fa; }
.dh-home-guide-arrow { color:#3e6180; }
.dh-home-quick-links { gap:10px; margin-top:20px; }
.dh-home-quick-links a { color:#3e6180; background:#fff; border:1px solid #c8dae8; min-height:42px; }
.dh-home-quick-links a:hover { background:#dce8f3; }
.dh-home-theme {
  --dh-card-accent:#977136; --dh-card-surface:#fffaf1;
  border:1px solid #deded6; border-top:3px solid var(--dh-card-accent);
  background:var(--dh-card-surface);
}
.dh-home-theme[href*="/category/mystery/"] { --dh-card-accent:#796997; --dh-card-surface:#f3eff8; }
.dh-home-theme[href*="/category/settings/"] { --dh-card-accent:#55806a; --dh-card-surface:#edf6f0; }
.dh-home-theme[href*="/category/characters/"] { --dh-card-accent:#9c6b80; --dh-card-surface:#faeef3; }
.dh-home-theme[href*="/category/source/"] { --dh-card-accent:#a96e58; --dh-card-surface:#fbefea; }
.dh-home-theme[href*="/category/ending/"] { --dh-card-accent:#596f95; --dh-card-surface:#edf1f8; }
.dh-home-theme[href*="/category/location/"] { --dh-card-accent:#4e7b97; --dh-card-surface:#edf5fa; }
.dh-home-theme:hover { background:var(--dh-card-surface); border-color:var(--dh-card-accent); }
.dh-home-theme:hover h3 { text-decoration:underline; }
.dh-home-theme > span { color:var(--dh-card-accent); }
.dh-home-new-grid { gap:16px; }
.dh-home-new-card {
  padding:14px; border:1px solid #d3e1d8; border-radius:8px;
  background:#fff; align-items:start; min-height:108px;
}
.dh-home-new-card:hover { border-color:#56836e; }
.dh-home-new-copy time { color:#566b5f; }
.dh-home-about > img { border:4px solid #fff; box-shadow:0 0 0 1px #e4cbd5; }
.dh-home-about .dh-home-text-link { color:#835269; }
@media(max-width:834px){
  .dh-home-hero { padding:28px; margin-top:20px; }
  .dh-home-section { padding:26px; margin:24px 0; }
  .dh-home-about { padding:26px; margin-bottom:0; }
}
@media(max-width:600px){
  .home #content-in { padding-bottom:26px; }
  .dh-home-hero { padding:24px 20px; margin:16px 0 22px; border-radius:10px; }
  .dh-home-section { padding:22px 18px; margin:22px 0; border-radius:10px; }
  .dh-home-section-heading { margin-bottom:18px; }
  .dh-home-new-card { grid-template-columns:96px minmax(0,1fr); gap:12px; padding:12px; }
  .dh-home-new-image { width:96px; }
  .dh-home-about { padding:24px 20px; margin-bottom:0; }
}
