/* Additions to the archived bundle (bundle.css stays untouched). */

/* Front page: third tile "Search" replaces the hidden "Pill Identifier" tile; same rules as .w-drugs in bundle.css. */
#custom-widget-section .custom-widget-wrap .custom-widget-box .custom-widget-box_inner .w-search {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: 50%;
	background-size: cover;
	transition: all .4s ease;
	opacity: 1;
	background-image: url(../images/search.jpg);
}
#custom-widget-section .custom-widget-wrap .custom-widget-box:hover .w-search {
	transform: scale(1.5);
	opacity: 1;
}

/* Affiliate disclosure above the post text (custom field show_affiliate_disclosure) */
.dg-affiliate-disclosure{margin:0 0 16px;background:#f7f7f7;font-size:12px;line-height:21px;text-align:center}

/* Review board page: reviewer cards (page-our-medical-review-board.php) */
.dg-reviewers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem 2rem;margin-top:2rem}
.dg-reviewer{text-align:center;scroll-margin-top:90px}
.dg-reviewer__photo img{width:260px;max-width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:50%}
.dg-reviewer__name{margin:1rem 0 .25rem}
.dg-reviewer__credentials,.dg-reviewer__job{display:block;font-size:.9rem}
.dg-reviewer__job{opacity:.75}
.dg-reviewer__bio{margin:1rem 0 .5rem;text-align:left}
.dg-reviewer__links{list-style:none;margin:0;padding:0;display:flex;gap:1rem;justify-content:center}
.dg-reviewer:target{background:#f7f7f7;border-radius:6px;padding:1rem}
@media (max-width:781px){.dg-reviewers{grid-template-columns:1fr}}
.dg-reviewer__links a{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center}.dg-reviewer__links svg{width:24px;height:24px;fill:currentColor}

/* Related posts under a post: two rows of three, no scroll */
.section-related-posts .dg-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 1.5rem}
.section-related-posts .post-thumbnail img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
.section-related-posts .post-categories li+li{margin-left:.6rem}
@media (max-width:781px){.section-related-posts .dg-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.section-related-posts .dg-related-grid{grid-template-columns:1fr}}
/* Popular articles: thumbnail 120x90 whatever the image size */
.cs-popular-posts-trail .thumbnail-trail img{width:120px;height:90px;object-fit:cover;display:block}
.section-related-posts .entry-title{font-size:.9375rem;line-height:1.3;margin:.35rem 0 .4rem}
.section-related-posts .meta-category{margin-top:.75rem}
.section-related-posts{margin-top:3rem}
/* the share column itself must not be shifted (its inner block is the sticky one): it stuck out 120px below the content */
.sticky-sidebar-enabled .post-sidebar{top:0}
/* the JS wrapper must not become the sticky containing block: the share block sticks inside the whole column */
.post-sidebar>.dg-share{display:contents}

/* Footer menu: one compact centred row instead of a tall list with dividers and chevrons */
.site-footer .footer-widgets{padding-top:1.25rem;padding-bottom:1.25rem}
.site-footer .footer-widgets .footer-sidebars .sidebar-footer-2{flex:0 0 100%;max-width:100%}
.site-footer .widget_nav_menu .menu{display:flex;flex-wrap:wrap;justify-content:center;gap:0 2rem;margin:0;padding:0;list-style:none;text-align:center}
.site-footer .widget_nav_menu .menu>.menu-item:not(:first-child){border-top:0}
.site-footer .widget_nav_menu a{padding:.375rem 0}
.site-footer .widget_nav_menu .menu .menu-item:not(.menu-item-has-children)>a:after{display:none}

/* Outer spacing: front page hero sits right under the header; room between pagination and footer; gap between small cards */
.site-main-home{margin-top:0}
.archive-pagination:not(:empty){padding-bottom:3rem}
.cs-wide-area2>[class^="countdown"]:not(:last-child){margin-bottom:2rem}
.site-footer .widget_nav_menu .menu>li:first-child{align-items:normal}
.site-footer .widget_nav_menu .menu>li:first-child a{padding-top:.375rem}

/* Author box under a post: gap between the photo and the text (the old markup had them touching) */
.author-box{display:flex;align-items:flex-start;gap:2rem}
.author-box .author-desktop-img{flex:0 0 250px;width:250px;height:250px;object-fit:cover}
.author-box .author-info{flex:1 1 auto;min-width:0}

/* X (ex-Twitter) icon: inline SVG instead of the bird of the icon font */
.dg-icon-x{display:inline-flex;align-items:center;justify-content:center;font-style:normal;line-height:1}
.dg-icon-x svg{width:1em;height:1em;fill:currentColor;display:block}
.pk-share-buttons-scheme-bold .pk-share-buttons-twitter .pk-share-buttons-link{color:#000}
.pk-share-buttons-scheme-bold .pk-share-buttons-twitter .pk-share-buttons-link:hover{color:#333}
.dg-share:empty{min-height:0}

/* cookie banner */
.dg-cookie{position:fixed;left:1rem;bottom:1rem;z-index:99999;display:flex;align-items:center;gap:1.25rem;max-width:760px;padding:1rem 1.25rem;background:#fff;color:#222;border:1px solid #e3e3e3;border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,.18);font-size:.875rem;line-height:1.45}
.dg-cookie[hidden]{display:none}
.dg-cookie p{margin:0}
.dg-cookie a{color:#0e8f72;text-decoration:underline}
.dg-cookie-actions{display:flex;gap:.5rem;flex:0 0 auto}
.dg-cookie-btn{padding:.5rem 1rem;border:1px solid #4bcfad;border-radius:4px;background:#fff;color:#222;font:inherit;font-weight:600;cursor:pointer}
.dg-cookie-btn.dg-cookie-accept{background:#4bcfad;color:#000}
.dg-cookie-btn:hover{filter:brightness(.95)}
.dg-cookie-settings{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;opacity:.85}
@media (max-width:600px){.dg-cookie{left:.5rem;right:.5rem;bottom:.5rem;flex-direction:column;align-items:stretch;gap:.75rem}.dg-cookie-actions{justify-content:flex-end}}
