/**
 * Scoped styles for pasted Gutenberg page templates.
 * Everything lives under `.wp-gb-page` so it never leaks onto other pages.
 * Paste the matching .html from /gutenberg-templates/ into the WP Code Editor
 * and wrap the body inside a Group with className="wp-gb-page".
 */
.wp-gb-page{
  --red:#C8102E;--red-deep:#A00D24;--dark:#0A0E1A;--charcoal:#0D1117;
  --cream:#EDF0F5;--warm-white:#F9F6F1;--tan:#C9A84C;--tan-muted:#B89430;
  --steel:#6B7A8D;--mid:#5A6370;--light-border:#E2E5EB;--green:#2D8A4E;
  --heading:'Bebas Neue',sans-serif;--condensed:'Barlow Condensed',sans-serif;--body:'Barlow',sans-serif;
  font-family:var(--body);color:var(--dark);background:var(--warm-white);font-size:16px;
  display:block;
  /* Full-bleed breakout: span the full viewport regardless of any constrained
   * parent (default page.php's .page-layout, theme content columns, etc.).
   * Stays in normal vertical flow — only the horizontal extent escapes. */
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.wp-gb-page *{box-sizing:border-box;}
.wp-gb-page a{text-decoration:none;color:inherit;}

/* page_gutenberg.php (the dedicated full-width Page Template) — also strip
 * any inherited padding/max-width from <main class="wp-gb-main">. */
.wp-gb-main{max-width:none;padding:0;margin:0;width:100%;}

/* WP wraps every wp:group block's children in a .wp-block-group__inner-container
 * div. Without intervention, our grid/flex parents (.gb-hero, .gb-split,
 * .gb-hero-text, .gb-split-text, .gb-content) would have ONE grid item — that
 * wrapper — instead of the actual blocks. display:contents collapses the
 * wrapper so the real children (text group + image figure) become the
 * grid/flex items their parent expects. */
.wp-gb-page .wp-block-group__inner-container{display:contents;}

/* Reset core block defaults that fight the design: image figures need to
 * fill their parent slot (hero / split), not size to the bitmap. We rely on
 * grid-cell stretch for height — do NOT set height:100% on the figure, that
 * triggers an unbounded growth loop inside the constrained-parent fallback. */
.wp-gb-page figure.wp-block-image{margin:0;}
.wp-gb-page figure.wp-block-image.gb-hero-img,
.wp-gb-page figure.wp-block-image.gb-split-img{display:block;width:100%;}
.wp-gb-page .gb-hero-img > img,
.wp-gb-page .gb-split-img > img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;display:block;}

/* Neutralise the default Gutenberg block-gap that injects vertical space
 * between sibling top-level sections (hero → split → content → banner).
 * Targets the children of the outermost __inner-container (which is what
 * actually sits at the top of the wp-gb-page tree once display:contents
 * collapses the wrapper). */
.wp-gb-page > .wp-block-group__inner-container > *{margin-block-start:0;margin-block-end:0;}

/* Buttons */
.wp-gb-page .btn-p{background:var(--red);color:white;font-family:var(--condensed);font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:2px;padding:15px 36px;border:2px solid var(--red);border-radius:2px;cursor:pointer;transition:all .35s;display:inline-flex;align-items:center;gap:8px;position:relative;overflow:hidden;}
.wp-gb-page .btn-p::before{content:'';position:absolute;inset:0;background:#1E3A8A;transform:scaleX(0);transform-origin:left;transition:transform .35s;z-index:0;}
.wp-gb-page .btn-p span,.wp-gb-page .btn-p svg{position:relative;z-index:1;}
.wp-gb-page .btn-p:hover{border-color:#1E3A8A;transform:translateY(-2px);box-shadow:0 0 0 3px rgba(30,58,138,.2);}
.wp-gb-page .btn-p:hover::before{transform:scaleX(1);}

/* Hero */
.wp-gb-page .gb-hero{background:var(--dark);color:white;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;min-height:380px;}
.wp-gb-page .gb-hero-text{padding:clamp(40px,6vw,72px) clamp(20px,5vw,56px);display:flex;flex-direction:column;justify-content:center;position:relative;z-index:1;}
.wp-gb-page .gb-hero-text::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 30% 50%,rgba(200,16,46,.08),transparent 70%);}
.wp-gb-page .gb-hero-tag{font-family:var(--condensed);font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--tan);margin:0 0 12px;position:relative;}
.wp-gb-page .gb-hero h1{font-family:var(--heading);font-size:clamp(32px,5vw,52px);letter-spacing:3px;line-height:1.05;margin:0 0 16px;position:relative;color:white;}
.wp-gb-page .gb-hero-sub{font-size:16px;color:rgba(255,255,255,.5);line-height:1.65;max-width:520px;position:relative;margin:0;}
.wp-gb-page .gb-hero-img{background:var(--charcoal);position:relative;overflow:hidden;min-height:300px;margin:0;}
.wp-gb-page .gb-hero-img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}

