:root {
  --accent-granny-flats: #5e986b;
  --accent-granny-flats-strong: #477b54;
  --accent-granny-flats-soft: #f0f7f1;
  --accent-granny-flats-on-dark: #b9d8bc;
}

body.granny-page {
  --business-accent: var(--accent-granny-flats);
  --business-accent-strong: var(--accent-granny-flats-strong);
  --business-accent-soft: var(--accent-granny-flats-soft);
  --business-accent-on-dark: var(--accent-granny-flats-on-dark);
  --service-accent: var(--accent-granny-flats);
  color: #123047;
}

/* September live review: keep the hero photograph clear and contain the copy
   in one opaque surface instead of washing out the full image. */
.granny-page .hero-shade {
  display: none !important;
}

.granny-page .hero-copy {
  width: min(100%, 640px);
  max-width: 640px;
  padding: clamp(34px, 3.2vw, 46px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(7, 31, 47, 0.16);
}

.granny-page .hero-copy :is(h1, p) {
  text-shadow: none !important;
}

.granny-page .hero-copy h1 {
  color: #123047 !important;
}

.granny-page .hero-copy > p:not(.eyebrow) {
  color: #354e5e !important;
}

.granny-page .hero-copy .btn-outline {
  border-color: rgba(18, 48, 71, 0.38);
  color: #123047;
  background: #fff;
}

.granny-page main .btn {
  font-size: 15px !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.granny-page .tier-price strong {
  font-size: 40.8px !important;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .granny-page .hero-copy {
    padding: 28px 22px;
  }

  .granny-page main .btn {
    font-size: 13.5px !important;
  }
}

/* The shared DK header is frozen. These rules only neutralise the legacy
   Granny Flat header so the common navigation files can own its appearance. */
body.granny-page .navbar {
  position: relative;
  z-index: 1200;
  min-height: 84px;
  background: rgba(7, 31, 47, 0.97);
  color: #fff;
}

body.granny-page .nav-inner {
  width: min(100% - 48px, 1440px);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

body.granny-page .navbar .logo.logo-hi {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: #d8a13f;
  text-decoration: none;
}

body.granny-page .navbar .logo.logo-hi .dk-mark-img {
  width: 124px;
  height: 76px;
  object-fit: contain;
}

body.granny-page .navbar .logo.logo-hi .header-brand__divider {
  display: none !important;
}

body.granny-page .navbar .logo.logo-hi .logo-hi-text strong {
  display: block;
  color: #d8a13f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27.075px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

body.granny-page .navbar .logo.logo-hi .logo-hi-text small {
  display: none;
}

body.granny-page .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 30px 0 auto;
  padding: 0;
  list-style: none;
}

body.granny-page .nav-services-mobile {
  display: none;
}

body.granny-page .nav-links > li > a {
  position: relative;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

body.granny-page .nav-links > li > a:hover,
body.granny-page .nav-links > li > a:focus-visible,
body.granny-page .nav-links > li > a.active {
  color: #d8a13f;
}

body.granny-page .nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #d8a13f;
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.granny-page .nav-links > li > a:hover::after,
body.granny-page .nav-links > li > a:focus-visible::after,
body.granny-page .nav-links > li > a.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

body.granny-page .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

body.granny-page .nav-search {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

body.granny-page .nav-search svg,
body.granny-page .nav-main-phone svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
}

body.granny-page .nav-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
}

body.granny-page .nav-main-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.granny-page .nav-main-phone:hover,
body.granny-page .nav-main-phone:focus-visible {
  color: #d8a13f;
}

body.granny-page .header-quote-btn {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #d8a13f;
  color: #071f2f;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body.granny-page .header-quote-btn:hover,
body.granny-page .header-quote-btn:focus-visible {
  background: linear-gradient(135deg, #e3b451, #c58a2c);
}

body.granny-page .mobile-menu-btn {
  display: none;
  color: #fff;
}

/* The fixed Header overlaps the business bar by 1px at compact widths.
   Keep that sizing relationship, but prevent its light border painting a seam
   across the active Granny Flats tab. */
html body.granny-page .navbar {
  border-bottom-color: transparent !important;
}

body.granny-page .cat-bar {
  position: relative;
  z-index: 1100;
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(7, 31, 47, 0.08);
}

body.granny-page .cat-item {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #123047;
}

body.granny-page .cat-item.active,
body.granny-page .cat-item:hover,
body.granny-page .cat-item:focus-within {
  background: #071f2f;
  color: #fff;
}

body.granny-page .cat-item.active::before {
  content: none;
  display: none;
}

/* Keep the active business visible without opening its dropdown. The shared
   dropdown system owns ::before as its hover bridge, so use the hover line. */
html body.granny-page .cat-bar > .cat-item.active {
  box-shadow: inset 0 4px 0 #C4933F !important;
}

body.granny-page .cat-title-link {
  color: inherit;
  text-decoration: none;
}

body.granny-page .cat-title-link strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

body.granny-page .cat-title-link small,
body.granny-page .cat-icon {
  display: none;
}

/* Shared secondary-page hero dimensions. Page-specific media and layout stay intact. */
body.granny-page :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero) {
  height: 560px !important;
  min-height: 560px;
}

body.granny-page :is(.hero-inner, .od-hero__grid, .ft-hero__layout, .ac-hero__layout, .op-hero__layout, .dc-hero__grid) {
  height: 100%;
  min-height: 560px;
}

body.granny-page :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero) h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0;
}

body.granny-page main :is(.section-heading, .od-section-heading, .ft-section-heading, .ac-section-heading, .op-section-heading, .dc-section-heading) > h2 {
  margin: 0;
  color: #123047;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(38px, 3.3vw, 48px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0;
}

body.granny-page main :is(.section-heading, .od-section-heading, .ft-section-heading, .ac-section-heading, .op-section-heading, .dc-section-heading) > :is(.eyebrow, .od-eyebrow, .dc-eyebrow) {
  display: none;
}

body.granny-page main :is(.section-heading, .od-section-heading, .ft-section-heading, .ac-section-heading, .op-section-heading, .dc-section-heading) > h2 + p {
  max-width: 720px;
  margin-top: 16px;
  color: #354e5e;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

body.granny-page main :is(p, li) {
  font-weight: 500;
}

body.granny-page main :is(.faq-section, .od-faq, .ft-faq, .ac-faq, .op-faq, .dc-faq) {
  color: #123047;
}

body.granny-page main :is(.faq-section, .od-faq, .ft-faq, .ac-faq, .op-faq, .dc-faq) :is(button, summary) {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
}

body.granny-page :is(.final-cta, .final-cta-v6) :is(.btn-green, .final-primary, .final-cta-actions-v13 > :first-child) {
  background: var(--accent-granny-flats);
  color: #fff;
}

body.granny-page :is(.final-cta, .final-cta-v6) :is(.btn-green, .final-primary, .final-cta-actions-v13 > :first-child):hover {
  background: var(--accent-granny-flats-strong);
}

@media (max-width: 1100px) {
  body.granny-page .nav-inner {
    width: min(100% - 32px, 1440px);
  }

  body.granny-page .nav-links {
    gap: 20px;
    margin-right: 20px;
  }


  body.granny-page .nav-services-mobile {
    display: block;
  }

  body.granny-page .navbar .logo.logo-hi .logo-hi-text strong {
    font-size: 22px;
  }

  body.granny-page .navbar .logo.logo-hi .dk-mark-img {
    width: 108px;
    height: 68px;
  }

  body.granny-page .nav-main-phone span,
  body.granny-page .nav-divider {
    display: none;
  }
}

@media (max-width: 1100px) {
  body.granny-page .navbar,
  body.granny-page .nav-inner {
    min-height: 72px;
  }

  body.granny-page .nav-inner {
    width: min(100% - 24px, 1440px);
  }

  body.granny-page .navbar .logo.logo-hi {
    gap: 9px;
  }

  body.granny-page .navbar .logo.logo-hi .dk-mark-img {
    width: 82px;
    height: 56px;
  }

  body.granny-page .navbar .logo.logo-hi .logo-hi-text strong {
    font-size: 15.3425px;
  }

  body.granny-page .nav-links {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    margin: 0;
    padding: 18px 24px 24px;
    background: #071f2f;
    align-items: stretch;
    flex-direction: column;
  }

  body.granny-page .nav-links.open {
    display: flex;
  }

  body.granny-page .nav-links > li > a {
    display: block;
    padding: 8px 0;
  }

  body.granny-page .nav-actions {
    margin-left: auto;
  }

  body.granny-page .nav-main-phone,
  body.granny-page .header-quote-btn {
    display: none;
  }

  body.granny-page .mobile-menu-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    margin-left: 4px;
    border: 0;
    background: transparent;
    font-size: 24px;
  }

  body.granny-page .cat-bar {
    min-height: 62px;
    overflow: hidden;
  }

  body.granny-page .cat-item {
    min-height: 62px;
  }

  body.granny-page .cat-title-link strong {
    font-size: 14px;
  }

  body.granny-page .cat-menu {
    display: none !important;
  }

  body.granny-page :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero),
  body.granny-page :is(.hero-inner, .od-hero__grid, .ft-hero__layout, .ac-hero__layout, .op-hero__layout, .dc-hero__grid) {
    height: auto !important;
    min-height: 0;
  }

  body.granny-page :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero) h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  body.granny-page main :is(.section-heading, .od-section-heading, .ft-section-heading, .ac-section-heading, .op-section-heading, .dc-section-heading) > h2 {
    font-size: 31px;
  }

  body.granny-page main :is(.section-heading, .od-section-heading, .ft-section-heading, .ac-section-heading, .op-section-heading, .dc-section-heading) > h2 + p {
    margin-top: 12px;
    font-size: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  body.granny-page :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero),
  body.granny-page :is(.hero-inner, .od-hero__grid, .ft-hero__layout, .ac-hero__layout, .op-hero__layout, .dc-hero__grid) {
    min-height: 560px;
  }
}

