/* ==========================================================================
   Charotar Field — theme styles
   ==========================================================================
   Ported from the approved v3 landing-page design, with WordPress-specific
   additions at the end of this file (block wrappers, admin bar offset,
   editor parity). Fonts are self-hosted and registered in theme.json, so
   no external font request is made.

   Design tokens live in :root / [data-theme="dark"] below and are the
   single source of truth — theme.json's palette mirrors the same hex
   values so the block editor's colour picker matches the front end.
   ========================================================================== */

:root{
  --ink:#1C231F; --paper:#FAF8F3; --paper-card:#FFFFFF;
  --moss:#234030; --moss-light:#EBF1EC; --sage:#C5DEC9;
  --terracotta:#D96B43; --terracotta-light:#FBEFEA;
  --oat:#EFE8D8; --sky-soft:#E2EFF5;
  --line:rgba(28,35,31,.12); --line-strong:rgba(28,35,31,.28);
  --dots:rgba(28,35,31,.07);
  --hero-text:#FFF; --on-moss:#FFF;
  --shadow-sm:0 2px 8px rgba(28,35,31,.04);
  --shadow:0 10px 30px -5px rgba(28,35,31,.07), 0 2px 6px -1px rgba(28,35,31,.04);
  --shadow-lg:0 20px 40px -10px rgba(28,35,31,.12);
  --r:20px; --r-sm:12px;
  --font-display:'IBM Plex Sans',system-ui,-apple-system,sans-serif;
  --font-serif:'IBM Plex Serif',Georgia,serif;
  --font-mono:'IBM Plex Mono',ui-monospace,monospace;
  --page-pad:clamp(24px,5vw,56px);
  --ok:#2E6B4F; --err:#B3452F;
}

/* Dark mode: the original site had a light/dark toggle and you asked
   to keep it (moved to the footer), so this design gets one too. The
   moss/sage/terracotta relationships are preserved — surfaces invert,
   accents stay recognisably the same brand. */
