/* ============================================================
   PIN.ca — Redesigned Shared Stylesheet
   Design System: Navy + Cream + Gold | Merriweather headings
   ============================================================ */

:root {
  --navy: #1B2A4A;
  --navy-dark: #111c33;
  --navy-light: #243660;
  --cream: #F7F3EC;
  --cream-dark: #EDE7D9;
  --gold: #C9A84C;
  --gold-light: #E2C068;
  --gold-subtle: rgba(201,168,76,0.12);
  --teal-accent: #1abc9c;
  --teal-dark: #159c80;
  --red-accent: #c0392b;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #3d4a6b;
  --text-light: #6b7a99;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;

  --sidebar-width: 272px;
  --topbar-height: 60px;

  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(27,42,74,0.08);
  --shadow: 0 4px 20px rgba(27,42,74,0.11);
  --shadow-lg: 0 10px 40px rgba(27,42,74,0.18);

  --transition: 200ms ease;
  --border-subtle: 1px solid rgba(201,168,76,0.18);
}

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + var(--space-lg));
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "sidebar main"
    "sidebar footer";
  padding-top: var(--topbar-height);
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--topbar-height);
  padding-inline: var(--space-xl);
  background: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.topbar-brand {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-brand span {
  color: var(--white);
  font-weight: 400;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.topbar-links a {
  color: rgba(245,240,232,0.78);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-block-end: 2px;
  transition: color var(--transition), opacity var(--transition);
}

.topbar-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
  color: var(--gold-light);
}

.topbar-links a:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(201,168,76,0.45);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.mobile-menu-button:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--gold-light);
  border-radius: var(--radius-pill);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle:focus-visible + .mobile-menu-button {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

body:has(.mobile-menu-toggle:checked) .mobile-menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body:has(.mobile-menu-toggle:checked) .mobile-menu-button span:nth-child(2) {
  opacity: 0;
}

body:has(.mobile-menu-toggle:checked) .mobile-menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  grid-area: sidebar;
  position: fixed;
  inset-block-start: var(--topbar-height);
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: calc(100vh - var(--topbar-height));
  overflow: hidden;
  background: var(--navy);
  border-right: var(--border-subtle);
  z-index: 95;
  transition: background var(--transition), box-shadow var(--transition), transform 200ms ease;
}

.sidebar-main-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-block: 0.35rem var(--space-xl);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.45) transparent;
}

.sidebar-main-nav::-webkit-scrollbar { width: 6px; }
.sidebar-main-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-main-nav::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.45);
  border-radius: var(--radius-pill);
}

.sidebar-branding {
  flex: 0 0 auto;
  padding: var(--space-lg) 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-block-end: 0.75rem;
}

/* Logo + PIN.ca side-by-side table layout */
.sidebar-brand-table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: 1rem;
}

.sidebar-brand-logo-cell {
  width: 72px;
  padding-right: 0.75rem;
  vertical-align: middle;
}

.sidebar-brand-logo-cell img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.sidebar-brand-title-cell {
  vertical-align: middle;
}

.sidebar-site-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  line-height: 1.2;
}

.sidebar-site-title:hover {
  color: var(--white);
}

/* TABLE OF CONTENTS label */
.sidebar-toc-label {
  flex: 0 0 auto;
  padding: 0.55rem 1.25rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  margin-block-end: 0.25rem;
}

.sidebar-call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: var(--teal-accent);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 3px 12px rgba(26,188,156,0.3);
}

.sidebar-call-btn span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.sidebar-call-btn strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar-call-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(26,188,156,0.4);
}

.sidebar ul { list-style: none; }

