/* Trust Remedies — WordPress additions: admin bar, editor content on pages/products, post lists. */

/* Keep the sticky header below the WordPress admin bar when logged in. */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Home headline fitted to one line by main.js: keep the banner columns at their normal width */
.hero .container > div { min-width: 0; }
/* ...and spanning the whole banner width above the text and the enquiry form */
.hero .container.hero-wide { row-gap: 0; align-items: start; }
.hero .container.hero-wide > div:not(.hero-head):not(.form-card) { padding-top: 8px; }
.hero .container.hero-wide > .hero-head { grid-column: 1 / -1; margin-bottom: 28px; }
.hero .container.hero-wide > .hero-head h1 { margin: 0; }

/* Dropdown for menu items with sub-pages (Appearance > Menus) */
.mega.mega-list { display: block; width: 260px; padding: 14px 20px; }
.mega.mega-list ul { margin: 0; }
.mega.mega-list li a[aria-current] { color: var(--brand); font-weight: 700; }

/* Content written in the page editor */
.entry-content { max-width: 860px; margin: 0 auto; font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.6em 0 .5em; }
.entry-content h3 { margin: 1.5em 0 .4em; }
.entry-content h4 { margin: 1.4em 0 .4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--sky); }
.entry-content a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .alignwide { max-width: calc(var(--container) - 48px); margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 48px); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull img { border-radius: 0; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--sky); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.entry-content blockquote p { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--ink); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content .wp-block-columns { gap: 32px; }
.entry-content .wp-block-image { margin-top: 1.5em; margin-bottom: 1.5em; }
.entry-content .wp-block-embed iframe { width: 100%; border-radius: var(--radius-sm); }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .wp-block-button__link {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--sky); color: #fff; text-decoration: none; transition: all .25s ease;
}
.entry-content .wp-block-button__link:hover { background: #1592c8; color: #fff; transform: translateY(-2px); }
.entry-content .is-style-outline .wp-block-button__link { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.entry-content .is-style-outline .wp-block-button__link:hover { border-color: var(--brand); color: var(--brand); }

/* About Us text from the page editor */
.story-body h3 { margin-top: 28px; }
.story-body .lead { color: var(--text); }

/* "Full width" page template, and pages built with Elementor */
.entry-content.entry-wide, .elementor-page .entry-content { max-width: none; }

/* Shortcodes ([products], [enquiry_form], ...) inside page content */
.entry-content .trt-sc-products, .entry-content .trt-sc-cats { margin: 1.5em 0; }
.entry-content .trt-sc-products a, .entry-content .trt-sc-cats a, .entry-content a.trt-sc-btn { text-decoration: none; }
.entry-content .trt-sc-form { max-width: 640px; margin: 1.5em 0; }
.entry-content .trt-sc-contact { margin: 1.5em 0; }
.entry-content .trt-sc-cats .cat { opacity: 1; transform: none; }

/* Product description uses the same style as before */
.pd .entry-content { max-width: none; margin: 0; font-size: inherit; }
.pd .entry-content > * + * { margin-top: 0; }
.pd .entry-content p { margin: 0 0 1em; }

/* Post lists (news, search) */
.entry-meta { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.entry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.entry-card { overflow: hidden; padding: 0; }
.entry-card .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.entry-card .body { padding: 22px 24px 26px; }
.entry-pages { margin-top: 40px; text-align: center; }
.entry-pages .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); margin: 0 3px; padding: 0 12px; }
.entry-pages .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.center > .btn + .btn { margin-left: 10px; }
