/*
Theme Name:   Donkey & Wee Radge (Divi Child)
Theme URI:    https://www.weeradgeadventures.com/
Description:  Divi child theme for Donkey & Wee Radge Adventures. Layouts are built with native Divi modules; this file only adds finishing touches Divi has no setting for. Classes are set on modules under Advanced → CSS ID & Classes.
Author:       Donkey & Wee Radge Adventures
Template:     Divi
Version:      2.0.0
Text Domain:  dwr
*/

:root{--green:#193d32;--cream:#f4f1e8;--orange:#b74627;--ink:#1d302a;--line:#d5d8cc;--sage:#e7e9df;--muted:#637266}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body.dwr,body.dwr #page-container,body.dwr #main-content{background:var(--cream)}
body.dwr #main-content .container:before{display:none}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.dwr *{transition:none!important}}

/* Orange emphasis in headings: <em>word</em> */
.dwr-em em{font-style:normal;color:var(--orange)}
.dwr-em-light em{color:#eea378}

/* Photo columns (background image set in the column's Background settings) */
.dwr-photo-gear.et_pb_column_empty{display:block!important}
.dwr-photo-hero{min-height:650px}.dwr-photo-about{min-height:560px}.dwr-photo-gear{min-height:380px}
@media(max-width:980px){.dwr-photo-hero,.dwr-photo-about{min-height:450px}}
@media(max-width:650px){.dwr-photo-hero,.dwr-photo-about{min-height:360px}.dwr-photo-gear{min-height:280px}}

/* Hero bits */
.dwr-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--orange);margin-right:8px;vertical-align:middle}
.dwr-small{font-size:.9em;opacity:.85;letter-spacing:0;margin-top:6px}
.dwr-vertical .et_pb_text_inner{writing-mode:vertical-rl;text-shadow:0 1px 4px #000}

/* Ticker: spread items across the bar */
.dwr-ticker p{display:flex;justify-content:space-around;align-items:center;gap:20px;flex-wrap:wrap}
.dwr-ticker b{color:#dc8958;font-size:20px;line-height:1}
@media(max-width:650px){.dwr-ticker p{justify-content:center;gap:12px 18px}.dwr-ticker b:last-of-type,.dwr-ticker span:last-child{display:none}}

/* Underlined text links */
.dwr-text-link a,.dwr-underline a{border-bottom:1px solid;padding-bottom:6px}
.dwr-text-link a:hover{color:var(--orange)!important}

/* Next-chapter labels */
.dwr-plan .dwr-plan-tag{font-size:9px;letter-spacing:1.5px;color:var(--orange);font-weight:700;padding-bottom:0}
.dwr-plan h3{margin:12px 0;padding:0}

/* Supplied badge artwork sits on dark backgrounds */
.dwr-screen img{mix-blend-mode:screen}
.et_pb_column:has(> .dwr-screen){z-index:auto!important}
.dwr-lift{transition:transform .2s}.dwr-lift:hover{transform:translateY(-4px)}

/* Blog module → journal cards */
.dwr-cards .et_pb_post{border:0!important;padding:0!important;background:transparent!important;margin-bottom:26px}
.dwr-cards .et_pb_image_container{margin:0 0 20px!important}
.dwr-cards .entry-featured-image-url{height:230px;overflow:hidden;margin:0!important}
.dwr-cards .entry-featured-image-url img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.dwr-cards .entry-featured-image-url:hover img{transform:scale(1.03)}
.dwr-cards .entry-title{margin:10px 0!important;padding:0!important}
.dwr-cards .post-meta{order:-1}
.dwr-cards .post-meta a{color:inherit}
.dwr-cards .post-content{display:flex;flex-direction:column}
.dwr-cards .post-content-inner{min-height:46px}
.dwr-cards .more-link{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;margin-top:12px}
.dwr-cards .more-link:hover{color:var(--orange)!important}
@media(max-width:650px){.dwr-cards .entry-featured-image-url{height:260px}}

/* Gallery module: cropped tiles (columns are set in the module's own Layout settings) */
.dwr-photo-grid .et_pb_gallery_image img{height:280px;width:100%;object-fit:cover}
@media(max-width:650px){.dwr-photo-grid .et_pb_gallery_image img{height:180px}}

/* Row vertical alignment on desktop (rows stack normally on phones) */
@media(min-width:981px){.dwr-align-end,.dwr-align-center{display:flex!important}.dwr-align-end{align-items:flex-end}.dwr-align-center{align-items:center}}

/* Header brand + menu */
.dwr-header-row{display:flex!important;align-items:center;gap:20px}
.dwr-header-row>.et_pb_column{margin-bottom:0!important}
@media(max-width:980px){.dwr-header-row>.et_pb_column:first-child{flex:1 1 auto;width:auto!important}.dwr-header-row>.et_pb_column:last-child{flex:0 0 auto;width:auto!important}}
.dwr-brand{display:flex;gap:12px;align-items:center;letter-spacing:.6px;color:var(--ink)}
.dwr-brand img{width:64px;height:64px;object-fit:contain;flex-shrink:0}
.dwr-brand small{display:block;font:9px/2.4 'DM Sans',sans-serif;letter-spacing:1.6px}
.dwr-nav .et_pb_menu__wrap{justify-content:flex-end}
.dwr-nav .et-menu>li{padding-left:13px;padding-right:13px}
.dwr-nav .et-menu .nav-watch>a{border-bottom:1px solid var(--green);padding-bottom:6px!important}
.dwr-nav .et-menu>li.current-menu-item:not(.current_page_item)>a{color:var(--ink)!important}
@media(max-width:980px){.dwr-brand img{width:50px;height:50px}.dwr-brand{font-size:18px}.dwr-brand small{font-size:7px}}
@media(max-width:650px){.dwr-brand img{width:48px;height:48px}.dwr-brand{font-size:15px;gap:9px}.dwr-brand small{font-size:6px;letter-spacing:1.2px}}

/* Footer */
.dwr-footer-logo{width:64px;height:64px;object-fit:contain}
.dwr-footer-brand .dwr-small{font:11px 'DM Sans',sans-serif;color:var(--muted);margin-top:4px}
.dwr-socials a{margin-left:25px}.dwr-socials a:hover{color:var(--orange)!important}
@media(max-width:650px){.dwr-socials a{margin:0 22px 0 0}}
.dwr-footer-bottom p{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:650px){.dwr-hide-phone{display:none}}

/* Single post */
.dwr-cover img{height:460px;object-fit:cover;width:100%}
@media(max-width:650px){.dwr-cover img{height:280px}}
.dwr-article p{padding-bottom:20px}
.dwr-article img{height:auto;max-height:700px;object-fit:contain;margin:24px auto;display:block}
.dwr-article a{text-decoration:underline;overflow-wrap:anywhere}
.dwr-article figure{margin:25px 0}
.dwr-article figcaption{font-size:12px;color:var(--muted);text-align:center}
.dwr-article ul{list-style:disc;padding:0 0 20px 24px}
.dwr-article .wp-block-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}
.dwr-article .wp-block-gallery figure.wp-block-image:not(#dwr){width:auto!important;margin:0!important;height:260px}
.dwr-article .wp-block-gallery img{margin:0;max-height:none;object-fit:cover;width:100%;height:100%}
@media(max-width:650px){.dwr-article .wp-block-gallery{grid-template-columns:1fr 1fr}.dwr-article .wp-block-gallery figure.wp-block-image:not(#dwr){height:180px}}
.dwr-post-tags a{display:inline-block;border:1px solid var(--line);padding:4px 10px;margin:0 8px 8px 0}
.dwr-post-tags a:before{content:'#'}

/* Archive category links */
.dwr-cats{display:flex;flex-wrap:wrap;gap:15px}
.dwr-cats a{text-decoration:underline}
.dwr-cats a.current{color:var(--orange);font-weight:700}