.sidebar a {
  display: block;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  padding: 0.5rem 1.25rem 0.5rem 1.4rem;
  border-left: 3px solid transparent;
  color: rgba(245,240,232,0.72);
  font-size: 0.845rem;
  line-height: 1.45;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.sidebar a:hover,
.sidebar a:focus-visible,
.sidebar a.active {
  background: rgba(201,168,76,0.09);
  border-left-color: var(--gold);
  color: var(--gold-light);
}

/* Active link — extra emphasis */
.sidebar a.active {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  font-weight: 600;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

main {
  grid-area: main;
  width: 100%;
  max-width: 100%;
  padding: var(--space-xl) 2.5rem var(--space-2xl);
  min-width: 0;
  box-sizing: border-box;
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding: 3rem 2.8rem 2.8rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(201,168,76,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(26,188,156,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  opacity: 0.6;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero__title {
  margin-bottom: 0.65rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-hero__tagline {
  margin-bottom: 2rem;
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.page-hero__body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.profile-card {
  padding: 1.6rem 1.2rem 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  text-align: center;
}

.profile-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-md);
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(201,168,76,0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
  overflow: hidden;
}

.profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__name {
  margin-bottom: 0.2rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-card__credential {
  display: inline-block;
  margin-bottom: var(--space-md);
  color: var(--navy-dark);
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.profile-card__bio {
  color: rgba(245,240,232,0.72);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
}

.page-hero__desc {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.page-hero__desc p {
  color: rgba(245,240,232,0.88);
  font-size: 1rem;
  line-height: 1.72;
}

.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover, .btn:focus-visible {
  box-shadow: 0 5px 18px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.btn:active { transform: none; }

.btn-teal {
  background: var(--teal-accent);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(26,188,156,0.28);
}
.btn-teal:hover { background: var(--teal-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn-red {
  width: 100%;
  background: var(--red-accent);
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(192,57,43,0.25);
}
.btn-red:hover { background: #a93226; }

/* ============================================================
   TABLE OF CONTENTS BLOCK
   ============================================================ */

.toc-block {
  margin-bottom: var(--space-xl);
  padding: 1.8rem 2rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toc-block h2 {
  margin-bottom: var(--space-md);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.toc-block ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 2.5rem;
  padding-left: 1.4rem;
}

.toc-block a {
  color: var(--navy-light);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.toc-block a:hover, .toc-block a:focus-visible { color: var(--gold); }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-section {
  margin-bottom: 1.75rem;
  padding: 2.2rem 2.4rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.content-section h2 {
  margin-bottom: var(--space-md);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--cream-dark);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.35;
  position: relative;
}

.content-section h2::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -2px;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.content-section h3 {
  margin: 1.4rem 0 0.65rem;
  color: var(--navy-light);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.content-section p,
.content-section li {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}

.content-section p { margin-bottom: 0.85rem; }

.content-section ul,
.content-section ol {
  margin-bottom: 0.9rem;
  padding-left: 1.5rem;
}

.content-section li { margin-bottom: 0.4rem; }

/* ============================================================
   TABLES
   ============================================================ */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.88rem;
}

.data-table th {
  padding: 0.8rem 1.1rem;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: left;
}

.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.data-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-mid);
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: rgba(245,240,232,0.5); }
.data-table tr:hover td { background: rgba(201,168,76,0.06); }

/* ============================================================
   CALLOUTS
   ============================================================ */

.callout {
  margin: 1.25rem 0;
  padding: 1.1rem 1.5rem;
  background: var(--gold-subtle);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.68;
}

.callout.info {
  background: rgba(36,54,96,0.06);
  border-left-color: var(--navy-light);
}

.callout.warn {
  background: rgba(192,57,43,0.06);
  border-left-color: var(--red-accent);
}

.callout a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.callout a:hover { color: var(--gold); }

/* ============================================================
   SERVICE ITEMS
   ============================================================ */

.service-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1.75rem 0;
  padding: 1.75rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.service-item:hover { box-shadow: var(--shadow); }

.service-item__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.35);
  margin-top: 0.2rem;
}

.service-item__content { flex: 1; min-width: 0; }

.service-item__content h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.35;
}

.service-item__price {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--navy-dark);
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
}

.service-item__content p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.72;
  margin-bottom: 0.85rem;
}

.service-item__content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.service-item__content li {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  padding-left: 1.4rem;
  position: relative;
}

.service-item__content li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  font-weight: 700;
}

.service-item__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201,168,76,0.3);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-item__btn:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,42,74,0.22);
}

/* ============================================================
   GUIDE GRID
   ============================================================ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.guide-card:hover, .guide-card:focus-visible {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: var(--shadow);
  border-left-color: var(--gold-light);
  outline: none;
}

.guide-card__number {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.97rem;
  line-height: 1.45;
}

.guide-card p {
  margin: 0 0 auto;
  color: var(--text-light);
  font-size: 0.87rem;
  line-height: 1.5;
  flex: 1;
}

.guide-card strong {
  display: inline-block;
  margin-top: 1rem;
  color: var(--navy-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.guide-card:hover strong, .guide-card:focus-visible strong { color: var(--gold); }

/* ============================================================
   INTANGIBLE ASSETS LAYOUT
   ============================================================ */

.intangible-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.intangible-chart img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================================
   SOCIAL / CITY LINKS
   ============================================================ */

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-pill);
  color: var(--navy-light);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.city-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--navy-light);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.city-links a:hover {
  background: var(--white);
  border-left-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-section {
  grid-area: footer;
  background: #06112b;
  padding: 30px 16px 18px;
  color: #fff;
  text-align: center;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.footer-contact-box {
  max-width: 760px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 22px 20px;
  background: rgba(0,0,0,0.12);
}

.footer-contact-box h2 {
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.2;
  margin-bottom: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.footer-contact-box h3 {
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.2;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.footer-subtitle { font-size: clamp(13px, 0.95vw, 15px); margin-bottom: 12px; }

.footer-contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: clamp(13px, 0.95vw, 15px);
}

.footer-contact-info a { color: #4e9dff; }
.footer-contact-info span { color: #fff; }

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15,23,42,1);
  color: #5ca4ff;
  font-size: 18px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.footer-socials a:hover, .footer-socials a:focus-visible {
  background: #00a0a8;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-socials i { font-size: 18px; }

.footer-bottom { max-width: 1120px; margin: 0 auto; }

.copyright { font-size: clamp(12px, 0.85vw, 15px); margin-bottom: 18px; }

.footer-bottom h4 {
  color: #4e9dff;
  font-size: clamp(16px, 1.25vw, 21px);
  margin-bottom: 8px;
  font-weight: 700;
}

.footer-description {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.45;
  margin: 0 auto 22px;
}

.footer-bottom h5 { font-size: clamp(14px, 1vw, 17px); margin-bottom: 12px; }

.footer-links {
  max-width: 1120px;
  margin: 0 auto;
  line-height: 1.65;
}

.footer-links a {
  color: #5ca4ff;
  font-size: clamp(12px, 0.85vw, 14px);
  white-space: nowrap;
}

.footer-links a:not(:last-child)::after {
  content: " | ";
  color: #fff;
  margin: 0 4px;
}

.footer-links a:hover { color: #ffffff; }

/* ============================================================
   RESPONSIVE — TABLET (≤900px)
   ============================================================ */

.mobile-menu-overlay { display: none; }

@media (max-width: 900px) {
  :root { --topbar-height: 64px; }

  body {
    display: block;
    padding-top: var(--topbar-height);
  }

  body:has(.mobile-menu-toggle:checked) { overflow: hidden; }

  /* Click-outside-to-close overlay */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: var(--topbar-height) 0 0;
    z-index: 81;
    cursor: pointer;
    pointer-events: none;
  }

  body:has(.mobile-menu-toggle:checked) .mobile-menu-overlay {
    pointer-events: auto;
  }

  .topbar {
    padding-inline: 1rem;
    justify-content: flex-start;
    gap: 0.85rem;
  }

  .mobile-menu-button {
    display: flex;
    flex: 0 0 44px;
  }

  .topbar-brand { font-size: 1.25rem; }
  .topbar-links { display: none; }

  .sidebar {
    width: min(88vw, 320px);
    max-width: 320px;
    inset-block-start: var(--topbar-height);
    inset-block-end: 0;
    height: auto;
    max-height: calc(100dvh - var(--topbar-height));
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: none;
  }

  body:has(.mobile-menu-toggle:checked) .sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 36px rgba(17,28,51,0.4);
    background: #2a3f6b;
    z-index: 900;
  }

  body:has(.mobile-menu-toggle:checked)::before {
    content: "";
    position: fixed;
    inset: var(--topbar-height) 0 0;
    z-index: 80;
    background: rgba(17,28,51,0.55);
    pointer-events: none;
  }

  body:has(.mobile-menu-toggle:checked) .sidebar-main-nav {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  body:has(.mobile-menu-toggle:checked) .sidebar a {
    pointer-events: auto;
  }

  main { max-width: 100%; padding: 1.25rem 1rem 2rem; }

  .page-hero {
    padding: 1.8rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
  }

  .page-hero__title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .page-hero__tagline { font-size: 0.97rem; margin-bottom: 1.5rem; }

  .page-hero__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .page-hero__ctas { flex-direction: column; }
  .page-hero__ctas .btn { width: 100%; }

  .content-section {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
  }

  .toc-block { padding: 1.4rem 1.25rem; }
  .toc-block ol { grid-template-columns: 1fr; }

  .guide-grid { grid-template-columns: 1fr; gap: 1rem; }
  .intangible-layout { grid-template-columns: 1fr; gap: 1.25rem; }

  .intangible-chart img {
    max-height: 200px;
    margin: 0 auto;
    object-fit: contain;
  }

  .service-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .service-item__number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .footer-section { grid-area: auto; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤620px)
   ============================================================ */

@media (max-width: 620px) {
  :root { --topbar-height: 60px; }

  .topbar { padding-inline: 0.9rem; }
  .topbar-brand { font-size: 1.15rem; }
  .sidebar {
    width: 100vw;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - var(--topbar-height));
  }

  .sidebar-branding {
    padding: 1.25rem 1.5rem 1.25rem;
    margin-block-end: 0;
  }

  .sidebar-toc-label {
    margin-block-end: 0;
  }

  .sidebar-main-nav {
    flex: 1 1 0;
    min-height: 0;
    padding-block: 0.25rem 2rem;
  }

  main { padding: 1rem 0.9rem 2rem; }

  .page-hero { padding: 1.5rem 1rem; }
  .page-hero__title { font-size: 1.55rem; }

  .content-section { padding: 1.25rem 1rem; }
  .toc-block { padding: 1.25rem 1rem; }
  .guide-card { padding: 1.15rem 1rem; }

  .data-table { font-size: 0.83rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.75rem; }

  .city-links a { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
  .social-btn { font-size: 0.8rem; padding: 0.45rem 0.9rem; }

  .footer-section { padding: 30px 14px 20px; }
  .footer-contact-box { max-width: 100%; padding: 24px 18px; }
  .footer-contact-box h2 { font-size: 26px; }
  .footer-contact-box h3 { font-size: 21px; }
  .footer-subtitle, .footer-contact-info { font-size: 15px; }
  .footer-socials a { width: 44px; height: 44px; }
  .footer-links a { font-size: 14px; white-space: normal; }
}
/* ============================================================
   MOBILE TOC SCROLL FIX — full sidebar scrolls as one drawer
   ============================================================ */
@media (max-width: 900px) {
  body:has(.mobile-menu-toggle:checked) {
    overflow: hidden;
  }

  .sidebar {
    top: var(--topbar-height);
    bottom: 0;
    height: calc(100dvh - var(--topbar-height));
    max-height: calc(100dvh - var(--topbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    display: block;
  }

  .sidebar-branding,
  .sidebar-toc-label,
  .sidebar-main-nav {
    flex: none;
  }

  .sidebar-main-nav {
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  body:has(.mobile-menu-toggle:checked) .sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:has(.mobile-menu-toggle:checked) .sidebar-main-nav {
    overflow: visible;
    max-height: none;
  }
}

@media (max-width: 620px) {
  .sidebar {
    width: 100vw;
    max-width: none;
    height: calc(100dvh - var(--topbar-height));
    max-height: calc(100dvh - var(--topbar-height));
  }
}

/* ============================================================
   FINAL MOBILE TOC SCROLL FIX
   Keeps the original PIN.ca left-side TOC, but makes the opened
   mobile/fullscreen drawer scroll reliably from top to bottom.
   ============================================================ */

@media (max-width: 900px) {
  body:has(.mobile-menu-toggle:checked) {
    overflow: auto !important;
  }

  body:has(.mobile-menu-toggle:checked)::before {
    pointer-events: none !important;
  }

  .mobile-menu-overlay {
    z-index: 70 !important;
  }

  .sidebar {
    position: fixed !important;
    top: var(--topbar-height) !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    display: block !important;
    padding-bottom: max(5rem, env(safe-area-inset-bottom)) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,168,76,0.55) rgba(255,255,255,0.08);
  }

  .sidebar::-webkit-scrollbar {
    width: 8px;
  }

  .sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(201,168,76,0.55);
    border-radius: var(--radius-pill);
  }

  body:has(.mobile-menu-toggle:checked) .sidebar {
    transform: translateX(0) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1001 !important;
  }

  .sidebar-branding,
  .sidebar-toc-label,
  .sidebar-main-nav {
    display: block !important;
    flex: none !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .sidebar-main-nav {
    overflow: visible !important;
    padding-bottom: max(7rem, env(safe-area-inset-bottom)) !important;
  }

  .sidebar-main-nav ul {
    display: block !important;
    padding-bottom: 4rem !important;
  }

  .sidebar a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

@media (max-width: 620px) {
  .sidebar {
    width: 100vw !important;
    max-width: none !important;
  }
}

/* ============================================================
   FINAL MOBILE TOC GAP CLEANUP
   Removes the extra blank space after the last sidebar item while
   keeping the fullscreen/mobile TOC scrollable.
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    padding-bottom: 0 !important;
  }

  .sidebar-main-nav {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
  }

  .sidebar-main-nav ul {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .sidebar-main-nav li:last-child a {
    margin-bottom: 0 !important;
  }
}

/* ============================================================
   MOBILE-FRIENDLY TOC DRAWER
   Keeps the TOC like the desktop left sidebar instead of making
   it a full-width mobile panel.
   ============================================================ */
@media (max-width: 620px) {
  .sidebar {
    width: min(88vw, 340px) !important;
    max-width: 340px !important;
    border-right: 1px solid rgba(201,168,76,0.22) !important;
    box-shadow: none;
  }

  body:has(.mobile-menu-toggle:checked) .sidebar {
    box-shadow: 12px 0 34px rgba(17,28,51,0.48) !important;
  }

  .sidebar-branding {
    padding: 1rem 1rem 1.1rem !important;
  }

  .sidebar-brand-table {
    margin-block-end: 0.85rem;
  }

  .sidebar-brand-logo-cell {
    width: 58px;
    padding-right: 0.6rem;
  }

  .sidebar-brand-logo-cell img {
    width: 52px;
    height: 52px;
  }

  .sidebar-site-title {
    font-size: 1.25rem;
  }

  .sidebar-call-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
  }

  .sidebar-call-btn span {
    font-size: 0.62rem;
  }

  .sidebar-call-btn strong {
    font-size: 0.82rem;
  }

  .sidebar-toc-label {
    padding: 0.5rem 1rem 0.38rem !important;
    font-size: 0.6rem;
  }

  .sidebar a {
    padding: 0.68rem 1rem 0.68rem 1.1rem !important;
    font-size: 0.9rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .sidebar {
    width: 90vw !important;
    max-width: 90vw !important;
  }

  .sidebar a {
    font-size: 0.86rem;
  }
}

/* ============================================================
   PAGE MODULES — 25 FACTORS TEMPLATE CONTENT
   ============================================================ */
.content-figure {
  margin: 1.5rem auto;
  text-align: center;
}
.content-figure img {
  max-width: 260px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-figure figcaption {
  margin-top: 0.65rem;
  color: var(--text-light);
  font-size: 0.85rem;
}
.factor-card,
.authority-list article {
  margin: 1.4rem 0;
  padding: 1.35rem 1.45rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.factor-card h3,
.authority-list h3 {
  margin-top: 0;
  color: var(--navy);
}
.factor-card h3 a,
.content-section a {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.factor-card h4 {
  margin: 1rem 0 0.45rem;
  color: var(--navy-light);
  font-family: var(--font-heading);
  font-size: 0.98rem;
}
.factor-card ul,
.factor-card ol {
  margin-top: 0.5rem;
}
.factor-card li strong {
  color: var(--navy);
}

/* Publication verification card */
.publication-verification {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: stretch;
  max-width: 850px;
  margin: 1.7rem auto 0;
}

.publication-book {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  min-width: 0;
  margin: 0;
  padding: 1.1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.publication-book img {
  width: min(100%, 180px);
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.publication-book figcaption {
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.35;
}

.publication-card {
  min-width: 0;
  padding: 1.45rem 1.55rem;
  background: linear-gradient(180deg, var(--white), rgba(247,243,236,0.45));
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.publication-card h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.3;
}

.publication-details {
  margin: 0;
}

.publication-details div {
  display: grid;
  grid-template-columns: minmax(126px, max-content) minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(237,231,217,0.85);
}

.publication-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.publication-details dt,
.publication-details dd {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}

.publication-details dt {
  color: var(--navy-dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .publication-verification {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 1rem;
  }

  .publication-book {
    align-items: center;
  }

  .publication-book img {
    width: min(100%, 170px);
  }
}

@media (max-width: 460px) {
  .publication-card {
    padding: 1.15rem 1rem;
  }

  .publication-details div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    padding: 0.5rem 0;
  }

  .publication-details dt,
  .publication-details dd {
    font-size: 0.9rem;
  }
}

@media (max-width: 620px) {
  .factor-card,
  .authority-list article {
    padding: 1.05rem 1rem;
  }
  .content-figure img {
    max-width: 220px;
  }
}


/* Valuation methodology page sections */
.valuation-methodology-page {
  --valuation-bg: #f7f8fb;
  --valuation-card: #ffffff;
  --valuation-text: #1f2933;
  --valuation-muted: #5f6b7a;
  --valuation-border: #dfe5ee;
  --valuation-accent: #163b63;
  --valuation-accent-soft: #eaf2fb;
  --valuation-gold: #b88a2b;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  color: var(--valuation-text);
}

.valuation-page-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-bottom: 34px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--valuation-border);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.valuation-page-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.valuation-page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--valuation-accent-soft);
  color: var(--valuation-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.valuation-page-nav a:hover,
.valuation-page-nav a:focus-visible {
  transform: translateY(-1px);
  background: var(--valuation-accent);
  color: #ffffff;
}

.valuation-section {
  margin: 0 0 34px;
  padding: 34px;
  background: var(--valuation-card);
  border: 1px solid var(--valuation-border);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
  scroll-margin-top: 110px;
}

.valuation-section > h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: var(--valuation-accent);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.valuation-section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--valuation-accent), var(--valuation-gold));
}

.valuation-section p {
  margin: 0 0 16px;
  color: var(--valuation-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.valuation-section a {
  color: var(--valuation-accent);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.authority-card,
.legal-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--valuation-border);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.authority-card::before,
.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--valuation-gold);
}

.legal-card::before {
  background: var(--valuation-accent);
}

.authority-card h3,
.legal-card h3 {
  margin: 0 0 14px;
  color: var(--valuation-accent);
  font-size: 1.2rem;
  line-height: 1.3;
}

.authority-card p,
.legal-card p {
  font-size: 0.96rem;
}

#recovery-example {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
  border-color: rgba(22, 59, 99, 0.18);
}

#recovery-example p:first-of-type {
  font-size: 1.1rem;
  color: var(--valuation-text);
}

#valuation-conclusion {
  background: var(--valuation-accent);
  color: #ffffff;
}

#valuation-conclusion h2,
#valuation-conclusion p,
#valuation-conclusion a {
  color: #ffffff;
}

#valuation-conclusion h2::after {
  background: var(--valuation-gold);
}

@media (max-width: 860px) {
  .valuation-methodology-page {
    padding: 30px 16px;
  }

  .valuation-section {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .valuation-page-nav {
    position: static;
  }
}

@media (max-width: 520px) {
  .valuation-page-nav ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .valuation-page-nav a {
    justify-content: center;
  }
}

/* Valuation methodology page sections */
.valuation-methodology-page {
  --valuation-bg: #f7f8fb;
  --valuation-card: #ffffff;
  --valuation-text: #1f2933;
  --valuation-muted: #5f6b7a;
  --valuation-border: #dfe5ee;
  --valuation-accent: #163b63;
  --valuation-accent-soft: #eaf2fb;
  --valuation-gold: #b88a2b;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  color: var(--valuation-text);
}

.valuation-page-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-bottom: 34px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--valuation-border);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.valuation-page-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.valuation-page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--valuation-accent-soft);
  color: var(--valuation-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.valuation-page-nav a:hover,
.valuation-page-nav a:focus-visible {
  transform: translateY(-1px);
  background: var(--valuation-accent);
  color: #ffffff;
}

.valuation-section {
  margin: 0 0 34px;
  padding: 34px;
  background: var(--valuation-card);
  border: 1px solid var(--valuation-border);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
  scroll-margin-top: 110px;
}

.valuation-section > h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: var(--valuation-accent);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.valuation-section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--valuation-accent), var(--valuation-gold));
}

.valuation-section p {
  margin: 0 0 16px;
  color: var(--valuation-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.valuation-section a {
  color: var(--valuation-accent);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.authority-card,
.legal-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--valuation-border);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.authority-card::before,
.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--valuation-gold);
}

.legal-card::before {
  background: var(--valuation-accent);
}

.authority-card h3,
.legal-card h3 {
  margin: 0 0 14px;
  color: var(--valuation-accent);
  font-size: 1.2rem;
  line-height: 1.3;
}

.authority-card p,
.legal-card p {
  font-size: 0.96rem;
}

#recovery-example {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
  border-color: rgba(22, 59, 99, 0.18);
}

#recovery-example p:first-of-type {
  font-size: 1.1rem;
  color: var(--valuation-text);
}

#valuation-conclusion {
  background: var(--valuation-accent);
  color: #ffffff;
}

#valuation-conclusion h2,
#valuation-conclusion p,
#valuation-conclusion a {
  color: #ffffff;
}

#valuation-conclusion h2::after {
  background: var(--valuation-gold);
}

@media (max-width: 860px) {
  .valuation-methodology-page {
    padding: 30px 16px;
  }

  .valuation-section {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .valuation-page-nav {
    position: static;
  }
}

@media (max-width: 520px) {
  .valuation-page-nav ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .valuation-page-nav a {
    justify-content: center;
  }
}
