/*
Theme Name: Ronidex
Theme URI: https://ronidex.ca/
Author: Ronidex
Description: Lightweight block theme for RONIDEX, the Canadian Small Business Hub. Documentation-style articles, topic hubs, fast custom calculators, global search, structured data and a one-click starter content setup. No page builder required.
Version: 1.0.8
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ronidex
Tags: block-theme, full-site-editing, blog, news, education, two-columns, three-columns, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   Base
   ========================================================================== */
*{box-sizing:border-box}
html{scroll-padding-top:96px}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(h1,h2,h3,h4){text-wrap:balance}
:focus-visible{outline:2px solid var(--wp--preset--color--primary);outline-offset:2px;border-radius:4px}
.rx-num,.wp-block-table td{font-variant-numeric:tabular-nums}
.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;clip-path:none;height:auto;width:auto;left:16px;top:8px;z-index:100000;background:var(--wp--preset--color--primary);color:#fff;padding:8px 12px;border-radius:8px}
.rx-eyebrow,.rx-eyebrow a{font-size:13px;line-height:20px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--primary);text-decoration:none}
.rx-muted{color:var(--wp--preset--color--muted)}

/* ==========================================================================
   Header
   ========================================================================== */
.rx-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--wp--preset--color--border)}
.admin-bar .rx-header{top:32px}
@media (max-width:782px){.admin-bar .rx-header{top:0}}
.rx-header-inner{min-height:68px;gap:24px}
.rx-logo{display:inline-flex;align-items:center;gap:10px;color:var(--wp--preset--color--text);font-weight:700;letter-spacing:.14em;font-size:17px;text-decoration:none}
.rx-logo:hover{color:var(--wp--preset--color--text);text-decoration:none}
.rx-header .wp-block-navigation{flex:1;justify-content:center}
.rx-header .wp-block-navigation .wp-block-navigation-item__content{white-space:nowrap;padding:8px 12px;border-radius:8px;color:var(--wp--preset--color--text-secondary);font-size:15px;font-weight:500;text-decoration:none}
.rx-header .wp-block-navigation .wp-block-navigation-item__content:hover{background:var(--wp--preset--color--soft);color:var(--wp--preset--color--text)}
.rx-header .wp-block-navigation .current-menu-item>.wp-block-navigation-item__content,
.rx-header .wp-block-navigation [aria-current="page"]{color:var(--wp--preset--color--primary);background:var(--wp--preset--color--primary-soft)}
.rx-header-tools{display:flex;gap:8px;align-items:center}
.rx-search-btn{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border:1px solid var(--wp--preset--color--border);border-radius:8px;background:#fff;color:var(--wp--preset--color--muted);font:inherit;font-size:14px;cursor:pointer;min-width:210px}
.rx-search-btn:hover{border-color:var(--wp--preset--color--primary)}
.rx-search-btn kbd{margin-left:auto;font-family:inherit;font-size:12px;border:1px solid var(--wp--preset--color--border);border-radius:4px;padding:0 6px;line-height:18px}
@media (max-width:1100px){
  .rx-search-btn{min-width:0;width:40px;padding:0;justify-content:center}
  .rx-search-btn span,.rx-search-btn kbd{display:none}
  .rx-header .wp-block-navigation{flex:0 0 auto;order:3}
}
@media (max-width:599px){.rx-header .wp-block-navigation__responsive-container-open{width:40px;height:40px;border:1px solid var(--wp--preset--color--border);border-radius:8px;display:flex;align-items:center;justify-content:center}}
/* Tablet (600-959px): the eight links don't fit, so use the same menu button and overlay as mobile. */
@media (min-width:600px) and (max-width:959px){
  .rx-header .wp-block-navigation__responsive-container-open:not(.always-shown){width:40px;height:40px;border:1px solid var(--wp--preset--color--border);border-radius:8px;display:flex;align-items:center;justify-content:center}
  .rx-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none}
}

/* ==========================================================================
   Search overlay
   ========================================================================== */
