/*
Theme Name: FindChico Local
Author: Rob Cyr
Description: A scenic, responsive city directory theme integrated with City Directory Extra.
Version: 1.0.18
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
*/
:root{--forest:#173d30;--cream:#faf8f1;--gold:#efbb4c;--ink:#24392e}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.6 system-ui,-apple-system,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ac7100;outline-offset:4px}.skip{position:absolute;left:-9999px}.skip:focus{left:20px;top:10px;z-index:9;background:white;padding:10px}.header{height:100px;max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:30px}.brand{font-size:31px;font-weight:900;letter-spacing:-1.5px;line-height:1.1}.brand span{color:#57815b}.brand small{display:block;font-size:9px;letter-spacing:2.6px;margin-top:7px}.header nav{display:flex;gap:28px;font-size:14px}.header nav ul{display:flex;list-style:none;gap:24px;padding:0}.button,.cde-button{display:inline-block;background:var(--gold);color:var(--forest);padding:14px 22px;border:none;border-radius:7px;font-weight:750;cursor:pointer}.hero{min-height:580px;background-size:cover;background-position:center;position:relative;color:white}.hero-inner{max-width:1200px;margin:auto;padding:74px 40px 54px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;margin:0 0 15px}h1,h2{font-family:Georgia,serif;font-weight:normal;letter-spacing:-1.5px;line-height:1.05}h1{font-size:clamp(44px,5.8vw,76px);margin:0 0 22px}h2{font-size:42px;margin:0}.intro{font-size:17px;line-height:1.7;color:#f3f2e7}.hero-search{display:flex;align-items:center;gap:20px;background:white;color:var(--ink);border-radius:10px;padding:17px 18px;margin-top:32px;max-width:1000px;box-shadow:0 8px 25px #0002}.hero-search label{font-size:11px;font-weight:750;flex:1;min-width:0}.hero-search label:first-child{flex:1.8;border-right:1px solid #ddd;padding-right:16px}.hero-search input,.hero-search select{width:100%;border:0;display:block;padding:7px 0 0;color:#5b685e;background:white;font-size:14px}.popular{display:flex;gap:20px;font-size:10px;letter-spacing:1px;align-items:center;margin-top:24px}.popular a{font-size:12px;letter-spacing:0;border-bottom:1px solid #fff6}.scene-credit{position:absolute;bottom:12px;right:18px;font-size:10px;color:#eee}.section{max-width:1200px;margin:auto;padding:65px 40px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.section-head>a,.section-head>span{font-size:13px}.category-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.category-tiles>a{border:1px solid #e2e5d9;background:#fffdf7;border-radius:9px;padding:24px;display:flex;flex-direction:column;gap:10px}.category-tiles>a:hover{background:#eaf0e5;text-decoration:none}.tile-icon{font-size:30px;color:#59704e}.category-tiles strong{font-size:16px}.category-tiles a>span:last-child{font-size:11px;color:#647064}.featured{border-top:1px solid #e2e5d9}.cde{--cde-accent:#173d30!important}.cde-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.cde-card{border:1px solid #e0e3d8;border-radius:12px;overflow:hidden;background:white}.cde-card-body{padding:22px}.cde-card-photo{height:210px;display:block;background:#e4eade}.cde-card-photo img{width:100%;height:100%;object-fit:cover}.cde-placeholder{display:grid;place-content:center;height:100%;font-size:14px;color:#58674e}.cde-card h3{font:25px Georgia,serif;margin:12px 0}.cde-card p{font-size:13px}.cde-badge{font-size:10px;background:#eaf0e5;padding:5px 9px;border-radius:4px}.ad-section{padding-top:20px;padding-bottom:30px}.ad-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px dashed #acb89a;background:#eef0e4;padding:28px 30px;border-radius:10px}.ad-callout span{font-size:10px;letter-spacing:1px}.ad-callout strong{font:24px Georgia,serif}.local-story{background:#e5ebdc;display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:65px max(40px,calc((100vw - 1120px)/2));align-items:center}.local-story p:not(.eyebrow){max-width:420px}.story-art{min-height:300px;border-radius:48% 48% 8px 8px;background:linear-gradient(0deg,#173d3070,#173d3030),url('assets/chico-scene.jpg') center/cover;display:grid;place-items:center;color:white;text-align:center}.story-art>span{font:52px Georgia,serif}.story-art small{font:10px system-ui;letter-spacing:2px}.owner{max-width:1200px;margin:auto;padding:75px 40px;display:flex;align-items:center;justify-content:space-between;gap:40px}.owner p:not(.eyebrow){max-width:500px;font-size:14px}.footer{background:var(--forest);color:#fff;padding:45px max(40px,calc((100vw - 1120px)/2));font-size:12px}.footer .brand span{color:#d5dfb0}.content{min-height:60vh}.content article{margin-bottom:40px}.content h1{font-size:44px}.content img{max-width:100%;height:auto}.content .cde-profile{max-width:100%}.cde input,.cde select,.cde textarea{max-width:100%}@media(max-width:800px){.header{height:auto;min-height:84px;padding:18px 22px;flex-wrap:wrap;gap:15px}.header nav{order:3;width:100%;justify-content:center}.header .button{font-size:11px;padding:10px 13px}.hero-inner{padding:50px 22px}.hero-search{flex-direction:column;align-items:stretch}.hero-search label:first-child{border-right:0;border-bottom:1px solid #ddd;padding-bottom:12px}.section{padding:45px 22px}.category-tiles{grid-template-columns:repeat(2,1fr)}.cde-grid{grid-template-columns:1fr}.section-head{align-items:start}h2{font-size:34px}.local-story{grid-template-columns:1fr;padding:45px 22px}.owner{display:block;padding:50px 22px}.owner .button{margin-top:15px}.popular{flex-wrap:wrap;gap:12px}.ad-callout{flex-direction:column;align-items:start}.scene-credit{font-size:8px}.footer{padding:35px 22px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.hero{isolation:isolate;background-color:#173d30}.hero .fc-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,39,30,.88),rgba(16,39,30,.32));z-index:-1}

.fc-banner-section{padding-top:22px;padding-bottom:22px}.fc-banner-available{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:120px;border:2px dashed #c49940;border-radius:10px;background:#fff4d7;text-align:center;padding:20px;color:var(--forest)}.fc-banner-available small{font-size:10px;letter-spacing:1.8px}.fc-banner-available strong{font:28px Georgia,serif}.fc-banner-available span{font-size:12px}.fc-banner-section .cde{margin:0}.fc-banner-section .cde-banner{margin:0;padding:0;background:transparent}.fc-banner-section .cde-banner img{width:auto;max-width:100%;height:auto;max-height:240px;object-fit:contain}@media(max-width:800px){.fc-banner-section{padding-top:16px;padding-bottom:16px}.fc-banner-available strong{font-size:24px}}

/* Approved category photographs with translucent green hover/focus. */
.category-tiles>a:has(.fc-category-photo){position:relative;isolation:isolate;overflow:hidden;min-height:210px;justify-content:flex-end;border:0;color:#fff;background:#173d30;padding:22px;gap:8px}
.fc-category-photo{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}
.fc-category-shade{display:none}
.category-tiles>a:has(.fc-category-photo) .fc-category-shade{display:block;position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(0,0,0,.78),rgba(0,0,0,0) 85%);transition:background .2s ease;pointer-events:none}
.category-tiles>a:has(.fc-category-photo):hover .fc-category-shade,.category-tiles>a:has(.fc-category-photo):focus-visible .fc-category-shade{background:linear-gradient(0deg,rgba(23,61,48,.85),rgba(23,61,48,.35) 85%)}
.category-tiles>a:has(.fc-category-photo)>span:last-child{color:#fff}.category-tiles>a:has(.fc-category-photo) strong{font-size:16px;line-height:1.4;text-shadow:0 1px 3px #0008}.category-tiles>a:has(.fc-category-photo):hover{background:#173d30;text-decoration:none}
@media(max-width:800px){.category-tiles>a:has(.fc-category-photo){min-height:190px;padding:18px}}@media(prefers-reduced-motion:reduce){.fc-category-shade{transition:none!important}}

.fc-error-page{background:var(--forest);color:var(--cream);min-height:65vh;padding:60px 24px}.fc-error-panel{max-width:800px;margin:auto;text-align:center}.fc-error-number{font:clamp(90px,15vw,150px)/1 Georgia,serif;color:var(--gold);margin:0 0 18px}.fc-error-panel h1{font-size:clamp(36px,5vw,56px)}.fc-error-panel>p:not(.eyebrow):not(.fc-error-number){max-width:620px;margin:20px auto;line-height:1.8}.fc-error-search{max-width:650px;margin:30px auto;text-align:left}.fc-error-search label{display:block;font-weight:700;margin-bottom:8px}.fc-error-search>div{display:flex;gap:12px}.fc-error-search input{min-width:0;flex:1;border:0;border-radius:7px;background:#faf8f1;color:#24392e;padding:14px;font:inherit}.fc-error-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:24px;margin-top:28px}@media(max-width:600px){.fc-error-search>div{flex-direction:column}.fc-error-page{padding:45px 22px}.fc-error-links{gap:18px}}

/* Latest published posts on the homepage. */
.fc-latest-posts{border-top:1px solid #e2e5d9}.fc-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.fc-post-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e0e3d8;border-radius:12px;overflow:hidden}.fc-post-image{display:block;aspect-ratio:3/2;background:#e5ebdc;overflow:hidden}.fc-post-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.fc-post-card:hover .fc-post-image img{transform:scale(1.025)}.fc-post-body{display:flex;flex-direction:column;flex:1;padding:24px}.fc-post-body h3{font:26px/1.22 Georgia,serif;margin:0 0 14px}.fc-post-body p{font-size:14px;line-height:1.7;margin:0 0 20px}.fc-post-more{font-size:13px;font-weight:750;margin-top:auto;color:var(--forest)}@media(max-width:800px){.fc-post-grid{grid-template-columns:1fr}.fc-latest-posts .section-head{flex-direction:column;gap:16px}.fc-post-body{padding:22px}}@media(prefers-reduced-motion:reduce){.fc-post-image img{transition:none}.fc-post-card:hover .fc-post-image img{transform:none}}

.fc-related-posts{border-top:1px solid #e2e5d9;margin-top:45px;padding-top:45px}.content .fc-related-posts .fc-post-card{margin-bottom:0}.fc-related-posts .fc-post-image img{height:100%;object-fit:cover}.fc-related-posts .fc-post-body p{margin-top:0}@media(max-width:800px){.fc-related-posts .section-head{flex-direction:column;gap:16px}.fc-related-posts{margin-top:32px;padding-top:32px}}

/* Local maker and Spotlight homepage showcases. */
.fc-local-showcase{border-top:1px solid #dce3d5}.fc-showcase-intro{max-width:760px;margin:-10px 0 28px;color:#526451}.fc-showcase-empty{background:#edf2e6;border:1px solid #d3dfc6;border-radius:12px;padding:30px}.fc-showcase-empty strong{font:26px Georgia,serif}.fc-showcase-empty p{margin:12px 0 20px}.header nav ul{flex-wrap:wrap;align-items:center;row-gap:8px}.header nav{min-width:0}.header{height:auto;min-height:100px;padding-top:18px;padding-bottom:18px}@media(max-width:1000px){.header{flex-wrap:wrap}.header nav{order:3;width:100%}.header nav ul{justify-content:center;margin:0;gap:12px 20px}}

/* Approved magnifying-glass logo; crop transparent canvas in its header frame. */
.header .brand{display:block;flex-shrink:0;width:300px;height:82px;line-height:0;overflow:hidden}.header .fc-brand-logo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}@media(max-width:800px){.header .brand{width:220px;height:60px}}

/* Both scenes inherit the existing homepage dimensions and crop. */
.hero .fc-scene{transition:opacity 1.2s ease}.hero .fc-scene-secondary{opacity:0}.hero.fc-show-second .fc-scene:first-of-type{opacity:0}.hero.fc-show-second .fc-scene-secondary{opacity:1}.fc-scene-toggle{position:absolute;bottom:12px;left:18px;z-index:2;background:#173d30b8;color:white;border:1px solid #ffffff60;border-radius:4px;padding:4px 9px;font-size:10px;cursor:pointer}.hero [hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.hero .fc-scene{transition:none}}

.fc-spotlight-photo{display:block;position:relative;overflow:hidden;border-radius:12px;max-width:560px;aspect-ratio:3/2;margin:0 0 30px;color:white}.fc-spotlight-photo img{display:block;width:100%;height:100%;object-fit:cover}.fc-spotlight-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#000b,transparent 75%);transition:background .2s ease}.fc-spotlight-photo:hover:after,.fc-spotlight-photo:focus-visible:after{background:linear-gradient(0deg,rgba(23,61,48,.85),rgba(23,61,48,.35))}.fc-spotlight-photo>span{position:absolute;left:24px;bottom:24px;z-index:1;font-size:24px;font-weight:700;text-shadow:0 1px 3px #0008}.fc-spotlight-photo small{display:block;font-size:13px;font-weight:400;margin-top:5px}.fc-spotlight-page-photo{margin:0 0 30px;max-width:800px}.fc-spotlight-page-photo img{display:block;width:100%;height:auto;border-radius:12px}.fc-spotlight-page-photo figcaption{font-size:11px;color:#526451;margin-top:5px}

.hero .fc-scene-third{opacity:0}.hero.fc-show-third .fc-scene:first-of-type,.hero.fc-show-third .fc-scene-secondary{opacity:0}.hero.fc-show-third .fc-scene-third{opacity:1}

.hero .fc-scene.fc-scene-third{object-position:65% 85%}@media(max-width:800px){.hero .fc-scene.fc-scene-third{object-position:65% 85%}}

/* Individual category photos keep their proportions in every tile. */
img.fc-category-photo{object-fit:cover;object-position:center}

/* Footer exploration links. */
.fc-footer-top{display:flex;justify-content:space-between;gap:48px;align-items:start}.fc-footer-brand{max-width:400px}.fc-footer-list{display:inline-block;margin-top:8px;color:var(--gold);font-weight:700}.fc-footer-explore{min-width:280px}.fc-footer-explore h2{font:700 18px/1.4 system-ui,sans-serif;letter-spacing:0;color:var(--gold);margin:0 0 16px}.fc-footer-explore ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px;list-style:none;padding:0;margin:0}.fc-footer-explore a{font-size:14px;color:#fff}.fc-footer-explore a:hover{color:var(--gold)}.fc-footer-explore a:focus-visible,.fc-footer-list:focus-visible{outline-color:var(--gold)}.fc-footer-copyright{margin:32px 0 0;padding-top:20px;border-top:1px solid #ffffff30}@media(max-width:600px){.fc-footer-top{flex-direction:column;gap:32px}.fc-footer-explore{min-width:0;width:100%}}

/* Three-column footer with community links. */
.fc-footer-top{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:44px}.fc-footer-explore{min-width:0}.fc-footer-explore ul{grid-template-columns:1fr;gap:10px}.fc-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:32px;padding-top:20px;border-top:1px solid #ffffff30}.fc-footer-bottom .fc-footer-copyright{border:0;margin:0;padding:0}.fc-footer-legal{display:flex;gap:10px}.fc-footer-legal a:hover{color:var(--gold)}@media(max-width:800px){.fc-footer-top{grid-template-columns:1fr 1fr;gap:30px}.fc-footer-brand{grid-column:1/-1}}@media(max-width:480px){.fc-footer-top{grid-template-columns:1fr}.fc-footer-brand{grid-column:auto}}