/* ===== Approved shared shell lock =====
   Keep Granny Flats pages aligned with the approved DK secondary-page shell.
   Page-specific content remains owned by each route. */
@media (min-width: 901px) {
  html body.granny-page .navbar {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 1400 !important;
    width: 100% !important;
    height: 84px !important;
    min-height: 84px !important;
    background: rgba(7, 31, 47, 0.94) !important;
    box-shadow: 0 10px 24px rgba(7, 31, 47, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  html body.granny-page main {
    padding-top: 148px !important;
  }

  html body.granny-page .nav-inner {
    width: 100% !important;
    max-width: none !important;
    height: 84px !important;
    min-height: 84px !important;
    margin: 0 !important;
    padding: 0 32px !important;
    gap: 36px !important;
    box-sizing: border-box !important;
  }

  html body.granny-page .navbar .logo.logo-hi {
    gap: 8px !important;
    margin-right: clamp(36px, 4vw, 72px) !important;
  }

  html body.granny-page .navbar .logo.logo-hi .dk-mark-img {
    width: 124px !important;
    height: 76px !important;
  }

  html body.granny-page .navbar .logo.logo-hi .logo-hi-text strong {
    color: #c4933f !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 19.855px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.015em !important;
    transform: none !important;
  }

  html body.granny-page .nav-links {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 34px !important;
    margin: 0 64px 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body.granny-page .nav-services-mobile {
    display: none !important;
  }

  html body.granny-page .nav-links > li > a {
    min-height: 48px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 15px !important;
    line-height: 24px !important;
    white-space: nowrap !important;
  }

  html body.granny-page .nav-actions {
    height: 48px !important;
    gap: 26px !important;
    margin-left: 0 !important;
  }

  html body.granny-page .nav-search {
    width: 44px !important;
    height: 44px !important;
  }

  html body.granny-page .nav-divider {
    display: none !important;
  }

  html body.granny-page .nav-main-phone {
    min-height: 44px !important;
    display: inline-flex !important;
    gap: 11px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
  }

  html body.granny-page .nav-main-phone span {
    display: inline !important;
  }

  html body.granny-page .nav-main-phone svg {
    width: 26px !important;
    height: 26px !important;
  }

  html body.granny-page .header-quote-btn {
    min-height: 48px !important;
    padding: 0 26px !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    text-transform: none !important;
  }

  html body.granny-page .mobile-menu-btn {
    display: none !important;
  }

  html body.granny-page .cat-bar {
    position: fixed !important;
    inset: 84px 0 auto !important;
    z-index: 1390 !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 48px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 420px)) !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 56px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  html body.granny-page .cat-item {
    width: max-content !important;
    min-width: 220px !important;
    min-height: 64px !important;
    padding: 0 28px !important;
    justify-self: center !important;
  }

  html body.granny-page .cat-title-link strong {
    font-size: 18px !important;
  }
}

@media (min-width: 1101px) {
  html body.granny-page main > :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero, .cd-hero),
  html body.granny-page main > :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero, .cd-hero) > :is(.hero-inner, .od-hero__grid, .ft-hero__layout, .ac-hero__layout, .op-hero__layout, .dc-hero__grid, .cd-hero__layout, .cd-hero__inner) {
    height: 722px !important;
    min-height: 722px !important;
  }

  html body.granny-page main > :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero, .cd-hero) h1 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(76px, 5.6vw, 82px) !important;
    line-height: 0.92 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }
}