/* Split */
.wp-gb-page .gb-split{display:grid;grid-template-columns:1fr 1fr;min-height:340px;}
.wp-gb-page .gb-split.reverse .gb-split-img{order:2;}
.wp-gb-page .gb-split.reverse .gb-split-text{order:1;}
.wp-gb-page .gb-split-img{background:var(--cream);position:relative;overflow:hidden;min-height:280px;margin:0;}
.wp-gb-page .gb-split-img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}
.wp-gb-page .gb-split-text{padding:clamp(32px,5vw,56px) clamp(24px,5vw,48px);display:flex;flex-direction:column;justify-content:center;}
.wp-gb-page .gb-split-text h2{font-family:var(--heading);font-size:clamp(24px,3.5vw,34px);letter-spacing:2px;margin:0 0 12px;}
.wp-gb-page .gb-split-text p{font-size:15px;line-height:1.7;color:var(--mid);margin:0 0 14px;}

/* Image banner — rendered via core Cover block with className="gb-img-banner" */
.wp-gb-page .gb-img-banner{position:relative;min-height:260px;background:var(--charcoal);display:flex;align-items:center;overflow:hidden;margin:0;border-radius:0;padding:0;}
.wp-gb-page .gb-img-banner.wp-block-cover{min-height:260px;}
.wp-gb-page .gb-img-banner .wp-block-cover__image-background{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}
.wp-gb-page .gb-img-banner .wp-block-cover__background{background:linear-gradient(to right,rgba(10,14,26,.85),rgba(10,14,26,.4))!important;opacity:1!important;}
.wp-gb-page .gb-img-banner .wp-block-cover__inner-container{position:relative;z-index:1;padding:clamp(32px,5vw,56px);max-width:600px;margin:0;width:100%;color:white;}
.wp-gb-page .gb-img-banner .gb-img-banner-title,
.wp-gb-page .gb-img-banner h2{font-family:var(--heading);font-size:clamp(28px,4vw,42px);letter-spacing:2px;margin:0 0 12px;color:white;text-align:left;}
.wp-gb-page .gb-img-banner .gb-img-banner-copy,
.wp-gb-page .gb-img-banner p{color:rgba(255,255,255,.55);font-size:16px;line-height:1.6;margin:0;text-align:left;}

/* Content */
.wp-gb-page .gb-content{max-width:900px;margin:0 auto;padding:clamp(32px,5vw,56px) clamp(20px,5vw,56px);}
.wp-gb-page .gb-content h2{font-family:var(--heading);font-size:clamp(24px,3.5vw,32px);letter-spacing:2px;margin:40px 0 16px;}
.wp-gb-page .gb-content h2:first-child{margin-top:0;}
.wp-gb-page .gb-content h3{font-family:var(--heading);font-size:clamp(20px,3vw,24px);letter-spacing:1.5px;margin:32px 0 12px;}
.wp-gb-page .gb-content p{font-size:15px;line-height:1.7;color:var(--mid);margin:0 0 16px;}
.wp-gb-page .gb-content ul,.wp-gb-page .gb-content ol{font-size:15px;line-height:1.7;color:var(--mid);margin:0 0 16px 24px;}
.wp-gb-page .gb-content li{margin-bottom:8px;}
.wp-gb-page .gb-content a{color:var(--red);font-weight:500;}
.wp-gb-page .gb-content a:hover{color:var(--red-deep);}
.wp-gb-page .gb-content strong{color:var(--dark);font-weight:600;}
.wp-gb-page .gb-content .gb-note{background:var(--cream);border-left:3px solid var(--tan);padding:16px 20px;margin:20px 0;font-size:14px;color:var(--mid);}
.wp-gb-page .gb-content table{width:100%;border-collapse:collapse;margin:0;font-size:14px;}
/* Reset WP core block-library's border injection on table cells — core sets
 * `border: 1px solid` on every th/td and a 3px thead/tfoot border, which
 * paints a full grid of lines and fights the design's single-bottom-border
 * row style. */
