/* DiS interim branding. Loaded after Ghost's existing injection. */
:root {
  --brand-pink: #E95470 !important;
  --brand-pink-hover: #E95470 !important;
  --ghost-accent-color: #E95470 !important;
  --dis-pink: #E95470 !important;
  --background-color: #121211 !important;
  --text-color: #FFFFFF !important;
  --font1: 'league-gothic', 'Arial Narrow', sans-serif !important;
  --font2: 'abril-text', Georgia, serif !important;
  --font3: 'abril-text', Georgia, serif !important;
  --gh-font-heading: 'league-gothic', 'Arial Narrow', sans-serif;
  --gh-font-body: 'abril-text', Georgia, serif;
  --dis-header-font: 'league-gothic', 'Arial Narrow', sans-serif !important;
}
body { font-family: var(--font2); }
h1,h2,h3,h4,h5,h6,.big-text,.button,button,.search-input,.category-link,.tag-heading-link,.footer-nav-link,.nav-link {
  font-family: var(--font1) !important;
  font-weight: 400 !important;
}
.big-text { font-family: var(--font1) !important; }
.hero-title { line-height: .98; text-wrap: balance; }
.card .big-text,.latest-post-title { line-height: 1.05; }
.category-link { font-size: 24px; }
.button,button,.search-input { font-size: 25px; }
.card p,.pb-time,.footer-credits,.post-number { font-size: max(16px, 1rem); }
.card p{font-size:max(16px, calc((max(16px, 1rem)) * .85));}
.pb-title,.yt-title { font-size: clamp(24px,2.1vw,32px) !important; line-height: 1.1 !important; }
:is(.button,a.dis-subscribe-btn,.kg-btn,.kg-header-card-button):not(.light-button) {
  background: #E95470 !important; color: #010204 !important; border-color: #E95470 !important;
}
:is(.button,a.dis-subscribe-btn,.kg-btn):hover { background: #FFFFFF !important; color: #010204 !important; }
.signin-button.light-button { background: transparent !important; color: #FFFFFF !important; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 2px solid #E95470; outline-offset: 5px; }
.gh-announcement-bar.accent,.gh-announcement-bar.accent a,.gh-announcement-bar.accent button { color:#010204 !important; }
.gh-announcement-bar { font-family:var(--font2); }
.sidebar .logo { transform: none; display: flex; align-items: center; justify-content:center; width:100%; }
.sidebar .logo img { width: 50px !important; height:auto !important; display:block; }
.mobile-logo img { width:auto !important; height:46px !important; max-width:none; object-fit:contain; }
.dis-footer-brand { display: block; width:108px; margin: 0 0 32px; }
.dis-footer-brand img { display:block; width:100%; height:auto; }
/* One readable link per topic, with no decorative image or scaled hit target. */
section.browse-by-tags .slider-inner { gap:16px !important; padding:8px 32px 48px; scroll-padding-inline:32px; }
.dis-topic-card,section.browse-by-tags .dis-topic-card {
  transform:none !important; width:clamp(190px,19vw,290px); min-width:clamp(190px,19vw,290px);
  margin:0 !important; padding:0; flex:0 0 auto;
}
.dis-topic-link {
  display:flex; flex-direction:column; position:relative; min-height:220px; padding:24px;
  color:#010204 !important; background:#E95470; border:2px solid #E95470; text-decoration:none !important;
  transition:background .18s ease,color .18s ease; height:100%;
}
.dis-topic-kicker { font:16px/1.4 var(--font2); }
.dis-topic-name { font:400 clamp(40px,3.9vw,60px)/1.02 var(--font1); margin-top:auto; padding:28px 24px 0 0; overflow-wrap:anywhere; }
.dis-topic-arrow { position:absolute; right:18px; bottom:20px; font:30px/1 Arial,sans-serif; }
.dis-topic-link:hover { background:#FFFFFF; border-color:#FFFFFF; }
.dis-topic-link:focus-visible { outline:3px solid #FFFFFF; outline-offset:3px; }
.tags-grid .dis-topic-card { width:auto; min-width:0; }
@media(max-width:767px) {
  .nav-link { font-size:32px !important; }
  section.browse-by-tags .slider-inner { padding:8px 20px 32px; scroll-padding-inline:20px; gap:12px !important; }
  .dis-topic-card,section.browse-by-tags .dis-topic-card { width:200px; min-width:200px; }
  .dis-topic-link { min-height:200px; padding:20px; }
  .dis-topic-name { font-size:44px; }
  .dis-footer-brand { width:90px; }
}
@media(prefers-reduced-motion:reduce) { .dis-topic-link { transition:none; } }
/* Adjust scale for the much narrower replacement headline face. */
.heading-1-wrapper h1 { max-width:1100px; margin-inline:auto; font-size:clamp(76px,9.5vw,160px) !important; line-height:.98; text-wrap:balance; }
.navbar .navbar-button,.mobile-menu-cta .button,.hero-description-wrapper .button,.search-input { font-size:32px !important; }
.pb-title,.yt-title,.dis-podcasts-section .pb-title { font-weight:400 !important; letter-spacing:.01em; }
.sidebar .logo img { width:58px !important; }
.dis-footer-brand { margin:0 32px 32px; }
@media(max-width:767px) {
  .heading-1-wrapper h1 { font-size:clamp(62px,15vw,94px) !important; }
  .dis-footer-brand { margin-inline:20px; }
}
/* Stronger component rules win over the original theme's important declarations. */
:is(.post-content,.hero-content,.subscribe-wrapper) :is(button,.button),.kg-btn.kg-btn-accent,button[type="submit"] { color:#010204 !important; }
:is(.post-content,.post-excerpt,article p,.hero-description-wrapper) a:not([class*="button"]):not(.kg-bookmark-container) { text-decoration-color:#E95470 !important; text-underline-offset:.18em !important; }
@media(max-width:991px) {
  .menu-top,.navbar { height:64px; min-height:64px; }
  .mobile-logo img { height:48px !important; }
  .site-content { padding-top:64px; }
  #announcement-bar-root { transform:translateY(64px); }
  .menu-links { height:calc(100dvh - 64px); }
}
/* Keep section labels and carousel controls comfortable on touch screens. */
.section-header .arrow-button { min-width:44px; min-height:44px; }
@media(max-width:767px) {
  .section-header h2,.dis-podcast-title { font-size:40px !important; line-height:1.1; }
}

/* Keep Koenig button text readable over the new pink despite editorial link injection. */
.post-content .kg-button-card a.kg-btn.kg-btn-accent { color:#010204 !important; }

/* Review corrections: original white-on-pink controls and normal tracking. */
:is(.button,a.dis-subscribe-btn,.kg-btn,.kg-header-card-button):not(.light-button),
:is(.post-content,.hero-content,.subscribe-wrapper) :is(button,.button),
.kg-btn.kg-btn-accent,button[type="submit"],
.post-content .kg-button-card a.kg-btn.kg-btn-accent { color:#FFFFFF!important; }
.gh-announcement-bar.accent,.gh-announcement-bar.accent a,.gh-announcement-bar.accent button { color:#FFFFFF!important; }
a.dis-subscribe-btn,.signin-button,.navbar .navbar-button,.mobile-menu-cta .button { letter-spacing:normal!important; }
.navbar .navbar-button,.mobile-menu-cta .button { font-size:28px!important; }
:is(.button,a.dis-subscribe-btn,.kg-btn):hover { color:#010204!important; }
/* Compact topic links, keeping every existing destination and carousel control. */
.dis-topic-card,section.browse-by-tags .dis-topic-card { width:180px; min-width:180px; }
.dis-topic-link { min-height:112px; padding:16px; justify-content:center; }
.dis-topic-name { margin:0; padding:0; font-size:28px; line-height:1.05; white-space:nowrap; }
.dis-topic-arrow { right:12px; bottom:12px; font-size:24px; }
/* Restore the existing justified card layout: images and excerpts align across each row. */
.card .card-image-link { margin-top:auto; }
@media(max-width:767px) {
 .dis-topic-card,section.browse-by-tags .dis-topic-card { width:160px; min-width:160px; }
 .dis-topic-link { min-height:100px; padding:14px; }
 .dis-topic-name { font-size:28px; }
}

:is(.post-content,.hero-content,.subscribe-wrapper) :is(button,.button):hover,.post-content .kg-button-card a.kg-btn.kg-btn-accent:hover { color:#010204!important; }
