/*
Theme Name: I.O.P.O.F. Turtle Fraternal Order
Description: Green and gold website theme with editable starter pages, native WordPress stories, and a Turtle Order event calendar.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: iopof-turtle-fraternal-order
*/
:root{--forest:#0b2b20;--deep:#062219;--ink:#182e25;--green:#135c41;--gold:#f4ce79;--paper:#fbfaf4;--soft:#edf3e8;--border:#d3dfd0}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1.065rem/1.65 system-ui,sans-serif}
a{color:#145239;text-underline-offset:.2em}
a:focus-visible{outline:3px solid #b76d05;outline-offset:4px}
.dark a:focus-visible,.navshell a:focus-visible{outline-color:#ffe3a5}
img{display:block;max-width:100%;height:auto}
.wrap{width:min(1200px,calc(100% - 3rem));margin-inline:auto}
.skip{position:absolute;top:-100px;left:1rem;padding:.65rem 1rem;background:white;z-index:5}
.skip:focus{top:1rem}
.navshell{background:var(--deep);color:white;border-bottom:1px solid #466353}
.bar,.foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem 0}
.brand{display:flex;align-items:center;gap:.7rem;color:white;text-decoration:none;font:bold 1.24rem/1.12 Georgia,serif}
.brand small{display:block;font:700 .875rem/1.2 system-ui;color:#f4d89b;letter-spacing:.035em;margin-top:.22rem}
nav,.footlinks{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .65rem}
nav a{color:#edf5ea;font-weight:650;font-size:.9rem;padding:.44rem .32rem;text-decoration:none}
nav a:hover,nav a[aria-current]{color:var(--gold);text-decoration:underline}
.dark{background:var(--forest);color:#f7faf5}
.dark a:not(.button){color:#ffe3a5}
.hero,.subhero{background:radial-gradient(ellipse at 84% 45%,#316944 0%,#174b36 32%,#0b2d22 65%,#08261c 100%)}
.hero-grid{display:grid;align-items:center;grid-template-columns:1.15fr 1fr;gap:clamp(1rem,5vw,5rem);padding-block:clamp(3rem,7vw,6.4rem)}
.hero figure{margin:0;display:grid;place-items:center}
.hero img{max-width:min(100%,490px);filter:drop-shadow(0 18px 28px #021c13bb)}
h1,h2,h3{font-family:Georgia,serif;line-height:1.08;margin:0 0 .78em}
h1{font-size:clamp(2.45rem,5.8vw,5.6rem);font-weight:600;letter-spacing:-.045em;margin-bottom:.3em}
h1 em{color:var(--gold);font-weight:500}
h2{font-size:clamp(1.85rem,3.3vw,3.08rem);letter-spacing:-.035em;margin-bottom:.4em}
h3{font-size:1.37rem;margin-bottom:.42em}
p{margin:.3em 0 1em}
p:last-child{margin-bottom:0}
.eyebrow{font-size:.875rem;font-weight:760;letter-spacing:.105em;text-transform:uppercase;margin:0 0 .8rem;color:#286246}
.dark .eyebrow{color:#f3d38e}
.lead{max-width:40rem;font-size:clamp(1.12rem,2vw,1.35rem);line-height:1.55}
.actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.65rem}
.button{display:inline-block;background:var(--green);color:white;text-decoration:none;font-weight:750;border:1px solid transparent;padding:.66rem 1.12rem;border-radius:.38rem}
.dark .button{background:var(--gold);color:#182c20}
.dark .outline{background:transparent;color:white;border-color:#a5c0a8}
.button:hover{text-decoration:underline}
.motto{background:#d5ae57;color:#10251b;text-align:center;font:700 clamp(1rem,2vw,1.3rem)/1.4 Georgia,serif;padding:.9rem 1rem}
.motto span{padding-inline:.55rem}
.section{padding-block:clamp(2.4rem,5.2vw,4.75rem)}
.subhero h1{max-width:57rem;font-size:clamp(2.4rem,5vw,4.55rem)}
.soft{background:var(--soft)}
.split,.grid{display:grid;gap:1.15rem}
.split{grid-template-columns:1.2fr 1fr;gap:clamp(1.5rem,4vw,4rem);align-items:start}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:1.25rem}
.panel,.card{background:#fffef8;border:1px solid var(--border);border-radius:.55rem;padding:clamp(1.2rem,2.4vw,1.75rem)}
.panel{border-top:4px solid #b08636;background:var(--soft)}
.prose,.measure{max-width:52rem}
.prose h2:not(:first-child),section p+h2{margin-top:1.3em}
.steps{padding-left:1.4rem}
.steps li{margin-bottom:.5rem}
.foot{padding-block:2rem}
.footlinks{gap:.7rem 1.1rem}
.calendar h3{color:#1a6044}
@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.wrap{width:calc(100% - 2rem)}.hero-grid,.split,.grid{grid-template-columns:1fr}.hero img{max-width:min(100%,340px)}nav{gap:.12rem .55rem}.hero-grid{gap:2rem}}
.story-list,.editor-list{display:grid;gap:1rem;margin:1rem 0 2.5rem}
.story-list p{overflow-wrap:anywhere}
.editor-form{display:grid;gap:.8rem;max-width:52rem;margin-bottom:2.5rem}
.editor-form label{font-weight:700}
.editor-form input,.editor-form textarea{width:100%;padding:.65rem;border:1px solid #65796c;border-radius:.3rem;background:white;color:var(--ink);font:inherit}
.editor-form textarea{resize:vertical;min-height:15rem}
.editor-form .actions{margin-top:.3rem}
.editor-form button{font:inherit;font-weight:750;cursor:pointer}
.editor-form button:focus-visible{outline:3px solid #b76d05;outline-offset:4px}
.story-meta{color:#375348;font-size:.95rem}
.full-story{overflow-wrap:anywhere;margin-bottom:2rem}
.story-paging{margin:-.8rem 0 2rem}
.story-paging a{color:#145239;text-decoration:underline}
.story-list h3{overflow-wrap:anywhere}
.charity-table{overflow-x:auto;margin:1rem 0}
.charity-table:focus-visible{outline:3px solid #b76d05;outline-offset:4px}
.charity-table table{border-collapse:collapse;width:100%;min-width:37rem}
.charity-table th,.charity-table td{padding:.65rem .85rem;text-align:left;vertical-align:top;border:1px solid var(--border)}
.charity-table thead{background:var(--forest);color:white}
.charity-table tfoot{background:var(--soft);font-weight:700}
#charity-allocation{margin-top:1.3rem}

.site-menu{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:0;padding:0}
.site-menu a{display:inline-block}
.site-menu .sub-menu{list-style:none;padding-left:.75rem}
.site-menu .current-menu-item>a{color:var(--gold);text-decoration:underline}
.post-image img{max-width:100%;height:auto}
.story-list article{overflow-wrap:anywhere}
.turtle-pagination a{color:var(--green);text-decoration:underline}
.prose img{height:auto}
.custom-logo-link img{width:auto;max-height:70px}
.post-image{margin:1.25rem 0}
