/*
Theme Name: The HUB - Nanton Radio
Theme URI: https://nantonradio.ca/
Author: Nanton Community Broadcasting Association
Description: The HUB - Nanton Radio site in the approved "Big Country Sunset" design (maroon, orange, cream, Roboto). Carries over the live Weebly pages as Custom HTML blocks, the pop-out radio player, the on-air bar with ticker, the footer, and built-in Contact and Advertise & Sponsor forms (no form plugin needed).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: hub
*/

/* Design styles live in assets/css/site-v3.css (copied unchanged from the live site). This file holds the WordPress glue:
   header and menu, page flow, footer spacing and the built-in forms. */

/* ---------- page flow ---------- */
html,body{height:auto;min-height:100%}
body{background:#F4EBDC;color:#2B1A17;overflow-x:clip;padding-bottom:64px}
body.hub-popout-page{padding-bottom:0}
.hub-block{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);position:relative;font-family:Roboto,Arial,sans-serif;font-size:16px;line-height:1.5;color:#2B1A17}
:where(.hub-block,.ftr) img{height:auto}
.hub-main{overflow-x:clip}
.hub-block .prose p{margin:0 0 14px}
.hub-block blockquote{color:#4a3a36;background:#fff;font-size:1.05rem;line-height:1.6;margin:18px 0;padding:16px 20px;border-left:5px solid #E4853A;border-radius:0 14px 14px 0}
.hub-block blockquote cite{color:#7C211E}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:100000;width:auto;height:auto;clip:auto;background:#F4EBDC;color:#7C211E;padding:10px 16px;border-radius:8px;font-weight:700}

/* Live Weebly "Design Options" (checked Nov 19 2026): section headings are Roboto, not upper-case, letter-spacing -1px, 37px on screens 767px and up */
.hub-main h2{font-family:Roboto,Arial,sans-serif!important;text-transform:none!important;letter-spacing:-1px!important}
@media(min-width:767px){.hub-main h2{font-size:37px!important}}

/* ---------- header (live: dark bar, logo left, inline menu from 1280px (1180px on Weebly, one more item now), hamburger below; "Support Us" orange pill) ---------- */
.hub-hdr{position:relative;z-index:40;background:#170605;padding:10px 0}
.hub-hdr .hdr-in{max-width:1220px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:18px}
.hub-hdr .hdr-logo{display:block;flex:none}
.hub-hdr .hdr-logo img{max-height:56px;width:auto;display:block}
.hub-topnav{display:none}
.hub-topnav a{color:#F4EBDC;font:800 .8rem/1 "Roboto Condensed",Roboto,Arial,sans-serif;text-transform:uppercase;letter-spacing:.03em;padding:10px 8px;border-radius:999px;text-decoration:none;white-space:nowrap}
.hub-topnav a:hover,.hub-topnav a.is-current{color:#F6C27A}
.hub-topnav a.pill{background:#E4853A;color:#2A0907;padding:10px 16px;margin-left:6px}
.hub-topnav a.pill:hover{background:#F6C27A;color:#2A0907}
.hub-topnav a:focus-visible,.hub-burger:focus-visible{outline:3px solid #E4853A;outline-offset:2px}
.hub-burger{margin-left:auto;display:inline-flex;align-items:center;gap:10px;background:none;border:2px solid rgba(244,235,220,.35);color:#F4EBDC;border-radius:999px;padding:9px 14px;font:800 .85rem/1 "Roboto Condensed",Roboto,Arial,sans-serif;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;min-height:44px}
.hub-burger .bars{position:relative;width:20px;height:2px;background:currentColor;display:inline-block}
.hub-burger .bars:before,.hub-burger .bars:after{content:"";position:absolute;left:0;width:20px;height:2px;background:currentColor}
.hub-burger .bars:before{top:-6px}.hub-burger .bars:after{top:6px}
@media(max-width:1279px){
 .hub-hdr.is-open .hub-topnav{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;background:#170605;padding:8px 20px 18px;border-top:1px solid rgba(244,235,220,.15);box-shadow:0 18px 30px rgba(0,0,0,.45)}
 .hub-hdr.is-open .hub-topnav a{font-size:1.05rem;padding:14px 6px;border-radius:8px;border-bottom:1px solid rgba(244,235,220,.08)}
 .hub-hdr.is-open .hub-topnav a.pill{margin:12px 0 0;text-align:center;border-radius:999px;border:0}
 .hub-hdr .hdr-logo img{max-height:44px}
}
@media(min-width:1280px){
 .hub-topnav{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:0;margin-left:auto}
 .hub-burger{display:none}
}
@media(min-width:1440px){.hub-topnav a{font-size:.84rem;letter-spacing:.04em;padding:11px 9px}.hub-topnav a.pill{padding:11px 18px}}
body.admin-bar .onair-bar{bottom:0}

/* on-air bar: fixed to the bottom, as on the live site */
.onair-bar{position:fixed!important;top:auto!important;bottom:0;left:0;right:0;z-index:9999;border-bottom:0!important;border-top:2px solid #E4853A;box-shadow:0 -6px 24px rgba(0,0,0,.4)!important}
.hub-popout-page .onair-bar,.hub-popout-page .ftr,.hub-popout-page .hub-hdr{display:none!important}

/* ---------- built-in forms (Contact, Advertise & Sponsor) ---------- */
.hub-form{max-width:680px;margin:0 auto;padding:8px 0 36px;font-family:Roboto,Arial,sans-serif}
.hub-form label,.hub-form legend{display:block;color:#7C211E;font:700 16px/1.5 Roboto,Arial,sans-serif;margin:16px 0 6px}
.hub-form .req{color:#B3261E}
.hub-form input[type=text],.hub-form input[type=email],.hub-form input[type=tel],.hub-form input[type=password],.hub-form input[type=date],.hub-form input[type=time],.hub-form input[type=number],.hub-form select,.hub-form textarea{width:100%;border:2px solid #C9B49A;border-radius:10px;background:#fff;color:#2B1A17;font:16px/1.4 Roboto,Arial,sans-serif;padding:12px 14px}
.hub-form input:focus,.hub-form textarea:focus,.hub-form select:focus{border-color:#E4853A;outline:none;box-shadow:0 0 0 3px rgba(228,133,58,.25)}
.hub-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
@media(max-width:600px){.hub-form .row2{grid-template-columns:1fr}}
.hub-form fieldset{border:0;padding:0;margin:0}
.hub-form .checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px 18px;margin:6px 0 4px}
.hub-form .checks label,.hub-form label.check{display:flex;gap:10px;align-items:flex-start;color:#2B1A17;font-weight:400;margin:0;line-height:1.45;cursor:pointer}
.hub-form input[type=checkbox]{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:#7C211E}
.hub-form .hint{display:block;font-size:14px;color:#5a4844;margin:4px 0 0;background:none;border:0;border-radius:0;padding:0}
.hub-form label .hint{font-weight:400}
.hub-form .err{display:block;color:#B3261E;font-weight:700;font-size:14px;margin-top:4px}
.hub-form .consent{background:#fff;border:2px solid #E7D7BF;border-radius:14px;padding:14px 16px;margin:18px 0 0}
.hub-form .consent label.check{font-size:15px}
.hub-form button[type=submit],.hub-btn{display:inline-flex;align-items:center;gap:10px;margin-top:22px;background:#7C211E;color:#F4EBDC;border:0;border-radius:999px;padding:15px 28px;font:800 15px/1 "Roboto Condensed",Roboto,sans-serif;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;min-height:48px;text-decoration:none}
.hub-form button[type=submit]:hover,.hub-btn:hover{background:#5e1714}
.hub-msg{border-radius:14px;padding:14px 18px;margin:0 0 18px;font-weight:500}
.hub-msg.ok{background:#E3F1E1;color:#1E4620;border:2px solid #9CC79A}
.hub-msg.bad{background:#FBE4E1;color:#7A1A12;border:2px solid #E3A49C}
.hub-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* ---------- new page parts (Advertise & Sponsor, Volunteer) ---------- */
.hub-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;margin-top:22px}
.hub-card{background:#fff;border-radius:18px;padding:22px 22px 20px;box-shadow:0 10px 30px rgba(124,33,30,.10);border-top:5px solid #E4853A}
.hub-card h3{margin:4px 0 8px;color:#7C211E;font-family:"Roboto Condensed",Roboto,sans-serif;font-size:1.35rem;line-height:1.15}
.hub-card .tag{display:inline-block;background:#F4EBDC;color:#7C211E;border-radius:999px;padding:4px 10px;font:800 .72rem/1.2 "Roboto Condensed",Roboto,sans-serif;text-transform:uppercase;letter-spacing:.1em}
.hub-card .tag.free{background:#E3F1E1;color:#1E4620}
.hub-card .price{font:900 1.6rem/1.1 "Roboto Condensed",Roboto,sans-serif;color:#2A0907;margin:6px 0 8px}
.hub-card p{margin:0 0 10px}
.hub-card ul{margin:6px 0 10px;padding-left:20px}
.hub-rates{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;margin:16px 0}
.hub-rates th,.hub-rates td{padding:12px 14px;text-align:left;border-bottom:1px solid #EFE3D2;vertical-align:top}
.hub-rates th{background:#7C211E;color:#F4EBDC;font:800 .85rem/1.2 "Roboto Condensed",Roboto,sans-serif;text-transform:uppercase;letter-spacing:.06em}
.hub-pledge{background:linear-gradient(135deg,#2A0907,#7C211E 60%,#B8461F);color:#F4EBDC;border-radius:18px;padding:22px 24px;font-size:1.15rem;line-height:1.5;margin:26px 0 0}
.hub-pledge b{color:#F6C27A}
.hub-note{font-size:.95rem;color:#5a4844}