.wp-gb-page .gb-content thead,
.wp-gb-page .gb-content tfoot{border:0;}
.wp-gb-page .gb-content th{background:var(--dark);color:white;font-family:var(--condensed);font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:12px 16px;text-align:left;border:0;}
.wp-gb-page .gb-content td{padding:12px 16px;color:var(--mid);border:0;border-bottom:1px solid var(--light-border);}
.wp-gb-page .gb-content tr:hover td{background:rgba(237,240,245,.5);}
.wp-gb-page .gb-content .gb-table-wrap,
.wp-gb-page .gb-content .wp-block-table{overflow-x:auto;margin:20px 0;}
.wp-gb-page .gb-content .gb-inline-svg{background:white;padding:16px 12px;border:1px solid var(--light-border);margin:24px 0;overflow-x:auto;}
.wp-gb-page .gb-content .gb-inline-svg svg{width:100%;height:auto;display:block;min-width:700px;}

/* Stat cards (3-up metric strip inside .gb-content) */
.wp-gb-page .gb-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0;}
.wp-gb-page .gb-stat-card{background:white;border:1px solid var(--light-border);padding:clamp(12px,2vw,24px);text-align:center;}
.wp-gb-page .gb-stat-card .gb-stat-num{font-family:var(--heading);font-size:clamp(24px,4vw,36px);color:var(--red);letter-spacing:2px;margin:0;line-height:1;}
.wp-gb-page .gb-stat-card .gb-stat-label{font-family:var(--condensed);font-size:clamp(9px,1.5vw,11px);font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--steel);margin:6px 0 0;}

/* FAQ accordion — toggle behaviour is wired in src/js/site-chrome.js
 * (initGbFaq) targeting `.wp-gb-page .gb-faq-q`. */
.wp-gb-page .gb-faq{margin:20px 0;}
.wp-gb-page .gb-faq-item{border-bottom:1px solid var(--light-border);}
.wp-gb-page .gb-faq-q{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:18px 0;background:none;border:0;cursor:pointer;font-family:var(--body);font-size:15px;font-weight:600;color:var(--dark);text-align:left;transition:color .2s;}
.wp-gb-page .gb-faq-q:hover{color:var(--red);}
.wp-gb-page .gb-faq-q:focus-visible{outline:2px solid var(--red);outline-offset:2px;}
.wp-gb-page .gb-faq-q svg{width:18px;height:18px;transition:transform .3s;flex-shrink:0;color:var(--steel);}
.wp-gb-page .gb-faq-item.open .gb-faq-q svg{transform:rotate(180deg);color:var(--red);}
.wp-gb-page .gb-faq-a{max-height:0;overflow:hidden;transition:max-height .35s;}
.wp-gb-page .gb-faq-a-inner{padding:0 0 18px;font-size:14px;line-height:1.7;color:var(--mid);margin:0;}
.wp-gb-page .gb-faq-a-inner a{color:var(--red);font-weight:500;}
.wp-gb-page .gb-faq-a-inner a:hover{color:var(--red-deep);}

/* Dark-background CTA banner (no image, text + button centered) */
.wp-gb-page .gb-cta-banner{background:var(--dark);padding:clamp(40px,6vw,64px) clamp(20px,5vw,56px);text-align:center;color:white;}
.wp-gb-page .gb-cta-banner .gb-cta-banner-inner{max-width:700px;margin:0 auto;}
.wp-gb-page .gb-cta-banner h2{font-family:var(--heading);font-size:clamp(28px,4vw,40px);color:white;letter-spacing:2px;margin:0 0 12px;}
.wp-gb-page .gb-cta-banner p{color:rgba(255,255,255,.5);font-size:16px;margin:0 0 24px;}
.wp-gb-page .gb-cta-banner .wp-block-buttons{justify-content:center;}
.wp-gb-page .gb-cta-banner .wp-block-button__link{background:var(--red);color:white;font-family:var(--condensed);font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:2px;padding:15px 36px;border:2px solid var(--red);border-radius:2px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:background-color .25s,color .25s,border-color .25s,box-shadow .25s,transform .25s;}
.wp-gb-page .gb-cta-banner .wp-block-button__link:hover{background:white;color:var(--dark);border-color:white;box-shadow:0 0 0 3px rgba(255,255,255,.15);transform:translateY(-2px);}