html[data-theme="dark"]{
  --ink:#EDE9DF; --paper:#12170F; --paper-card:#1A2019;
  --moss:#1B3326; --moss-light:#22301F; --sage:#8FB79A;
  --terracotta:#E58A63; --terracotta-light:#33231C;
  --oat:#2A2519; --sky-soft:#1B2A31;
  --line:rgba(237,233,223,.14); --line-strong:rgba(237,233,223,.3);
  --dots:rgba(237,233,223,.06);
  --shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --shadow:0 10px 30px -5px rgba(0,0,0,.45), 0 2px 6px -1px rgba(0,0,0,.3);
  --shadow-lg:0 20px 40px -10px rgba(0,0,0,.55);
  --ok:#7FC5A0; --err:#E58A63;
}
html[data-theme="dark"] .card.dark{background:#0D110B;}
html[data-theme="dark"] .ico svg[stroke="#1C231F"]{stroke:#EDE9DF;}
html[data-theme="dark"] .brand .glyph svg circle[fill="#1C231F"],
html[data-theme="dark"] footer .glyph svg circle[fill="#1C231F"]{fill:#12170F;}
html[data-theme="dark"] .brand .glyph svg path[stroke="#1C231F"],
html[data-theme="dark"] footer .glyph svg path[stroke="#1C231F"]{stroke:#12170F;}
html[data-theme="dark"] .avatar{color:var(--ink);}
html[data-theme="dark"] .fill-sage,html[data-theme="dark"] .fill-sage *{color:#12170F;}
html[data-theme="dark"] .btn-sage{color:#12170F;}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}*{animation:none!important;transition:none!important;}}

body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font-display);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(var(--dots) 1px,transparent 1px);
  background-size:24px 24px;
  transition:background-color .2s ease,color .2s ease;
}
.wrap{max-width:1200px;margin:0 auto;padding-left:var(--page-pad);padding-right:var(--page-pad);}
h1,h2,h3,h4{line-height:1.12;margin:0;letter-spacing:-.015em;font-weight:600;}
p{margin:0 0 1em;}
a{color:inherit;}
:focus-visible{outline:2.5px solid var(--terracotta);outline-offset:2px;border-radius:4px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--moss);color:#FFF;padding:12px 20px;border-radius:0 0 10px 0;text-decoration:none;font-weight:600;}
.skip:focus{left:0;}

/* primitives */
.card{background:var(--paper-card);border:1.5px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:32px;position:relative;transition:border-color .2s ease;}
.card:hover{border-color:var(--line-strong);}
.tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11px;text-transform:uppercase;letter-spacing:.08em;border:1.5px solid var(--line);border-radius:999px;padding:6px 14px;background:var(--paper);font-weight:500;color:var(--ink);}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:var(--font-display);font-weight:600;font-size:15px;border:1.5px solid var(--line-strong);border-radius:999px;padding:14px 28px;background:var(--paper-card);color:var(--ink);text-decoration:none;cursor:pointer;box-shadow:var(--shadow-sm);transition:all .18s ease;}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--ink);}
.btn:active{transform:translateY(0);}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none;}
.btn-sage{background:var(--sage);border-color:rgba(0,0,0,.1);color:#1C231F;}
.btn-terracotta{background:var(--terracotta);color:#FFF;border-color:transparent;}
.btn-terracotta:hover{background:#C85C35;color:#FFF;}
.btn-moss{background:var(--moss);color:#FFF;border-color:transparent;}
.btn-moss:hover{background:#1B3326;color:#FFF;}

/* nav */
header.nav{position:sticky;top:0;z-index:60;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(12px);border-bottom:1.5px solid var(--line);}
.nav-in{max-width:1200px;margin:0 auto;padding:14px var(--page-pad);display:flex;align-items:center;gap:16px;}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:600;font-size:16px;letter-spacing:-.01em;}
.brand .glyph{width:36px;height:36px;border:1.5px solid var(--line-strong);border-radius:10px;background:var(--sage);display:grid;place-items:center;flex:none;}
.brand small{display:block;font-family:var(--font-mono);font-size:9.5px;font-weight:400;letter-spacing:.06em;text-transform:uppercase;opacity:.7;}
.nav-links{margin-left:auto;display:flex;gap:24px;align-items:center;}
.nav-links a{font-size:14px;font-weight:600;text-decoration:none;opacity:.8;transition:opacity .2s;white-space:nowrap;}
.nav-links a:hover{opacity:1;}
.nav-links .btn{padding:10px 20px;font-size:13.5px;flex:none;}
.nav-burger{display:none;margin-left:auto;background:var(--paper-card);border:1.5px solid var(--line);border-radius:10px;width:40px;height:40px;cursor:pointer;}
.nav-burger span{display:block;width:18px;height:2px;background:var(--ink);margin:4px auto;}
@media(max-width:1040px) and (min-width:901px){.nav-links{gap:16px;}.nav-links a{font-size:13px;}}
@media(max-width:900px){
  .nav-links{position:fixed;inset:68px 0 auto;flex-direction:column;align-items:flex-start;gap:0;background:var(--paper-card);border-bottom:1.5px solid var(--line);padding:12px var(--page-pad) 24px;transform:translateY(-130%);transition:transform .24s ease;}
  .nav-links.open{transform:translateY(0);}
  .nav-links a{padding:12px 0;width:100%;border-bottom:1px solid var(--line);}
  .nav-links .btn{margin-top:14px;width:100%;}
  .nav-burger{display:block;}
}

/* hero */
.hero{padding-top:36px;padding-bottom:24px;}
.hero-card{background:var(--moss);color:var(--on-moss);border:1.5px solid rgba(255,255,255,.1);border-radius:28px;box-shadow:var(--shadow-lg);padding:clamp(40px,5.5vw,68px) clamp(32px,5vw,64px);position:relative;overflow:hidden;}

.hero-main .tag{background:rgba(255,255,255,.12);color:#FFF;border-color:rgba(255,255,255,.2);}
.hero-main h1{font-size:clamp(34px,4.8vw,58px);margin:20px 0 0;font-weight:600;color:#FFF;letter-spacing:-.02em;}
.hero-main h1 em{font-family:var(--font-serif);font-style:italic;font-weight:400;color:var(--sage);}
.hero-main p{max-width:60ch;margin-top:20px;font-size:17px;opacity:.9;line-height:1.65;color:#FFF;}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px;}
.hero-info-panel{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:20px;padding:28px;display:grid;gap:20px;backdrop-filter:blur(8px);color:#FFF;}
.hero-info-panel .stat-block{border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:18px;}
.hero-info-panel .n{font-size:34px;font-weight:600;line-height:1.1;color:var(--sage);letter-spacing:-.02em;}
.hero-info-panel .l{font-family:var(--font-mono);font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-top:6px;opacity:.85;}
.hero-info-panel .sub{font-size:13px;opacity:.7;margin-top:2px;}
.hero-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;}
.hero-info-grid dt{font-family:var(--font-mono);font-size:10px;text-transform:uppercase;letter-spacing:.08em;opacity:.6;}
.hero-info-grid dd{margin:2px 0 0;font-weight:600;font-size:15px;color:#FFF;}
.hero-bg-icon{position:absolute;right:-30px;bottom:-30px;width:280px;height:280px;opacity:.05;pointer-events:none;}

/* marquee */
.marquee{border-top:1.5px solid var(--line);border-bottom:1.5px solid var(--line);background:var(--paper-card);color:var(--ink);overflow:hidden;margin:40px 0;}
.marquee-in{display:flex;gap:32px;padding:12px 0;white-space:nowrap;animation:slide 32s linear infinite;font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.8;}
@keyframes slide{to{transform:translateX(-50%);}}
.marquee-in span{display:flex;gap:32px;align-items:center;}

/* sections */
section{padding:52px 0;}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:32px;flex-wrap:wrap;}
.sec-head h2{font-size:clamp(28px,3.8vw,42px);}
.sec-head h2 em{font-family:var(--font-serif);font-style:italic;font-weight:400;color:var(--terracotta);}
.sec-head p{margin:8px 0 0;max-width:54ch;opacity:.75;font-size:15px;}

/* bento */
.bento{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.bento>*{grid-column:span 1;}
.b2{grid-column:span 2!important;}.b3{grid-column:span 3!important;}.b4{grid-column:span 4!important;}
@media(max-width:900px){.bento{grid-template-columns:repeat(2,1fr);}.b3,.b4{grid-column:span 2!important;}}
@media(max-width:560px){.bento{grid-template-columns:1fr;}.b2,.b3,.b4{grid-column:span 1!important;}}
.bento h3{font-size:19px;margin-bottom:8px;font-weight:600;}
.bento p{font-size:14.5px;opacity:.78;margin:0;}
.ico{width:42px;height:42px;border:1.5px solid var(--line);border-radius:var(--r-sm);display:grid;place-items:center;margin-bottom:16px;background:var(--paper);}
.fill-sage{background:var(--sage);border-color:transparent;}
.fill-sky{background:var(--sky-soft);border-color:transparent;}
.fill-terracotta{background:var(--terracotta-light);border-color:transparent;}
.fill-oat{background:var(--oat);border-color:transparent;}
.fill-moss{background:var(--moss-light);border-color:transparent;}
.card.dark{background:var(--ink);color:var(--paper);border-color:transparent;}
.card.dark p{opacity:.75;}
.big-n{font-size:clamp(36px,5vw,52px);font-weight:600;letter-spacing:-.02em;line-height:1;}
.big-n small{display:block;font-family:var(--font-mono);font-size:11px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;margin-top:10px;opacity:.7;}

/* schedule */
.days{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media(max-width:860px){.days{grid-template-columns:1fr;}}
.day{padding:0;overflow:hidden;}
.day-top{padding:22px 26px;border-bottom:1.5px solid var(--line);display:flex;align-items:center;justify-content:space-between;}
.day:nth-child(1) .day-top{background:var(--sky-soft);}
.day:nth-child(2) .day-top{background:var(--sage);}
.day:nth-child(3) .day-top{background:var(--oat);}
.day-top .d{font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7;}
.day-top h3{font-size:20px;}
.day ul{list-style:none;margin:0;padding:22px 26px 26px;display:grid;gap:16px;}
.day li{display:grid;grid-template-columns:58px 1fr;gap:12px;align-items:start;font-size:14px;}
.day li b{font-family:var(--font-mono);font-size:11.5px;font-weight:500;opacity:.6;padding-top:2px;}

/* people */
.people{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
@media(max-width:900px){.people{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.people{grid-template-columns:1fr;}}
.person{text-align:left;padding:24px;}
.avatar{width:100%;aspect-ratio:1;border:1.5px solid var(--line);border-radius:var(--r-sm);margin-bottom:16px;display:grid;place-items:center;font-size:28px;font-weight:600;color:#1C231F;}
.person h4{font-size:16px;margin-bottom:4px;}
.person span{font-family:var(--font-mono);font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.65;}

/* fees */
.fees-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;}
@media(max-width:840px){.fees-grid{grid-template-columns:1fr;}}
.price-box{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0 24px;}
@media(max-width:520px){.price-box{grid-template-columns:1fr;}}
.price-tier{padding:20px;border-radius:var(--r-sm);border:1.5px solid var(--line);background:var(--paper);position:relative;}
.price-tier.active{background:var(--moss-light);border-color:var(--sage);}
.price-tier .badge{font-family:var(--font-mono);font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:500;color:var(--terracotta);margin-bottom:6px;display:block;}
.price-tier .amt{font-size:32px;font-weight:600;line-height:1;letter-spacing:-.02em;}
.price-tier .amt sup{font-size:.5em;font-weight:600;vertical-align:super;}
.price-tier .sub{font-size:12px;opacity:.7;margin-top:6px;line-height:1.3;}
.inclusions-list{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:12px;}
.inclusions-list li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.45;}
.inclusions-list li::before{content:"✓";font-weight:600;color:var(--terracotta);background:var(--terracotta-light);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;flex:none;margin-top:1px;}

/* faq */
.faq{display:grid;gap:14px;max-width:880px;}
details.q{background:var(--paper-card);border:1.5px solid var(--line);border-radius:var(--r-sm);overflow:hidden;transition:border-color .2s;}
details.q:hover{border-color:var(--line-strong);}
details.q summary{padding:20px 24px;cursor:pointer;font-weight:600;font-size:16px;list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;}
details.q summary::-webkit-details-marker{display:none;}
details.q summary::after{content:"+";font-size:20px;font-weight:400;flex:none;line-height:1;opacity:.6;}
details.q[open] summary::after{content:"–";}
details.q[open] summary{background:var(--paper);border-bottom:1.5px solid var(--line);}
details.q .a{padding:20px 24px;font-size:14.5px;opacity:.82;line-height:1.6;}

/* ============ REGISTRATION FORM ============ */
.reg-layout{display:grid;grid-template-columns:1.55fr .85fr;gap:20px;align-items:start;}
@media(max-width:980px){.reg-layout{grid-template-columns:1fr;}}
.reg-aside{display:grid;gap:20px;position:sticky;top:88px;}
@media(max-width:980px){.reg-aside{position:static;}}
.fee-banner{background:var(--moss-light);border:1.5px solid var(--sage);border-radius:var(--r);padding:22px 24px;}
.fee-banner .lbl{font-family:var(--font-mono);font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;opacity:.7;}
.fee-banner .amt{font-size:34px;font-weight:600;letter-spacing:-.02em;line-height:1;margin-top:6px;}
.fee-banner .amt sup{font-size:.5em;vertical-align:super;font-weight:600;}
.fee-banner .note{font-size:13px;opacity:.75;margin-top:8px;line-height:1.45;}

form.reg{background:var(--paper-card);border:1.5px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:clamp(24px,3.4vw,38px);}
form.reg fieldset{border:none;padding:0;margin:0 0 34px;}
form.reg fieldset:last-of-type{margin-bottom:22px;}
form.reg legend{font-family:var(--font-mono);font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--terracotta);padding:0;margin-bottom:4px;font-weight:500;}
.legend-note{font-size:13.5px;opacity:.7;margin:0 0 18px;}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
.frow.c3{grid-template-columns:1fr 1fr 1fr;}
.frow.c1{grid-template-columns:1fr;}
@media(max-width:680px){.frow,.frow.c3{grid-template-columns:1fr;}}
.field{display:flex;flex-direction:column;min-width:0;}
.field label{font-size:13px;font-weight:600;margin-bottom:7px;}
.field .req{color:var(--terracotta);}
.field input,.field select,.field textarea{
  font-family:var(--font-display);font-size:15px;color:var(--ink);
  background:var(--paper);border:1.5px solid var(--line);border-radius:10px;
  padding:12px 14px;width:100%;transition:border-color .15s,box-shadow .15s;
}
.field textarea{resize:vertical;min-height:84px;}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--moss);box-shadow:0 0 0 3px var(--moss-light);}
.field .hint{font-size:12px;opacity:.62;margin-top:6px;line-height:1.4;}
.field .err-msg{font-size:12.5px;color:var(--err);margin-top:6px;font-weight:600;min-height:0;}
.field.error input,.field.error select{border-color:var(--err);}
.field.error .err-msg{min-height:18px;}
.consent{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;margin-bottom:14px;}
.consent input{width:19px;height:19px;flex:none;margin-top:2px;accent-color:var(--moss);}
.consent a{font-weight:600;text-decoration:underline;}
.hp{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;}
.form-foot{border-top:1.5px solid var(--line);padding-top:22px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:space-between;}
.form-foot .note{font-size:12.5px;opacity:.65;max-width:38ch;margin:0;}
.success{display:none;text-align:center;padding:44px 28px;}
.success.show{display:block;}
.success .tick{width:58px;height:58px;border-radius:50%;background:var(--sage);color:#1C231F;display:grid;place-items:center;margin:0 auto 18px;font-size:27px;font-weight:600;}
.success h3{font-size:24px;margin-bottom:10px;}
.success .rn{font-family:var(--font-mono);font-size:17px;margin:14px 0;font-weight:500;}

/* contact */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media(max-width:820px){.contact-grid{grid-template-columns:1fr;}}
.contact-grid .card{display:flex;flex-direction:column;gap:6px;}
.contact-grid .k{font-family:var(--font-mono);font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;opacity:.6;}
.contact-grid .v{font-weight:600;font-size:16px;word-break:break-word;}
.contact-grid .v a{text-decoration:none;}
.contact-grid .v a:hover{text-decoration:underline;}

/* cta */
.cta{background:var(--moss);color:#FFF;border:1.5px solid rgba(255,255,255,.1);border-radius:28px;box-shadow:var(--shadow-lg);padding:52px 40px;text-align:center;}
.cta h2{font-size:clamp(30px,4.5vw,48px);color:#FFF;}
.cta h2 em{font-family:var(--font-serif);font-style:italic;font-weight:400;color:var(--sage);}
.cta p{max-width:54ch;margin:16px auto 0;opacity:.82;font-size:16px;color:#FFF;}
.cta .row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:32px;}
.seats{display:inline-flex;align-items:center;gap:10px;margin-top:24px;font-family:var(--font-mono);font-size:12px;letter-spacing:.06em;opacity:.8;}
.dot{width:8px;height:8px;border-radius:50%;background:var(--sage);animation:pulse 2s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.3;}}

/* footer */
footer{border-top:1.5px solid var(--line);background:var(--paper-card);color:var(--ink);padding:48px 0 28px;margin-top:40px;}
.f-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:36px;}
@media(max-width:760px){.f-grid{grid-template-columns:1fr;}}
footer h5{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;margin:0 0 14px;opacity:.6;font-weight:500;}
footer ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-size:14px;}
footer a{text-decoration:none;opacity:.8;transition:opacity .2s;}
footer a:hover{opacity:1;text-decoration:underline;}
.f-bot{border-top:1.5px solid var(--line);margin-top:36px;padding-top:24px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:12.5px;align-items:center;}
.f-bot>span{opacity:.65;flex:1 1 320px;}
.theme-toggle{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:999px;padding:3px;gap:2px;flex:none;background:var(--paper);}
.theme-toggle button{width:30px;height:30px;border-radius:50%;border:none;background:transparent;color:var(--ink);opacity:.55;display:grid;place-items:center;cursor:pointer;transition:all .15s;}
.theme-toggle button:hover{opacity:.9;}
.theme-toggle button[aria-pressed="true"]{background:var(--moss);color:#FFF;opacity:1;}
.theme-toggle svg{width:15px;height:15px;}

/* ==========================================================================
   WordPress-specific adjustments
   ==========================================================================
   Everything above is the design as approved. Everything below exists only
   because this now runs inside WordPress.
   ========================================================================== */

/* WP injects its own block-gap and root padding between top-level blocks,
   which fights the section padding this design already defines — the same
   issue that caused stray whitespace around sections in the first theme.
   theme.json turns both off; these rules are the belt-and-braces half in
   case a future WP version reintroduces some of it by default. */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-group { margin-block-start: 0; margin-block-end: 0; }

/* The sticky header must sit below the admin bar for logged-in users,
   otherwise it covers the site name and My Sites menu. */
.admin-bar header.nav { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar header.nav { top: 46px; }
}
/* WP's admin bar becomes non-fixed below 600px, so the offset must go. */
@media screen and (max-width: 600px) {
	.admin-bar header.nav { top: 0; }
}
.admin-bar .reg-aside { top: 120px; }

/* Block-editor parity: inside the editor canvas there is no <body> with
   our background, and sections are wrapped in extra divs. */
.editor-styles-wrapper {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-display);
	background-image: radial-gradient(var(--dots) 1px, transparent 1px);
	background-size: 24px 24px;
}
.editor-styles-wrapper .wrap { max-width: 1200px; }

/* Core block defaults that would otherwise inherit browser styling. */
.wp-block-image img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.wp-block-button__link { border-radius: 999px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Speaker photos: the design uses initials as a fallback, but the Speakers
   CPT supports a real thumbnail — cover-fit it into the same square. */
.avatar.has-photo { padding: 0; overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sponsors block (exists in ccc-content, had no counterpart in the static
   design — styled here to match the card language). */
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.sponsor-item {
	background: var(--paper-card); border: 1.5px solid var(--line); border-radius: var(--r-sm);
	padding: 22px; display: grid; place-items: center; min-height: 100px;
}
.sponsor-item img { max-width: 100%; max-height: 56px; height: auto; object-fit: contain; }
.sponsor-item .name { font-weight: 700; font-size: 15px; text-align: center; }
.sponsor-tier-label {
	font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
	letter-spacing: .08em; opacity: .6; margin: 26px 0 12px;
}

/* Registration-closed / at-capacity notice, rendered by ccc-registration
   in place of the form. */
.reg-closed {
	background: var(--oat); border: 1.5px solid var(--line); border-radius: var(--r);
	padding: 34px; text-align: center;
}
.reg-closed h3 { font-size: 21px; margin-bottom: 10px; }
.reg-closed p { opacity: .78; margin: 0 auto; max-width: 46ch; font-size: 15px; }

/* Countdown, if the Hero or Pricing block is set to show one. */
.countdown { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.countdown .unit {
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
	border-radius: 12px; padding: 10px 14px; min-width: 62px; text-align: center;
}
.countdown .unit b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.countdown .unit span {
	font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase;
	letter-spacing: .08em; opacity: .75;
}

/* Print: drop interactive chrome, keep the content legible. */
@media print {
	header.nav, .marquee, .hero-cta, .cta, form.reg, .theme-toggle, .skip { display: none !important; }
	body { background: #fff; }
	.card, .hero-card { box-shadow: none; break-inside: avoid; }
}

/* Long-form prose (policy pages, T&C, posts). The landing page is all
   cards and tiles, but these pages are text people actually have to read
   — so they get generous measure, spacing and list styling instead. */
.ccc-prose { padding: clamp(28px, 4vw, 48px); }
.ccc-prose h1, .ccc-prose h2, .ccc-prose h3, .ccc-prose h4 { margin: 1.6em 0 .5em; }
.ccc-prose h1:first-child, .ccc-prose h2:first-child { margin-top: 0; }
.ccc-prose h2 { font-size: 24px; }
.ccc-prose h3 { font-size: 19px; }
.ccc-prose p, .ccc-prose li { font-size: 16px; line-height: 1.72; }
.ccc-prose p { margin: 0 0 1.1em; }
.ccc-prose ul, .ccc-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.ccc-prose li { margin-bottom: .5em; }
.ccc-prose a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
.ccc-prose blockquote {
	margin: 1.4em 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--sage); opacity: .85;
}
.ccc-prose hr { border: none; border-top: 1.5px solid var(--line); margin: 2em 0; }
.ccc-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.ccc-prose th, .ccc-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.ccc-prose th { background: var(--paper); font-weight: 700; }
.ccc-prose code {
	font-family: var(--font-mono); font-size: .9em;
	background: var(--paper); padding: 2px 6px; border-radius: 5px;
}


/* ---------- hero meta row ----------
   Replaces the removed side info panel. Deliberately understated: these
   are reference facts a visitor checks once, not a competing headline. */
.hero-meta{
	list-style:none;margin:36px 0 0;padding:26px 0 0;
	border-top:1px solid rgba(255,255,255,.16);
	display:flex;flex-wrap:wrap;gap:14px 44px;
}
.hero-meta li{display:flex;flex-direction:column;gap:4px;}
.hero-meta span{
	font-family:var(--font-mono);font-size:10.5px;text-transform:uppercase;
	letter-spacing:.09em;opacity:.6;color:#FFF;
}
.hero-meta strong{font-size:16px;font-weight:600;color:#FFF;letter-spacing:-.01em;}
@media(max-width:560px){ .hero-meta{gap:16px 30px;} .hero-meta strong{font-size:15px;} }

/* ==========================================================================
   Prose sections (About the count / About the organiser)
   ==========================================================================
   These replaced the bento grid. Bento suited a page of short, parallel
   facts; these two sections are genuine prose that needs a comfortable
   reading measure, so the layout is a wide text column with a narrower
   supporting panel rather than equal tiles.
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 28px; }
}

/* Alternating the panel side stops two stacked sections reading as a
   repeated template. On mobile both collapse to prose-then-panel, which
   is the correct reading order regardless of desktop side. */
.split.reverse .split-main  { order: 2; }
.split.reverse .split-aside { order: 1; }
@media (max-width: 900px) {
	.split.reverse .split-main  { order: 1; }
	.split.reverse .split-aside { order: 2; }
}

.split-main p { font-size: 16px; line-height: 1.75; margin: 0 0 1.15em; max-width: 62ch; }
.split-main p:last-child { margin-bottom: 0; }
.split-main .lead {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.6;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 1.1em;
}

.inline-link {
	display: inline-block; margin-top: 6px; font-weight: 600; font-size: 15px;
	color: var(--terracotta); text-decoration: none;
	border-bottom: 2px solid transparent; transition: border-color .18s ease;
}
.inline-link:hover { border-bottom-color: var(--terracotta); }

.split-aside { position: sticky; top: 92px; }
@media (max-width: 900px) { .split-aside { position: static; } }
.admin-bar .split-aside { top: 124px; }
@media (max-width: 900px) { .admin-bar .split-aside { top: auto; } }

.split-aside .card h3 { font-size: 18px; margin-bottom: 16px; }
.panel-sage { background: var(--moss-light); border-color: var(--sage); }
.panel-oat  { background: var(--oat); border-color: transparent; }

.tick-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.tick-list li {
	display: flex; gap: 12px; align-items: flex-start;
	font-size: 14.5px; line-height: 1.5;
}
.tick-list li::before {
	content: "→"; font-weight: 600; color: var(--terracotta);
	flex: none; line-height: 1.5;
}
.panel-note {
	margin: 0; padding-top: 16px; border-top: 1px solid var(--line);
	font-size: 13.5px; line-height: 1.55; opacity: .75;
}

/* ---------- Stats strip ----------
   The Stats block emits bare grid children (it was written to sit inside
   the old bento grid), so this wrapper supplies the grid it expects. */
.stats-strip-wrap { padding-top: 0; padding-bottom: 0; }
.stats-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
}
.stats-strip .card { padding: 26px; }
.stats-strip .big-n { font-size: clamp(30px, 3.4vw, 42px); }

/* ---------- Featured chief guest ---------- */
.chief {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: clamp(26px, 3.5vw, 48px);
	align-items: center;
	background: var(--paper-card);
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	padding: clamp(26px, 3.5vw, 44px);
}
@media (max-width: 760px) {
	.chief { grid-template-columns: 1fr; gap: 24px; }
}

.chief-portrait {
	aspect-ratio: 1;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--moss-light);
	border: 1.5px solid var(--line);
}
.chief-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chief-portrait.is-placeholder {
	display: grid; place-items: center;
	background: var(--sage); color: #1C231F;
	font-size: 48px; font-weight: 600; letter-spacing: -.02em;
}
@media (max-width: 760px) {
	/* Full-width square portraits dominate a phone screen; cap the height
	   so the name and bio stay above the fold. */
	.chief-portrait { aspect-ratio: 16 / 10; max-height: 260px; }
}

.chief-body h3 {
	font-size: clamp(24px, 2.8vw, 32px);
	margin: 14px 0 6px;
	letter-spacing: -.02em;
}
.chief-meta {
	font-family: var(--font-mono);
	font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
	opacity: .7; margin: 0 0 16px;
}
.chief-bio { font-size: 15.5px; line-height: 1.7; opacity: .85; margin: 0; }
.chief-bio p { margin: 0 0 .9em; }
.chief-bio p:last-child { margin-bottom: 0; }

/* Editor-only empty state, shown by block overrides when a CPT has no
   content yet. Visible only to users who can edit content — a visitor
   never sees it — but it should still look deliberate rather than like
   an unstyled error. */
.ccc-empty-notice {
	background: var(--terracotta-light);
	border: 1px dashed var(--terracotta);
	border-radius: var(--r-sm);
	padding: 16px 20px;
	font-size: 14px;
	color: var(--ink);
	margin: 0;
}

/* ---------- Aside imagery ----------
   Set as CSS backgrounds rather than <img> tags for two reasons: the URL
   resolves relative to THIS stylesheet, so it works whether WordPress is
   at the domain root or in a subdirectory (a hardcoded /wp-content/ path
   does not), and the images are decorative, so they should not appear in
   the accessibility tree or be announced by a screen reader.

   TO USE REAL PHOTOGRAPHS: drop files into assets/img/ and point these two
   rules at them. Landscape crops around 4:3 work best. The shipped SVG is
   a designed placeholder, not a stand-in photograph — it is deliberately
   abstract so it does not look like a missing image. */
.aside-figure {
	width: 100%;
	/* aspect-ratio alone collapses on an empty element in some rendering
	   engines (the same issue that made the hero eye-shine dots vanish
	   earlier), so a concrete height backs it up. */
	aspect-ratio: 4 / 3;
	min-height: 210px;
	border-radius: var(--r);
	border: 1.5px solid var(--line);
	background-color: var(--moss-light);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-bottom: 20px;
	box-shadow: var(--shadow-sm);
}
.fig-event     { background-image: url('https://crocodilecount.org/wp-content/uploads/2026/09/crocodile-count-1.webp'); }
.fig-organiser { background-image: url('https://crocodilecount.org/wp-content/uploads/2026/09/VNCIndia.webp'); }

/* Sub-headings inside the long About prose. The section already has an
   h2, so these are h3 — visually quieter than a section heading but
   clearly a new topic. */
.split-main .sub-h {
	font-size: 17px;
	font-weight: 600;
	margin: 28px 0 10px;
	letter-spacing: -.01em;
}
.split-main .sub-h:first-child { margin-top: 0; }

/* The aside is taller now that it carries an image; only stick it on
   screens with the height to spare, or it can scroll past its own top. */
@media (max-height: 820px) {
	.split-aside { position: static; }
}

/* Sponsor logos are rendered as WordPress image markup, so the greyscale
   treatment is applied by class here rather than as an inline style. */
.sponsor-item.is-grayscale img { filter: grayscale(1); opacity: .75; }
.sponsor-item.is-grayscale:hover img { filter: none; opacity: 1; }

/* ---------- Header logo ----------
   Sized by height so any aspect ratio behaves: a wide wordmark and a
   square mark both sit correctly in the bar without being distorted. */
.brand--logo { display: flex; align-items: center; text-decoration: none; }
.brand-logo {
	height: 58px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	display: block;
}
@media (max-width: 560px) {
	.brand-logo { height: 38px; max-width: 165px; }
}
/* A logo designed for a light background would disappear against the dark
   surface. Inverting is a blunt instrument, so instead give it a subtle
   light plate only in dark mode — legible without altering brand colours. */
html[data-theme="dark"] .brand-logo {
	background: rgba(255,255,255,.92);
	border-radius: 6px;
	padding: 3px 6px;
}
