/*
Theme Name: Hands Off Our Footpaths
Theme URI: https://footpaths.info/
Author: Hands Off Our Footpaths campaign
Description: Campaign theme for the Hands Off Our Footpaths community campaign — coral, purple, black and white. Homepage sections (Next Steps, Facts Checked, Why This Matters) are powered by editable custom post types.
Version: 1.11.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hoof
*/

/* ---------- Tokens ---------- */
:root{
  --coral: #ff5757;
  --coral-dark: #e64545;
  --purple: #b9a2f2;
  --purple-dark: #9c81e8;
  --ink: #0b0b0b;
  --paper: #ffffff;
  --grey: #5c5c5c;
  --line: rgba(11,11,11,0.14);
  --max: 820px;

  --font-display: 'Arial Black', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

  /* Real arrow-badge silhouette, traced from the transparent PNG's alpha
     channel (not an approximation) — aspect ratio 2.77:1 */
  --arrow-clip: polygon(99.89% 33.28%, 98.98% 29.34%, 89.53% 2.84%, 87.26% 0%, 2.9% 24.76%, 1.14% 27.13%, 0% 32.65%, 2.22% 92.74%, 3.87% 98.58%, 6.14% 99.84%, 89.87% 75.08%, 91.3% 73.19%, 92.55% 69.09%, 99.66% 38.01%);
  --arrow-ratio: 2.77;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-body); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--ink);}
img{max-width:100%; height:auto; display:block;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}
.screen-reader-text{position:absolute !important; left:-9999px; top:-9999px;}