/* Email CTA */
.wp-gb-page .gb-email{background:var(--cream);padding:clamp(40px,6vw,56px) clamp(20px,5vw,56px);text-align:center;}
.wp-gb-page .gb-email-inner{max-width:560px;margin:0 auto;}
.wp-gb-page .gb-email h2{font-family:var(--heading);font-size:clamp(24px,3.5vw,32px);letter-spacing:2px;margin:0 0 8px;}
.wp-gb-page .gb-email p{color:var(--mid);font-size:15px;margin:0 0 20px;}
.wp-gb-page .gb-email-form{display:flex;gap:8px;max-width:440px;margin:0 auto;}
.wp-gb-page .gb-email-input{flex:1;padding:14px 16px;border:1.5px solid var(--light-border);font-family:var(--body);font-size:14px;background:white;outline:none;}
.wp-gb-page .gb-email-input:focus{border-color:var(--red);}
.wp-gb-page .gb-email .btn-p::before{background:white;}
.wp-gb-page .gb-email .btn-p:hover{border-color:white;box-shadow:0 0 0 3px rgba(255,255,255,.15);}
.wp-gb-page .gb-email .btn-p:hover span{color:var(--dark);}

/* Season calendar grid (occupies the left cell of .gb-split on the Leagues page
 * in place of the usual .gb-split-img). 4 editable cards; toggle the active
 * card by adding `is-active` to its className. */
.wp-gb-page .gb-season-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:clamp(16px,2.5vw,28px);background:var(--cream);align-content:center;min-height:280px;margin:0;}
.wp-gb-page .gb-season-card{background:white;border:1px solid var(--light-border);border-radius:4px;padding:20px 12px;text-align:center;display:flex;flex-direction:column;gap:6px;margin:0;}
.wp-gb-page .gb-season-card .gb-season-title{font-family:var(--heading);font-size:clamp(18px,2.2vw,22px);color:var(--dark);letter-spacing:2px;margin:0;line-height:1;}
.wp-gb-page .gb-season-card .gb-season-dates{font-family:var(--condensed);font-size:12px;font-weight:600;letter-spacing:1px;color:var(--steel);margin:0;text-transform:uppercase;}
.wp-gb-page .gb-season-card .gb-season-detail{font-size:11px;color:var(--mid);margin:0;line-height:1.4;}
.wp-gb-page .gb-season-card .gb-season-status{font-family:var(--condensed);font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--green);margin:4px 0 0;display:none;}
.wp-gb-page .gb-season-card .gb-season-status::before{content:'';display:block;width:60%;height:3px;background:var(--red);border-radius:2px;margin:0 auto 8px;}
.wp-gb-page .gb-season-card.is-active{background:var(--dark);border-color:var(--dark);}
.wp-gb-page .gb-season-card.is-active .gb-season-title{color:var(--red);}
.wp-gb-page .gb-season-card.is-active .gb-season-dates{color:rgba(255,255,255,.5);}
.wp-gb-page .gb-season-card.is-active .gb-season-detail{color:rgba(255,255,255,.35);}
.wp-gb-page .gb-season-card.is-active .gb-season-status{display:block;}

/* In-content photo placeholders (16:9) — rendered via core wp:image block
 * with className="gb-inline-img". */
.wp-gb-page .gb-content figure.gb-inline-img.wp-block-image{aspect-ratio:16/9;min-height:200px;margin:24px 0;background:var(--cream);border:1px solid var(--light-border);position:relative;overflow:hidden;}
.wp-gb-page .gb-content figure.gb-inline-img img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0;}

/* Two-col image row — core wp:columns containing .gb-inline-img images.
 * The columns block takes over the outer margin so the inner figures
 * can sit flush inside each column. */
