/* Company-site additions that are not in the shared Worker build (styles.css stays byte-identical to the Worker).
   Uses the Worker's tokens: --ink, --ink-2, --ink-3, --navy, --sea, --sky, --buoy, --line, --line-2, --paper-hi, --sand, --serif, --mono, --radius, --ease. */

/* Family of companies: 4th card (Business Directory) */
@media (min-width: 840px) { .network__list--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .network__list--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Service detail pages ---------- */
.svc-intro { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .svc-intro { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.svc-prose { color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; }
.svc-prose p + p { margin-top: 1em; }
.svc-prose h2 { margin-bottom: .55em; }
.svc-prose strong { color: var(--ink); }
.svc-facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-hi); padding: clamp(22px, 3vw, 30px); }
.svc-facts h3 { font-size: 1.2rem; margin-bottom: 14px; }
.svc-facts dl { display: grid; gap: 14px; }
.svc-facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.svc-facts dd { color: var(--ink-2); margin: 2px 0 0; }

.svc-list { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 760px) { .svc-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-list--3 { grid-template-columns: repeat(3, 1fr); } }
.svc-item { padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-hi); color: var(--ink-2); }
.section--sand .svc-item { background: var(--paper-hi); }
.section--deep .svc-item { background: rgba(255,255,255,.03); border-color: var(--line-deep); color: var(--on-deep-2); }
.svc-item h3 { font-size: 1.2rem; margin: 12px 0 8px; color: var(--ink); }
.section--deep .svc-item h3 { color: #fff; }
.svc-item p { font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--sea); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--sea); }
.faq__a { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq__a p + p { margin-top: .8em; }

/* Related services */
.related { display: grid; gap: 16px; }
@media (min-width: 700px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .related { grid-template-columns: repeat(4, 1fr); } }
.related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-hi); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.related a:hover { border-color: var(--sea); transform: translateY(-2px); }
.related strong { font-family: var(--serif); font-weight: 450; font-size: 1.15rem; color: var(--ink); }
.related span { font-size: .92rem; color: var(--ink-3); }
.related .icon { color: var(--sea); margin-top: auto; }

/* Service card "learn more" links on the IT overview */
.it-card .text-link { margin-top: auto; padding-top: 6px; }
.section--deep .it-card .text-link { color: #fff; }

/* Town chips (service area) */
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.towns li { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }

/* Home "in brief" service names link to their pages */
.points strong a { color: inherit; text-decoration: underline; text-decoration-color: rgba(140, 196, 232, .5); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.points strong a:hover { text-decoration-color: currentColor; }

/* Design Cape Cod hand-off band (web design page) */
.handoff { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--deep); color: var(--on-deep-2); }
.handoff h2 { color: #fff; }
.handoff h2 em { color: var(--sky); }
.handoff__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .handoff { grid-template-columns: 1.4fr auto; } }
.mt-crew { margin-top: 28px; }
.handoff .handoff__call { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.handoff .handoff__call:hover { background: #fff; color: var(--navy); }

/* Stat band (advertising page) */
.stat-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-hi); }
@media (min-width: 900px) { .stat-band { grid-template-columns: repeat(5, 1fr); } }
.stat-band div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat-band dd { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); line-height: 1; margin: 0; }
.stat-band dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Team: featured card (Employee of the Year) - own row, centered, larger */
.crew__card--featured { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 820px; grid-template-columns: 132px 1fr; padding: clamp(22px, 3vw, 32px); border: 1.5px solid var(--buoy); background: var(--paper-hi); box-shadow: 0 18px 40px -24px rgba(15, 35, 56, .45); }
.crew__card--featured .crew__photo { width: 132px; height: 132px; }
.crew__card--featured .crew__name { font-size: clamp(1.6rem, 3vw, 2rem); }
.crew__card--featured .crew__bio { font-size: 1.02rem; }
.crew__award { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--buoy); color: #fff; font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.crew__award .icon { width: 12px; height: 12px; }
@media (min-width: 760px) { .crew__card--featured { grid-template-columns: 180px 1fr; } .crew__card--featured .crew__photo { width: 180px; height: 180px; } }

/* 404 (site/pages/notfound.cfm), from the Worker's 404 page */
.nf { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 48px) var(--gutter) 72px; }
.nf__code { margin-bottom: 20px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(6rem, 24vw, 10rem); line-height: 1; color: var(--sea); }
.nf h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 8px 0 12px; }
.nf p { max-width: 28em; margin: 0 auto 28px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nf .nf__more { margin-top: 28px; font-size: .95rem; color: var(--ink-2); }
.nf__more a { color: var(--sea); text-decoration: underline; text-underline-offset: .2em; }

/* IT overview cards: the added "More about..." link sits in the text column on wide screens
   (without this it dropped into the icon column and widened it) */
@media (min-width: 1060px) {
  .it-card > .ring-icon { grid-row: span 4; }
  .it-card > .text-link { grid-column: 2; }
}
.svc-intro--after-stats { margin-top: clamp(36px, 5vw, 56px); }
