/* Dorking Heritage Windows. Layout A11: long-form article pages with a contents list. */
:root {
  --dh-aub: #3B2A4A;
  --dh-aub-deep: #2A1E35;
  --dh-sage: #8FA68E;
  --dh-sage-pale: #E3EAE2;
  --dh-paper: #F7F4EE;
  --dh-white: #FFFFFF;
  --dh-ink: #2B2530;
  --dh-muted: #5E5764;
  --dh-rule: #D9D2C7;
  --dh-serif: "Lora", Georgia, "Times New Roman", serif;
  --dh-sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-wrap: break-word;
  margin: 0;
  background: var(--dh-paper);
  color: var(--dh-ink);
  font-family: var(--dh-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-bottom: 64px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dh-aub); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dh-aub-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--dh-sage); outline-offset: 2px; }

.dh-skip { position: absolute; left: -9999px; }
.dh-skip:focus { left: 12px; top: 12px; background: var(--dh-white); padding: 8px 12px; z-index: 50; }

/* Masthead */
.dh-mast { background: var(--dh-white); border-bottom: 1px solid var(--dh-rule); }
.dh-mast__in { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; justify-content: space-between; }
.dh-brand { font-family: var(--dh-serif); font-size: 1.35rem; font-weight: 600; color: var(--dh-aub); text-decoration: none; letter-spacing: .01em; }
.dh-brand span { display: block; font-family: var(--dh-sans); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dh-muted); }
.dh-mast__tel { font-weight: 600; color: var(--dh-aub); text-decoration: none; white-space: nowrap; border: 1px solid var(--dh-aub); padding: 6px 14px; border-radius: 3px; }
.dh-mast__tel:hover { background: var(--dh-aub); color: var(--dh-white); }
.dh-nav { background: var(--dh-aub); }
.dh-nav ul { list-style: none; margin: 0 auto; padding: 0 12px; max-width: 1160px; display: flex; flex-wrap: wrap; }
.dh-nav a { display: block; color: var(--dh-white); text-decoration: none; padding: 10px 10px; font-size: .92rem; }
.dh-nav a:hover, .dh-nav a[aria-current="page"] { background: var(--dh-aub-deep); box-shadow: inset 0 -3px 0 var(--dh-sage); }

/* Article frame */
.dh-frame { max-width: 1160px; margin: 0 auto; padding: 28px 20px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 980px) {
  .dh-frame--toc { grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 56px; }
}
.dh-crumbs { font-size: .85rem; color: var(--dh-muted); margin: 0 0 14px; }
.dh-crumbs a { color: var(--dh-muted); }
.dh-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dh-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--dh-rule); }

