/*
Theme Name: Chipotle Menu
Theme URI: https://chipotalmenus.com/
Author: chipotalmenus.com
Description: Theme for chipotalmenus.com – the full Chipotle menu with prices, pictures and nutrition. On activation it creates all 25 pages (Gutenberg blocks), sets the homepage, pretty permalinks, and fills Rank Math SEO titles and descriptions.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.9
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: chipotle-menu
*/

/* ---------- Header (from the design) ---------- */
body{margin:0;background:#fffbf5}
.cmg-h{position:relative;z-index:50}
a{color:#a3241a}a:hover{color:#7c1a12}
p strong,li strong,td strong{font-weight:600}
.cmg-in{max-width:1240px;margin:0 auto;padding:0 24px;min-height:78px;display:flex;align-items:center;gap:20px}
.cmg-logo{display:flex;align-items:center;gap:11px;text-decoration:none;flex:none}
.cmg-mark{width:48px;height:48px;border-radius:50%;background:#ffc531;box-shadow:inset 0 0 0 3px #ffc531,inset 0 0 0 4.5px #3b1308;display:flex;align-items:center;justify-content:center;flex:none;color:#3b1308;font-weight:700;font-size:12.5px;line-height:1;letter-spacing:-0.2px;padding-top:1px;box-sizing:border-box}
.cmg-nav{flex:1;display:flex;justify-content:center;flex-wrap:wrap;gap:2px 24px;font-size:13.28px;font-weight:600;letter-spacing:0.3px;text-transform:uppercase}
.cmg-nav a{color:#fff6e9;text-decoration:none;padding:10px 0}
.cmg-nav a:hover{color:#ffc531}
.cmg-nav a.on{color:#ffc531;box-shadow:inset 0 -3px 0 #ffc531}
.cmg-search{position:relative;display:flex;align-items:center;gap:8px;background:#ffffff;border-radius:99px;padding:0 14px;min-height:44px;flex:0 1 250px}
.cmg-burger{display:none;position:relative;margin-left:auto}
.cmg-burger summary{list-style:none;cursor:pointer;width:44px;height:44px;border-radius:10px;background:#ffc531;display:flex;align-items:center;justify-content:center}
.cmg-burger summary::-webkit-details-marker{display:none}
.cmg-drop{position:absolute;right:0;top:54px;z-index:60;width:min(300px,calc(100vw - 32px));background:#ffffff;border-radius:14px;box-shadow:0 14px 34px rgba(40,10,0,0.28);padding:12px}
.cmg-drop nav{display:flex;flex-direction:column;margin-top:8px}
.cmg-drop nav a{color:#2a1810;text-decoration:none;font-weight:600;font-size:15px;padding:11px 10px;border-radius:8px}
.cmg-drop nav a:hover{background:#fff3e6;color:#a3241a}
.cmg-search-m{background:#fff3e6;border:1px solid #f3dcc2;flex:none}
@media (max-width:900px){
.cmg-in{padding:0 16px;min-height:70px;gap:12px}
.cmg-nav,.cmg-in>.cmg-search{display:none}
.cmg-burger{display:block}
.cmg-cats{justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding:0 16px!important}
.cmg-cats a{white-space:nowrap}
}
button:focus-visible,a:focus-visible{outline:3px solid #ffc531;outline-offset:2px}
a:focus-visible{outline:3px solid #ffc531;outline-offset:2px}
.bw-mbar{display:none}
@media (max-width: 960px){.bw-mbar{display:flex}}
.hero-bowl{display:block;width:112%;max-width:600px;height:auto;margin-left:-12%;filter:drop-shadow(0 18px 28px rgba(40,10,0,0.35))}
@media (max-width:1280px){.hero-bowl{width:100%;margin-left:0}}
.nc-mbar{display:none}
@media (max-width: 960px){.nc-mbar{display:flex}}
.cpn{display:grid;grid-template-columns:180px 1fr 210px}
@media (max-width:640px){.cpn{grid-template-columns:1fr}.cpn-r{border-left:0!important;border-top:1.5px dashed #e3b98a}.cpn-l{justify-content:flex-start!important}}

/* ---------- Page & content layout ---------- */
.cmg-page{background:#fffbf5;font-family:'Poppins',system-ui,sans-serif;font-size:16px;line-height:1.65;color:#1a1a1a;min-height:100vh;overflow-x:clip}
.cmg-skip{position:absolute;left:-9999px;top:0;z-index:100;background:#ffc531;color:#3b1308;padding:10px 16px;font-weight:600}
.cmg-skip:focus{left:12px;top:12px}
.cmg-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cmg-search input{border:0;background:transparent;font:inherit;font-size:16px;width:100%;min-width:0;color:#2a1810;outline:none}
.cmg-fnav{max-width:1040px;margin:0 auto;padding:0 24px;display:flex;flex-wrap:wrap;justify-content:center;gap:0 56px}
.cmg-fnav a{color:#ffffff;text-decoration:none;font-size:15px;font-weight:500;letter-spacing:.2px;padding:14px 0}
.cmg-fnav a:hover{color:#ffc531}

.cmg-content{padding-bottom:64px}
.cmg-content>*:not(.cmg-full){box-sizing:border-box}
.cmg-content>*{max-width:1288px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.cmg-content>.cmg-full{max-width:none;padding-left:0;padding-right:0}
.cmg-content>.cmg-anchor{display:block;height:0;padding:0;margin:0;scroll-margin-top:20px}
.cmg-content>.cmg-full+.cmg-box,.cmg-content>.cmg-full+p{margin-top:40px}
.cmg-content img{max-width:100%}

/* headings */
.cmg-content h2.wp-block-heading,.cmg-content h3.wp-block-heading{color:#3b1308;font-weight:700;scroll-margin-top:20px}
.cmg-content h2.wp-block-heading{margin-top:48px;margin-bottom:0;font-size:clamp(28px,2.7vw,38px);line-height:1.22;letter-spacing:-.56px}
.cmg-content h2.wp-block-heading::after{content:"";display:block;width:44px;height:4px;border-radius:4px;background:#ffc531;margin:10px 0 14px}
.cmg-content>.cmg-full+h2.wp-block-heading{margin-top:40px}
.cmg-content h3.wp-block-heading{margin-top:26px;margin-bottom:6px;font-size:22px;line-height:1.3}

/* text */
.cmg-content>p,.cmg-cat>p,details.wp-block-details>p{margin-top:0;margin-bottom:14px;color:#1a1a1a}
.cmg-content p.cmg-small{font-size:13.5px;color:#5b5048}
.cmg-content .has-text-align-center{text-align:center}
.cmg-content ul.wp-block-list,.cmg-content ol.wp-block-list{margin-top:0;margin-bottom:14px;padding-left:46px}
.cmg-content ul.wp-block-list li,.cmg-content ol.wp-block-list li{margin-bottom:6px}
.cmg-content .cmg-box{margin-bottom:14px}

/* tables */
.cmg-content figure.wp-block-table{margin-top:0;margin-bottom:14px;overflow-x:visible}
.cmg-content .wp-block-table table{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;line-height:1.55;background:#ffffff;border:1px solid #f1e6d8;border-radius:12px;overflow:hidden;display:table}
@media (max-width:700px){.cmg-content .wp-block-table{overflow-x:auto}.cmg-content .wp-block-table table{min-width:560px}}
.cmg-content .wp-block-table th,.cmg-content .wp-block-table td{padding:11px 14px;border:0;border-top:1px solid #f1e6d8;vertical-align:top;text-align:left;color:#4a3a30}
.cmg-content .wp-block-table thead th{padding:12px 14px;font-size:14px;font-weight:600;color:#ffffff;background:#a3241a;white-space:nowrap;border-top:0}
.cmg-content .wp-block-table tbody tr>:first-child{font-weight:600;color:#2a1810}
.cmg-content .wp-block-table tbody tr:nth-child(even){background:#fffaf3}
.cmg-content .wp-block-table thead{border:0}

/* FAQ (Details blocks) */
.cmg-content>details.wp-block-details,.cmg-cat>details.wp-block-details{box-sizing:border-box;max-width:900px;margin:0 24px 10px max(24px,calc((100% - 1288px)/2 + 24px));padding:4px 18px;background:#ffffff;border:1px solid #f1e6d8;border-radius:12px}
details.wp-block-details summary{cursor:pointer;font-weight:600;color:#2a1810;padding:12px 0}
.cmg-content details.wp-block-details>p{color:#4a3a30}

/* homepage menu groups */
.cmg-content .cmg-menu-groups{padding-top:20px;padding-bottom:40px}
.cmg-cat{padding-top:36px;scroll-margin-top:80px}
.cmg-cat>h2.wp-block-heading{margin-top:0;text-align:center}
.cmg-cat>h2.wp-block-heading::after{margin:10px auto 14px}
.cmg-cat .cmg-count{display:inline-block;vertical-align:middle;margin-left:12px;position:relative;top:-3px}
.cmg-content .cmg-cat>p{text-align:center;color:#4a3a30}
.cmg-cat>.cmg-box{margin-top:8px}
.cmg-count{background:#a3241a;color:#fff6e9;font-size:12.16px;font-weight:600;letter-spacing:.24px;padding:2px 11px;border-radius:99px;line-height:1.6}
.cmg-count:empty{display:none}
.cmg-none{text-align:center;padding:40px 0}
.cmg-none p{margin:0 0 12px;font-weight:600;color:#2a1810}
.cmg-none button,.cmg-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:99px;border:0;background:#a3241a;color:#fff6e9;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}

/* blog / fallback templates */
.cmg-blog{padding-top:40px}
.cmg-title{color:#3b1308;font-size:clamp(30px,3.4vw,44px);line-height:1.15;margin:0 0 8px}
.cmg-meta{color:#6b5a4e;font-size:14px}
.cmg-featured{display:block;width:100%;height:auto;border-radius:14px;margin:10px 0 20px}
.cmg-list-item{background:#fff;border:1px solid #f1e6d8;border-radius:12px;padding:6px 20px 4px;margin-bottom:14px}
.cmg-list-item h2.wp-block-heading{margin-top:12px;font-size:24px}
.cmg-list-item h2.wp-block-heading::after{display:none}
.cmg-list-item h2 a{color:#3b1308;text-decoration:none}
.cmg-article>*{max-width:900px}
.nav-links{display:flex;gap:10px}

/* embeds pasted into Custom HTML blocks (Google Map etc.) */
.cmg-box iframe{max-width:100%;border:0;border-radius:16px}
