/* Bespoke inner pages. Loaded after site.css on every non-home template. */
:root {
  --inner-orange: #d94f12;
  --inner-blue: #164a65;
  --inner-teal: #275f5b;
  --inner-sage: #dfead6;
  --inner-sky: #dceef4;
  --inner-peach: #ffe1cf;
}

body:not(.template-home) {
  background:
    radial-gradient(circle at 8% 7%, rgba(255,255,255,.82), transparent 30rem),
    repeating-linear-gradient(96deg, rgba(56,73,61,.018) 0 1px, transparent 1px 7px),
    #fffaf0;
}

body:not(.template-home) main { overflow: clip; }
body:not(.template-home) .crumbs { position: relative; z-index: 2; }
body:not(.template-home) .crumbs ol { margin: 1.15rem 0 .75rem; }

/* Painted mastheads: a solid copy panel and fixed-ratio art prevent text/art collisions and layout shift. */
.inner-hero {
  --hero-accent: var(--inner-orange);
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem,.9fr) minmax(24rem,1.25fr);
  align-items: stretch;
  min-height: 21rem;
  margin: 0 0 clamp(2rem,5vw,4.2rem);
  border-radius: 22px;
  background: #102f4d;
  box-shadow: 0 16px 34px rgba(11,31,58,.13);
  overflow: hidden;
  isolation: isolate;
}

.inner-hero::after {
  content: "";
  position: absolute;
  left: clamp(1.2rem,4vw,3rem);
  bottom: 1rem;
  width: 3.2rem;
  height: .8rem;
  border-top: 4px solid var(--hero-accent);
  border-right: 4px solid var(--hero-accent);
  transform: skew(-24deg) rotate(-5deg);
  pointer-events: none;
}

.inner-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.4rem,4vw,3rem);
  background: linear-gradient(105deg,#fffdf8 0,#fffaf0 88%,rgba(255,250,240,.9) 100%);
}

.inner-hero__copy h1 {
  max-width: 13ch;
  margin: 0 0 .8rem;
  color: var(--navy);
  font-size: clamp(2.45rem,4.8vw,4.7rem);
  line-height: .98;
  letter-spacing: -.052em;
}

.inner-hero__copy .lede,
.inner-hero__copy .prose,
.inner-hero__copy .hub-intro__copy {
  max-width: 34rem;
  margin: 0;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.5;
}

.inner-hero__copy :is(.lede,.prose,.hub-intro__copy) p:last-child { margin-bottom: 0; }
.inner-hero__copy .byline { margin: 0 0 .6rem; }
.inner-hero__copy .page-meta { display: block; margin: 0; }
.inner-hero__copy .page-meta .byline::after { content: none; }
.inner-hero__copy .page-meta > p { margin: .2rem 0; }
.inner-hero__art,
.inner-hero > .hub-art {
  display: block;
  align-self: stretch;
  width: 100%;
  min-height: 21rem;
  margin: 0;
  background: #cfe3e8 url('/assets/img/bespoke-hub-1200.webp') center/cover no-repeat;
}

