/*
Theme Name: CollectRobux
Version: 1.2.0
Requires PHP: 7.4
*/
:root{--navy:#101827;--panel:#1e293b;--green:#34d399}*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#172334;font:16px/1.65 system-ui,sans-serif}a{color:#08785b;text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible{outline:3px solid #f59e0b}img{max-width:100%;height:auto}header,footer{background:var(--navy);color:white}header a,footer a{color:white}.wrap{max-width:1180px;margin:auto;padding:20px}.brand{font-size:26px;font-weight:800}.brand span{color:var(--green)}nav ul{display:flex;flex-wrap:wrap;gap:18px;list-style:none;padding:0;margin:10px 0}nav li{position:relative}nav .sub-menu{display:none;position:absolute;background:var(--panel);padding:12px;min-width:190px;z-index:5}nav li:hover>.sub-menu,nav li:focus-within>.sub-menu{display:block}.hero{background:linear-gradient(120deg,#101827,#17463e);color:white;padding:48px 24px;border-radius:18px}.hero h1{font-size:clamp(30px,5vw,52px);line-height:1.15;max-width:720px}.hero p{max-width:680px}.button,button,input[type=submit]{display:inline-block;background:#08785b;color:white;padding:10px 18px;border:0;border-radius:8px;font-weight:700;cursor:pointer}.hero .button{background:var(--green);color:#10251e}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px}.tile,article,.panel{background:white;border:1px solid #dce3eb;border-radius:12px;padding:20px}.tile img{width:100%;aspect-ratio: 4/3;object-fit:contain}.tile h3{margin:8px 0}.section{margin:32px 0}.content{max-width:850px;margin:auto}input,textarea,select{max-width:100%;padding:10px;border:1px solid #9aa8b7;border-radius:6px}label{display:block;margin:10px 0}footer small{color:#cbd5e1}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;background:white;color:black;z-index:10}details{padding:12px;border-bottom:1px solid #dce3eb}summary{cursor:pointer} .layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:24px}@media(max-width:700px){.layout{grid-template-columns:1fr}.wrap{padding:14px}nav ul{gap:10px}nav .sub-menu{position:static}.hero{padding:24px 18px}} 
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:16px}.topbar form{display:flex;align-items:center;gap:8px}.topbar label{margin:0}.primary-nav{border-top:1px solid #334155;padding-block:6px}.primary-nav a{font-weight:600}.menu-toggle{display:none}.hero-grid{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:28px;padding:40px}.hero-grid h1{margin:16px 0;font-size:clamp(32px,4vw,52px)}.hero-grid img{width:100%}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.5px;color:#08785b}.hero .eyebrow{color:#6ee7b7}.hero .secondary{background:transparent;border:1px solid #6ee7b7;color:#fff}.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.topic{display:block;background:white;border:1px solid #dce3eb;border-radius:14px;padding:20px;color:#172334}.topic h3{margin:12px 0 4px}.topic p{font-size:14px;color:#475569}.topic small{color:#08785b;font-weight:700}.topic-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#d1fae5;color:#065f46;font-weight:900;font-size:23px}.safety{background:#e6f8f0;border-left:5px solid #08785b}.editorial{padding:28px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}.footer-grid ul{list-style:none;padding:0}.footer-grid li{margin:7px 0}.copyright{border-top:1px solid #334155;font-size:13px}.footer-grid h3{font-size:16px}.crm-calc{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.crm-calc p{grid-column:1/-1}.crm-calc input,.crm-calc select{display:block;width:100%}@media(max-width:800px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-grid{grid-template-columns:1fr;padding:24px}.hero-grid img{max-width:380px;margin:auto}.menu-toggle{display:block}.primary-nav{display:none}.primary-nav.open{display:block}.primary-nav ul{display:block}.primary-nav li{padding:7px 0}.primary-nav .sub-menu{display:block;position:static;padding-left:18px}.topbar{flex-wrap:wrap}.topbar form{order:3;width:100%}.footer-grid{grid-template-columns:1fr;gap:12px}}@media(max-width:400px){.topic{padding:12px}.crm-calc{grid-template-columns:1fr}}

.crm-amazon{display:inline-block;background:#ffb341;color:#17202a;padding:12px 18px;border-radius:7px;font-weight:700;text-decoration:none}.crm-section{margin:24px 0;padding:16px;border:1px solid #d5dfeb;border-radius:10px}.crm-section table{width:100%;border-collapse:collapse;overflow-wrap:anywhere}.crm-section th,.crm-section td{text-align:left;padding:10px;border-bottom:1px solid #d5dfeb}.crm-pros{border-left:4px solid #087c60}.crm-cons{border-left:4px solid #a33}.crm-section details{padding:10px;border-bottom:1px solid #ddd}

.topic-art{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:9px}.topic:hover{border-color:#08785b}.hero-grid img{border-radius:14px}.page-content{max-width:100%;overflow-wrap:anywhere}.page-content form[action*="admin-post.php"],.crm-contact-form{max-width:720px;display:grid;gap:16px;margin:24px 0}.page-content form[action*="admin-post.php"] label,.crm-contact-form label{display:grid;gap:6px;margin:0;font-weight:600}.page-content form[action*="admin-post.php"] input:not([type=hidden]),.page-content form[action*="admin-post.php"] textarea,.crm-contact-form input:not([type=hidden]),.crm-contact-form textarea{display:block;width:100%;font:inherit;padding:12px}.page-content form textarea,.crm-contact-form textarea{min-height:170px;resize:vertical}.page-content form button,.crm-contact-form button{justify-self:start}.crm-contact-notice{padding:14px;border-radius:8px;background:#e6f8f0;border:1px solid #08785b}.crm-contact-notice.error{background:#fff1f2;border-color:#b91c1c}.layout aside{min-width:0}.layout aside .grid{grid-template-columns:1fr}.topbar input[type=search]{min-width:0;width:100%}.hero .button{margin-bottom:8px}@media(max-width:480px){.topic-grid{grid-template-columns:1fr 1fr}.topic h3{font-size:16px}.page-content{padding:16px}.topbar form input{min-width:0}.hero-grid{gap:14px}}
/* 1.1.4: consistent artwork, accessible controls and responsive content */
.topic-grid{align-items:stretch}.topic{display:flex;flex-direction:column;gap:0;min-width:0;transition:border-color .15s,box-shadow .15s}.topic:hover,.topic:focus-visible{text-decoration:none;border-color:#08785b;box-shadow:0 5px 18px #10251e12}.topic-art{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;background:#e4f5ee}.topic p{margin:8px 0 16px}.topic small{margin-top:auto}.hero-grid>div{min-width:0}.hero-grid>img{display:block;height:auto}.page-content{width:100%;padding:clamp(18px,4vw,42px)}.page-content h1,.layout article h1{line-height:1.2;font-size:clamp(27px,4vw,40px);margin-top:0}.page-content form[action*="admin-post.php"],.crm-contact-form{padding:clamp(16px,3vw,28px);border:1px solid #dce3eb;border-radius:14px;background:#f8fafc;max-width:760px}.page-content form[action*="admin-post.php"] input:not([type=hidden]),.crm-contact-form input:not([type=hidden]),.crm-contact-form textarea,.page-content form[action*="admin-post.php"] textarea{background:#fff;color:#172334;border-color:#a6b5c4}.page-content form[action*="admin-post.php"] button,.crm-contact-form button{width:auto;min-height:44px;padding:12px 24px}.page-content form [hidden],.crm-contact-form [hidden]{display:none!important}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #08785b;outline-offset:2px}.layout article,.tile{min-width:0;overflow-wrap:anywhere}.layout article img,.page-content img{height:auto}.footer-grid a:hover{text-decoration:underline}.topbar form button,.menu-toggle{min-height:44px}.topbar input[type=search]{min-height:44px}.custom-logo{max-width:220px;height:auto}.crm-section{overflow-x:auto}.crm-contact-notice{overflow-wrap:anywhere}.crm-contact-notice.error{color:#991b1b}.copyright{color:#cbd5e1}@media(max-width:540px){.topic-grid{gap:12px}.topic{padding:12px}.topic p{font-size:13px}.hero-grid{padding:22px}.hero-grid h1{font-size:clamp(28px,8vw,40px)}.topbar form{flex-wrap:nowrap}.topbar form label{min-width:0;flex:1}.page-content form[action*="admin-post.php"] button,.crm-contact-form button{width:100%}}@media(max-width:340px){.topic-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.topic{transition:none}}

/* 1.1.5 brand and footer */
.brand-lockup{display:inline-flex;align-items:center;gap:10px;line-height:1.1;white-space:nowrap;text-decoration:none}.brand-lockup:hover{text-decoration:none}.brand-lockup img{display:block;width:48px;height:48px;flex:none}.brand-lockup .brand-word{color:#fff;font-weight:850;letter-spacing:-.7px;text-shadow:0 2px 2px #0006}.brand-lockup .brand-word span{color:#34d399}.footer-grid{grid-template-columns:1.15fr 1fr 1fr;align-items:start;gap:36px;padding-block:32px}.footer-grid h3{margin:0 0 16px}.footer-grid ul{margin:0}.footer-brand p{max-width:34ch;margin:16px 0;color:#e2e8f0}.footer-brand small{display:block;max-width:34ch}.footer-brand .brand-lockup{margin-bottom:4px}.footer-grid>div{min-width:0}.custom-logo-link{display:inline-flex;align-items:center}@media(max-width:800px){.footer-grid{grid-template-columns:1fr;gap:26px}.brand-lockup{font-size:23px;gap:7px}.brand-lockup img{width:38px;height:38px}.topbar{gap:12px}.topbar .custom-logo{max-width:180px}}@media(max-width:340px){.brand-lockup{font-size:19px}.brand-lockup img{width:32px;height:32px}.menu-toggle{padding-inline:10px}}

/* 1.1.8 article and product presentation */
.layout{align-items:start}.layout article,.page-content{min-width:0}.layout article> .wp-post-image,.page-content> .wp-post-image{display:block;width:100%;height:auto;border-radius:10px;margin:0 0 24px}.layout article table,.page-content table{width:100%;border-collapse:collapse;margin:20px 0;font-size:15px;table-layout:auto}.layout article th,.layout article td,.page-content th,.page-content td{padding:12px;text-align:left;vertical-align:top;border:1px solid #d5dfe5;overflow-wrap:anywhere}.layout article th,.page-content th{background:#08785b;color:white;font-weight:700}.layout article tbody tr:nth-child(even),.page-content tbody tr:nth-child(even){background:#f1f5f9}.layout article table a,.page-content table a{overflow-wrap:anywhere}.layout article .wp-block-table,.page-content .wp-block-table{max-width:100%;overflow-x:auto}.cr-sidebar{display:grid;gap:18px;min-width:0}.cr-sidebar .panel{padding:18px;min-width:0}.cr-sidebar h2{font-size:20px;line-height:1.3;margin:0 0 14px}.cr-sidebar .grid{grid-template-columns:1fr;gap:12px}.cr-sidebar .tile{padding:12px}.cr-sidebar .tile h3{font-size:16px;line-height:1.4}.cr-sidebar .tile p{font-size:14px;margin:8px 0}.cr-sidebar ul{list-style:none;padding:0;margin:0}.cr-sidebar li+li{border-top:1px solid #dce3eb}.cr-sidebar li a{display:block;padding:9px 0;font-weight:600}.cr-sidebar .cr-calculator-link{background:#e6f8f0}.cr-sidebar .button{color:#fff}.cr-sidebar p{font-size:14px}.layout article pre,.page-content pre{max-width:100%;overflow:auto}@media(max-width:700px){.layout article{padding:16px}.layout article th,.layout article td,.page-content th,.page-content td{padding:8px;font-size:13px}.cr-sidebar{gap:14px}}

/* Category archives: fixed responsive columns, independent of item count */
.cr-category-heading h1{margin:0 0 12px;line-height:1.2}.cr-category-heading p:last-child{margin-bottom:0}.cr-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}.cr-category-card{padding:0;overflow:hidden;min-width:0;display:flex;flex-direction:column}.cr-category-image{display:block;aspect-ratio:16/9;background:#e8f2ef;overflow:hidden}.cr-category-image img{display:block;width:100%;height:100%;object-fit:contain}.cr-category-body{padding:18px;display:flex;flex-direction:column;flex:1;gap:12px}.cr-category-body h2{font-size:20px;line-height:1.35;margin:0;overflow-wrap:anywhere}.cr-category-body p{font-size:14px;color:#475569;margin:0;overflow-wrap:anywhere}.cr-category-read{margin-top:auto;font-size:14px;font-weight:700}.category .pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}.category .page-numbers{padding:8px 12px;border:1px solid #dce3eb;border-radius:6px;background:white}.category .page-numbers.current{background:#08785b;color:white}@media(max-width:900px){.cr-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cr-category-grid{grid-template-columns:minmax(0,1fr);gap:14px}.cr-category-body{padding:16px}}

.cr-latest-guides .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cr-latest-guides .tile img{display:block;aspect-ratio:16/9;object-fit:contain}.cr-guides-more{text-align:center;margin:24px 0 0}@media(max-width:900px){.cr-latest-guides .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cr-latest-guides .grid{grid-template-columns:1fr}}

/* 1.2.0: compact featured merchandise and product detail sections */
.cr-featured-products .grid,.tax-cr_product_category .grid,.post-type-archive-cr_product .grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.cr-featured-products .tile,.tax-cr_product_category .tile,.post-type-archive-cr_product .tile{padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.cr-featured-products .tile img,.tax-cr_product_category .tile img,.post-type-archive-cr_product .tile img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:7px;background:#f5f7fa}
.cr-featured-products .tile h3,.tax-cr_product_category .tile h2,.post-type-archive-cr_product .tile h2{font-size:17px;line-height:1.4;margin:10px 0 0}
.cr-featured-products .tile p{font-size:14px;margin:0;color:#475569}.cr-featured-products .tile small{display:block;font-size:12px;margin-top:auto}.cr-featured-products .crm-amazon{text-align:center;font-size:14px;padding:10px 8px;overflow-wrap:anywhere}
.single-cr_product .crm-section{padding:12px 16px;margin:16px 0}.single-cr_product .crm-section>h2,.single-cr_product .crm-section>h3{margin:0 0 8px;line-height:1.35}.single-cr_product .crm-section>p:last-child{margin:0}.cr-product-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.cr-product-overview>.crm-section{margin:0;min-width:0}.cr-product-overview>.crm-section h2,.cr-product-overview>.crm-section h3{font-size:17px}
@media(max-width:900px){.cr-featured-products .grid,.tax-cr_product_category .grid,.post-type-archive-cr_product .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cr-featured-products .grid,.tax-cr_product_category .grid,.post-type-archive-cr_product .grid,.cr-product-overview{grid-template-columns:minmax(0,1fr)}}