.dh-article { max-width: 720px; margin: 0 auto; width: 100%; }
.dh-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dh-sage); font-weight: 600; margin: 0 0 8px; filter: brightness(.75); }
.dh-article h1 { font-family: var(--dh-serif); font-weight: 600; font-size: clamp(1.85rem, 4.4vw, 2.7rem); line-height: 1.18; color: var(--dh-aub); margin: 0 0 16px; }
.dh-stand { font-family: var(--dh-serif); font-size: 1.2rem; line-height: 1.6; color: var(--dh-ink); margin: 0 0 18px; }
.dh-meta { font-size: .9rem; color: var(--dh-muted); border-top: 1px solid var(--dh-rule); border-bottom: 1px solid var(--dh-rule); padding: 10px 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.dh-meta a { font-weight: 600; }
.dh-article .dh-toc h2 { font-family: var(--dh-sans); font-size: .78rem; margin: 0 0 10px; color: var(--dh-muted); }
.dh-article h2 { font-family: var(--dh-serif); font-weight: 600; font-size: 1.6rem; line-height: 1.3; color: var(--dh-aub); margin: 2.2em 0 .6em; scroll-margin-top: 16px; }
.dh-article h2 .dh-num { font-family: var(--dh-sans); font-size: .85rem; font-weight: 600; color: var(--dh-sage); filter: brightness(.75); display: block; letter-spacing: .1em; }
.dh-article h3 { font-family: var(--dh-serif); font-size: 1.22rem; color: var(--dh-aub-deep); margin: 1.6em 0 .4em; }
.dh-article p, .dh-article ul, .dh-article ol { margin: 0 0 1.05em; }
.dh-article li { margin-bottom: .35em; }
.dh-article figure { margin: 28px 0; }
.dh-article figure img { border-radius: 2px; background: var(--dh-sage-pale); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.dh-article figcaption { font-size: .88rem; color: var(--dh-muted); padding-top: 8px; border-bottom: 1px solid var(--dh-rule); padding-bottom: 8px; }
.dh-drop::first-letter { font-family: var(--dh-serif); float: left; font-size: 3.4rem; line-height: .9; padding: 6px 8px 0 0; color: var(--dh-aub); }

/* Contents list */
.dh-toc { align-self: start; background: var(--dh-white); border: 1px solid var(--dh-rule); border-top: 4px solid var(--dh-aub); padding: 18px 20px; font-size: .93rem; }
@media (min-width: 980px) { .dh-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
.dh-toc h2 { font-family: var(--dh-sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; color: var(--dh-muted); }
.dh-toc ol { margin: 0; padding-left: 1.3em; }
.dh-toc li { margin: 0 0 .45em; }
.dh-toc a { text-decoration: none; }
.dh-toc a:hover { text-decoration: underline; }
.dh-toc--side { display: none; }
.dh-toc--inline { margin: 0 0 26px; }
@media (min-width: 980px) { .dh-toc--side { display: block; } .dh-toc--inline { display: none; } }
.dh-toc__call { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--dh-rule); }
.dh-toc__call a { font-weight: 600; }

/* Asides and boxes */
.dh-note { background: var(--dh-sage-pale); border-left: 4px solid var(--dh-sage); padding: 14px 18px; margin: 24px 0; }
.dh-note p:last-child { margin-bottom: 0; }
.dh-pull { font-family: var(--dh-serif); font-style: italic; font-size: 1.25rem; color: var(--dh-aub); border-top: 1px solid var(--dh-aub); border-bottom: 1px solid var(--dh-aub); padding: 14px 0; margin: 30px 0; }
.dh-era { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .95rem; }
.dh-era th, .dh-era td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--dh-rule); }
.dh-era th { font-family: var(--dh-serif); color: var(--dh-aub); font-weight: 600; }
.dh-era thead th { font-family: var(--dh-sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dh-muted); }
@media (max-width: 600px) {
  .dh-era thead { display: none; }
  .dh-era tr { display: block; border-bottom: 1px solid var(--dh-rule); padding: 8px 0; }
  .dh-era th, .dh-era td { display: block; border: 0; padding: 2px 0; }
}

/* Case studies */
.dh-case { background: var(--dh-white); border: 1px solid var(--dh-rule); margin: 30px 0; }
.dh-case figure { margin: 0; }
.dh-case figure img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--dh-sage-pale); }
.dh-case__body { padding: 18px 20px 20px; }
.dh-case__label { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dh-white); background: var(--dh-aub); padding: 3px 8px; margin: 0 0 10px; }
.dh-case h3 { margin-top: 0; }
.dh-case__price { font-family: var(--dh-serif); font-size: 1.22rem; color: var(--dh-aub); border-top: 1px dashed var(--dh-rule); padding-top: 10px; margin: 14px 0 0; }
.dh-case dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .95rem; }
.dh-case dt { font-weight: 600; color: var(--dh-muted); }
.dh-case dd { margin: 0; }

