/* NSW Wide Renovations journal.
   Uses the live brand: navy ink, blue #0D5BD3, sand #C8A882.
   Fraunces is already loaded by the site header. */

body:has(.nsw-pub) nav[aria-label="Breadcrumb"],
body:has(.nsw-journal) nav[aria-label="Breadcrumb"] {
  background: #0B1A23;
  border-bottom-color: transparent;
  padding-top: 5.1rem;
}

@media (min-width: 1024px) {
  body:has(.nsw-pub) nav[aria-label="Breadcrumb"],
  body:has(.nsw-journal) nav[aria-label="Breadcrumb"] {
    padding-top: 7.35rem;
  }
}

.nsw-pub,
.nsw-journal {
  --ink: #0B1A23;
  --ink-2: #16384B;
  --blue: #0D5BD3;
  --blue-d: #0A4FB5;
  --sand: #C8A882;
  --paper: #F7F5F1;
  --sheet: #ffffff;
  --line: #E2E8F0;
  --muted: #5A6B78;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  padding-bottom: 6.5rem;
}

.nsw-pub h1,
.nsw-pub h2,
.nsw-pub h3,
.nsw-journal h1,
.nsw-journal h2,
.nsw-journal h3,
.nsw-journal h4,
.nsw-pull,
.nsw-lede {
  font-family: Fraunces, Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.02em;
}

.nsw-mast {
  background: #0B1A23;
  color: #fff;
  padding: 1.35rem 1.15rem 2.4rem;
}

.nsw-mast__inner,
.nsw-wrap {
  width: min(1120px, calc(100% - 0.5rem));
  margin: 0 auto;
}

.nsw-eyebrow {
  margin: 0 0 0.7rem;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.nsw-mast h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff !important;
  font-weight: 560;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: 0.98;
}