.rx-sov{position:fixed;inset:0;z-index:100001;background:rgba(15,17,22,.45);display:flex;justify-content:center;align-items:flex-start;padding:10vh 16px 16px}
.rx-sov[hidden]{display:none}
.rx-sbox{width:100%;max-width:680px;background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.18)}
.rx-sbox form{display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid var(--wp--preset--color--border);margin:0}
.rx-sbox input[type=search]{flex:1;border:0;height:58px;font:inherit;font-size:18px;outline:none;background:transparent;color:var(--wp--preset--color--text)}
.rx-sbox .rx-esc{border:1px solid var(--wp--preset--color--border);border-radius:6px;background:#fff;color:var(--wp--preset--color--muted);font:inherit;font-size:12px;height:28px;padding:0 8px;cursor:pointer}
.rx-sres{max-height:60vh;overflow:auto;padding:8px}
.rx-sres h6{margin:12px 10px 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--muted);font-weight:600}
.rx-sres a{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:8px;color:var(--wp--preset--color--text);font-size:15px;line-height:22px;text-decoration:none}
.rx-sres a small{color:var(--wp--preset--color--muted);font-size:13px;flex:none}
.rx-sres a:hover,.rx-sres a.is-sel{background:var(--wp--preset--color--primary-soft)}
.rx-sres .rx-empty{padding:18px 12px;color:var(--wp--preset--color--text-secondary);font-size:15px;margin:0}

/* ==========================================================================
   Cards, buttons, chips
   ========================================================================== */
