/* ==========================================================================
   Handyman Ryan: Site — Clubhouse Corkboard design world.
   Cork ground framed in painted navy; paper items pinned to it.
   Loaded after core.css and theme.css.
   ========================================================================== */

/* ---------- Frame (header / footer = painted navy board frame) ---------- */
.frame-top {
  background: var(--navy);
  color: #fff;
  border-bottom: 10px solid var(--navy-deep);
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 12px rgb(0 0 0 / .35);
}
.frame-top__inner {
  max-width: 82rem; margin: 0 auto; padding: .7rem var(--gap);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand__mark { width: 3.1rem; height: auto; background: var(--paper); border-radius: 4px; padding: .2rem; }
.brand__name { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.nav ul { list-style: none; display: flex; gap: .3rem 1.4rem; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.frame-top__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: var(--navy-ink); text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em;
  padding: .5rem 1rem; border-radius: 4px;
  box-shadow: 0 2px 4px rgb(0 0 0 / .3), 0 8px 14px -6px rgb(0 0 0 / .5);
}
.frame-top__phone:hover { background: #fff3b8; }

.frame-bottom {
  background: var(--navy); color: #E8F0F6;
  border-top: 10px solid var(--navy-deep);
  padding: 2.5rem var(--gap) 6rem;
}
.frame-bottom a { color: #fff; }
.frame-bottom__inner { max-width: 82rem; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
.frame-bottom__name { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 1.35rem; text-transform: uppercase; color: var(--yellow); margin-bottom: .4rem; }
.frame-bottom__label { font-weight: 700; color: var(--yellow); margin-bottom: .4rem; }
.frame-bottom__nav ul { list-style: none; display: grid; gap: .35rem; }
.frame-bottom__legal { max-width: 82rem; margin: 2rem auto 0; font-size: .95rem; color: #BFD3E2; }
@media (max-width: 760px) { .frame-bottom__inner { grid-template-columns: 1fr; } }

/* ---------- Board (cork) ---------- */
.board {
  display: block;
  background-color: var(--cork);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='240' height='240' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .08 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='m' x='0' y='0' width='180' height='180' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .78 0 0 0 0 .52 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23m)'/%3E%3C/svg%3E");
  box-shadow: inset 0 10px 18px -8px rgb(0 0 0 / .45), inset 0 -10px 18px -8px rgb(0 0 0 / .35);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  min-height: 60vh;
  overflow-x: clip;
  border-inline: clamp(8px, 1.3vw, 18px) solid var(--navy);
}
.board__inner { max-width: 82rem; margin: 0 auto; padding: 0 var(--gap); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
.board__inner--narrow { max-width: 52rem; }
.board-title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; letter-spacing: .01em;
  color: var(--paper); background: var(--navy); display: inline-block; justify-self: start; padding: .35rem 1rem .4rem;
  transform: rotate(-1deg); box-shadow: 0 2px 3px rgb(40 20 5 / .35), 0 10px 16px -10px rgb(40 20 5 / .6);
}

/* Breadcrumbs sit on a strip of masking tape */
.crumbs { max-width: 82rem; margin: 0 auto 1.6rem; padding: 0 var(--gap); }
.crumbs ol { list-style: none; display: inline-flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: .35rem .9rem;
  background: rgb(246 236 205 / .92); font-family: var(--f-typed); font-size: .98rem; transform: rotate(-.6deg); box-shadow: 0 1px 3px rgb(60 35 10 / .35); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-soft); }
.crumbs a { color: var(--navy-ink); }

/* ---------- Pins ---------- */
.pin { position: absolute; top: -1.15rem; left: 50%; width: 2.5rem; height: 2.75rem; margin-left: -1.25rem; z-index: 3; pointer-events: none; }
.pin svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pin__shadow { fill: rgb(40 20 5 / .38); filter: blur(1.6px); }
.pin__needle { stroke: #9aa3a8; stroke-width: 1.4; stroke-linecap: round; }
.pin__shine { fill: rgb(255 255 255 / .6); }
.pin__head, .pin__body, .pin__collar { stroke: rgb(0 0 0 / .22); stroke-width: .8; }
.pin--red { --pin: var(--pin-red); --pin-dk: #9C2A20; }
.pin--yellow { --pin: var(--pin-yellow); --pin-dk: #B98F0C; }
.pin--navy { --pin: var(--pin-navy); --pin-dk: #123E5F; }
.pin--green { --pin: var(--pin-green); --pin-dk: #1F633E; }
.pin__head { fill: var(--pin); }
.pin__body { fill: var(--pin-dk); }
.pin__collar { fill: var(--pin-dk); }

/* ---------- Paper primitives ---------- */
.flyer, .card, .sheet, .note, .sticky, .pad, .strip, .map-clip__frame {
  position: relative; background: var(--paper); box-shadow: var(--shadow-paper);
}

/* ---------- Hero: flyer + side items ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  /* core.css also defines .hero (centered band on --color-bg-alt); this page's hero sits on the cork, left-aligned */
  background: none; padding-block: 0; text-align: left; }
.hero__side { display: grid; gap: 2.4rem; padding-top: 2.5rem; }
@media (max-width: 920px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero__side { padding-top: 0; } }

.flyer { transform: rotate(-1.1deg); padding: 0; background: none; box-shadow: none; filter: drop-shadow(0 1px 1px rgb(60 35 10 / .3)) drop-shadow(0 12px 14px rgb(60 35 10 / .38)); }
.flyer > .pin { left: 12%; }
.pin-second .pin { left: auto; right: 10%; }
.flyer__body { background: var(--paper); padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.5rem, 4.5vw, 3.75rem) 1.75rem; border-bottom: 2px dashed rgb(2 69 109 / .4); }
.flyer__logo { width: clamp(6.5rem, 12vw, 9rem); height: auto; display: block; margin-bottom: 1rem; }
.flyer__title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.9rem, 8vw, 5.9rem); line-height: .9; letter-spacing: -.02em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 1.4rem;
}
.flyer__title--loc { font-size: clamp(2rem, 5vw, 3.6rem); line-height: .98; text-transform: none; letter-spacing: -.015em; }
.flyer__hl {
  background-image: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em;
}
.flyer__lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 36em; color: var(--ink); }
.flyer__note { font-family: var(--f-typed); font-size: 1rem; background: var(--paper-shade); padding: .5rem .8rem; display: inline-block; }

.ticks { list-style: none; display: grid; gap: .55rem; margin-top: 1.2rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; align-items: start; font-weight: 600; font-size: 1.12rem; }
.ticks svg { margin-top: .12rem; }
.tick__box { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.tick__mark { fill: none; stroke: var(--index-red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Tear-off tabs */
.tabs { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6px; }
.tab {
  display: grid; gap: .15rem; align-content: center; justify-items: center; text-align: center;
  padding: 1rem 1rem 1.5rem; text-decoration: none; color: var(--navy); background: var(--paper);
  transform-origin: 50% 0; transition: transform .45s var(--ease-out);
  min-height: 5.8rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V6L96 8.5 91 6.5 86 9 80 6 74 8.8 69 6.2 63 9 57 6.4 51 8.6 46 6 40 9 34 6.6 28 8.7 22 6.1 16 8.9 10 6.3 5 8.4 0 6.5Z'/%3E%3C/svg%3E") bottom / 100% 12px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 11px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V6L96 8.5 91 6.5 86 9 80 6 74 8.8 69 6.2 63 9 57 6.4 51 8.6 46 6 40 9 34 6.6 28 8.7 22 6.1 16 8.9 10 6.3 5 8.4 0 6.5Z'/%3E%3C/svg%3E") bottom / 100% 12px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 11px) no-repeat;
}
.tab__label { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: 1rem; letter-spacing: .06em; }
.tab__num { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.05; }
.tab--call { background: var(--navy); color: #fff; }
.tab--call .tab__label { color: var(--yellow); }
.tab--est .tab__num { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; }
.tab:hover { transform: rotate(-2deg); }
.tab--est:hover { background: #FFF6C9; }
.tab:active { transform: translateY(6px) rotate(3deg); }
.tab.is-torn { transform: translateY(5px) rotate(2.5deg); }
.tab--call.is-torn { transform: translateY(5px) rotate(-2.5deg); }
@media (prefers-reduced-motion: reduce) { .tab { transition: none; } }

/* ---------- Index card (red head rule, blue lines) ---------- */
.card--index, .card--ruled {
  --pad-y: 1.35rem; --pad-x: 1.5rem;
  background-color: #FFFEFA;
  padding: var(--pad-y) var(--pad-x) 1.5rem;
}
.ruled, .typed-list, .services__groups, .note--ruled {
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), var(--index-blue) calc(var(--rule) - 1px) var(--rule));
  line-height: var(--rule);
}
.card--index { transform: rotate(1.4deg); }
.card__title { font-family: var(--f-typed); font-weight: 700; font-size: 1.4rem; line-height: 1.2; color: var(--navy-ink); margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) var(--rule); padding: calc(var(--pad-y) + .2rem) var(--pad-x) .7rem; background: #FFFEFA; border-bottom: 2px solid var(--index-red); }
.card__title--lg { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.typed-list { list-style: none; display: grid; }
.typed-list li { line-height: var(--rule); padding-left: 1.2rem; position: relative; }
.typed-list li::before { content: ""; position: absolute; left: .1rem; top: .78rem; width: .5rem; height: 2px; background: var(--navy); }

/* Coverage check */
.area-check__label { display: block; font-weight: 700; line-height: var(--rule); }
.area-check__row { display: flex; gap: .5rem; margin-bottom: .6rem; }
.area-check__row input { flex: 1; min-width: 0; }
.area-check__note { font-size: .98rem; color: var(--ink-soft); line-height: var(--rule); margin: .4rem 0 0; }
.area-check__result:empty { display: none; }
.area-check__result { background: var(--paper); border: 2px solid var(--navy); padding: .8rem 1rem; margin: .4rem 0 .2rem; line-height: 1.45; }
.area-check__result p { margin-bottom: .5rem; }
.area-check__result .yes { font-family: var(--f-typed); font-weight: 700; font-size: 1.15rem; color: var(--pin-green); }
.area-check__result .maybe { font-family: var(--f-typed); font-weight: 700; font-size: 1.15rem; color: var(--index-red); }
.area-check__result ul { list-style: none; display: grid; gap: .25rem; margin-bottom: .5rem; }
.area-check__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Notes & sticky ---------- */
.note { padding: 1.4rem 1.5rem 1.2rem; transform: rotate(-1.6deg); max-width: 26rem; justify-self: start; }
.note__head { font-family: var(--f-display); font-weight: 900; font-stretch: 120%; text-transform: uppercase; color: var(--navy); font-size: 1.3rem; margin-bottom: .4rem; }
.note__list { list-style: none; display: grid; gap: .4rem; }
.note__list li { padding-left: 1.1rem; position: relative; }
.note__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--navy); }
.sticky { background: var(--yellow); padding: 1.5rem 1.4rem; transform: rotate(2.2deg); box-shadow: 0 1px 1px rgb(60 35 10 / .2), 0 18px 22px -14px rgb(60 35 10 / .6); }
.sticky__big { font-family: var(--f-display); font-weight: 900; font-stretch: 115%; font-size: 1.45rem; line-height: 1.1; color: var(--navy-ink); }
.sticky a { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--navy-ink); }

/* ---------- Services: one big ruled card + sticky ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.services__card { transform: rotate(-.4deg); --pad-y: 1.6rem; --pad-x: clamp(1.4rem, 4vw, 3rem); padding-bottom: 2rem; }
.services__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rule) clamp(1.5rem, 4vw, 3.5rem); }
.services__groups * { margin-top: 0; margin-bottom: 0; }
.services__group h3 { font-family: var(--f-display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; color: var(--navy); font-size: 1.3rem; line-height: var(--rule); }
.services__lead { line-height: var(--rule); color: var(--ink-soft); font-style: italic; margin: 0; }
.services__group ul { list-style: none; }
.services__group li { line-height: var(--rule); padding-left: 1.2rem; position: relative; }
.services__group li::before { content: ""; position: absolute; left: .1rem; top: .8rem; width: .55rem; height: 2px; background: var(--index-red); }
.services__sticky { margin-top: 3rem; }
@media (max-width: 980px) { .services { grid-template-columns: minmax(0, 1fr); } .services__sticky { max-width: 22rem; margin: 0 0 0 auto; } }
@media (max-width: 1180px) { .services__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services__groups { grid-template-columns: 1fr; } }

/* ---------- Sheets (plain typing paper) ---------- */
.sheet { padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.sheet > .pin { left: 1.6rem; margin-left: 0; }
.sheet__title { font-family: var(--f-display); font-weight: 900; font-stretch: 120%; text-transform: uppercase; color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.sheet__title a { color: inherit; text-decoration: none; }
.sheet__title a:hover { text-decoration: underline; }
.sheet__title--xl { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: .98; }
.prose { max-width: 46rem; }

.who { display: grid; grid-template-columns: minmax(0, 46rem); justify-content: end; }
.who__sheet { transform: rotate(.7deg); }
.who__list { display: grid; gap: .9rem; margin: 0; }
.who__list div { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; border-top: 1px solid var(--paper-shade); padding-top: .8rem; }
.who__list dt { font-weight: 700; color: var(--navy-ink); }
.who__list dd { margin: 0; }
@media (max-width: 640px) { .who__list div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Where: county strips in coloured copy paper ---------- */
.where { display: grid; gap: 1.6rem; }
.where__head { display: grid; gap: 1rem; justify-items: start; }
.where__head p { color: var(--ink); background: rgb(246 236 205 / .96); max-width: 44rem; font-size: 1.1rem; padding: .5rem .9rem; margin: 0; transform: rotate(.5deg); box-shadow: 0 1px 3px rgb(60 35 10 / .35); }
.where__strips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.strip { padding: 1.4rem 1.5rem 1.5rem; }
.strip:nth-child(1) { transform: rotate(-1deg); }
.strip:nth-child(2) { transform: rotate(.8deg); margin-top: 1rem; }
.strip:nth-child(3) { transform: rotate(-.5deg); }
.strip--citrus { background: #FFFEFA; border-top: 2px solid var(--index-red); }
.strip--levy { background: var(--yellow); }
.strip > .pin { left: 1.4rem; margin-left: 0; }
.strip .unlinked { font-weight: 600; color: var(--ink-soft); padding: .3rem .2rem; }
.strip--wide { grid-column: 1 / -1; transform: rotate(-.3deg); margin-top: 0; }
.strip h3 { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: 1.35rem; margin-bottom: .7rem; }
.strip h3 a { color: var(--navy); text-decoration: none; }
.strip h3 a:hover { text-decoration: underline; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.strip li a, .strip li { font-weight: 600; }
.strip ul:not(.area-list) li { display: inline-block; }
.strip ul:not(.area-list) li a { display: inline-block; padding: .3rem .65rem; border: 1.5px solid rgb(2 69 109 / .5); border-radius: 3px; text-decoration: none; background: rgb(255 255 255 / .55); }
.strip ul:not(.area-list) li a:hover { background: var(--yellow); border-color: var(--navy); }
@media (max-width: 860px) { .where__strips { grid-template-columns: 1fr; } .strip:nth-child(2) { margin-top: 0; } }

/* ---------- Service-area directory ---------- */
.areas-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.areas-intro__sheet { transform: rotate(-.6deg); }
.areas-intro__lead { font-size: 1.25rem; }
@media (max-width: 920px) { .areas-intro { grid-template-columns: minmax(0, 1fr); } }

.tier-key { display: grid; gap: .5rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--paper-shade); }
.tier-key div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; }
.tier-key dt { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.tier-key dd { margin: 0; color: var(--ink-soft); }
.dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; flex: none; vertical-align: middle; margin-right: .45rem; border: 2px solid var(--navy); }
.dot--1 { background: var(--navy); }
.dot--2 { background: var(--yellow); }
.dot--3 { background: #fff; width: .7rem; height: .7rem; }

.county-block { transform: rotate(.25deg); }
.county-block:nth-of-type(even) { transform: rotate(-.35deg); }
.county-block__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; margin-top: 1rem; }
.county-block h3 { font-family: var(--f-typed); font-weight: 700; font-size: 1.15rem; color: var(--navy-ink); margin-bottom: .6rem; }
@media (max-width: 760px) { .county-block__cols { grid-template-columns: 1fr; } }
.area-list { list-style: none; display: grid; gap: .3rem; }
.area-list--cols { columns: 15rem auto; column-gap: 2rem; display: block; }
.area-list--cols li { break-inside: avoid; margin-bottom: .3rem; }
.area-list li { line-height: 1.4; }
.area-list__meta { font-family: var(--f-typed); font-size: .92rem; color: var(--ink-soft); margin-left: .5rem; }
.area-list__foot { margin-top: 1.2rem; color: var(--ink-soft); }
.search-results { border: 3px solid var(--navy); }

/* Map clipping — Leaflet container */
.map-clip { display: grid; gap: 1.2rem; }
.map-clip__frame { padding: .8rem .8rem 1rem; transform: rotate(.4deg); }
.map-clip__map { height: clamp(22rem, 55vh, 34rem); background: var(--sheet-blue); }
.map-clip__note { font-size: .98rem; color: var(--ink-soft); margin: .8rem .4rem 0; }
.map-clip__map .leaflet-popup-content { font-family: var(--f-body); font-size: 1rem; }
.map-clip__map .leaflet-popup-content a { font-weight: 700; }
.map-clip__map .leaflet-container a.leaflet-popup-close-button { color: var(--navy); }
.map-legend { background: var(--paper); padding: .5rem .7rem; box-shadow: var(--shadow-paper); font-size: .92rem; line-height: 1.5; }
.map-legend span { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; border: 2px solid var(--navy-ink); }

/* ---------- Closer: estimate pad + FAQ ---------- */
.closer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 980px) { .closer { grid-template-columns: minmax(0, 1fr); } }
.faq { transform: rotate(-.8deg); margin-top: 2rem; }
.faq__item { border-top: 1px solid var(--paper-shade); }
.faq__item summary { cursor: pointer; font-weight: 700; padding: .85rem 2rem .85rem 0; list-style: none; position: relative; color: var(--navy-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .2rem; top: 1.05rem; width: 1.1rem; height: 1.1rem; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { padding-bottom: .9rem; color: var(--ink); }

/* Work-order pad */
.pad { padding: 0 0 1.8rem; transform: rotate(.3deg); }
.pad::before { content: ""; display: block; height: 1.1rem; background: var(--navy); border-bottom: 3px solid var(--navy-deep); }
.pad > .pin { left: 2rem; margin-left: 0; top: -.4rem; }
.pad__head { padding: 1.6rem clamp(1.3rem, 4vw, 2.6rem) .4rem; }
.pad__title { font-family: var(--f-display); font-weight: 900; font-stretch: 120%; text-transform: uppercase; color: var(--navy); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.pad__sub { color: var(--ink-soft); }
.pad__sub a { font-weight: 700; white-space: nowrap; }
.pad__errors { margin: .6rem clamp(1.3rem, 4vw, 2.6rem) 0; border: 2px solid var(--index-red); background: #FFF1EE; padding: .9rem 1.1rem; }
.pad__errors ul { margin: .3rem 0 0 1.1rem; }
.pad__form { padding: 0 clamp(1.3rem, 4vw, 2.6rem); }
.pad__set { border: 0; margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 2px solid var(--paper-shade); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.pad__set legend { font-family: var(--f-typed); font-weight: 700; font-size: 1.1rem; color: var(--navy-ink); padding: 0 .4rem 0 0; float: left; grid-column: 1 / -1; margin-bottom: .2rem; }
.field { display: grid; gap: .3rem; align-content: start; }
.field--full { grid-column: span 4; }
.field--half { grid-column: span 2; }
.field--quarter { grid-column: span 2; }
@media (max-width: 600px) { .pad__set { grid-template-columns: 1fr; } .field--full, .field--half, .field--quarter { grid-column: 1 / -1; } }
.field label, .field__label { font-weight: 700; margin: 0; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.field__hint { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.field__error { color: #A3271D; font-weight: 700; font-size: 1rem; margin: 0; }
input[type="text"], input:not([type]), input[type="tel"], input[type="email"], input[type="search"], input[type="date"], select, textarea {
  font: inherit; font-size: 1.1rem; color: var(--ink);
  width: 100%; min-height: 3rem; padding: .55rem .75rem;
  background: #fff; border: 2px solid #8A9BA8; border-radius: 3px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #66727C; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--yellow); }
[aria-invalid="true"] { border-color: #A3271D; background: #FFF8F6; }
input[type="file"] { font: inherit; font-size: 1rem; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; background: var(--paper-shade); border: 2px solid var(--navy); color: var(--navy); padding: .45rem .9rem; margin-right: .8rem; border-radius: 3px; cursor: pointer; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 2px solid #8A9BA8; border-radius: 3px; font-weight: 600; cursor: pointer; min-height: 3rem; }
.choice:has(input:checked) { border-color: var(--navy); background: #EEF4F8; }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pad__submit { margin-top: 1.6rem; display: grid; gap: .8rem; justify-items: start; }
.pad__privacy { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  min-height: 3rem; padding: .6rem 1.2rem; border-radius: 3px; border: 2px solid var(--navy);
  transition: transform .2s var(--ease-out), background-color .15s, box-shadow .2s var(--ease-out);
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--yellow { background: var(--yellow); color: var(--navy-ink); box-shadow: 0 2px 3px rgb(2 49 79 / .3), 0 10px 16px -8px rgb(2 49 79 / .5); }
.btn--yellow:hover { transform: translateY(-1px); background: #FFE77F; }
.btn--yellow:active { transform: translateY(1px); box-shadow: 0 1px 2px rgb(2 49 79 / .35); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--big { font-family: var(--f-display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: .03em; font-size: 1.3rem; min-height: 3.6rem; padding: .7rem 2rem; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Thanks ---------- */
.flyer--thanks .flyer__title { font-size: clamp(2.4rem, 6vw, 4.2rem); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    box-shadow: 0 -6px 18px rgb(0 0 0 / .3); padding-bottom: env(safe-area-inset-bottom); background: var(--navy); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 3.6rem; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; font-size: 1.05rem; }
  .callbar__call { background: var(--navy); color: #fff; }
  .callbar__est { background: var(--yellow); color: var(--navy-ink); }
  .frame-top__inner { gap: .6rem 1rem; }
  .brand__name { font-size: 1.05rem; }
  .frame-top__phone { display: none; }
  .frame-top__inner { flex-wrap: nowrap; padding-block: .5rem; }
  .brand { gap: .45rem; }
  .brand__name { font-size: .92rem; font-stretch: 100%; letter-spacing: 0; }
  .brand__mark { width: 2.6rem; }
  .nav ul { gap: .9rem; flex-wrap: nowrap; }
  .nav a { font-size: .95rem; white-space: nowrap; }
  .nav ul { gap: .75rem; }
  .nav li:last-child { display: none; }
  .js .callbar { transform: translateY(110%); transition: transform .35s var(--ease-out); }
  .js .callbar.is-shown { transform: none; }
}

/* ---------- Settle motion: items land on the board once ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-settle], .hero .card--index, .services__card, .services__sticky {
    animation: settle .8s var(--ease-out) both;
  }
  .hero .card--index { animation-delay: .12s; }
  .hero .note { animation-delay: .22s; }
  .services__sticky { animation-delay: .1s; }
  @keyframes settle {
    from { translate: 0 -18px; scale: 1.015; }
    to { translate: 0 0; scale: 1; }
  }
}

/* ---------- Print ---------- */
@media print {
  .frame-top nav, .callbar, .pad, .map-clip { display: none; }
  .board { background: #fff; box-shadow: none; }
  .flyer, .card, .sheet, .note, .sticky, .strip { transform: none; box-shadow: none; border: 1px solid #999; }
}

/* ---------- Small phones: tighten the flyer ---------- */
@media (max-width: 560px) {
  .flyer__logo { display: none; }
  .flyer__title { font-size: clamp(2.1rem, 10.5vw, 2.6rem); margin-bottom: .9rem; }
  .flyer__body { padding: 1.5rem 1.25rem 1.1rem; }
  .flyer__lead { font-size: 1.08rem; }
  .ticks { margin-top: .5rem; gap: .2rem; }
  .flyer__lead { margin-bottom: .5rem; }
  .ticks li { font-size: 1rem; }
  .tabs { grid-template-columns: 1.2fr 1fr; }
  .tab { min-height: 4.6rem; padding: .7rem .5rem 1.3rem; }
  .tab__num { font-size: 1.2rem; }
  .tab--est .tab__num { font-size: 1rem; }
  .tab__label { font-size: .85rem; }
}

/* ---------- Articles / blog section (Soro-era styles kept for compatibility) ---------- */
.blog { display: grid; gap: 1.6rem; }
.blog__head { display: grid; gap: 1rem; justify-items: start; }
.blog__head p { color: var(--ink); background: rgb(246 236 205 / .96); max-width: 44rem; font-size: 1.1rem; padding: .5rem .9rem; margin: 0; transform: rotate(.5deg); box-shadow: 0 1px 3px rgb(60 35 10 / .35); }
.blog__sheet { transform: rotate(-.3deg); min-height: 20rem; }
@media (max-width: 760px) { .nav li:nth-last-child(2) { display: none; } }

/* ---------- Home: "From Ryan's notebook", newest articles as pinned clippings in a sideways row ---------- */
.notebook { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.notebook__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; justify-items: start; align-items: end; }
.notebook__head > .board-title, .notebook__head > p { grid-column: 1; }
.notebook__controls { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; gap: .6rem; }
.notebook__pause {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .4rem .95rem;
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--navy-ink); cursor: pointer;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 999px;
  box-shadow: 0 1px 3px rgb(60 35 10 / .35);
}
.notebook__pause[hidden] { display: none; }
.notebook__pause:hover { background: #FFF6C9; }
.notebook__play-icon { display: none; }
.notebook__pause[aria-pressed="true"] .notebook__pause-icon { display: none; }
.notebook__pause[aria-pressed="true"] .notebook__play-icon { display: block; }
.notebook__head p { color: var(--ink); background: rgb(246 236 205 / .96); max-width: 44rem; font-size: 1.1rem; padding: .5rem .9rem; margin: 0; transform: rotate(-.4deg); box-shadow: 0 1px 3px rgb(60 35 10 / .35); }
.notebook__rail { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.notebook__strip {
  list-style: none; margin: 0; padding: 1.8rem .4rem 1.6rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 20rem; gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: .4rem;
  scrollbar-width: none; /* no visible scroll bar: arrows, swipe and auto-scroll move it */
}
.notebook__strip::-webkit-scrollbar { display: none; }
.notebook__strip:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .notebook__strip { scroll-behavior: smooth; } }
@media (max-width: 560px) { .notebook__strip { grid-auto-columns: 86%; } }

.clip { position: relative; min-width: 0; scroll-snap-align: start; transform: rotate(-.9deg); transition: transform .35s var(--ease-out); }
.clip:nth-child(2n) { transform: rotate(.8deg); margin-top: .9rem; }
.clip:nth-child(3n) { transform: rotate(-.3deg); }
.clip > .pin { z-index: 4; }
.clip__link {
  display: grid; text-decoration: none; color: var(--ink);
  background: var(--paper); box-shadow: var(--shadow-paper); padding: .6rem .6rem 1.1rem;
  transition: box-shadow .35s var(--ease-out);
}
.clip:hover, .clip:focus-within { transform: rotate(0deg) translateY(-4px); }
.clip:hover .clip__link, .clip:focus-within .clip__link { box-shadow: var(--shadow-paper-lift); }
.clip__link:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }
.clip__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-shade); }
.clip__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip__body { display: grid; gap: .45rem; padding: .85rem .5rem 0; }
.clip__title { font-family: var(--f-display); font-weight: 900; font-stretch: 108%; font-size: 1.2rem; line-height: 1.12; color: var(--navy); text-wrap: balance; }
.clip__link:hover .clip__title { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .15em; }
.clip__desc { font-size: 1rem; line-height: 1.45; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip__meta > * { white-space: nowrap; }
.clip__meta { display: flex; flex-wrap: wrap; gap: .15rem .9rem; font-family: var(--f-typed); font-size: .9rem; color: var(--ink-soft); padding-top: .35rem; border-top: 1px solid var(--paper-shade); }

/* End of the row: a sticky note linking to the full list */
.clip--end { align-self: center; transform: rotate(2deg); }
.clip__all { display: grid; gap: .5rem; text-decoration: none; color: var(--navy-ink); padding: 1.6rem 1.4rem; min-height: 11rem; align-content: center; }
.clip__all:hover .sticky__big { text-decoration: underline; }

/* Arrow buttons in the section header, shown by site.js only when the row overflows */
.notebook__nav {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: #fff; border: 2px solid var(--paper);
  box-shadow: 0 2px 4px rgb(0 0 0 / .3), 0 10px 16px -8px rgb(0 0 0 / .5); cursor: pointer;
  transition: background-color .15s, opacity .2s;
}
.notebook__nav[hidden] { display: none; }
.notebook__nav:hover:not(:disabled) { background: var(--navy-deep); }
.notebook__nav:disabled { opacity: .4; cursor: default; }
@media (max-width: 560px) {
  .notebook__head { grid-template-columns: minmax(0, 1fr); }
  .notebook__controls { grid-column: 1; grid-row: auto; justify-self: start; }
  /* Phones: no gutters (the row needs the width); the arrows float over the outer edges of the
     photos, at photo height, so they never cover a title or summary. */
  .notebook__rail { grid-template-columns: minmax(0, 1fr); }
  .notebook__strip { grid-column: 1; grid-row: 1; }
  .notebook__nav { grid-row: 1; align-self: start; z-index: 6; width: 2.5rem; height: 2.5rem; margin-top: calc(1.8rem + 28vw); }
  .notebook__nav--prev { grid-column: 1; justify-self: start; margin-left: -.5rem; }
  .notebook__nav--next { grid-column: 1; justify-self: end; margin-right: -.5rem; }
}

/* >>> Content Creation Manager — article formatting (managed: edit in the app's site Settings) >>> */
/* Article pages: the board is textured cork, so put everything people read on paper (the site's own
   "paper pinned to cork" look) instead of directly on the texture. */
.article-page .breadcrumb__list {
  display: inline-flex;
  background: var(--paper);
  padding: .45rem .9rem;
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
}
.article-page .article-header,
.article-page .article-body,
.article-page .faq {
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.article-page .article-sidebar__related {
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  border-radius: 6px;
  padding: 1.25rem 1.35rem;
}
.article-page .article-header { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.article-page .faq { margin-top: clamp(2rem, 4vw, 3rem); }

/* Sidebar (desktop): core pins the whole column with its own inner scrollbar, which hides the lower cards.
   Let the column scroll with the page so every card is visible, and float only "In this article". */
@media (min-width: 64em) {
  .article-page .article-grid { align-items: stretch; }
  .article-page .article-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .article-page .article-sidebar__toc {
    order: 10;
    position: sticky;
    top: calc(4rem + var(--space-6));
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}
/* <<< Content Creation Manager <<< */