/* ---------- Banner (soft coral strip) ---------- */
.hoof-banner{border-top:2px solid var(--ink); border-bottom:2px solid var(--ink); background:#fff5f5;}
.hoof-banner-inner{
  color:var(--coral-dark); font-family:var(--font-mono); font-size:12.5px; letter-spacing:0.02em;
  font-weight:700; text-align:center; padding:9px 14px;
}

/* ---------- Header / nav (light bar, hairline rules) ---------- */
.site-header{background:var(--paper); border-top:2px solid var(--ink);}
.primary-nav{max-width:var(--max); margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;}
.site-logo{display:flex; align-items:center; padding:14px 0; text-decoration:none;}
.site-header .site-logo img{
  height:var(--logo-height, 40px) !important; width:auto !important; max-height:var(--logo-height, 40px) !important;
  max-width:none !important; display:block;
}
.site-logo-fallback{
  font-family:var(--font-display); font-weight:900; font-size:14px; color:var(--ink);
  text-transform:uppercase; letter-spacing:-0.01em;
}
.primary-nav ul{list-style:none; display:flex; gap:26px; margin:0; padding:14px 0; flex-wrap:wrap;}
.primary-nav ul a{
  color:var(--ink); font-weight:700; text-decoration:none; font-size:15px;
  padding:2px; border-bottom:2px solid transparent;
}
.primary-nav ul a:hover, .primary-nav ul .current-menu-item > a{color:var(--coral-dark); border-bottom-color:var(--coral);}
.menu-toggle{display:none;}

/* ---------- Chip / signature arrow (real traced shape, not approximated) ----------
   Width is computed explicitly from height * ratio rather than relying on the
   CSS `aspect-ratio` property, which doesn't reliably combine with clip-path
   on inline-flex elements in Safari — it was stretching/distorting the shape. */
.chip{
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
  background:var(--coral); color:var(--paper);
  font-family:var(--font-display); font-weight:900; text-transform:uppercase;
  padding:0 30px 0 18px; height:44px; width:calc(44px * var(--arrow-ratio));
  clip-path: var(--arrow-clip); flex:none;
}
.chip.chip-black{background:var(--ink);}
.chip.small{padding:0 22px 0 12px; font-size:13px; height:32px; width:calc(32px * var(--arrow-ratio));}

/* Inline brand mark that replaces a literal "[Our Footpaths]" token inside
   editable headline text (see hoof_render_headline() in functions.php).
   This is the real logo PNG, sized to the surrounding text's line-height —
   using an actual image sidesteps ever having text overflow a CSS shape. */
.chip-logo{
  height:var(--hero-badge-size, 0.95em); width:auto; display:inline-block;
  vertical-align:-0.12em; margin:0 0.08em;
}

/* ---------- Hero ---------- */
.hero{padding:26px 0 10px;}
.hero-eyebrow{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--coral-dark); margin:0 0 14px; font-weight:700;
}
.hero h1.hero-cycle{
  position:relative; font-family:var(--font-display); font-weight:900;
  font-size:clamp(2.2rem, 8.5vw, 3.6rem);
  line-height:1.08; margin:8px 0 6px; letter-spacing:-0.015em;
  min-height:2.2em;
}
.hero-cycle .slide{
  position:absolute; inset:0; opacity:0; transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease; pointer-events:none;
}
.hero-cycle .slide.is-active{position:relative; opacity:1; transform:translateY(0); pointer-events:auto;}
.hero .dots{display:flex; gap:7px; margin:18px 0 22px;}
.hero .dots span{width:7px; height:7px; border-radius:50%; background:var(--line); display:block;}
.hero .dots span.is-active{background:var(--coral);}
.hero .hero-content{font-size:18px; max-width:60ch; color:#2c2c2c; margin-top:18px;}
.hero .hero-content p{margin:0 0 14px;}
.hero .hero-content b{font-weight:700;}
.cta-row{display:flex; gap:14px; flex-wrap:wrap; margin-top:26px;}
.btn{
  font-family:var(--font-body); font-weight:700; font-size:15px;
  padding:14px 22px; text-decoration:none; display:inline-block;
  border:2px solid var(--ink); border-radius:2px;
}
.btn-primary{background:var(--ink); color:var(--paper);}
.btn-primary:hover{background:#2a2a2a;}
.btn-purple{background:var(--purple); color:var(--ink); border-color:var(--ink);}
.btn-purple:hover{background:var(--purple-dark);}
.btn-ghost{background:transparent; color:var(--ink);}
.btn-ghost:hover{background:rgba(11,11,11,0.06);}

.rule{height:2px; background:var(--ink); margin:56px 0 0;}
.hoof-section{padding-top:44px;}
.section-head{
  font-family:var(--font-display); font-weight:900; font-size:2rem; text-transform:uppercase;
  margin:0 0 8px; letter-spacing:-0.01em;
}
.section-sub{color:var(--grey); font-size:15px; margin:0 0 30px; max-width:58ch;}

/* ---------- Next steps ---------- */
.step-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:22px;}
.step{border:2px solid var(--ink); padding:28px 24px 24px; position:relative; background:var(--paper);}
.step .step-badge{
  position:absolute; top:-18px; left:20px;
  font-family:var(--font-display); font-weight:900; font-size:13px;
  color:var(--paper); background:var(--coral);
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
  padding:0 24px 0 12px; height:38px; width:calc(38px * var(--arrow-ratio));
  clip-path: var(--arrow-clip); text-transform:uppercase; flex:none;
  overflow:hidden; white-space:nowrap; letter-spacing:-0.01em;
}
.step:nth-child(even) .step-badge{background:var(--ink);}
.step h3{font-family:var(--font-display); font-size:1.1rem; margin:14px 0 10px; text-transform:uppercase;}
.step p{margin:0 0 12px; font-size:15.5px; color:#2c2c2c;}
.step .note{font-size:13.5px; color:var(--grey); border-left:3px solid var(--purple); padding-left:12px; margin:12px 0;}
.step .flag{
  display:inline-block; font-family:var(--font-mono); font-size:12px;
  background:var(--purple); color:var(--ink); padding:3px 9px; font-weight:700;
  margin-bottom:10px; letter-spacing:0.02em;
}
.step .step-cta{margin-top:14px;}

/* ---------- Email tool ---------- */
.hoof-tool{background:var(--ink); color:var(--paper); padding:28px 24px 24px; margin:24px 0 0; border-radius:4px;}
.hoof-tool h3{font-family:var(--font-display); font-size:1.3rem; margin:0 0 8px; text-transform:uppercase;}
.hoof-tool p{color:#c9c9c9; font-size:14.5px; margin:0 0 20px;}
.hoof-tool label{display:block; font-size:12.5px; font-family:var(--font-mono); margin-bottom:5px; color:#9a9a9a; text-transform:uppercase; letter-spacing:0.04em;}
.hoof-tool input{
  width:100%; padding:11px 12px; margin-bottom:14px; border-radius:2px; border:1px solid #444;
  background:#1c1c1c; color:var(--paper); font-family:var(--font-body); font-size:15px;
}
.tool-btns{display:flex; flex-wrap:wrap; gap:10px; margin-top:6px;}
.tool-btns a{
  font-size:14px; font-weight:700; padding:11px 16px; border-radius:2px;
  background:var(--purple); color:var(--ink); text-decoration:none;
}
.tool-btns a:hover{background:var(--purple-dark);}
.tool-privacy{font-size:12.5px; color:#8a8a8a; margin-top:16px;}

/* ---------- Asks ---------- */
.ask-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px;}
.ask-list li{padding:16px 0 16px 30px; border-bottom:1px solid var(--line); position:relative; font-size:15.5px;}
.ask-list li:last-child{border-bottom:none;}
.ask-list li::before{content:"→"; position:absolute; left:0; font-weight:900; color:var(--coral);}

/* ---------- Why this matters (FAQ CPT) ---------- */
.faq-item{border-bottom:1px solid var(--line);}
.faq-item summary{
  list-style:none; cursor:pointer; padding:20px 0; display:flex; gap:16px; align-items:baseline;
  font-family:var(--font-display); font-weight:900; font-size:1.02rem; text-transform:uppercase;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; margin-left:auto; font-family:var(--font-mono); color:var(--coral); font-size:1.3rem; font-weight:400;}
.faq-item[open] summary::after{content:"–";}
.faq-item .faq-body{padding:0 0 22px; font-size:15px; color:#2c2c2c; max-width:62ch;}
.tag{font-family:var(--font-mono); font-size:11px; color:var(--grey); display:block; margin-top:10px; letter-spacing:0.02em; text-transform:uppercase;}
.tag.is-fact-checked{color:var(--coral-dark);}

/* ---------- Claims / facts checked ---------- */
.claims{display:flex; flex-direction:column; gap:18px;}
.claim{display:grid; grid-template-columns:80px 1fr; gap:18px; align-items:start; border:2px solid var(--ink); padding:18px 20px;}
.claim-stamp{
  font-family:var(--font-mono); font-weight:700; font-size:10.5px; text-align:center;
  background:var(--ink); color:var(--purple); border-radius:50%; width:74px; height:74px;
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  transform:rotate(-8deg); letter-spacing:0.02em; line-height:1.25; padding:4px; border:2px solid var(--ink);
}
.claim-stamp.is-campaign-position{background:var(--paper); color:var(--ink); border-color:var(--ink);}
.claim p{margin:0 0 8px; font-size:15px;}
.claim .src{font-size:12.5px; color:var(--grey); font-family:var(--font-mono);}
.claim .src a{color:var(--grey); text-decoration:underline;}

/* ---------- Poster gallery ---------- */
.poster-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;}
.poster-card{border:2px solid var(--ink);}
.poster-card img{width:100%; height:auto; border-bottom:2px solid var(--ink);}
.poster-card > a{
  display:block; text-align:center; font-family:var(--font-mono); font-weight:700; font-size:12px;
  padding:10px 6px; text-decoration:none; text-transform:uppercase; letter-spacing:0.03em; color:var(--ink);
}
.poster-card > a:hover{background:var(--purple);}
.poster-placeholder{
  min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:20px; text-align:center; background:repeating-linear-gradient(45deg, #f7f7f5 0 10px, #efefec 10px 20px);
}
.poster-placeholder p{font-family:var(--font-display); font-weight:900; font-size:13px; text-transform:uppercase; margin:0; color:var(--grey);}
.poster-placeholder-edit{font-family:var(--font-mono); font-size:11px; text-decoration:none; color:var(--coral-dark); font-weight:700;}
.poster-placeholder-note{font-family:var(--font-mono); font-size:11px; color:var(--grey);}

/* ---------- Email tool placeholder ---------- */
.tool-embed-placeholder{
  border:1px dashed #555; border-radius:2px; padding:30px 20px; text-align:center;
}
.tool-embed-placeholder p{color:#8a8a8a; font-family:var(--font-mono); font-size:13px; margin:0 0 10px;}
.tool-embed-placeholder .poster-placeholder-edit{color:var(--purple);}
.tool-embed-frame{
  width:100%; border:none; border-radius:8px; background:var(--paper); display:block;
  box-shadow:0 8px 30px rgba(0,0,0,0.35); overflow:hidden;
  transition:height 0.25s ease;
}

/* ---------- Latest updates (posts) ---------- */
.updates-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px;}
.updates-list li{padding:18px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;}
.updates-list a{font-weight:700; text-decoration:none; font-size:16px;}
.updates-list a:hover{color:var(--coral-dark);}
.updates-list .meta{font-family:var(--font-mono); font-size:12.5px; color:var(--grey); white-space:nowrap;}
.cat-pill{
  display:inline-block; font-family:var(--font-mono); font-size:11px; text-transform:uppercase;
  background:var(--purple); color:var(--ink); padding:2px 8px; margin-right:8px; letter-spacing:0.03em;
}

/* ---------- Generic content / single post / page ---------- */
.hoof-article{padding:40px 0 60px;}
.hoof-article .entry-title{font-family:var(--font-display); font-weight:900; font-size:clamp(1.8rem,6vw,2.6rem); text-transform:uppercase; margin:0 0 12px; line-height:1.04;}
.hoof-article .entry-meta{font-family:var(--font-mono); font-size:12.5px; color:var(--grey); margin-bottom:26px;}
.hoof-article .entry-content{font-size:17px; max-width:68ch;}
.hoof-article .entry-content p{margin:0 0 18px;}
.hoof-article .entry-content h2{font-family:var(--font-display); text-transform:uppercase; font-size:1.5rem; margin:34px 0 12px;}
.hoof-article .entry-content img{border:2px solid var(--ink); margin:20px 0;}
.hoof-article .entry-content a{text-decoration:underline; text-decoration-color:var(--coral); text-underline-offset:3px;}
.back-link{display:inline-block; margin-bottom:26px; font-weight:700; text-decoration:none; font-size:14px;}
.back-link:hover{color:var(--coral-dark);}

/* ---------- Footer ---------- */
.site-footer{margin-top:70px; padding:40px 0 60px; border-top:2px solid var(--ink);}
.site-footer p{font-size:14px; color:#3a3a3a; max-width:65ch;}
.site-footer .hashtag{font-family:var(--font-display); font-weight:900; font-size:1.3rem; margin-top:18px; text-transform:uppercase; color:var(--coral-dark);}
.footer-nav ul{list-style:none; display:flex; gap:18px; padding:0; margin:20px 0 0; flex-wrap:wrap;}
.footer-nav a{font-size:13px; font-weight:700; text-decoration:none;}

/* ---------- Admin verification flag badge (front-end) ---------- */
.verify-badge{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:11px;
  text-transform:uppercase; letter-spacing:0.03em; padding:4px 10px; border:1px solid var(--ink);
}

@media (max-width:680px){
  .claim{grid-template-columns:1fr;}
  .claim-stamp{width:64px; height:64px;}
  .site-header .wrap{flex-direction:column; align-items:flex-start;}
  .primary-nav ul{gap:14px;}

  /* Break the tool out of .wrap's max-width + side padding so the
     embedded form gets the full screen width instead of a narrow,
     doubly-inset column. */
  .hoof-tool{
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    width:100vw;
    border-radius:0;
    padding:22px 12px 18px;
  }
  .tool-embed-frame{border-radius:0; box-shadow:none;}
}