/* Link lists */
.dh-cards { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dh-cards li { background: var(--dh-white); border: 1px solid var(--dh-rule); padding: 14px 16px; margin: 0; }
.dh-cards a { font-family: var(--dh-serif); font-weight: 600; font-size: 1.08rem; }
.dh-cards p { margin: 6px 0 0; font-size: .93rem; color: var(--dh-muted); }

/* Call to action */
.dh-ask { background: var(--dh-aub); color: var(--dh-white); padding: 24px 22px; margin: 36px 0 10px; }
.dh-ask h2 { color: var(--dh-white); margin-top: 0; }
.dh-ask a { color: var(--dh-white); font-weight: 600; }
.dh-ask p:last-child { margin-bottom: 0; }
.dh-btn { display: inline-block; background: var(--dh-sage); color: var(--dh-aub-deep) !important; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 3px; margin: 4px 8px 4px 0; }
.dh-btn:hover { filter: brightness(1.08); }
.dh-btn--line { background: transparent; color: var(--dh-white) !important; border: 1px solid var(--dh-white); }

/* FAQ */
.dh-faq details { border-bottom: 1px solid var(--dh-rule); padding: 12px 0; }
.dh-faq summary { cursor: pointer; font-family: var(--dh-serif); font-weight: 600; color: var(--dh-aub); font-size: 1.1rem; }
.dh-faq details p { margin: 10px 0 0; }

/* Form */
.dh-form { background: var(--dh-white); border: 1px solid var(--dh-rule); padding: 22px 20px; margin: 24px 0; }
.dh-form label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.dh-form .dh-field { margin: 0 0 16px; }
.dh-form input, .dh-form select, .dh-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #B9B0A6; border-radius: 2px; background: var(--dh-paper); color: var(--dh-ink); }
.dh-form textarea { min-height: 120px; resize: vertical; }
.dh-form button { font: inherit; font-weight: 600; background: var(--dh-aub); color: var(--dh-white); border: 0; padding: 12px 22px; border-radius: 3px; cursor: pointer; }
.dh-form button:hover { background: var(--dh-aub-deep); }
.dh-form button[disabled] { opacity: .6; cursor: wait; }
.dh-form__err { color: #8A1C1C; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.dh-form__small { font-size: .88rem; color: var(--dh-muted); }
.dh-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.dh-foot { background: var(--dh-aub-deep); color: #E8E2EC; font-size: .93rem; }
.dh-foot__in { max-width: 1160px; margin: 0 auto; padding: 32px 20px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dh-foot a { color: #FFFFFF; }
.dh-foot h2 { font-family: var(--dh-serif); font-size: 1.1rem; color: #FFFFFF; margin: 0 0 8px; }
.dh-foot ul { list-style: none; margin: 0; padding: 0; }
.dh-foot li { margin: 0 0 6px; }
.dh-foot__btn { background: none; border: 0; padding: 0; font: inherit; color: #FFFFFF; text-decoration: underline; cursor: pointer; }
.dh-foot__base { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 14px 20px; font-size: .82rem; color: #C9C0CF; }

/* Sticky call bar on phones */
.dh-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--dh-aub); color: var(--dh-white); text-align: center; font-weight: 600; padding: 14px 10px; text-decoration: none; border-top: 3px solid var(--dh-sage); }
.dh-callbar:hover { color: var(--dh-white); }
@media (min-width: 760px) { .dh-callbar { display: none; } body { padding-bottom: 0; } }

/* Cookie choice */
.dh-cookie { position: fixed; left: 12px; right: 12px; bottom: 70px; z-index: 40; max-width: 520px; margin: 0 auto; background: var(--dh-white); border: 1px solid var(--dh-aub); box-shadow: 0 6px 24px rgba(43,37,48,.18); padding: 16px 18px; font-size: .93rem; }
@media (min-width: 760px) { .dh-cookie { bottom: 16px; } }
.dh-cookie p { margin: 0 0 12px; }
.dh-cookie__row { display: flex; gap: 10px; }
.dh-cookie__row button { flex: 1; font: inherit; font-weight: 600; padding: 10px 12px; border: 2px solid var(--dh-aub); background: var(--dh-white); color: var(--dh-aub); border-radius: 3px; cursor: pointer; }
.dh-cookie__row button:hover { background: var(--dh-aub); color: var(--dh-white); }