.inner-hero--guide .inner-hero__art { background-image: url('/assets/img/bespoke-guide-1200.webp'); }
.inner-hero > .hub-art img { width: 100%; height: 100%; min-height: 21rem; border-radius: 0; box-shadow: none; object-fit: cover; }
.inner-hero > .hub-art figcaption { position: absolute; right: .6rem; bottom: .45rem; margin: 0; padding: .12rem .38rem; border-radius: 5px; background: rgba(255,253,248,.88); font-size: .68rem; }
.inner-hero--power-cut { --hero-accent:#ff8b45; }
.inner-hero--water-food { --hero-accent:#2e83a4; }
.inner-hero--flood { --hero-accent:#4e8c76; }
.inner-hero--weather { --hero-accent:#e67245; }
.inner-hero--kits { --hero-accent:#db5b21; }
.inner-hero--growing { --hero-accent:#5f864c; }
.inner-hero--kb { --hero-accent:#3b7894; }

/* Section rhythm and the small painted-stroke motif from the homepage. */
body:not(.template-home) main > section > h2,
body:not(.template-home) .layout > section > h2,
.kb-browse > section > h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(2.8rem,6vw,5rem);
  font-size: clamp(1.75rem,3vw,2.55rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

body:not(.template-home) main > section > h2::after,
body:not(.template-home) .layout > section > h2::after,
.kb-browse > section > h2::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  top: .2em;
  width: 1.4rem;
  height: .8rem;
  border-top: 4px solid var(--inner-orange);
  border-right: 4px solid var(--inner-orange);
  transform: skew(-22deg) rotate(9deg);
}

.prose:not(.quick-answer):not(.prose--intro) > h2 {
  padding-top: 1.45rem;
  border-top: 2px solid #8da69e;
  font-size: clamp(1.55rem,2.5vw,2.1rem);
}
.prose > h3 { color: var(--inner-blue); }

/* Cards read as illustrated tiles, not template boxes. */
.cards { gap: 1rem; }
.card__link {
  position: relative;
  border: 0;
  border-radius: 17px;
  background: #fff1e7;
  box-shadow: 0 8px 18px rgba(11,31,58,.08);
  overflow: hidden;
}
.cards > li:nth-child(3n+2) .card__link { background: #e8f2f6; }
.cards > li:nth-child(3n) .card__link { background: #edf0df; }
.card__link::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:var(--inner-orange); opacity:.9; }
.cards > li:nth-child(3n+2) .card__link::before { background:#3f7194; }
.cards > li:nth-child(3n) .card__link::before { background:#5d7e52; }
.card__link:hover { border-color: transparent; box-shadow: 0 13px 27px rgba(11,31,58,.14); transform: translateY(-2px); }
.card__icon { border-radius: 50%; background: rgba(255,255,255,.72); }
.card__go { color: var(--navy); font-weight: 850; }
.card--photo .card__link::before { z-index: 2; }
.card--photo .card__img { aspect-ratio: 16/9; }

/* Navigation blocks and answer lists echo the dark homepage utility band. */
.toc:not(.rail .toc), .kb-toc {
  max-width: none;
  margin: 1.5rem 0 2.4rem;
  padding: .8rem 1rem;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg,#123a5c,#0b2845);
  color: #fff;
  box-shadow: 0 9px 20px rgba(11,31,58,.1);
}
.toc:not(.rail .toc) .toc__title { color:#fff; }
.toc:not(.rail .toc) .toc__list a,
.kb-toc a { border:0; background:#fffdf8; color:var(--navy); box-shadow:0 2px 6px rgba(0,0,0,.08); }
.kb-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:.55rem; list-style:none; padding:0; }
.kb-list li { margin:0; }
.kb-list a { display:flex; height:100%; align-items:center; min-height:54px; padding:.65rem .85rem; border:0; border-radius:11px; background:#fffdf8; color:var(--navy); box-shadow:0 4px 12px rgba(11,31,58,.07); font-weight:750; text-decoration:none; }
.kb-list a::after { content:"→"; margin-left:auto; padding-left:.7rem; color:var(--inner-orange); font-size:1.15rem; }
.kb-browse > section:nth-child(odd), .kb-more { margin:1rem 0; padding:1rem; border-radius:18px; background:#edf3ee; }

/* Editorial furniture: callouts, source cards, disclosure, tables and quick answers. */
.callout { padding:.9rem 1.1rem; border:0; border-left:6px solid var(--navy-2); border-radius:0 14px 14px 0; background:#fffdf8; box-shadow:0 5px 14px rgba(11,31,58,.07); }
.callout--co,.callout--electrical { background:#fff0ea; }
.callout--flood { background:#e7f3f6; }
.quick-answer { padding:1rem 1.2rem; border:0; border-left:7px solid var(--inner-orange); border-radius:0 16px 16px 0; background:#fff1df; box-shadow:0 8px 18px rgba(11,31,58,.07); }
.quick-answer h2 { font-size:1.45rem; }
.table-scroll,.conv-table-wrap { border:0; border-radius:15px; box-shadow:0 7px 18px rgba(11,31,58,.09); }
.table-scroll thead th,.product-guide thead th,.conv-table thead th { background:#174866; color:#fff; border-color:#174866; }
.table-scroll tbody tr:nth-child(even),.product-guide tbody tr:nth-child(even) { background:#edf3ee; }
.sources {
  position: relative;
  margin-top: 2.5rem;
  padding: 1rem 1.2rem .85rem;
  border-radius: 16px;
  background: #e7f0ed;
  box-shadow: inset 0 5px 0 #275f5b;
}
.sources h2 { margin:.35rem 0 .55rem; color:#174b47; font-size:1.3rem; }
.sources li { padding:.4rem 0 .4rem 1.45rem; border-top:1px solid rgba(39,95,91,.18); }
.sources li:first-child { border-top:0; }
.conv-disclosure,.ad-banner { border:0; border-left:6px solid var(--inner-orange); border-radius:0 14px 14px 0; background:#fff1df; box-shadow:0 5px 14px rgba(11,31,58,.06); }
.trust,.email-capture,.keep-handy { border-top:2px solid #8da69e; }

/* Tool pages keep their logic intact; only the frame changes. */
.tool {
  position: relative;
  padding: .6rem clamp(.8rem,3vw,1.6rem) 1.3rem;
  border: 0;
  border-radius: 20px;
  background: #f1ede5;
  box-shadow: 0 14px 30px rgba(11,31,58,.12);
}
.tool::before { content:""; display:block; height:9px; margin:-.6rem clamp(-1.6rem,-3vw,-.8rem) 1rem; border-radius:20px 20px 0 0; background:#275f5b; }
.tool__title { font-size:clamp(1.55rem,3vw,2.2rem); }
.tool__intro { padding:.75rem 0; border-top:1px solid #c8d4cd; border-bottom:1px solid #c8d4cd; }
.group--card,.results__next { border-top-color:#8da69e; }
.results { border-radius:16px; background:#dfeef1; }
.chip,.tick-group,.checklist__item,.reminder { border-color:#cfc4b4; box-shadow:0 3px 8px rgba(11,31,58,.04); }
.group__step,.steps__number { background:var(--inner-orange); }

/* Forms, stats, news and lighter trust/legal pages. */
.contact-form { max-width:44rem; padding:1rem 1.2rem; border-radius:18px; background:#e8f1ef; box-shadow:0 9px 22px rgba(11,31,58,.09); }
.contact-form .field input,.contact-form .field textarea { background:#fffdf8; }
.news-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1rem; padding:0; }
.news-item { margin:0; }
.news-item__link { height:100%; border:0; border-radius:17px; background:#fffdf8; box-shadow:0 8px 18px rgba(11,31,58,.09); overflow:hidden; }
.stat-card__link { border:0; border-top:7px solid var(--inner-blue); border-radius:17px; background:#fffdf8; box-shadow:0 7px 16px rgba(11,31,58,.07); }
.stat-cards > li:nth-child(2n) .stat-card__link { border-top-color:var(--inner-orange); background:#fff3e8; }
.stat-headline,.chart { border:0; border-radius:17px; box-shadow:0 8px 19px rgba(11,31,58,.09); }
.template-legal .inner-hero,.template-contact .inner-hero,.template-thanks .inner-hero,.template-stat .inner-hero { min-height:17rem; }
.template-legal .inner-hero__art,.template-contact .inner-hero__art,.template-thanks .inner-hero__art,.template-stat .inner-hero__art { min-height:17rem; filter:saturate(.82); }
.template-legal .prose,.template-contact main > .prose { max-width:46rem; }
.operator { max-width:42rem; padding:1rem 1.2rem; border-radius:15px; background:#edf3ee; }

@media (max-width: 48rem) {
  .inner-hero { grid-template-columns:1fr; min-height:0; margin-bottom:2.5rem; border-radius:17px; }
  .inner-hero__copy { padding:1.35rem 1.2rem 1.8rem; }
  .inner-hero__copy h1 { max-width:16ch; font-size:clamp(2.35rem,11vw,3.7rem); }
  .inner-hero__art,.inner-hero > .hub-art { grid-row:1; min-height:0; aspect-ratio:16/8.6; background-image:url('/assets/img/bespoke-hub-640.webp'); }
  .inner-hero--guide .inner-hero__art { background-image:url('/assets/img/bespoke-guide-640.webp'); }
  .inner-hero > .hub-art img { min-height:0; aspect-ratio:16/8.6; }
  .inner-hero::after { left:1.2rem; bottom:.7rem; }
  .template-legal .inner-hero,.template-contact .inner-hero,.template-thanks .inner-hero,.template-stat .inner-hero { min-height:0; }
  .template-legal .inner-hero__art,.template-contact .inner-hero__art,.template-thanks .inner-hero__art,.template-stat .inner-hero__art { min-height:0; }
  body:not(.template-home) main > section > h2::after,
  body:not(.template-home) .layout > section > h2::after,
  .kb-browse > section > h2::after { display:none; }
  .cards { grid-template-columns:1fr; }
  .card__link { padding:.9rem 1rem .8rem; }
  .card--photo .card__link { padding:0; }
  .kb-list { grid-template-columns:1fr; }
  .toc:not(.rail .toc),.kb-toc { margin-inline:-4px; padding:.7rem; border-radius:14px; }
}

@media (max-width: 28rem) {
  .inner-hero__copy h1 { font-size:2.55rem; }
  .inner-hero__copy :is(.lede,.prose,.hub-intro__copy) { font-size:.98rem; }
  .inner-hero__art,.inner-hero > .hub-art,.inner-hero > .hub-art img { aspect-ratio:16/9.5; object-position:60% center; }
  .tool { margin-inline:-6px; }
}

@media (prefers-reduced-motion: reduce) {
  .card__link:hover { transform:none; }
}

@media print {
  .inner-hero { display:block; min-height:0; margin:0; background:none; box-shadow:none; }
  .inner-hero__copy { display:block; padding:0; background:none; }
  .inner-hero__art,.inner-hero > .hub-art,.inner-hero::after { display:none!important; }
}

/* 22 November 2026: article diagrams */
.prose img, article img{display:block;width:100%;max-width:42rem;height:auto;margin:0 0 1rem}

/* 22 November 2026: print-sheet and diagrams */
.print-sheet{margin:0 0 1.4rem;padding:1rem 1.1rem;border:1px solid currentColor;border-radius:8px;max-width:42rem;box-sizing:border-box}
.print-sheet h2{margin:0 0 .4rem;font-style:normal}
.print-sheet .print-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.4rem 0 .8rem}
.print-sheet button.print{min-height:44px;min-width:44px;padding:.5rem 1rem;border:2px solid currentColor;background:transparent;border-radius:6px;font:inherit;font-weight:700;cursor:pointer}
.print-sheet ul.check{margin:0;padding:0;list-style:none}
.print-sheet ul.check li{display:flex;gap:.6rem;align-items:flex-start;margin:.35rem 0;break-inside:avoid}
.print-sheet .box{flex:0 0 14px;width:14px;height:14px;margin-top:.25rem;border:1.5px solid currentColor}
@media print{
  header,nav,.site-header,.disclosure,.qa-box,aside,.related,.sources,.screen-hide,.print-sheet .print-actions,.crumbs,.trust-line,form,.ad-block,.lead-figure,.inner-hero__art{display:none !important}
  body{background:#fff}
  .print-sheet{border:0;padding:0;margin:0;max-width:none}
  a{color:inherit;text-decoration:none}
}

img[src$="bunkerley-start-with-steps.svg"]{display:block;width:100%;max-width:42rem;height:auto}
