:root {
  color-scheme: dark;
  /* Brand colours from the main PvtFin site. */
  --navy-deep: hsl(222 45% 10%);
  --navy-mid: hsl(222 40% 16%);
  --surface-raised: hsl(222 30% 11%);
  --surface-overlay: hsl(222 25% 8%);
  --divider: hsl(220 20% 18%);
  --text-primary: hsl(40 20% 92%);
  --text-secondary: hsl(220 10% 65%);
  --gold: 38 45% 53%;
  --gold-light: hsl(38 55% 68%);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--navy-mid); color: var(--text-primary); font: 1rem/1.62 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.15; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.65rem, 7vw, 5.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.75rem, 4.4vw, 3.05rem); letter-spacing: -.045em; }
h3 { font-size: 1.06rem; }
[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(100% - 2.75rem, 74rem); margin-inline: auto; }
.arrow, .card-arrow { display: inline-block; position: relative; flex: none; width: .8rem; height: .8rem; font-size: 0; vertical-align: -.08rem; }
.arrow { margin-inline-start: .4rem; }
.arrow::before, .card-arrow::before { content: ''; position: absolute; top: .09rem; right: .09rem; width: .34rem; height: .34rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.arrow::after, .card-arrow::after { content: ''; position: absolute; top: .38rem; left: .07rem; width: .68rem; height: 1px; background: currentColor; transform: rotate(-45deg); }
.skip-link { position: absolute; left: 1rem; top: .75rem; z-index: 5; transform: translateY(-160%); background: var(--surface-raised); color: var(--text-primary); padding: .5rem .75rem; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--surface-overlay);
  color: var(--text-primary);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-block: .35rem;
}
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand-mark { display: block; flex: none; }
.brand-mark img { display: block; width: 100%; height: auto; }
.brand .brand-mark { width: 120px; }
.brand-section {
  color: var(--text-secondary);
  border-left: 1px solid var(--divider);
  padding-inline-start: .9rem;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.3;
}
.header-contacts { display: flex; align-items: center; flex: none; }
.header-contacts a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  padding-inline: .65rem;
  color: var(--text-secondary);
  font-size: .73rem;
  letter-spacing: .04em;
  text-decoration: none;
}
.header-contacts a + a { position: relative; }
.header-contacts a + a::before {
  content: '';
  position: absolute;
  inset: .9rem auto .9rem 0;
  border-left: 1px solid var(--divider);
}
.header-contacts svg { flex: none; }
.header-contacts .header-whatsapp { color: hsl(var(--gold)); }
.header-contacts a:hover { color: var(--gold-light); }
.header-navigation { border-top: 1px solid var(--divider); }
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(.45rem, 2.5vw, 2rem);
  width: min(100% - 2.75rem, 74rem);
  margin-inline: auto;
}
.main-nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: .4rem .15rem;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); border-bottom-color: hsl(var(--gold)); }
.button { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: .28rem; width: fit-content; padding: .65rem 1.05rem; font-size: .87rem; font-weight: 700; line-height: 1.3; text-decoration: none; border: 1px solid transparent; border-radius: .3rem; }
.gold-button { background: transparent; border-color: hsl(var(--gold) / .7); color: hsl(var(--gold)); }
.gold-button:hover { background: hsl(var(--gold) / .12); border-color: hsl(var(--gold)); }

.hero, .inner-hero { background: var(--navy-deep); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem); align-items: center; gap: clamp(1.8rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem); }
.hero-content { max-width: 45rem; }
.eyebrow { font-size: .74rem; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; font-weight: 730; color: hsl(var(--gold)); margin-bottom: .85rem; }
.hero-intro { max-width: 39rem; margin-top: 1.25rem; font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--text-secondary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.85rem; }
.hero-actions a[href='#report-issues'] .arrow { transform: rotate(135deg); }
.hero-aside { border: 1px solid var(--divider); border-top-color: hsl(var(--gold)); padding: clamp(1rem, 3vw, 1.65rem); background: var(--surface-raised); border-radius: .2rem; }
.aside-title { font: 1.55rem/1.25 var(--serif); letter-spacing: -.02em; }
.hero-aside ol { list-style: none; padding: 0; margin-block: .65rem .8rem; }
.hero-aside li { border-top: 1px solid var(--divider); padding: .64rem 0; }
.hero-aside li strong, .hero-aside li span { display: block; }
.hero-aside li strong { font-size: .91rem; }
.hero-aside li span { font-size: .81rem; color: var(--text-secondary); }
.hero-aside > a { display: inline-flex; align-items: center; min-height: 2.75rem; color: hsl(var(--gold)); font-size: .84rem; font-weight: 700; }

