/* Aediles Face — design system.
   Environmental-services identity from the owner's poster: family navy
   #000F2D / #001233, deep pine #0B3D2E, leaf green #37B24D, warm paper
   #F4F7F1. Presentation only. */

:root{
  --aedi-navy:#000F2D; --aedi-royal:#001233; --aedi-pine:#0B3D2E;
  --aedi-green:#37B24D; --aedi-green-d:#26803A;
  --aedi-ink:#16241B; --aedi-muted:#5A6B5E;
  --aedi-paper:#F4F7F1; --aedi-line:#DCE5D8;
  --wp--style--global--content-size:820px;
  --wp--style--global--wide-size:1180px;
}

html{ overflow-x:hidden; }
body{ overflow-x:hidden; }
.wp-block-post-content p, .wp-block-post-content li{ word-break:normal; overflow-wrap:normal; hyphens:none; }

/* ---------- header ---------- */
header.wp-block-template-part{
  background:linear-gradient(90deg,var(--aedi-navy) 0%,var(--aedi-royal) 55%,var(--aedi-pine) 100%);
  color:#fff;
}
header.wp-block-template-part .wp-block-site-title a{
  color:#fff !important; font-weight:800; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; font-size:1.06rem;
}
header.wp-block-template-part .wp-block-navigation a{
  color:rgba(255,255,255,.88) !important; font-weight:600; text-decoration:none;
}
header.wp-block-template-part .wp-block-navigation a:hover{ color:var(--aedi-green) !important; }
header.wp-block-template-part .wp-block-navigation__responsive-container-open{ color:#fff; }
header.wp-block-template-part .wp-block-navigation__responsive-container{ background:var(--aedi-navy); }
header.wp-block-template-part .wp-block-navigation__responsive-container a{ color:#fff !important; }
header.wp-block-template-part .swc-link{ color:#B9E7A8 !important; }
header.wp-block-template-part .swc-link:hover{ color:#fff !important; }

/* wallet strip (SWC) */
.swc-topbar{ background:#00081A; border-bottom:1px solid rgba(55,178,77,.35); }
.swc-topbar a.swc-link{ color:rgba(255,255,255,.85); font-weight:600; }
.swc-topbar a.swc-link:hover{ color:var(--aedi-green); }
.swc-wallet-btn{
  background:var(--aedi-green) !important; color:#fff !important;
  font-weight:800 !important; border-radius:999px !important; border:none !important;
  padding:.5em 1.2em !important; cursor:pointer;
}
.swc-wallet-btn:hover{ background:var(--aedi-green-d) !important; }
.swc-status{ color:rgba(255,255,255,.75); }

/* ---------- footer ---------- */
footer.wp-block-template-part{ background:var(--aedi-navy); color:rgba(255,255,255,.85); }
footer.wp-block-template-part .wp-block-site-title a{ color:#fff !important; font-weight:800; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; }
footer.wp-block-template-part h2, footer.wp-block-template-part h3{ color:#fff; }
footer.wp-block-template-part a{ color:rgba(255,255,255,.82); text-decoration:none; }
footer.wp-block-template-part a:hover{ color:var(--aedi-green); }

/* ---------- general type on content pages ---------- */
.wp-block-post-title{ color:var(--aedi-navy); font-weight:800; letter-spacing:-.01em; }
.wp-block-post-content h2{ color:var(--aedi-navy); font-weight:800; letter-spacing:-.01em; margin-top:1.5em; }
.wp-block-post-content h3{ color:var(--aedi-navy); font-weight:700; border-left:4px solid var(--aedi-green); padding-left:.55em; margin-top:1.4em; }
.wp-block-post-content a{ color:#177245; }
.wp-block-post-content a:hover{ color:var(--aedi-green-d); }

/* ---------- SES surfaces ---------- */
.ses-card{
  border:1px solid var(--aedi-line) !important; border-top:4px solid var(--aedi-green) !important;
  border-radius:14px !important; box-shadow:0 8px 22px rgba(0,15,45,.08) !important; background:#fff !important;
}
.ses-btn{
  background:var(--aedi-green) !important; color:#fff !important; font-weight:800 !important;
  border-radius:999px !important; border:none !important; cursor:pointer;
}
.ses-btn:hover{ background:var(--aedi-green-d) !important; }
.ses-status{ border-radius:999px !important; font-weight:700; }

/* ---------- face section system ---------- */
.aedi-hero{
  background:linear-gradient(160deg,var(--aedi-navy) 0%,var(--aedi-royal) 55%,var(--aedi-pine) 100%);
  color:#fff; padding:64px 26px 58px; border-radius:0 0 22px 22px;
  box-shadow:0 0 0 100vmax var(--aedi-navy); clip-path:inset(0 -100vmax);
}
.aedi-hero figure{ margin:0 0 30px; }
.aedi-hero img{ width:100%; height:auto; display:block; border-radius:18px; box-shadow:0 34px 70px rgba(0,0,0,.5); }
.aedi-h1{
  color:var(--aedi-navy); font-size:clamp(2.4rem,5vw,3.8rem); line-height:1.03; font-weight:800;
  letter-spacing:-.015em; margin:0 0 18px; text-wrap:balance; overflow-wrap:normal; word-break:normal; hyphens:none;
}
.aedi-hero .aedi-h1{ color:#fff; }
.aedi-eyebrow{ letter-spacing:.22em; font-weight:700; font-size:.82rem; color:#B9E7A8; text-transform:uppercase; margin:0 0 14px; }
.aedi-lede{ font-size:1.16rem; line-height:1.62; margin:0 0 26px; max-width:54rem; }
.aedi-hero .aedi-lede{ color:rgba(255,255,255,.92); }
.aedi-chips{
  display:inline-block; border:1px solid rgba(55,178,77,.55); color:#fff;
  padding:8px 16px; border-radius:999px; font-size:.94rem; font-weight:600; margin:0 0 28px;
  background:rgba(55,178,77,.12);
}
.aedi-cta .wp-block-button__link, a.aedi-cta{
  background:var(--aedi-green) !important; color:#fff !important; font-weight:800;
  padding:15px 30px; border-radius:999px; font-size:1.06rem; text-decoration:none !important;
  box-shadow:0 10px 26px rgba(55,178,77,.3); display:inline-block;
}
.aedi-cta .wp-block-button__link:hover, a.aedi-cta:hover{ background:var(--aedi-green-d) !important; }

.aedi-band{ padding:58px 26px; }
.aedi-band.alt{ background:var(--aedi-paper); box-shadow:0 0 0 100vmax var(--aedi-paper); clip-path:inset(0 -100vmax); }
.aedi-band h2{ margin-top:0; }
.aedi-band .aedi-h1{ font-size:clamp(1.9rem,4vw,2.7rem); }

.aedi-cards{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:26px 0 0; }
@media (max-width:900px){ .aedi-cards{ grid-template-columns:1fr; } }
.aedi-card{
  background:#fff; border:1px solid var(--aedi-line); border-top:4px solid var(--aedi-green);
  border-radius:14px; padding:22px 24px; box-shadow:0 8px 22px rgba(0,15,45,.07);
}
.aedi-card h3{ border:none; padding:0; margin:0 0 10px; color:var(--aedi-navy); }
.aedi-card p{ margin:0 0 10px; line-height:1.58; color:var(--aedi-ink); }
.aedi-card p:last-child{ margin-bottom:0; }

.aedi-steps{ list-style:none; counter-reset:aedistep; margin:26px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:16px 34px; }
@media (max-width:900px){ .aedi-steps{ grid-template-columns:1fr; } }
.aedi-steps li{ counter-increment:aedistep; position:relative; padding:2px 0 2px 52px; line-height:1.58; color:var(--aedi-ink); }
.aedi-steps li::before{
  content:counter(aedistep); position:absolute; left:0; top:0; width:36px; height:36px; border-radius:50%;
  background:var(--aedi-pine); color:#B9E7A8; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.aedi-steps li strong{ color:var(--aedi-navy); }

.aedi-suite h3{ margin-bottom:.4em; }
.aedi-suite ul{ margin:.2em 0 1.2em; }
.aedi-suite li{ line-height:1.58; margin-bottom:.45em; color:var(--aedi-ink); }

.aedi-figure{ margin:26px 0; }
.aedi-figure img{ width:100%; height:auto; display:block; border-radius:14px; }
.aedi-coin{ width:190px; max-width:60%; height:auto; border-radius:14px; display:block; margin:0 0 18px; }

/* Bands touch: no theme block-gap between face sections. */
.wp-block-post-content > .aedi-hero, .wp-block-post-content > .aedi-band{ margin-top:0 !important; margin-bottom:0 !important; }
main.wp-block-group{ margin-bottom:0 !important; padding-bottom:0 !important; }
footer.wp-block-template-part{ margin-top:0 !important; }
.wp-site-blocks > main + footer{ margin-top:0 !important; }

img{ max-width:100%; }
@media (max-width:700px){
  .aedi-hero{ padding:44px 18px 84px; }
  .aedi-band{ padding:44px 18px; }
  .aedi-h1{ font-size:2.1rem; line-height:1.1; }
  .aedi-lede{ font-size:1.06rem; }
}

/* Phone menu: WP renders the open navigation overlay outside the header's
   selector reach; global open-state rules keep it on the brand. */
.wp-block-navigation__responsive-container.is-menu-open{
  background:linear-gradient(160deg,var(--aedi-navy) 0%,var(--aedi-royal) 55%,var(--aedi-pine) 100%) !important;
}
.wp-block-navigation__responsive-container.is-menu-open a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{
  color:#fff !important; font-weight:600;
}
.wp-block-navigation__responsive-container.is-menu-open a:hover{ color:var(--aedi-green) !important; }
.wp-block-navigation__responsive-container-close{ color:var(--aedi-green) !important; }

/* No white band above the first face section. */
.wp-site-blocks > main.wp-block-group{ padding-top:0 !important; margin-top:0 !important; }
main.wp-block-group > .wp-block-group{ padding-top:0 !important; margin-top:0 !important; }
.wp-block-post-content{ padding-top:0 !important; margin-top:0 !important; }

@media (max-width:700px){
  .aedi-h1{ font-size:1.72rem; line-height:1.12; }
  .sesa-agent-fab{ right:10px !important; bottom:10px !important; }
}

/* Phone hero stack: pull the stack up and scale the dormant agent bubble
   down in place, so it clears the first-screen text (the Constructum lesson,
   applied as CSS rather than a panel behaviour). */
@media (max-width:700px){
  .aedi-hero{ padding-top:30px; }
  .aedi-hero figure{ margin:0 0 18px; }
  .sesa-agent-fab{ transform:scale(.8); transform-origin:bottom right; }
}

/* Rev 1.1.0 (enlarged-suite pass, 2026-11-08): phone-width fixes from the
   re-look sighting — body copy ran in a ~2/3-width column at phone width
   (paragraphs wrapped at 4–6 words) and the fixed agent bubble repeatedly
   covered line ends. Copy now runs the full measure; the bubble sits
   smaller in its corner. */
@media (max-width:700px){
  .wp-block-post-content p, .wp-block-post-content li,
  .aedi-band p, .aedi-band li{ max-width:100% !important; }
  .sesa-agent-fab{ transform:scale(.68); transform-origin:bottom right; }
}

/* Rev 1.2.0 (2026-11-08): the 1.1.0 max-width rule did not cure the phone
   squeeze — the measure was eaten by stacked side padding (the .aedi-band
   26px, the .aedi-hero class 26px AND the hero's inline inner 30px). At
   phone width the paddings collapse to a single gutter, the hero H1 (44px
   inline) steps down so it cannot clip, and the hero buttons stop wrapping
   mid-label. Desktop is untouched. */
@media (max-width:700px){
  .aedi-band{ padding-left:14px; padding-right:14px; }
  .aedi-hero{ padding-left:0 !important; padding-right:0 !important; }
  .aedi-hero > div{ padding-left:14px !important; padding-right:14px !important; }
  .aedi-hero .aedi-h1{ font-size:29px !important; line-height:1.14 !important; }
  .aedi-eyebrow{ letter-spacing:.13em; }
  .aedi-hero p a{ white-space:nowrap; margin-bottom:8px; }
}


/* Rev 1.2.1 (2026-11-08): v1.2.0 fixed the H1 clip and the button wraps and
   recovered part of the measure; the rest of the squeeze is the theme's own
   root side padding (~30px per side) stacked on the band gutter. At phone
   width the root padding trims to 10px and the band gutter to 10px, for a
   ~280px measure even in the Customizer's narrow 320px preview. */
@media (max-width:700px){
  .wp-site-blocks{ padding-left:10px !important; padding-right:10px !important; }
  .aedi-band{ padding-left:10px; padding-right:10px; }
  .aedi-hero > div{ padding-left:10px !important; padding-right:10px !important; }
}
