/* Decent4 v2 interior theme. Applied on top of each page's own template CSS
   (whose colors the build repaints to the dark palette). */
body[data-d4-theme="shared"]{background:var(--d4-bg)!important;color:var(--d4-text)!important;font-family:var(--d4-sans)!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;line-height:1.65;-webkit-font-smoothing:antialiased}
body[data-d4-theme="shared"] *,body[data-d4-theme="shared"] *::before,body[data-d4-theme="shared"] *::after{box-sizing:border-box}
body[data-d4-theme="shared"] :is(p,a,span,li,dt,dd,label,button,input,select,textarea,summary,th,td,div){font-family:var(--d4-sans)}
body[data-d4-theme="shared"] :is(h1,h2,h3,h4,h5,h6){font-family:var(--d4-display)!important;font-weight:800!important;color:var(--d4-text)!important;letter-spacing:-.02em!important}
body[data-d4-theme="shared"] h1{font-size:clamp(40px,6vw,84px)!important;line-height:.94!important;font-variation-settings:"wdth" 118;max-width:1100px;overflow-wrap:break-word}
body[data-d4-theme="shared"] h2{font-variation-settings:"wdth" 112;line-height:1.02!important}
body[data-d4-theme="shared"] h3{font-variation-settings:"wdth" 104;line-height:1.1!important}
body[data-d4-theme="shared"] :is(strong,b,dt){color:var(--d4-text)!important}
body[data-d4-theme="shared"] :is(p,li,dd,.lede,.subtitle,.muted,.meta,.date,.app-desc,.fact-value,.cell){color:var(--d4-muted)!important}
body[data-d4-theme="shared"] a{color:var(--d4-lime);text-underline-offset:4px}
body[data-d4-theme="shared"] a:hover{color:var(--d4-lime-hi)}
body[data-d4-theme="shared"] :is(.eyebrow,.section-label,.label,.kicker,.fact-label,.app-genre,.article-date,.tag){font-family:var(--d4-mono)!important;letter-spacing:.14em!important;text-transform:uppercase}
body[data-d4-theme="shared"] .eyebrow{color:var(--d4-lime)!important;font-size:12.5px!important}
body[data-d4-theme="shared"] :is(main,section,article,.container,.wrap,.content){background-color:transparent}
body[data-d4-theme="shared"] > header.hero,body[data-d4-theme="shared"] .hero{position:relative!important;margin-top:0!important;background-color:var(--d4-bg)!important;background-image:linear-gradient(#141414 1px,transparent 1px),linear-gradient(90deg,#141414 1px,transparent 1px)!important;background-size:64px 64px!important;border-bottom:1px solid #1c1c1c!important}
body[data-d4-theme="shared"] .hero .lede,body[data-d4-theme="shared"] .hero > .wrap > p{font-size:clamp(17px,1.5vw,20px)!important;line-height:1.55!important;max-width:760px}
body[data-d4-theme="shared"] :is(.card,.panel,.facts,.comparison,.faq,.cta,.cta-box,.cta-band,.hub-card,.article-card,.app-row,.tool,.result-card,blockquote){background:var(--d4-bg-2)!important;border:1px solid var(--d4-line)!important;border-radius:18px!important;box-shadow:none!important}
body[data-d4-theme="shared"] :is(.hub-card,.article-card){transition:border-color .3s ease,transform .5s var(--d4-ease)}
body[data-d4-theme="shared"] :is(.hub-card,.article-card):hover{border-color:var(--d4-lime)!important;transform:translateY(-3px)}
body[data-d4-theme="shared"] .article-card-title{font-family:var(--d4-display)!important;font-weight:800;font-variation-settings:"wdth" 108;color:var(--d4-text)!important}
body[data-d4-theme="shared"] .facts{padding:26px!important}
body[data-d4-theme="shared"] .fact-label{color:var(--d4-dim)!important;font-size:11px!important}
body[data-d4-theme="shared"] .fact-value{color:var(--d4-text)!important}
body[data-d4-theme="shared"] .cta{position:relative;overflow:hidden;padding:clamp(26px,4vw,44px)!important;background-color:#0d0f07!important;border-color:rgba(214,242,74,.35)!important}
body[data-d4-theme="shared"] .cta h2{margin-top:0!important;font-size:clamp(32px,4vw,52px)!important}
body[data-d4-theme="shared"] :is(.btn,.button,.btn-primary,.button-primary,a.cta,.cta>a,.cta-actions>a:first-child,.app-link,.primary,.nav-cta,button[type=submit],input[type=submit]){display:inline-flex!important;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px!important;background:var(--d4-lime)!important;color:#0a0a0a!important;border:0!important;border-radius:999px!important;font:700 15px/1 var(--d4-sans)!important;text-decoration:none!important;box-shadow:none!important;transition:background-color .25s ease!important}
body[data-d4-theme="shared"] :is(.btn,.button,.btn-primary,.button-primary,.cta>a,.app-link,.primary,button[type=submit]):hover{background:var(--d4-text)!important;color:#0a0a0a!important}
body[data-d4-theme="shared"] :is(.btn,.button,.cta>a,.app-link,button[type=submit]) :is(span,strong,b){color:inherit!important}
body[data-d4-theme="shared"] :is(.btn-secondary,.secondary,.button-secondary,.support-link,.app-actions .app-link:not(:last-child)){background:transparent!important;color:var(--d4-text)!important;border:1px solid #3a3a3a!important;border-radius:999px!important}
body[data-d4-theme="shared"] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=range]),textarea,select){background:var(--d4-bg-2)!important;color:var(--d4-text)!important;border:1px solid #2c2c2c!important;border-radius:12px!important;font-size:16px!important;min-height:48px;max-width:100%}
body[data-d4-theme="shared"] :is(input,textarea,select):focus{border-color:var(--d4-lime)!important;outline:none}
body[data-d4-theme="shared"] :is(code,pre){font-family:var(--d4-mono)!important;background:var(--d4-bg-3)!important;color:var(--d4-text)!important;overflow:auto;border-radius:8px}
body[data-d4-theme="shared"] :is(table,td,th,.row,.cell){border-color:var(--d4-line)!important}
body[data-d4-theme="shared"] :is(th,thead,.head .cell){background:var(--d4-bg-3)!important;color:var(--d4-text)!important}
body[data-d4-theme="shared"] .pick,body[data-d4-theme="shared"] .pick a{color:var(--d4-lime)!important}
body[data-d4-theme="shared"] hr{border-color:var(--d4-line)!important}
body[data-d4-theme="shared"] .source-list a{color:var(--d4-text)!important;text-decoration-color:rgba(214,242,74,.5)}
body[data-d4-theme="shared"] article ul:not(.source-list) > li::marker{color:var(--d4-lime)}
body[data-d4-theme="shared"] chat-widget{display:none!important}

/* Apps directory */
body[data-d4-theme="shared"] .app-row{display:grid!important;grid-template-columns:100px minmax(0,1fr);gap:32px;padding:32px 0;border:0!important;border-top:1px solid var(--d4-line)!important;border-radius:0!important;background:transparent!important;align-items:start;min-width:0}
body[data-d4-theme="shared"] .app-icon{width:96px;height:96px;border-radius:22px;object-fit:cover}
body[data-d4-theme="shared"] .app-info{min-width:0}
body[data-d4-theme="shared"] .app-info h2{font-size:clamp(28px,3vw,40px)!important;margin:0 0 12px!important;overflow-wrap:anywhere}
body[data-d4-theme="shared"] .app-info h2 a{color:var(--d4-text)!important}
body[data-d4-theme="shared"] .app-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
body[data-d4-apps] .hero p{margin:20px 0 0;max-width:600px;font-size:20px}

/* Plain documents (support, legal) */
body[data-d4-document] > :not(.d4-global-header):not(.d4-global-footer):not(.d4-menu):not(.d4-progress):not(script):not(style):not(.d4-skip){max-width:820px;margin-left:auto;margin-right:auto}
body[data-d4-document] > h1{margin-top:64px;margin-bottom:24px;padding-inline:24px}
body[data-d4-document] > :is(p,h2,h3,ul,ol){padding-inline:24px}

@media (max-width:760px){
  body[data-d4-theme="shared"] h1{font-size:clamp(38px,11vw,58px)!important}
  body[data-d4-theme="shared"] .app-row{grid-template-columns:1fr;gap:20px;padding:28px 0}
  body[data-d4-theme="shared"] .app-actions .app-link{width:100%}
  body[data-d4-theme="shared"] input,body[data-d4-theme="shared"] select,body[data-d4-theme="shared"] textarea{font-size:16px!important}
  body[data-d4-document] > :not(.d4-global-header):not(.d4-global-footer):not(.d4-menu):not(script):not(style):not(.d4-skip){max-width:calc(100% - 40px)}
  body[data-d4-document] > :is(p,h1,h2,h3,ul,ol){padding-inline:0}
}