.rx-card,.is-style-rx-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:24px;background:#fff;color:var(--wp--preset--color--text);text-decoration:none;transition:border-color .15s,background .15s;height:100%}
a.rx-card:hover,.is-style-rx-card:hover{border-color:var(--wp--preset--color--primary);background:var(--wp--preset--color--primary-tint);color:var(--wp--preset--color--text);text-decoration:none}
.rx-card h3,.rx-card h4{margin:0;font-size:18px;line-height:26px;font-weight:600}
.rx-card p{margin:0;font-size:15px;line-height:24px;color:var(--wp--preset--color--text-secondary)}
.rx-card .rx-ic{width:40px;height:40px;border-radius:10px;background:var(--wp--preset--color--primary-soft);color:var(--wp--preset--color--primary);display:flex;align-items:center;justify-content:center}
.rx-card .rx-go{margin-top:auto;padding-top:6px;font-size:14px;font-weight:600;color:var(--wp--preset--color--primary)}
.rx-cat{font-size:13px;font-weight:600;color:var(--wp--preset--color--primary)}
.rx-meta{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:13px;line-height:20px;color:var(--wp--preset--color--muted)}
.rx-chip{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--wp--preset--color--section);color:var(--wp--preset--color--text-secondary)}
.rx-chip.is-blue{background:var(--wp--preset--color--primary-soft);color:var(--wp--preset--color--primary)}
.rx-chip.is-ok{background:#E9F4EC;color:var(--wp--preset--color--success)}
.rx-chip.is-warn{background:#FDF3E6;color:#A15800}
.rx-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.rx-grid.is-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.rx-grid.is-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.rx-grid.is-5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1000px){.rx-grid.is-4,.rx-grid.is-5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){.rx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.rx-grid,.rx-grid.is-2,.rx-grid.is-4,.rx-grid.is-5{grid-template-columns:1fr}}
.rx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border-radius:8px;font:inherit;font-size:15px;font-weight:600;border:1px solid transparent;text-decoration:none;cursor:pointer}
.rx-btn.is-primary{background:var(--wp--preset--color--primary);color:#fff}
.rx-btn.is-primary:hover{background:var(--wp--preset--color--primary-hover);color:#fff}
.rx-btn.is-secondary{background:#fff;color:var(--wp--preset--color--text);border-color:var(--wp--preset--color--border)}
.rx-btn.is-secondary:hover{border-color:var(--wp--preset--color--primary);color:var(--wp--preset--color--primary)}
.rx-btn[disabled]{opacity:.55;cursor:not-allowed}
.wp-block-button.is-style-outline .wp-block-button__link{border:1px solid var(--wp--preset--color--border)!important;color:var(--wp--preset--color--text);background:#fff}
.wp-block-button.is-style-outline .wp-block-button__link:hover{border-color:var(--wp--preset--color--primary)!important;color:var(--wp--preset--color--primary)}

/* Query loop cards */
.rx-post-cards .wp-block-post{border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:24px;background:#fff;display:flex;flex-direction:column;gap:8px;transition:border-color .15s,background .15s}
.rx-post-cards .wp-block-post:hover{border-color:var(--wp--preset--color--primary);background:var(--wp--preset--color--primary-tint)}
.rx-post-cards .wp-block-post-title{margin:0}
.rx-post-cards .wp-block-post-title a{color:var(--wp--preset--color--text);text-decoration:none}
.rx-post-cards .wp-block-post-excerpt{margin:0}
.rx-post-cards .wp-block-post-excerpt__excerpt{margin:0;font-size:15px;line-height:24px;color:var(--wp--preset--color--text-secondary)}
.rx-post-cards .wp-block-post-terms a{font-size:13px;font-weight:600;text-decoration:none}

/* ==========================================================================
   Hero & sections
   ========================================================================== */
.rx-hero{border-bottom:1px solid var(--wp--preset--color--border)}
.rx-hero-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:56px;align-items:center}
@media (max-width:1000px){.rx-hero-grid{grid-template-columns:1fr}}
.rx-hero h1{max-width:15ch}
.rx-facts{display:flex;gap:28px;flex-wrap:wrap;margin-top:40px}
.rx-facts div{font-size:14px;line-height:22px;color:var(--wp--preset--color--muted)}
.rx-facts b{display:block;color:var(--wp--preset--color--text);font-size:15px;font-weight:600}
.rx-ledger{border:1px solid var(--wp--preset--color--border);border-radius:12px;background:#fff;overflow:hidden}
.rx-ledger-h{display:flex;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--wp--preset--color--border);background:var(--wp--preset--color--soft);font-size:14px;font-weight:600}
.rx-ledger-h span{font-weight:500;color:var(--wp--preset--color--muted)}
.rx-ledger table{width:100%;border-collapse:collapse;font-size:14px;line-height:22px}
.rx-ledger td,.rx-ledger th{padding:10px 18px;border-bottom:1px solid var(--wp--preset--color--border)}
.rx-ledger th{text-align:left;font-weight:400}
.rx-ledger td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.rx-ledger tr.is-total td,.rx-ledger tr.is-total th{font-weight:650;border-bottom:0;background:var(--wp--preset--color--primary-tint)}
.rx-ledger .rx-note{padding:12px 18px;font-size:13px;line-height:20px;color:var(--wp--preset--color--muted);border-top:1px solid var(--wp--preset--color--border);margin:0}
.rx-shead{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:32px}
.rx-shead h2{margin:0}
.rx-shead p{margin:8px 0 0;color:var(--wp--preset--color--text-secondary);max-width:620px}
.rx-more{font-weight:600;font-size:15px;text-decoration:none}
.rx-band-alt{background:var(--wp--preset--color--soft);border-block:1px solid var(--wp--preset--color--border)}
.rx-phead{background:var(--wp--preset--color--soft);border-bottom:1px solid var(--wp--preset--color--border)}

/* Breadcrumbs */
.rx-crumbs{font-size:14px;line-height:22px;color:var(--wp--preset--color--muted);margin-bottom:16px}
.rx-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.rx-crumbs li+li::before{content:"/";margin-right:6px;color:var(--wp--preset--color--border)}
.rx-crumbs a{color:var(--wp--preset--color--text-secondary);text-decoration:none}
.rx-crumbs a:hover{text-decoration:underline}

/* ==========================================================================
   Article (docs) layout
   ========================================================================== */
.rx-doc{display:grid!important;grid-template-columns:232px minmax(0,780px) 220px;gap:48px!important;justify-content:center;align-items:start}
.rx-doc>*{margin:0!important;max-width:none!important}
.rx-doc-side,.rx-doc-aside{position:sticky;top:100px;max-height:calc(100vh - 120px);overflow:auto;font-size:14px;line-height:22px}
.admin-bar .rx-doc-side,.admin-bar .rx-doc-aside{top:132px}
@media (max-width:1180px){.rx-doc{grid-template-columns:220px minmax(0,780px);gap:40px!important}.rx-doc-aside{display:none}}
@media (max-width:880px){.rx-doc{grid-template-columns:minmax(0,1fr)}.rx-doc-side{position:static;max-height:none}}
.rx-snav h5,.rx-snav .rx-snav-h{font-family:var(--wp--preset--font-family--heading);margin:0 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--muted);font-weight:600}
.rx-snav ul{list-style:none;margin:0 0 16px;padding:0}
.rx-snav .rx-grp{font-weight:600;color:var(--wp--preset--color--text);padding:6px 10px 2px}
.rx-snav a{display:block;padding:5px 10px;border-radius:6px;color:var(--wp--preset--color--text-secondary);text-decoration:none}
.rx-snav a:hover{background:var(--wp--preset--color--soft);color:var(--wp--preset--color--text)}
.rx-snav a[aria-current="page"]{background:var(--wp--preset--color--primary-soft);color:var(--wp--preset--color--primary);font-weight:600}
.rx-snav details summary{display:none;list-style:none}
@media (max-width:880px){
  .rx-snav details{border:1px solid var(--wp--preset--color--border);border-radius:10px}
  .rx-snav details summary{display:flex;justify-content:space-between;padding:12px 16px;cursor:pointer;font-weight:600;font-size:15px}
  .rx-snav details>div{padding:0 12px 12px}
}
.rx-mini{border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:16px;font-size:14px;line-height:21px;margin-bottom:16px}
.rx-mini h5,.rx-mini .rx-mini-h{font-family:var(--wp--preset--font-family--heading);color:var(--wp--preset--color--text);margin:0 0 10px;font-size:13px;font-weight:600}
.rx-mini ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rx-mini a{text-decoration:none}
.rx-toc a{display:block;border-left:2px solid var(--wp--preset--color--border);padding-left:12px;color:var(--wp--preset--color--primary)}
.rx-toc a.is-active{border-left-color:var(--wp--preset--color--primary);font-weight:600}
.rx-intro{font-size:19px;line-height:31px;color:var(--wp--preset--color--text-secondary)}
.rx-byline{display:flex;flex-wrap:wrap;gap:10px 24px;padding-block:16px;border-block:1px solid var(--wp--preset--color--border);font-size:14px;line-height:22px;color:var(--wp--preset--color--text-secondary)}
.rx-byline b{color:var(--wp--preset--color--text);font-weight:600}
.rx-article-content h2{scroll-margin-top:100px}
.rx-article-content>*+h2{margin-top:48px}

/* Callouts: block styles on core/group */
.is-style-rx-tip,.is-style-rx-warning,.is-style-rx-example{border:1px solid var(--wp--preset--color--border);border-left:4px solid var(--wp--preset--color--primary);background:var(--wp--preset--color--primary-tint);border-radius:8px;padding:16px 20px}
.is-style-rx-tip>*,.is-style-rx-warning>*,.is-style-rx-example>*{margin-block:0}
.is-style-rx-tip>*+*,.is-style-rx-warning>*+*,.is-style-rx-example>*+*{margin-top:6px}
.is-style-rx-tip>p:first-child strong,.is-style-rx-warning>p:first-child strong,.is-style-rx-example>p:first-child strong{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--wp--preset--color--primary)}
.is-style-rx-warning{border-left-color:var(--wp--preset--color--warning);background:#FDF3E6}
.is-style-rx-warning>p:first-child strong{color:var(--wp--preset--color--warning)}
.is-style-rx-example{border-left-color:var(--wp--preset--color--success);background:#E9F4EC}
.is-style-rx-example>p:first-child strong{color:var(--wp--preset--color--success)}

/* Tables */
.wp-block-table{overflow-x:auto;border:1px solid var(--wp--preset--color--border);border-radius:10px}
.wp-block-table table{border-collapse:collapse;width:100%;font-size:15px;line-height:23px}
/* Only wide tables (4+ columns) keep a minimum width and scroll sideways on small screens. */
.wp-block-table table:has(tr > :nth-child(4)){min-width:520px}
.wp-block-table thead{border-bottom:0}
.wp-block-table th{background:var(--wp--preset--color--soft);text-align:left;font-weight:600;font-size:14px}
.wp-block-table th,.wp-block-table td{padding:11px 14px;border:0;border-bottom:1px solid var(--wp--preset--color--border);vertical-align:top}
.wp-block-table tr:last-child td{border-bottom:0}
/* Row headers look like ordinary cells; the header row keeps its own style. */
.wp-block-table tbody th{background:none;font-weight:400;font-size:inherit}
.wp-block-table tbody tr:last-child th{border-bottom:0}
.wp-block-table figcaption{font-size:13px;color:var(--wp--preset--color--muted);padding:8px 14px}

/* Sources */
.is-style-rx-sources{margin-top:48px;padding-top:24px;border-top:1px solid var(--wp--preset--color--border);font-size:15px;line-height:24px}

/* CTA + newsletter */
.rx-cta-box{border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:var(--wp--preset--color--soft)}
.rx-cta-box h4{margin:0}
.rx-news{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:36px;background:#fff}
@media (max-width:860px){.rx-news{grid-template-columns:1fr;padding:24px}}
.rx-news h3{margin:6px 0 0}
.rx-news form{display:flex;gap:10px;flex-wrap:wrap}
.rx-news input[type=email]{flex:1;min-width:0}
.rx-formmsg{font-size:14px;line-height:22px;margin:10px 0 0}
.rx-formmsg.is-ok{color:var(--wp--preset--color--success)}
.rx-formmsg.is-err{color:var(--wp--preset--color--error)}

/* Forms */
.rx-field{display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:20px;font-weight:600;color:var(--wp--preset--color--text)}
.rx-field .rx-hint{font-weight:400;color:var(--wp--preset--color--muted);font-size:13px}
.rx-news input,.rx-tool input,.rx-tool select,.rx-contact input,.rx-contact select,.rx-contact textarea,.rx-filter input{height:44px;padding:0 12px;border:1px solid #80868B;border-radius:8px;background:#fff;color:var(--wp--preset--color--text);font:inherit;font-size:16px;width:100%}
.rx-contact textarea{height:auto;min-height:140px;padding:10px 12px}
.rx-money{position:relative;display:block}
.rx-money::before{content:"$";position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--wp--preset--color--muted);font-size:15px;pointer-events:none;font-weight:400}
.rx-money input{padding-left:24px}
.rx-pct{position:relative;display:block}
.rx-pct::after{content:"%";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--wp--preset--color--muted);font-size:15px;pointer-events:none;font-weight:400}
.rx-pct input{padding-right:28px}
.rx-contact{display:grid;gap:16px;max-width:640px}
.rx-hp{position:absolute!important;left:-9999px!important}

/* ==========================================================================
   Tools
   ========================================================================== */
.rx-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:24px}
.rx-filter input{max-width:320px}
.rx-seg{display:flex;gap:6px;flex-wrap:wrap}
.rx-seg button{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--wp--preset--color--border);background:#fff;color:var(--wp--preset--color--text-secondary);font:inherit;font-size:14px;cursor:pointer}
.rx-seg button[aria-pressed="true"]{background:var(--wp--preset--color--primary-soft);border-color:var(--wp--preset--color--primary);color:var(--wp--preset--color--primary);font-weight:600}
.rx-tool{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);border:1px solid var(--wp--preset--color--border);border-radius:12px;overflow:hidden;background:#fff;margin-block:24px}
.rx-tool .rx-in{padding:28px;display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;align-content:start}
.rx-tool .rx-full{grid-column:1/-1}
.rx-tool .rx-out{padding:28px;background:var(--wp--preset--color--soft);border-left:1px solid var(--wp--preset--color--border);display:flex;flex-direction:column}
.rx-out .rx-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--wp--preset--color--border);font-size:15px;line-height:24px}
.rx-out .rx-row b{font-variant-numeric:tabular-nums;font-weight:600}
.rx-out .rx-big{padding:4px 0 10px;border:0;display:block}
.rx-out .rx-big span{font-size:14px;color:var(--wp--preset--color--text-secondary)}
.rx-out .rx-big b{display:block;font-size:34px;line-height:42px;font-weight:700;letter-spacing:-.02em}
.rx-out .rx-explain{margin:14px 0 0;font-size:14px;line-height:22px;color:var(--wp--preset--color--text-secondary)}
.rx-out .is-neg{color:var(--wp--preset--color--error)}
.rx-lines{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}
.rx-lines .rx-ln{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;align-items:center}
.rx-lines.is-two .rx-ln{grid-template-columns:2fr 1fr}
.rx-lines .is-hdr{font-size:13px;font-weight:600;color:var(--wp--preset--color--muted)}
.rx-bars{display:flex;align-items:flex-end;gap:6px;height:90px;margin-top:14px;border-bottom:1px solid var(--wp--preset--color--border)}
.rx-bars div{flex:1;background:var(--wp--preset--color--primary);border-radius:4px 4px 0 0;min-height:2px}
.rx-bars div.is-neg{background:var(--wp--preset--color--error)}
.rx-barlab{display:flex;gap:6px;font-size:12px;color:var(--wp--preset--color--muted)}
.rx-barlab span{flex:1;text-align:center}
@media (max-width:860px){.rx-tool{grid-template-columns:1fr}.rx-tool .rx-out{border-left:0;border-top:1px solid var(--wp--preset--color--border)}}
@media (max-width:620px){.rx-tool .rx-in{grid-template-columns:1fr;padding:20px}.rx-tool .rx-out{padding:20px}}

/* Hub */
.rx-hub{display:grid;grid-template-columns:1fr 1fr;gap:40px 48px}
@media (max-width:860px){.rx-hub{grid-template-columns:1fr}}
.rx-hub h3{font-size:20px;line-height:28px;font-weight:650;padding-bottom:12px;border-bottom:1px solid var(--wp--preset--color--border);margin:0 0 6px}
.rx-hub ul{list-style:none;margin:0;padding:0}
.rx-hub li a{display:flex;justify-content:space-between;gap:12px;padding:9px 0;color:var(--wp--preset--color--text);border-bottom:1px dashed var(--wp--preset--color--border);font-size:16px;line-height:24px;text-decoration:none}
.rx-hub li a:hover{color:var(--wp--preset--color--primary)}
.rx-hub li a small{color:var(--wp--preset--color--muted);flex:none}

/* Footer */
.rx-footer{border-top:1px solid var(--wp--preset--color--border);background:var(--wp--preset--color--soft)}
.rx-fgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
@media (max-width:860px){.rx-fgrid{grid-template-columns:1fr 1fr}}
.rx-fgrid h6,.rx-fgrid .rx-fh{font-family:var(--wp--preset--font-family--heading);color:var(--wp--preset--color--text);margin:0 0 12px;font-size:13px;font-weight:600}
.rx-fgrid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:22px}
.rx-fgrid a{color:var(--wp--preset--color--text-secondary);text-decoration:none}
.rx-fgrid a:hover{color:var(--wp--preset--color--primary)}
.rx-fbot{margin-top:40px;padding-top:20px;border-top:1px solid var(--wp--preset--color--border);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;line-height:20px;color:var(--wp--preset--color--muted)}