.wp-gb-page .gb-content .wp-block-columns.gb-img-row{margin:24px 0;gap:16px;}
.wp-gb-page .gb-content .wp-block-columns.gb-img-row .wp-block-column{margin:0;}
.wp-gb-page .gb-content .wp-block-columns.gb-img-row figure.gb-inline-img.wp-block-image{margin:0;}

/* Core wp:separator inside .gb-content — match the design's plain rule. */
.wp-gb-page .gb-content hr.wp-block-separator{border:0;border-top:1px solid var(--light-border);margin:32px 0;background:none;opacity:1;height:auto;}

/* Outline/secondary buttons inside .gb-content — core wp:button with
 * the built-in `is-style-outline` variant. Used for in-content link CTAs. */
.wp-gb-page .gb-content .wp-block-buttons{margin:24px 0;}
.wp-gb-page .gb-content .wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--dark);font-family:var(--condensed);font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;padding:12px 28px;border:1.5px solid var(--light-border);border-radius:2px;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:border-color .25s,color .25s;}
.wp-gb-page .gb-content .wp-block-button.is-style-outline .wp-block-button__link:hover{border-color:var(--red);color:var(--red);}

/* Council grid — rendered by the [watl_council] shortcode. 3-col on
 * desktop, 2-col ≤1024, 1-col ≤640. Cards are restrained (single border,
 * subtle hover) to match the gb-stat-card / gb-season-card treatment. */
.wp-gb-page .gb-council{padding:clamp(40px,6vw,72px) clamp(20px,5vw,56px);background:var(--warm-white);}
.wp-gb-page .gb-council-head{max-width:720px;margin:0 auto 32px;text-align:center;}
.wp-gb-page .gb-council-head h2{font-family:var(--heading);font-size:clamp(28px,4vw,40px);letter-spacing:2px;margin:0 0 12px;}
.wp-gb-page .gb-council-head p{color:var(--mid);font-size:15px;line-height:1.65;margin:0;}
.wp-gb-page .gb-council-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1080px;margin:0 auto;}
.wp-gb-page .gb-council-card{background:white;border:1px solid var(--light-border);padding:0;overflow:hidden;transition:border-color .25s,transform .25s;}
.wp-gb-page .gb-council-card:hover{border-color:var(--red);transform:translateY(-2px);}
.wp-gb-page .gb-council-photo{aspect-ratio:1/1;background:var(--cream);overflow:hidden;}
.wp-gb-page .gb-council-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s,filter .35s;}
.wp-gb-page .gb-council-card:hover .gb-council-photo img{transform:scale(1.04);filter:brightness(.94);}
.wp-gb-page .gb-council-name{font-family:var(--heading);font-size:clamp(20px,2.4vw,24px);letter-spacing:1.5px;color:var(--dark);margin:16px 16px 4px;transition:color .25s;}
.wp-gb-page .gb-council-card:hover .gb-council-name{color:var(--red);}
.wp-gb-page .gb-council-role{font-family:var(--condensed);font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--tan-muted);margin:0 16px 18px;}
.wp-gb-page .gb-council-foot{text-align:center;margin:32px 0 0;}
.wp-gb-page .gb-council-btn{display:inline-flex;align-items:center;gap:6px;font-family:var(--condensed);font-size:14px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--dark);border:1.5px solid var(--light-border);padding:12px 28px;border-radius:2px;transition:border-color .25s,color .25s;}
.wp-gb-page .gb-council-btn:hover{border-color:var(--red);color:var(--red);}

/* Responsive */
@media(max-width:1024px){
  .wp-gb-page .gb-hero{grid-template-columns:1fr;}
  .wp-gb-page .gb-hero-img{min-height:0;aspect-ratio:16/9;}
  .wp-gb-page .gb-split{grid-template-columns:1fr;}
  .wp-gb-page .gb-split.reverse .gb-split-img,
  .wp-gb-page .gb-split.reverse .gb-split-text{order:0;}
  .wp-gb-page .gb-split-img{min-height:0;aspect-ratio:4/3;}
  .wp-gb-page .gb-council-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
  .wp-gb-page .gb-email-form{flex-direction:column;}
  .wp-gb-page .gb-season-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .wp-gb-page .gb-council-grid{grid-template-columns:1fr;}
}
@media(max-width:420px){
  .wp-gb-page .gb-stat-row{grid-template-columns:1fr;}
  .wp-gb-page .gb-season-grid{grid-template-columns:1fr;}
}