.home-content { padding-block: clamp(2.6rem, 7vw, 5rem); }
.home-section + .home-section, .home-extras { margin-top: clamp(2.7rem, 7vw, 4.75rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; row-gap: .45rem; column-gap: 1.5rem; margin-bottom: 1.2rem; }
.section-heading p { color: var(--text-secondary); font-size: .98rem; }
.card-grid { display: grid; gap: .85rem; }
.guide-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-card { display: grid; align-content: start; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .65rem; padding: clamp(.95rem, 3vw, 1.35rem); background: var(--surface-raised); border: 1px solid var(--divider); border-radius: .25rem; text-decoration: none; }
.page-card:hover { border-color: hsl(var(--gold) / .35); box-shadow: 0 4px 24px hsl(0 0% 0% / .25); }
.page-card p { grid-column: 1 / -1; color: var(--text-secondary); font-size: .88rem; line-height: 1.55; }
.card-arrow { color: hsl(var(--gold)); margin-top: .2rem; }
.home-extras { width: min(100%, 48rem); }
.contact-block { padding: clamp(1rem, 4vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem 2rem; margin-top: clamp(2.2rem, 6vw, 4rem); border-radius: .35rem; background: var(--navy-deep); color: var(--text-primary); }
.contact-block h2 { font-size: clamp(1.5rem, 4vw, 2.35rem); }
.contact-block p { margin-top: .45rem; color: var(--text-secondary); font-size: .93rem; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; }
.email-link { color: var(--text-secondary); font-size: .81rem; }
.email-link:hover { color: var(--gold-light); }

.inner-hero { border-bottom: 1px solid var(--divider); padding: 1.25rem 0 clamp(2.4rem, 6vw, 4.5rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .65rem; color: var(--text-secondary); font-size: .83rem; margin-bottom: clamp(1.35rem, 5vw, 3rem); }
.breadcrumbs .arrow { width: auto; height: auto; margin: 0; font-size: inherit; color: hsl(var(--gold)); }
.breadcrumbs .arrow::before, .breadcrumbs .arrow::after { content: none; }
.inner-hero h1 { max-width: 64rem; font-size: clamp(2.25rem, 6vw, 4.5rem); }
.inner-hero .hero-intro { max-width: 48rem; }
.inner-content { padding-block: clamp(2rem, 5vw, 4rem); }
.inner-grid { display: grid; grid-template-columns: minmax(0, 47rem) minmax(13.5rem, 18rem); justify-content: space-between; align-items: start; gap: clamp(1.7rem, 6vw, 5rem); }
.body-section { padding-bottom: 1.6rem; }
.body-section + .body-section { border-top: 1px solid var(--divider); margin-top: .18rem; padding-top: 1.6rem; }
.body-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.body-section p, .body-section ul, .body-section ol { margin-top: .8rem; }
.body-section li + li { margin-top: .45rem; }
.body-section li::marker { color: hsl(var(--gold)); }
.body-section ul, .body-section ol { padding-inline-start: 1.38rem; }
.example { background: var(--surface-raised); border-left: .2rem solid hsl(var(--gold)); padding: .85rem 1rem; border-radius: 0 .2rem .2rem 0; margin-top: 1rem; }
.example .example-label { color: var(--text-primary); font-size: .83rem; font-weight: 750; margin-top: 0; }
.example p { margin-top: .25rem; }
.section-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .75rem; }
.text-link { display: inline-block; color: hsl(var(--gold)); font-size: .9rem; font-weight: 700; }
.text-link:hover, .sources a:hover, .side-panel a:hover, .breadcrumbs a:hover, .hero-aside > a:hover { color: var(--gold-light); text-decoration-thickness: 2px; }
.sources { font-size: .91rem; }
.sources a { color: hsl(var(--gold)); }
.faq details { margin-top: .7rem; padding: .65rem .8rem; border: 1px solid var(--divider); background: var(--surface-raised); border-radius: .2rem; }
.faq summary { cursor: pointer; font-weight: 670; }
.faq details p { margin-block: .65rem .35rem; }
.side-panel { background: var(--surface-raised); border: 1px solid var(--divider); border-radius: .3rem; }
.side-section { padding: .95rem 1rem; }
.side-section + .side-section { border-top: 1px solid var(--divider); }
.side-section h2 { font: 680 .94rem/1.4 var(--sans); letter-spacing: 0; }
.side-section ul { list-style: none; padding: 0; margin-top: .4rem; }
.side-section a { display: flex; align-items: center; min-height: 2.4rem; color: var(--text-secondary); border-radius: .1rem; font-size: .86rem; }
.related { margin-top: clamp(1.25rem, 3vw, 2.75rem); }
.related h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); margin-bottom: .85rem; }

.site-footer { padding-block: 1.8rem; background: var(--surface-overlay); border-top: 1px solid var(--divider); color: var(--text-secondary); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.footer-brand { display: inline-block; }
.footer-inner .brand-mark { width: 135px; }
.footer-inner p { margin-top: .4rem; font-size: .8rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; font-size: .83rem; }
.footer-inner nav a:hover { color: var(--gold-light); }

@media (max-width: 50rem) {
  .hero-grid { gap: 1.5rem; }
  .contact-block { grid-template-columns: 1fr; }
}

@media (width < 768px) {
  .header-inner { min-height: 3.75rem; }
  .brand .brand-mark { width: 93px; }
  .brand { flex-direction: column; align-items: flex-start; gap: .13rem; }
  .brand-section { border: 0; padding-inline-start: 0; font-size: .69rem; }
  .header-contacts a { padding-inline: 0; }
  .header-contacts a span { display: none; }
  .header-contacts svg { width: 17px; height: 17px; }
}

@media (max-width: 39rem) {
  .wrap, .main-nav { width: calc(100% - 2rem); }
  .hero-grid, .inner-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 2.6rem 2rem; }
  .hero-aside { margin-top: .35rem; }
  .inner-grid { gap: 1rem; }
  .inner-grid .side-panel { grid-row: 2; }
  .body-section { padding-bottom: 1.25rem; }
  .body-section + .body-section { padding-top: 1.3rem; }
}

@media (max-width: 26rem) {
  .guide-grid, .related-grid { grid-template-columns: 1fr; }
  .main-nav { justify-content: space-between; }
  .main-nav a { font-size: .79rem; }
}
