/*
Theme Name: STLRR Premium
Template: pressbook-premium
Version: 2.1.0
Description: Compact editorial child theme for St. Louis Restaurant Review.
Text Domain: stlrr-premium
Requires PHP: 7.4
*/
:root{--stl-dark:#171519;--stl-charcoal:#30232a;--stl-wine:#71303b;--stl-gold:#d7ad82;--stl-cream:#ffe8cf;--stl-paper:#fffaf5;--stl-ink:#30232a;--stl-radius:16px;--stl-shadow:0 4px 0 #39232b,0 10px 20px #0002}
body,button,input,select,textarea{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}h1,h2,h3,h4,h5,h6{font-family:Georgia,serif!important}body{background:#f6f1ed;color:var(--stl-ink)}
#masthead.stl-header{background:linear-gradient(120deg,var(--stl-dark),var(--stl-wine));border-bottom:2px solid var(--stl-gold);position:relative;z-index:20;color:var(--stl-cream)}
.stl-header-row{max-width:1440px;margin:auto;padding:8px 18px;display:flex;align-items:center;gap:16px;min-height:72px;box-sizing:border-box}.stl-brand{flex:0 0 auto;max-width:160px}.stl-brand a{color:var(--stl-cream);font-weight:700;text-decoration:none}.stl-brand img{display:block;width:auto;height:auto;max-width:150px;max-height:56px;border-radius:8px}.stl-nav{flex:1;min-width:0}.stl-nav #primary-menu{list-style:none;padding:0;margin:0}.stl-nav li{position:relative}.stl-nav a{color:var(--stl-cream)!important;text-decoration:none;font-size:14px;font-weight:600}.stl-nav a:hover,.stl-nav a:focus-visible{color:white!important;background:#71303b;border-radius:8px}.stl-talk{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(145deg,#b94451,#751b2a);color:#fff5ee!important;border:1px solid var(--stl-gold);border-radius:10px;padding:10px 14px;min-height:44px;font-size:14px;font-weight:700;text-decoration:none!important;box-shadow:0 3px 0 #4b111b;white-space:nowrap}.stl-toggle{display:none}.stl-nav .main-navigation-arrow-btn{color:var(--stl-gold);background:transparent;border:0;min-width:28px;min-height:32px;padding:4px}.stl-nav .main-navigation-arrow-btn svg{width:14px;height:14px;fill:currentColor}.stl-nav .sub-menu{list-style:none;margin:0;padding:6px;background:var(--stl-charcoal);border:1px solid var(--stl-gold);border-radius:10px;box-shadow:var(--stl-shadow)}.stl-nav .sub-menu a{display:block;padding:10px}.stl-nav .sub-menu[hidden],.stl-nav[hidden]{display:none!important}.stl-nav .sub-menu:not([hidden]){display:block}.stl-header a:focus-visible,.stl-header button:focus-visible{outline:2px solid var(--stl-gold);outline-offset:3px}
@media(min-width:1200px){.stl-nav #primary-menu{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}.stl-nav #primary-menu>li{display:flex;align-items:center}.stl-nav #primary-menu>li>a{padding:10px 6px;white-space:nowrap}.stl-nav .sub-menu{position:absolute;top:100%;left:0;min-width:210px;z-index:30}.stl-nav #primary-menu>li:nth-last-child(-n+2)>.sub-menu{left:auto;right:0}.stl-nav .sub-menu .sub-menu{position:static}.stl-nav .sub-menu li{display:flex;flex-wrap:wrap;align-items:center}.stl-nav .sub-menu li>a{flex:1}}
@media(max-width:1199px){.stl-header-row{flex-wrap:wrap;gap:8px;min-height:64px;padding:8px 12px}.stl-brand{margin-right:auto;max-width:135px}.stl-brand img{max-width:130px;max-height:48px}.stl-talk{font-size:12px;padding:8px 10px}.stl-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:var(--stl-charcoal);border:1px solid var(--stl-gold);border-radius:9px;color:var(--stl-cream);font-size:22px;cursor:pointer}.stl-nav{order:4;flex:0 0 100%;padding:4px 0 10px}.stl-nav #primary-menu>li{display:flex;flex-wrap:wrap;align-items:center;margin:5px 0;border:1px solid #79545a;border-radius:9px;background:#30232a}.stl-nav #primary-menu>li>a{flex:1;padding:12px;min-height:44px}.stl-nav .sub-menu{flex:0 0 100%;box-shadow:none}.stl-nav .main-navigation-arrow-btn{min-width:44px;min-height:44px}}
@media(max-width:360px){.stl-brand img{max-width:100px}.stl-header-row{gap:6px;padding:6px 8px}}
.c-sidebar .widget,.c-sidebar-footer .widget{background:radial-gradient(ellipse at top right,#71303b,#30232a 45%,#171519)!important;color:#fff5ee!important;border:1px solid #a47a65!important;border-top:3px solid var(--stl-gold)!important;border-radius:var(--stl-radius);padding:16px!important;margin-bottom:24px!important;box-shadow:var(--stl-shadow);overflow-wrap:anywhere}.c-sidebar .widget .widget-title,.c-sidebar-footer .widget .widget-title{color:var(--stl-cream)!important;background:none!important;border:0!important;border-bottom:1px solid #a47a65!important;padding:0 0 12px!important;margin:0 0 14px!important;font-size:18px;line-height:1.35}.c-sidebar .widget-title:after,.c-sidebar .widget-title:before,.c-sidebar-footer .widget-title:after,.c-sidebar-footer .widget-title:before{display:none!important}.c-sidebar .widget a,.c-sidebar-footer .widget a{color:var(--stl-cream)!important}.c-sidebar .widget a:hover,.c-sidebar-footer .widget a:hover{color:white!important;text-decoration:underline}.c-sidebar .widget img,.c-sidebar-footer .widget img{max-width:100%;height:auto;border-radius:12px}.c-sidebar .widget .textwidget>div,.c-sidebar-footer .widget .textwidget>div{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}.c-sidebar .widget ul,.c-sidebar-footer .widget ul{list-style:none;padding:0;margin:0}.c-sidebar .widget li,.c-sidebar-footer .widget li{background:#392b32;border:1px solid #79545a;border-radius:9px;padding:9px;margin:7px 0;color:#fff5ee;box-shadow:0 2px 0 #171519}.c-sidebar .tagcloud a{display:inline-block;background:#392b32;border:1px solid #79545a;border-radius:7px;padding:5px 8px;margin:3px;font-size:13px!important}.c-sidebar .widget select,.c-sidebar .widget input[type=search]{max-width:100%;width:100%;background:#251e25;color:#fff5ee;border:1px solid #a47a65;border-radius:8px;padding:10px}.site-footer,.footer-widgets,.site-info{background:#171519!important;color:var(--stl-cream)!important}.site-footer a{color:var(--stl-cream)!important}.footer-widgets-wrap{gap:16px}.site-footer{border-top:3px solid var(--stl-gold)}
.pb-article .post-thumbnail{border-radius:20px;overflow:hidden;box-shadow:0 5px 0 #39232b,0 12px 24px #0002;margin-bottom:24px}.pb-article .post-thumbnail img{display:block;width:100%;height:auto;border-radius:20px}.entry-content img{max-width:100%;height:auto;border-radius:12px}.pb-article .entry-title{color:var(--stl-wine);line-height:1.2}.entry-content{line-height:1.8;overflow-wrap:anywhere}.entry-content p{margin-bottom:1.2em}.entry-content h2,.entry-content h3{line-height:1.35}.entry-content a:not([style]){color:#8b2634;text-underline-offset:3px}.entry-content .wp-block-button__link,.entry-content button:not([class]),.entry-content input[type=submit]{background:linear-gradient(145deg,#b94451,#751b2a);color:#fff5ee;border:1px solid var(--stl-gold);border-radius:10px;padding:10px 16px;box-shadow:0 3px 0 #4b111b}.blog .pb-article,.archive .pb-article{border:1px solid #e5d5c6;border-radius:16px;box-shadow:0 4px 12px #0001;overflow:hidden}.stl-cta-pair a:hover,.stl-talk:hover{filter:brightness(1.12)}
@media(prefers-reduced-motion:reduce){.stl-header *, .stl-cta-pair a{transition:none!important;animation:none!important}}
/* Avoid layout shift before the navigation script initializes. */
@media(max-width:1199px){.stl-nav:not(.stl-ready){display:none}.stl-nav.stl-ready:not([hidden]){display:block}}
.stl-nav:not(.stl-ready) .sub-menu{display:none}.stl-nav:not(.stl-ready) li:focus-within>.sub-menu{display:block}

/* v2: native page heroes, no duplicate content heroes on directory/contact */
.stl-page-hero{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:linear-gradient(135deg,#171519,#71303b);border:1px solid var(--stl-gold);border-radius:16px;padding:14px 18px;margin:0 0 20px;color:var(--stl-cream);box-shadow:var(--stl-shadow)}
.stl-page-copy{flex:1 1 180px;min-width:0}.stl-page-hero .entry-title{color:#fff5ee!important;font-size:clamp(22px,3vw,32px);line-height:1.2;margin:6px 0!important;overflow-wrap:anywhere}.stl-kicker{font-size:10px;letter-spacing:1px;color:#f4cda6;font-weight:700}.stl-page-copy p{margin:8px 0 0;font-size:14px}.stl-page-image{flex:0 1 210px;max-width:100%;margin:0 auto;padding:5px;background:#171519;border:1px solid var(--stl-gold);border-radius:13px;box-sizing:border-box}.stl-page-image img{display:block;width:auto;max-width:100%;height:auto;max-height:140px;object-fit:contain;border-radius:9px;margin:auto}.stl-existing-hero-title{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;padding:0!important;margin:0!important;border:0!important}
/* Compact TOC */
#ez-toc-container{width:100%;max-width:100%;box-sizing:border-box;background:linear-gradient(145deg,#30232a,#171519)!important;border:1px solid var(--stl-gold)!important;border-radius:12px;padding:12px!important;color:#ffe8cf!important;box-shadow:0 3px 0 #39232b;margin:16px 0!important}#ez-toc-container .ez-toc-title{color:#f4cda6!important;font-size:16px!important}#ez-toc-container a{color:#ffe8cf!important;font-size:13px;line-height:1.5}#ez-toc-container nav>ul{columns:2;column-gap:20px}#ez-toc-container li{break-inside:avoid}#ez-toc-container .ez-toc-toggle{color:#f4cda6!important}
/* Native news archive: main query, responsive cards */
.stl-news-main{width:100%;min-width:0;max-width:100%}.stl-news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.stl-news-card{display:flex;flex-direction:column;min-width:0;background:linear-gradient(145deg,#fff,#fff8f1);border:1px solid #e5d5c6;border-top:3px solid var(--stl-gold);border-radius:14px;overflow:hidden;box-shadow:0 4px 0 #dfcbb9,0 8px 16px #0001}.stl-news-image{display:block;padding:6px;background:#30232a}.stl-news-image img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;border-radius:9px;background:#171519}.stl-news-copy{padding:14px;display:flex;flex-direction:column;flex:1;gap:8px}.stl-news-copy h3{font-size:20px;line-height:1.3;margin:0}.stl-news-copy h3 a{color:#71303b;text-decoration:none}.stl-news-copy p{font-size:14px;line-height:1.55;margin:0}.stl-news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11px;color:#65545a}.stl-news-meta a{background:#30232a;color:#ffe8cf;border-radius:5px;padding:3px 7px}.stl-news-read,.stl-news-search button{display:inline-block;align-self:flex-start;background:linear-gradient(145deg,#a53648,#751b2a);color:#fff5ee!important;border:1px solid var(--stl-gold);border-radius:8px;padding:9px 14px;text-decoration:none;font-weight:700;box-shadow:0 3px 0 #4b111b;margin-top:auto}.stl-news-search{background:#71303b;color:#ffe8cf;border:1px solid var(--stl-gold);border-radius:12px;padding:12px;margin:16px 0}.stl-news-search label{display:block;font-size:13px;margin-bottom:6px}.stl-news-search>div{display:flex;gap:8px}.stl-news-search input[type=search]{flex:1;min-width:0;width:100%;background:#fffaf5;color:#30232a;border:1px solid var(--stl-gold);border-radius:8px;padding:9px}.stl-news-heading{color:#71303b}.stl-news-main .pagination{margin:24px 0}.stl-news-main .page-numbers.current{background:#71303b;color:#fff5ee}.stl-news-main a:focus-visible,.stl-news-main button:focus-visible{outline:2px solid #a53648;outline-offset:3px}
/* Directory search remains non-sticky */
body.page-id-1265 #slrr-finder{position:static!important;top:auto!important;z-index:auto!important}#slrr-finder input,#slrr-finder select{max-width:100%}
@media(max-width:600px){.stl-page-hero{padding:12px;gap:10px}.stl-page-copy{flex-basis:140px}.stl-page-image{flex-basis:100px}.stl-page-image img{max-height:85px}.stl-page-hero .entry-title{font-size:22px}#ez-toc-container nav>ul{columns:1}.stl-news-grid{gap:14px}.stl-news-copy{padding:12px}}

/* v2.1: one shared outer width, including parent footer and page wrappers. */
:root{--stl-site-width:1440px;--stl-site-gutter:18px}
#page .u-wrapper,#page .stl-header-row,#page #content .pb-content-sidebar{width:100%;max-width:var(--stl-site-width)!important;margin-inline:auto; padding-inline:var(--stl-site-gutter);box-sizing:border-box}
#page #content .pb-content-sidebar{justify-content:space-between}
#page #content .pb-content-sidebar>.site-main:only-child{width:100%;max-width:100%;flex-basis:100%}
#page .stl-brand{max-width:185px}
#page .stl-brand img{max-width:180px;max-height:66px}
#page .stl-header-row{min-height:82px}
/* News uses the entire shared content width, without parent sidebar constraints. */
#page #content .stl-news-wrap{display:block;margin-block:20px 0}
#page #content .stl-news-wrap::after{display:none}
#page #content .stl-news-main{width:100%;max-width:100%!important;margin:0;padding:0!important;border:0;background:transparent;box-sizing:border-box}
.stl-news-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.stl-news-card{width:100%;box-sizing:border-box;margin:0}
.stl-news-copy h3{font-size:19px;overflow-wrap:anywhere}
/* Native numbered pagination, consistent across archives. */
#page .pagination{clear:both;margin:28px 0 24px;padding:14px;background:linear-gradient(145deg,#493039,#171519);border:1px solid var(--stl-gold);border-radius:14px;box-shadow:var(--stl-shadow);box-sizing:border-box}
#page .pagination .nav-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:0;padding:0}
#page .pagination .nav-links .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px 12px;margin:0;border:1px solid #a47a65;border-radius:8px;background:#fffaf5;color:#71303b!important;font-size:14px;font-weight:700;line-height:1.2;text-decoration:none!important;box-sizing:border-box;box-shadow:0 2px 0 #a47a65}
#page .pagination .nav-links .current{background:linear-gradient(145deg,#f4d7b0,#c99a68);color:#30232a!important;border-color:#f4d7b0;box-shadow:inset 0 1px 3px #8c623d55}
#page .pagination .nav-links .dots{background:transparent;color:#f4cda6!important;border:0;box-shadow:none;min-width:20px;padding:4px}
#page .pagination .nav-links a.prev,#page .pagination .nav-links a.next{background:linear-gradient(145deg,#a53648,#751b2a);color:#fff5ee!important;border-color:var(--stl-gold);box-shadow:0 2px 0 #4b111b}
#page .pagination .nav-links a:hover{background:#f4d7b0;color:#30232a!important}
#page .pagination .nav-links a:focus-visible{outline:2px solid #fff5ee;outline-offset:3px}
@media(max-width:1199px){:root{--stl-site-gutter:12px}.stl-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#page .stl-brand{max-width:155px}#page .stl-brand img{max-width:150px;max-height:56px}#page .stl-header-row{min-height:70px}}
@media(max-width:900px){.stl-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:540px){:root{--stl-site-gutter:10px}.stl-news-grid{grid-template-columns:minmax(0,1fr)}#page .pagination{padding:10px}#page .pagination .nav-links{gap:6px}#page .pagination .nav-links .page-numbers{min-width:36px;min-height:40px;padding:7px 9px}}
@media(max-width:360px){#page .stl-brand{max-width:110px}#page .stl-brand img{max-width:105px;max-height:48px}}
