/* Road Superior theme: WordPress-specific additions on top of the approved design CSS (main.css). */

/* Accessibility */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto!important;clip-path:none;height:auto;width:auto;left:12px;top:12px;z-index:100000;background:#fff;color:var(--navy);padding:12px 18px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.25)}

/* Admin bar offset for the sticky header */
.admin-bar .hdr{top:32px}
@media (max-width:782px){.admin-bar .hdr{top:46px}}
@media (max-width:600px){.admin-bar .hdr{top:0}}

/* Header cart count badge */
.rs-cart{display:inline-flex;align-items:center;gap:6px}
.rs-cart .woocommerce-Price-amount{font:inherit}
.rs-cc{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;line-height:1}
.rs-cc.is-empty{display:none}

/* Mobile search inside the mobile menu (uses the design's .search look) */
.mnav .search.msearch{display:flex}
.mnav .msearch input{min-width:0}

/* Nav menus rendered from WordPress keep the design's anchor styles */
.innerpage #nav a.current-menu-item:after{transform:scaleX(1)}

/* Content defaults inside panels (WordPress editor output) */
.legal img,.bpost img{height:auto}
.legal .alignleft,.bpost .alignleft{float:left;margin:0 18px 12px 0}
.legal .alignright,.bpost .alignright{float:right;margin:0 0 12px 18px}
.legal .aligncenter,.bpost .aligncenter{margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}.wp-caption-text{font-size:13px;color:#5b6576}
.bpost figure{margin:0 0 18px}
.bpost .wp-block-image img,.bpost figure img{border-radius:14px;background:#fff}
.legal table,.bpost table{width:100%;border-collapse:collapse;margin:0 0 18px}
.legal td,.legal th,.bpost td,.bpost th{border-bottom:1px solid #e3e8f0;padding:8px}
.panel>*:last-child{margin-bottom:0}

/* Blog pager + generic pager */
.rs-pager{margin:34px 0 0}
.rs-pager .page-numbers{padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid #e1e8f2;color:var(--navy);font-weight:600;font-size:14px;box-shadow:0 2px 8px rgba(0,30,70,.1)}
.rs-pager .page-numbers.current,.rs-pager a.page-numbers:hover{background:var(--navy);color:#fff;border-color:var(--navy)}

/* Older/newer post nav (design .bpn uses plain links; nav{} base resets) */
nav.bpn{flex:none}
nav.crumbs{flex:none;font-size:13px}

/* Comments */
.rs-comments{margin-top:26px}
.comment-list{list-style:none;padding:0}
.comment-respond textarea,.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url]{width:100%;font:400 16px Inter,sans-serif;border:1px solid #cfd8e6;border-radius:12px;padding:12px 14px}

/* Contact form panel: style common form plugins (WPForms, Elementor, CF7) like the design's .cform */
.rs-type-note{margin:-4px 0 16px;padding:10px 14px;border-radius:12px;background:#eaf3fb;color:var(--navy);font-weight:600}
.rs-contact-form .wpforms-container{margin:0!important}
.rs-contact-form label,.rs-contact-form .wpforms-field-label{font:600 13px 'Roboto Condensed',sans-serif!important;text-transform:uppercase;letter-spacing:.06em;color:var(--navy)!important}
.rs-contact-form input[type=text],.rs-contact-form input[type=email],.rs-contact-form input[type=tel],.rs-contact-form input[type=number],.rs-contact-form input[type=url],.rs-contact-form select,.rs-contact-form textarea{font:400 16px Inter,sans-serif!important;border:1px solid #cfd8e6!important;border-radius:12px!important;padding:12px 14px!important;background:#fff!important;color:#222!important;width:100%!important;max-width:100%!important;height:auto!important;box-sizing:border-box}
.rs-contact-form input:focus,.rs-contact-form textarea:focus,.rs-contact-form select:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px rgba(0,123,161,.18)!important;outline:0}
.rs-contact-form textarea{min-height:140px}
.rs-contact-form button[type=submit],.rs-contact-form input[type=submit],.rs-contact-form .wpforms-submit{background:var(--red)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:16px 30px!important;font:400 15px 'Russo One',sans-serif!important;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;box-shadow:0 10px 30px rgba(200,16,46,.35);height:auto!important}
.rs-contact-form button[type=submit]:hover,.rs-contact-form .wpforms-submit:hover{background:#a50d26!important}
.rs-contact-form .wpforms-confirmation-container-full{background:#d8f3e0!important;border:0!important;color:#146c2e!important;border-radius:12px}

/* 404 search */
.rs-404-search{max-width:520px;margin:12px 0 22px}
.rs-404-search input{flex:1;width:auto}

/* Design heading bars should not appear on headings inside generic content */
.legal h2:after,.bpost h2:after{display:none}

/* v1.1.2 req #17: footer logo kept its HTML height (484px) while CSS set only the width, so it stretched tall. Keep the artwork's own proportions at every size. */
footer .flogo,.site-footer .flogo{width:140px;max-width:100%;height:auto!important;max-height:none;object-fit:contain;display:block}