html body.granny-page main > :is(.hero, .od-hero, .ft-hero, .ac-hero, .op-hero, .dc-hero, .cd-hero) :is(.hero-copy, .od-hero__copy, .ft-hero__copy, .ac-hero__copy, .op-hero__copy, .dc-hero__copy, .cd-hero__copy) > p:not(.eyebrow):not(.hero-eyebrow) {
  font-size: 18px !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

/* Shared section rhythm and warm residential alternation. */
html body.granny-page main > :is(
  .section,
  .od-paths, .od-catalog, .od-support, .od-faq, .od-guides,
  .ft-definition, .ft-process, .ft-pathways, .ft-designs, .ft-inclusions, .ft-guide, .ft-faq,
  .ac-section, .ac-fast-track, .ac-guide,
  .op-introduction, .op-journey, .op-assurance, .op-next-step, .op-faq,
  .dc-catalogue, .dc-feature, .dc-brochure, .dc-process, .dc-faq,
  .cd-why, .cd-customisable, .cd-inspiration, .cd-process, .cd-compare, .cd-faq
) {
  padding-top: 58px !important;
  padding-bottom: 58px !important;
}

/* Local page styles previously restored the older 76px rhythm on these panels. */
html body.granny-page main > :is(
  .featured-project.gf-featured-project,
  .ac-intro,
  .op-introduction,
  .dc-feature--warm,
  .dc-feature--reverse
) {
  padding-top: 58px !important;
  padding-bottom: 58px !important;
}

html body.granny-page.granny-page main > section.section.featured-project.gf-featured-project,
html body.granny-page.granny-page main > section.dc-feature.dc-feature--warm,
html body.granny-page.granny-page main > section.dc-feature.dc-feature--reverse {
  padding-top: 58px !important;
  padding-bottom: 58px !important;
}

html body.granny-page main > :is(.intro, .designs-section, .property, .approvals, .featured-project),
html body.granny-page main > :is(.od-paths, .od-support, .od-guides),
html body.granny-page main > :is(.ft-definition, .ft-pathways, .ft-inclusions, .ft-faq),
html body.granny-page main > :is(.ac-intro, .ac-approval, .ac-fast-track),
html body.granny-page main > :is(.op-introduction, .op-assurance, .op-faq),
html body.granny-page main > :is(.dc-catalogue, .dc-feature--reverse, .dc-faq),
html body.granny-page main > :is(.ft-catalog, .ft-faq) {
  background: #f8f5ef !important;
}

html body.granny-page main > :is(.cd-why, .cd-inspiration, .cd-compare) {
  background: #f8f5ef !important;
}

html body.granny-page main > :is(.cd-customisable, .cd-process, .cd-faq) {
  background: #fff !important;
}

html body.granny-page main > :is(.path-section, .why-build, .costs, .process, .faq-section),
html body.granny-page main > :is(.od-catalog, .od-faq),
html body.granny-page main > :is(.ft-process, .ft-designs, .ft-guide),
html body.granny-page main > :is(.ac-property, .ac-budget, .ac-faq),
html body.granny-page main > :is(.op-journey, .op-next-step),
html body.granny-page main > :is(.dc-feature--warm, .dc-process),
html body.granny-page main > :is(.ft-support, .ft-guides) {
  background: #fff !important;
}

/* Fast Track collection sections also carry shared Our Designs classes.
   Keep the intended warm/white rhythm from being overridden by those aliases. */
html body.granny-page.fast-track-page main > .ft-catalog,
html body.granny-page.fast-track-page main > .ft-faq {
  background: #f8f5ef !important;
}

html body.granny-page.fast-track-page main > .ft-support,
html body.granny-page.fast-track-page main > .ft-guides {
  background: #fff !important;
}

/* Approved pre-footer CTA: same geometry and image treatment, Granny accent only. */
html body.granny-page main > :is(.final-cta, .final-cta-v6) {
  position: relative !important;
  overflow: hidden !important;
  background-color: #031524 !important;
  background-image:
    linear-gradient(90deg, rgba(3, 21, 36, 0.94) 0%, rgba(3, 21, 36, 0.88) 46%, rgba(3, 21, 36, 0.74) 100%),
    url('../images/banner.jpg') !important;
  background-position: center 56% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

html body.granny-page main :is(#design-final-cta, #fast-track-final-cta, #custom-design-final-cta, #designer-final-cta, #approvals-costs-final-cta, #our-process-final-cta, #willow-final-cta) {
  background-color: #031524 !important;
  background-image:
    linear-gradient(90deg, rgba(3, 21, 36, 0.94) 0%, rgba(3, 21, 36, 0.88) 46%, rgba(3, 21, 36, 0.74) 100%),
    url('../images/banner.jpg') !important;
  background-position: center 56% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) h2 {
  color: #fff !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-weight: 700 !important;
}

html body.granny-page main :is(#design-final-cta, #fast-track-final-cta, #custom-design-final-cta, #designer-final-cta, #approvals-costs-final-cta, #our-process-final-cta, #willow-final-cta) h2 {
  color: #fff !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 600 !important;
}

html body.granny-page main :is(#design-final-cta, #fast-track-final-cta, #custom-design-final-cta, #designer-final-cta, #approvals-costs-final-cta, #our-process-final-cta, #willow-final-cta) p {
  color: rgba(255, 255, 255, 0.82) !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-actions-v13 > * {
  min-height: 54px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  font: 800 15px/1 Manrope, Arial, sans-serif !important;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-primary {
  border: 1px solid var(--accent-granny-flats) !important;
  background: var(--accent-granny-flats) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(71, 123, 84, 0.22) !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-primary:hover,
html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-primary:focus-visible {
  border-color: var(--accent-granny-flats-strong) !important;
  background: var(--accent-granny-flats-strong) !important;
  transform: translateY(-2px) !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-phone {
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(3, 21, 36, 0.28) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-phone:hover,
html body.granny-page main > :is(.final-cta, .final-cta-v6) .final-cta-phone:focus-visible {
  border-color: var(--accent-granny-flats-on-dark) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) !important;
}

html body.granny-page[data-business="granny-flats"] main .final-cta-phone {
  gap: 23px !important;
  overflow: visible !important;
}

html body.granny-page[data-business="granny-flats"] .final-cta-phone__icon {
  position: relative !important;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-granny-flats-on-dark) !important;
}

html body.granny-page[data-business="granny-flats"] .final-cta-phone__icon::before {
  content: "" !important;
  position: absolute !important;
  inset: -7px !important;
  border-radius: 999px !important;
  background: rgba(185, 216, 188, .31) !important;
  box-shadow: 0 0 34px rgba(185, 216, 188, 1) !important;
  opacity: .77 !important;
  transform: scale(.98) !important;
  transform-origin: center !important;
  animation: dkFamilyFinalCtaPhoneGlow 2.2s ease-in-out infinite !important;
  pointer-events: none !important;
}

html body.granny-page[data-business="granny-flats"] .final-cta-phone__icon svg {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  transform-origin: center !important;
  animation: dkFamilyFinalCtaPhoneIconPulse 2.2s ease-in-out infinite !important;
}

@keyframes dkFamilyFinalCtaPhoneGlow {
  0%, 100% {
    opacity: .5;
    transform: scale(.98);
    box-shadow: 0 0 22px rgba(185, 216, 188, .7);
  }
  50% {
    opacity: 1;
    transform: scale(1.82);
    box-shadow: 0 0 62px rgba(185, 216, 188, 1);
  }
}

@keyframes dkFamilyFinalCtaPhoneIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

@media (prefers-reduced-motion: reduce) {
  html body.granny-page[data-business="granny-flats"] .final-cta-phone__icon::before,
  html body.granny-page[data-business="granny-flats"] .final-cta-phone__icon svg {
    animation: none !important;
  }
}

html body.granny-page .gf-credential-rail {
  position: relative;
  z-index: 5;
  min-height: 90px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(90deg, #0b2231, #123047);
  color: #fff;
}

html body.granny-page .gf-credential-rail__inner {
  width: min(1400px, calc(100% - 88px));
  min-height: 90px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

html body.granny-page .gf-credential-rail__item {
  position: relative;
  min-width: 0;
  padding: 16px 24px 16px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

html body.granny-page .gf-credential-rail__item:first-child {
  border-left: 0;
}

html body.granny-page .gf-credential-rail__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-granny-flats-on-dark, #b9d8bc);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(185, 216, 188, .08);
  transform: translateY(-50%);
}

html body.granny-page .gf-credential-rail__item strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

html body.granny-page .gf-credential-rail__item small {
  color: rgba(255, 255, 255, .74);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

/* Granny Flats readable-content floor
   Local page styles previously reduced normal copy to 7-13px. Keep genuine
   microcopy compact, while enforcing the approved DK floor for reading text. */
html body.granny-page {
  --gf-reading-copy-size: 15.5px;
}

html body.granny-page main :where(p, li):not(
  .eyebrow,
  [class*="eyebrow"],
  [class*="badge"],
  [class*="tag"],
  [class*="meta"],
  [class*="breadcrumb"],
  [class*="status"],
  [class*="price"],
  [class*="helper"],
  [class*="privacy"],
  [class*="legal"],
  .gf-credential-rail *,
  .ft-quote *,
  .ft-guide__form *,
  .ac-guide__form *,
  .consultation-form *
) {
  font-size: max(var(--gf-reading-copy-size), 1em) !important;
  line-height: 1.58 !important;
}

html body.granny-page main :where(h3, h4):not(
  [class*="eyebrow"],
  [class*="badge"],
  [class*="tag"],
  [class*="meta"],
  .gf-credential-rail *,
  .ft-quote *,
  .consultation-form *
) {
  font-size: max(17px, 1em) !important;
  line-height: 1.35 !important;
}

html body.granny-page main :where(dt, dd, th, td) {
  font-size: max(13.5px, 1em) !important;
  line-height: 1.45 !important;
}

html body.granny-page main strong {
  font-size: max(13.5px, 1em);
}

html body.granny-page main small {
  font-size: max(12.5px, 1em) !important;
  line-height: 1.45 !important;
}

html body.granny-page main figcaption {
  font-size: max(13.5px, 1em) !important;
  line-height: 1.5 !important;
}

html body.granny-page main [class*="eyebrow"] {
  font-size: max(12px, 1em) !important;
}

html body.granny-page main :is(
  button,
  select,
  option,
  .od-btn,
  .ft-btn,
  .op-btn,
  .ac-actions .btn
) {
  font-size: max(13.5px, 1em) !important;
}

html body.granny-page main :is(
  .od-price-note,
  .process-time
) {
  font-size: max(12.5px, 1em) !important;
  line-height: 1.5 !important;
}

html body.granny-page main :is(
  .dc-breadcrumb span,
  .ft-breadcrumb span,
  .dc-design-card__media > span,
  .ft-design-card__media > span,
  .dd-collection-tag,
  .dd-price-panel > span,
  .dd-related-grid article > div > span,
  .cd-inspiration-card > div > span
) {
  font-size: max(11.5px, 1em) !important;
  line-height: 1.45 !important;
}

html body.granny-page main :is(
  .ft-path-card__best,
  .ft-design-card__specs span,
  .ft-design-card__body > strong,
  .ft-design-card__body > a,
  .od-design-card__specs span
) {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

html body.granny-page main :is(
  .ft-inclusions li span,
  .ft-process li small,
  .process-time
) {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

html body.granny-page main :is(
  .ft-faq button,
  .ac-faq__list button,
  .op-faq button,
  .dc-faq button,
  .cd-faq button
) {
  font-size: 16px !important;
  line-height: 1.45 !important;
}

@media (min-width: 1181px) {
  html body.granny-page main :is(
    .section-heading,
    .od-section-heading,
    .ft-section-heading,
    .ac-section-heading,
    .op-section-heading,
    .dc-section-heading
  ):not(.ft-section-heading--left) {
    max-width: 1040px !important;
  }

  html body.granny-page main .path-section .section-heading h2 {
    max-width: 1040px !important;
  }

  html body.granny-page main .od-guides__header > div {
    max-width: 880px;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  html body.granny-page .nav-inner {
    gap: 22px !important;
  }

  html body.granny-page .nav-links {
    gap: 26px !important;
    margin-right: 20px !important;
  }

  html body.granny-page .nav-actions {
    gap: 18px !important;
  }
}

@media (min-width: 1500px) {
  html body.granny-page .navbar .logo.logo-hi .logo-hi-text strong {
    font-size: 27.075px !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  html body.granny-page .nav-inner {
    padding: 0 24px !important;
    gap: 22px !important;
  }

  html body.granny-page .navbar .logo.logo-hi {
    margin-right: 8px !important;
  }

  html body.granny-page .navbar .logo.logo-hi .dk-mark-img {
    width: 108px !important;
    height: 68px !important;
  }

  html body.granny-page .navbar .logo.logo-hi .logo-hi-text strong {
    font-size: 18px !important;
  }

  html body.granny-page .nav-links {
    gap: 20px !important;
    margin-right: 20px !important;
  }

  html body.granny-page .nav-main-phone {
    font-size: 0 !important;
  }

  html body.granny-page .nav-main-phone svg {
    width: 24px !important;
    height: 24px !important;
  }

  html body.granny-page .header-quote-btn {
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  html body.granny-page .cat-bar {
    grid-template-columns: repeat(3, minmax(190px, 300px)) !important;
    gap: 34px !important;
  }
}

@media (max-width: 900px) {
  html body.granny-page main {
    padding-top: 134px !important;
  }

  html body.granny-page .navbar {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 1400 !important;
  }

  html body.granny-page .cat-bar {
    position: fixed !important;
    inset: 72px 0 auto !important;
    z-index: 1390 !important;
  }

  html body.granny-page main > .cd-hero,
  html body.granny-page main > .cd-hero > .cd-hero__inner {
    height: auto !important;
    min-height: 0 !important;
  }

  html body.granny-page main > .cd-hero h1 {
    font-size: clamp(42px, 12vw, 56px) !important;
  }

  html body.granny-page .gf-credential-rail__inner {
    width: 100%;
    min-height: 82px;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  html body.granny-page .gf-credential-rail__item {
    min-width: 230px;
    min-height: 82px;
    padding: 14px 22px 14px 40px;
    border-left: 1px solid rgba(255, 255, 255, .1);
    scroll-snap-align: start;
  }

  html body.granny-page .gf-credential-rail__item::before {
    left: 22px;
  }
}

@media (max-width: 768px) {
  html body.granny-page {
    --gf-reading-copy-size: 15px;
  }

  html body.granny-page main > :is(
    .section,
    .od-paths, .od-catalog, .od-support, .od-faq, .od-guides,
    .ft-definition, .ft-process, .ft-pathways, .ft-designs, .ft-inclusions, .ft-guide, .ft-faq,
    .ac-section, .ac-fast-track, .ac-guide,
    .op-introduction, .op-journey, .op-assurance, .op-next-step, .op-faq,
    .dc-catalogue, .dc-feature, .dc-brochure, .dc-process, .dc-faq,
    .cd-why, .cd-customisable, .cd-inspiration, .cd-process, .cd-compare, .cd-faq
  ) {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}

@media (max-width: 640px) {
  html body.granny-page main {
    padding-top: 124px !important;
  }

  html body.granny-page .navbar,
  html body.granny-page .nav-inner {
    min-height: 66px !important;
  }

  html body.granny-page .cat-bar {
    inset: 66px 0 auto !important;
    min-height: 58px !important;
  }

  html body.granny-page .cat-item {
    min-height: 58px !important;
  }
}