.nsw-standfirst {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

.nsw-find {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.nsw-find__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nsw-find__search input,
.nsw-find select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.nsw-find__search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nsw-find select {
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nsw-find select option {
  color: #0B1A23;
}

.nsw-find__go,
.nsw-find__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
}

.nsw-find__go {
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.nsw-find__reset {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 760px) {
  .nsw-find {
    grid-template-columns: minmax(0, 1.4fr) minmax(11rem, 0.7fr) auto auto;
    align-items: center;
  }
}

.nsw-desks {
  display: grid;
  gap: 0.65rem;
  margin-top: -1.15rem;
  position: relative;
  z-index: 1;
}

.nsw-desk-jump {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 92px;
  padding: 0.95rem 1rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11, 26, 35, 0.08);
  border-top: 3px solid var(--blue);
}

.nsw-desk-jump strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
}

.nsw-desk-jump span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nsw-desk-jump--commercial {
  border-top-color: var(--sand);
}

@media (min-width: 760px) {
  .nsw-desks {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nsw-suburbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 1.15rem 0 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nsw-suburbs::-webkit-scrollbar {
  display: none;
}

.nsw-suburbs a {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid var(--line);
}

.nsw-suburbs a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.nsw-section {
  padding: 1.6rem 0 0.4rem;
}

.nsw-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.nsw-section__head h2 {
  margin: 0;
  color: var(--ink) !important;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 560;
  line-height: 1.05;
}

.nsw-section__head p {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.nsw-section__more {
  color: var(--blue-d);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nsw-rows {
  display: flex;
  flex-direction: column;
}

.nsw-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.8rem;
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.nsw-row__kicker {
  grid-column: 1;
  color: var(--blue-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nsw-row__time {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.nsw-row__title {
  grid-column: 1 / -1;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--ink);
}

.nsw-row__excerpt {
  display: none;
}

.nsw-row:hover .nsw-row__title,
.nsw-row:focus-visible .nsw-row__title {
  color: var(--blue-d);
}

@media (min-width: 720px) {
  .nsw-row__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
  }
}

.nsw-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.nsw-pages a {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.88rem;
}

.nsw-pages a[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.nsw-empty {
  padding: 2rem 0;
  color: var(--muted);
}

.nsw-close {
  margin: 2rem 0 0;
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.nsw-close h2 {
  margin: 0 0 0.45rem;
  color: #fff !important;
  font-size: 1.8rem;
  font-weight: 560;
}

.nsw-close p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.nsw-close a {
  color: #fff;
  font-weight: 700;
}

/* Article */
.nsw-journal__hero {
  background: #0B1A23;
  color: #fff;
  padding: 0.4rem 1.15rem 3.2rem;
}

.nsw-journal__hero h1 {
  margin: 0.2rem 0 0;
  max-width: 18ch;
  color: #fff !important;
  font-weight: 560;
  font-size: clamp(2.15rem, 6.2vw, 3.7rem);
  line-height: 1.02;
}

.nsw-dek {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.55;
}

.nsw-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.nsw-byline a {
  color: #fff;
  text-decoration: none;
}

.nsw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.nsw-tags a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nsw-sheet {
  width: min(1120px, calc(100% - 1.4rem));
  margin: -1.6rem auto 0;
  background: var(--sheet);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 18px 50px rgba(11, 26, 35, 0.08);
  padding: 1.2rem 1rem 2.5rem;
}

@media (min-width: 800px) {
  .nsw-sheet {
    padding: 1.6rem 1.8rem 3rem;
  }
}

.nsw-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 980px) {
  .nsw-layout {
    grid-template-columns: minmax(0, 42rem) 230px;
    justify-content: space-between;
    align-items: start;
    gap: 2.5rem;
  }
}

.nsw-measure {
  max-width: 42rem;
  font-size: 18.5px;
  line-height: 1.72;
  color: #24343E;
}

.nsw-lede {
  font-size: 1.28rem;
  line-height: 1.48;
  color: var(--ink-2);
  margin: 0 0 1.4rem;
}

.nsw-lede p {
  margin: 0 0 0.85em;
}

.nsw-figure {
  margin: 0 0 1.4rem;
}

.nsw-figure img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 800px) {
  .nsw-figure img {
    height: 340px;
  }
}

.nsw-toc {
  margin: 0 0 1.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F4F7FB;
  padding: 0.75rem 0.9rem;
}

.nsw-toc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.nsw-toc ol {
  margin: 0.7rem 0 0.2rem;
  padding-left: 1.1rem;
}

.nsw-toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
}

.nsw-toc li {
  margin: 0.35rem 0;
}

@media (min-width: 980px) {
  .nsw-toc--mobile {
    display: none;
  }
}

.nsw-section-block {
  margin: 0 0 0.4rem;
  scroll-margin-top: 6.5rem;
}

.nsw-measure h2 {
  margin: 2.15rem 0 0.7rem;
  color: var(--ink) !important;
  font-size: 1.72rem;
  font-weight: 560;
  line-height: 1.18;
}

.nsw-measure .content-block,
.nsw-measure .content-block p,
.nsw-measure .content-block li,
.nsw-measure .content-block td,
.nsw-measure .content-block th,
.nsw-measure .content-block span {
  color: #24343E;
}

.nsw-measure .content-block p {
  margin: 0 0 1.12em;
}

.nsw-measure .content-block ul,
.nsw-measure .content-block ol {
  margin: 0 0 1.2em;
  padding-left: 1.15rem;
}

.nsw-measure .content-block li {
  margin: 0.42em 0;
}

.nsw-measure .content-block li::marker {
  color: var(--blue);
}

.nsw-measure .content-block a,
.nsw-measure .content-block a * {
  color: var(--blue-d);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.nsw-measure .content-block strong {
  color: var(--ink);
  font-weight: 680;
}

.nsw-measure .section,
.nsw-measure .content-block {
  overflow-x: auto;
}

.nsw-measure table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  margin: 0.4rem 0 1.3rem;
  font-size: 15.5px;
  line-height: 1.45;
}

.nsw-measure th,
.nsw-measure td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
}

.nsw-measure th {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.nsw-pull {
  margin: 1.6rem 0 1.7rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--sand);
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.28;
  font-weight: 500;
}

.nsw-pull span {
  display: block;
  margin-bottom: 0.4rem;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

.nsw-facts {
  margin: 1.8rem 0 0.4rem;
  padding: 0;
  list-style: none;
}

.nsw-facts h2 {
  margin-bottom: 0.8rem;
}

.nsw-facts li {
  margin: 0 0 0.55rem;
  padding: 0.8rem 0.9rem;
  background: #F4F7FB;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.nsw-quote {
  margin: 2rem 0 1.4rem;
  padding: 1.25rem 1.1rem 1.3rem;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.nsw-quote h2 {
  margin: 0.25rem 0 0.45rem;
  color: #fff !important;
  font-size: 1.85rem;
}

.nsw-quote > p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.5;
}

.nsw-quote__phone {
  display: inline-block;
  margin-bottom: 1rem;
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.85rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nsw-quote form {
  display: grid;
  gap: 0.6rem;
}

.nsw-quote label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nsw-quote input,
.nsw-quote select,
.nsw-quote textarea {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.nsw-quote textarea {
  min-height: 96px;
  resize: vertical;
}

.nsw-quote button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (min-width: 700px) {
  .nsw-quote form {
    grid-template-columns: 1fr 1fr;
  }
  .nsw-quote .nsw-quote__wide,
  .nsw-quote button {
    grid-column: 1 / -1;
  }
}

.nsw-faqs {
  margin-top: 1.6rem;
}

.nsw-faqs details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.nsw-faqs summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  font-size: 1.02rem;
}

.nsw-faqs p {
  margin: 0.55rem 0 0.2rem;
  color: #24343E;
  font-size: 0.98rem;
}

.nsw-related {
  width: min(1120px, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 1.6rem 0 0.5rem;
}

.nsw-related h2 {
  margin: 0 0 0.6rem;
  color: var(--ink) !important;
  font-size: 1.8rem;
}

.nsw-aside {
  display: none;
}

@media (min-width: 980px) {
  .nsw-aside {
    display: block;
    position: sticky;
    top: 7.5rem;
  }
  .nsw-aside nav {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nsw-aside h2 {
    margin: 0 0 0.6rem;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted) !important;
  }
  .nsw-aside a {
    display: block;
    margin: 0.4rem 0;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .nsw-aside .nsw-aside__phone {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
  }
}

.nsw-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0D5BD3;
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 80;
}
