/*
Theme Name: Cotherstone Rivers
Version: 3.0
Description: Lightweight classic theme for Cotherstone Fly Fishing Club.
Requires PHP: 7.4
*/
:root{--green:#223522;--gold:#a08035;--cream:#f7f4ec;--ink:#243128}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:17px/1.65 system-ui,sans-serif}a{color:#546226}a:hover{text-decoration:underline}img{max-width:100%;height:auto}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.15;margin:0 0 .6em}h1{font-size:clamp(2.5rem,5vw,4.5rem)}h2{font-size:clamp(1.8rem,3vw,2.8rem)}h3{font-size:1.6rem}.wrap{width:min(1180px,92%);margin:auto}.site-header,.site-footer{background:var(--green);color:white}.head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0}.brand{font:25px/1.15 Georgia,serif;color:white;text-decoration:none;max-width:300px}.custom-logo{max-width:180px}.nav ul{list-style:none;padding:0;margin:0;display:flex;gap:20px;flex-wrap:wrap}.nav a,.site-footer a{color:white;text-decoration:none}.nav a{font-size:13px;text-transform:uppercase;letter-spacing:.06em}.hero{min-height:460px;display:flex;align-items:center;background-color:#293b29;background-size:cover;background-position:center;color:white;padding:75px 0}.hero h1{max-width:800px}.eyebrow{text-transform:uppercase;font-size:13px;letter-spacing:.14em;font-weight:700}.btn{display:inline-block;background:var(--gold);color:white;padding:12px 20px;text-decoration:none;font-weight:700;margin:5px 8px 5px 0;border-radius:2px}.btn.secondary{background:transparent;border:1px solid currentColor}.section{padding:55px 0}.intro{text-align:center;max-width:800px;margin:auto}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:35px}.tile{background:var(--green);color:white;overflow:hidden;border-radius:3px}.tile img{width:100%;height:190px;object-fit:cover;display:block}.tile-body{padding:25px}.tile a{color:#e6c77a;font-weight:700}.news{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.news article{background:white;padding:20px}.news img{width:100%;aspect-ratio:16/9;object-fit:cover}.content{max-width:900px;margin:auto;padding:50px 4%;overflow-wrap:anywhere}.content .alignwide,.content .alignfull{max-width:100%;margin-left:0;margin-right:0}.content iframe{max-width:100%}.site-footer{padding:35px 0}.site-footer p{margin:0 0 10px}.menu-toggle{display:none}input,textarea,select{max-width:100%;font:inherit;padding:8px}button,input[type=submit]{cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #d4ab54;outline-offset:4px}@media(max-width:760px){.head{flex-wrap:wrap}.nav{width:100%}.nav ul{gap:12px}.cards,.news{grid-template-columns:1fr}.hero{min-height:370px;padding:45px 0}.section{padding:35px 0}.tile img{height:220px}}

.cffc-map{margin:24px 0 40px;max-width:100%;}.cffc-map iframe{max-width:100%;}.content h2:not(:first-child){margin-top:36px;}

.cffc-brand{display:inline-flex;align-items:center;gap:15px;max-width:none;color:#f7f4ec;text-decoration:none;flex-shrink:0}.cffc-brand:hover{text-decoration:none}.cffc-fly{width:78px;height:auto;display:block;flex:none}.cffc-brand-name{border-left:1px solid rgba(247,244,236,.8);padding-left:15px;font:400 22px/1.13 Georgia,serif;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}.head{padding:18px 0}.head>div{flex-shrink:0}@media(max-width:760px){.cffc-fly{width:60px}.cffc-brand-name{font-size:18px;padding-left:12px}.cffc-brand{gap:12px}}

main > .content + .content{padding-top:0;}

.cffc-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:90;width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--gold);border-radius:50%;background:var(--green);color:var(--cream);box-shadow:0 2px 8px #0003;padding:0}.cffc-top[hidden]{display:none}.cffc-top:hover{background:#40533b}
@media(max-width:1000px){.head{flex-wrap:wrap;gap:12px}.head>div{flex:1;min-width:0}.cffc-brand{max-width:100%;gap:10px}.cffc-brand-name{white-space:normal;font-size:clamp(13px,3.5vw,20px);padding-left:10px}.cffc-fly{width:clamp(40px,12vw,70px)}.nav{width:100%}.nav ul{flex-direction:column;gap:0}.nav a{display:block;padding:12px 0;border-top:1px solid #ffffff26}.cffc-js .menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;background:transparent;color:var(--cream);border:1px solid var(--gold);border-radius:3px;flex:none;padding:8px}.menu-toggle span{width:23px;height:2px;background:currentColor}.cffc-js .nav:not(.is-open){display:none}}

.cffc-contact-proxy{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;border:0!important;}

.cffc-float{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));z-index:90;background:var(--green);color:var(--cream);border:1px solid var(--gold);border-radius:4px;padding:10px 16px;font-size:15px;font-weight:600;text-decoration:none;box-shadow:0 2px 8px #0003;max-width:calc(100% - 100px);line-height:1.35}.cffc-float[hidden]{display:none}.cffc-float:hover{background:#40533b;color:white}@media(max-width:1000px){.cffc-float-desktop{display:none}}@media(min-width:1001px){.cffc-float-mobile{display:none}}

/* Seasonal palettes: retain original appearance when selected. */
body.cffc-palette-trout{--green:#303b27;--gold:#a58b49;--cream:#f3efe3;--ink:#303b27;--cffc-link:#59612e;--cffc-tile-link:#e6cb8e;--cffc-button-ink:#20291a;--cffc-hover:#48543a;--cffc-focus:#943e32;--cffc-accent:#943e32}
body.cffc-palette-grayling{--green:#41474b;--gold:#797080;--cream:#f0f2f3;--ink:#41474b;--cffc-link:#62516e;--cffc-tile-link:#d9cce8;--cffc-button-ink:#fff;--cffc-hover:#53595e;--cffc-focus:#86556c;--cffc-accent:#86556c}
body.cffc-palette-trout a,body.cffc-palette-grayling a{color:var(--cffc-link)}
body:is(.cffc-palette-trout,.cffc-palette-grayling) :is(.brand,.nav a,.site-footer a,.cffc-top,.cffc-float){color:var(--cream)}
body:is(.cffc-palette-trout,.cffc-palette-grayling) .tile a{color:var(--cffc-tile-link)}
body:is(.cffc-palette-trout,.cffc-palette-grayling) .btn{color:var(--cffc-button-ink)}
body:is(.cffc-palette-trout,.cffc-palette-grayling) .btn.secondary{color:white}
body:is(.cffc-palette-trout,.cffc-palette-grayling) .hero{background-color:var(--green)}
body:is(.cffc-palette-trout,.cffc-palette-grayling) :is(.cffc-top,.cffc-float):hover{background:var(--cffc-hover);color:white}
body:is(.cffc-palette-trout,.cffc-palette-grayling) :is(a,button):focus-visible{outline:3px solid var(--cffc-focus);box-shadow:0 0 0 2px white}
body:is(.cffc-palette-trout,.cffc-palette-grayling) .news article{border-top:3px solid var(--cffc-accent)}

.site-footer .cffc-seasonal-credit{text-align:center;font-size:12px;line-height:1.5;margin:20px 0 0;color:#b9bfc2}body.cffc-palette-trout .site-footer .cffc-seasonal-credit{color:#bca478}

/* Optional hero subtitle and decorative, non-interactive scale pattern. */
.hero-subtitle{font-size:clamp(1rem,2vw,1.3rem);line-height:1.5;max-width:800px;margin:-.3em 0 1.25em;color:#fff;text-shadow:0 1px 3px #0008}
body.cffc-scale-texture{--cffc-scales:url("scales-original.svg")}
body.cffc-scale-texture.cffc-palette-grayling{--cffc-scales:url("scales-grayling.svg")}
body.cffc-scale-texture.cffc-palette-trout{--cffc-scales:url("scales-trout.svg")}
.cffc-scale-texture :is(.site-header,.site-footer){position:relative;isolation:isolate}
.cffc-scale-texture :is(.site-header,.site-footer)::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:var(--cffc-scales);background-size:32px 24px;opacity:.08}
.cffc-scale-texture .site-header::before{opacity:.05}

.cffc-scale-texture .tile{position:relative;isolation:isolate}.cffc-scale-texture .tile::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:var(--cffc-scales);background-size:32px 24px;opacity:.05}
.cffc-levels{border-top:1px solid #ffffff40;padding-top:12px;margin:12px 0;font-size:14px}.cffc-levels strong{font-size:24px}.cffc-levels svg{display:block;width:100%;height:auto;color:var(--cffc-tile-link,#e6c77a)}.cffc-levels small{display:block;font-size:11px}.cffc-levels .range{display:flex;justify-content:space-between;font-size:11px}

/* Native news carousel */
.cffc-news-track{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 50px)/3);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:var(--green) transparent}.cffc-news-track article{min-width:0;scroll-snap-align:start;overflow-wrap:anywhere}.cffc-news-controls{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}.cffc-news-controls[hidden]{display:none}.cffc-news-controls button{background:var(--green);color:white;border:0;border-radius:50%;width:42px;height:42px;font-size:22px;padding:0}.cffc-news-controls button:disabled{opacity:.35;cursor:default}.cffc-news-all{text-align:right}.cffc-news-track:focus-visible{outline:2px solid var(--green);outline-offset:4px}@media(max-width:1000px){.cffc-news-track{grid-auto-columns:calc((100% - 25px)/2)}}@media(max-width:600px){.cffc-news-track{grid-auto-columns:100%}}