/* Mobile type */
@media (max-width:620px){
  h1,.wp-block-post-title,.wp-block-query-title{font-size:36px!important;line-height:1.15!important}
  h2{font-size:28px!important}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Featured guides */
.rx-feature{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}
.rx-feature .is-lead{grid-row:span 2}
.rx-fcard.is-lead h3{font-size:26px;line-height:34px;font-weight:650}
.rx-fcard.is-lead p{font-size:17px;line-height:28px}
.rx-fcard.is-planned .rx-soon{color:var(--wp--preset--color--muted);font-weight:500}
@media (max-width:1000px){.rx-feature{grid-template-columns:1fr}.rx-feature .is-lead{grid-row:auto}}

/* Typography: Google Sans Flex for headings, logo, buttons and card titles; Roboto for body text */
.rx-logo,.rx-btn,.rx-card h3,.rx-card h4,.rx-hub h3,.rx-news h3,.rx-cta-box h4,.rx-out .rx-big b,.rx-shead h2{font-family:var(--wp--preset--font-family--heading)}
.rx-card h3,.rx-card h4,.rx-hub h3,.rx-cta-box h4{font-weight:500}
.rx-logo{font-weight:600}
.rx-out .rx-big b{font-weight:500}
/* ==========================================================================
   Phase 2B: hub pages, resources, services, invoice lines
   ========================================================================== */
.rx-field[hidden]{display:none}
/* Invoice lines: item, type, quantity, unit price. The description takes its own row at every width, so longer item names are not cut off. */
.rx-lines.is-four .rx-ln{grid-template-columns:1.2fr .7fr 1fr}
.rx-lines.is-four .rx-ln>:first-child{grid-column:1/-1}
.rx-lines.is-four .rx-ln:not(.is-hdr)+.rx-ln{padding-top:10px;border-top:1px dashed var(--wp--preset--color--border)}
/* Hub page body */
.rx-hubbody{display:flex;flex-direction:column;gap:56px}
.rx-hsec-h{margin:0 0 16px;font-size:26px;line-height:34px}
.rx-hsec-lead{margin:0 0 20px;max-width:70ch;font-size:18px;line-height:29px;color:var(--wp--preset--color--text-secondary)}
.rx-keyt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rx-keyt>div{border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:20px 24px;background:#fff}
.rx-keyt h3{margin:0 0 6px;font-family:var(--wp--preset--font-family--heading);font-size:18px;line-height:26px;font-weight:500}
.rx-keyt p{margin:0;font-size:15px;line-height:24px;color:var(--wp--preset--color--text-secondary)}
.rx-keyt-go{display:inline-block;margin-top:10px;font-size:14px;line-height:22px;font-weight:600;text-decoration:none}
.rx-keyt-go:hover{text-decoration:underline}
.rx-hres{margin:16px 0 0;max-width:520px}
.rx-hrel{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rx-hrel a{display:flex;flex-direction:column;gap:4px;height:100%;padding:16px 20px;border:1px solid var(--wp--preset--color--border);border-radius:12px;background:#fff;color:var(--wp--preset--color--text);text-decoration:none}
.rx-hrel a:hover{border-color:var(--wp--preset--color--primary);background:var(--wp--preset--color--primary-tint)}
.rx-hrel b{font-family:var(--wp--preset--font-family--heading);font-weight:500;font-size:17px;line-height:25px}
.rx-hrel span{font-size:14px;line-height:22px;color:var(--wp--preset--color--text-secondary)}
.rx-cta-h{margin:0;font-family:var(--wp--preset--font-family--heading);font-size:22px;line-height:30px;font-weight:500}
.rx-soon-box{border:1px solid var(--wp--preset--color--border);border-radius:12px;padding:28px;background:#fff}
.rx-soon-box .rx-hsec-h{margin:12px 0 8px}
.rx-soon-box p{margin:0;max-width:70ch;color:var(--wp--preset--color--text-secondary)}
.rx-soon-box .rx-soon-sub{margin-top:16px;font-weight:600;color:var(--wp--preset--color--text)}
.rx-soon-box ul{margin:8px 0 0;padding-left:20px}
.rx-soon-chip{margin:0 0 10px}
@media (max-width:860px){.rx-keyt,.rx-hrel{grid-template-columns:1fr}}
/* Resource cards */
.rx-res .rx-res-for{font-size:14px;line-height:22px}
.rx-res .rx-res-for b{color:var(--wp--preset--color--text);font-weight:600}
.rx-res-list{margin:0;padding-left:18px;font-size:14px;line-height:22px;color:var(--wp--preset--color--text-secondary)}
.rx-res-dl{margin-top:auto;align-self:flex-start;height:42px}
