/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 */
/* Hallmark · macrostructure: source-locked editorial portal · theme: studied-DNA (source: Urbanpartner.pl szablon strony.zip) · nav: N1b/source · footer: Ft3/portal · contrast: pass (40–41) · slop: source-locked exception (44) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34,49,50–57) */
/* Source-locked design: user package 212E522C… · visual freedom: NONE */
/*
Theme Name: UrbanPartner V3
Theme URI: https://urbanpartner.pl/
Author: SUNSPOT
Description: Portal o mieszkaniu, planowaniu miasta, lokalnej gospodarce i prawie.
Version: 3.2.3
Text Domain: urbanpartner-v3
*/

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/SchibstedGrotesk-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/SchibstedGrotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --c-bg: #fff;
  --c-soft: #f2f4f2;
  --c-tint: #e8f4ec;
  --c-tint-hover: #ddefe3;
  --c-ph-1: #eef1ee;
  --c-ph-2: #e5e9e5;
  --c-line: #e6e9e5;
  --c-line-soft: #eef1ed;
  --c-border: #d5dad5;
  --c-ink: #16181a;
  --c-body: #25292b;
  --c-text-2: #4d5458;
  --c-muted: #5f676b;
  --c-accent: #c8106e;
  --c-accent-hover: #a00a57;
  --color-accent-ink: #fff;
  --c-accent-on-dark: #ff8cc2;
  --c-green: #1f8a5b;
  --c-dark: #0e3b2d;
  --c-dark-card: #164a3a;
  --c-dark-card-hover: #1d5644;
  --c-dark-line: #2a5e4d;
  --c-on-dark: #f1f7f3;
  --c-on-dark-2: #b8d2c6;
  --c-on-dark-3: #94b6a7;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-float: 0 30px 60px -30px rgb(22 24 26 / 35%);
  --shadow-menu: 0 24px 48px -24px rgb(22 24 26 / 25%);
  --container: 1320px;
  --container-article: 1120px;
  --measure: 720px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-drawer-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--c-accent);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--c-accent-hover);
}

a:active {
  color: var(--c-accent-hover);
}

button:active,
.up-button:active {
  filter: brightness(0.92);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p {
  text-wrap: pretty;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--c-bg);
  color: var(--c-ink);
  font-weight: 700;
}

.up-container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.up-article-container {
  width: min(100%, var(--container-article));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.up-reading-column {
  width: min(100%, var(--measure));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 112px);
}

.up-section {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.up-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.up-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.up-section-head p,
.up-section-head > a {
  max-width: 48rem;
  margin: 0;
  color: var(--c-muted);
  font-size: 15px;
}

.up-section-head > a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}

.up-kicker {
  display: block;
  margin: 0;
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.up-kicker--dark {
  color: var(--c-accent-on-dark);
}

.up-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.up-button--accent {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: var(--color-accent-ink);
}

.up-button--accent:hover {
  border-color: var(--c-accent-hover);
  background: var(--c-accent-hover);
  color: var(--color-accent-ink);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--c-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--c-muted);
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumbs span:last-child {
  color: var(--c-ink);
}

.site-main {
  min-height: 64vh;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}

.site-header__bar {
  display: flex;
  height: var(--header-h);
  align-items: center;
  gap: 36px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--c-ink);
}

.site-brand__symbol {
  width: 26px;
  height: 26px;
  border-radius: 13px 13px 3px 3px;
  background: var(--c-accent);
}

.site-brand__word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-brand__word span {
  color: var(--c-accent);
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 22px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 2px 0 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--c-accent);
  color: var(--c-accent);
}

.header-search {
  flex: 0 0 220px;
}

.header-search label {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: 21px;
  background: var(--c-bg);
}

.header-search__icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid var(--c-muted);
  border-radius: 50%;
}

.header-search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: var(--c-muted);
  content: "";
  rotate: 45deg;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-ink);
  font-size: 14px;
}

.header-search input::placeholder {
  color: var(--c-muted);
}

.drawer-toggle {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.mega-menu {
  position: absolute;
  z-index: 4;
  top: var(--header-h);
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
  box-shadow: var(--shadow-menu);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 40px;
}

.mega-menu__categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}

.mega-menu__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.mega-menu__group a,
.mega-menu__group span {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.mega-menu__group .mega-menu__title {
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 700;
}

.mega-menu__group a:hover,
.mega-menu__group .mega-menu__title:hover {
  color: var(--c-accent);
}

.mega-menu__feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
}

.mega-menu__feature img {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}

.mega-menu__feature strong {
  font-size: 18px;
  line-height: 1.25;
}

.mobile-drawer {
  display: none;
}

/* Home */
.home-hero {
  padding-top: clamp(12px, 2vw, 24px);
}

.home-hero__media {
  height: clamp(300px, 48vw, 620px);
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 20px);
  background: var(--c-soft);
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__panel {
  position: relative;
  max-width: 680px;
  margin: clamp(-220px, -14vw, -90px) clamp(12px, 4vw, 56px) 0;
  padding: clamp(22px, 3.5vw, 44px);
  border-radius: var(--radius-l);
  background: var(--c-bg);
  box-shadow: var(--shadow-float);
}

.home-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.home-hero__lead {
  margin: 16px 0 0;
  color: var(--c-text-2);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-search label {
  flex: 1 1 240px;
}

.hero-search input,
.hero-search button {
  height: 54px;
  border-radius: 27px;
}

.hero-search input {
  width: 100%;
  padding: 0 20px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 16px;
}

.hero-search button {
  padding: 0 28px;
  border: 0;
  background: var(--c-accent);
  color: var(--color-accent-ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.hero-search button:hover {
  background: var(--c-accent-hover);
}

.home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
}

.home-hero__chips > span {
  padding: 6px 0;
  color: var(--c-muted);
}

.home-hero__chips a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-soft);
  color: var(--c-ink);
  text-decoration: none;
}

.home-hero__chips a:hover {
  color: var(--c-accent);
}

.home-topics {
  padding-bottom: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.topic-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
}

.topic-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--c-soft);
}

.topic-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.topic-card__description {
  margin-top: -6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.45;
}

.topic-card:hover .topic-card__title {
  color: var(--c-accent);
}

.home-process {
  margin-top: clamp(64px, 8vw, 112px);
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.home-process__inner {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.home-process__head {
  max-width: 640px;
}

.home-process__head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-process__head > p:last-child {
  margin: 12px 0 0;
  color: var(--c-on-dark-2);
  font-size: 17px;
  line-height: 1.55;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin-top: 36px;
}

.process-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: var(--c-dark-card);
  color: var(--c-on-dark);
  text-decoration: none;
  transition: background-color 0.15s;
}

.process-card:hover {
  background: var(--c-dark-card-hover);
  color: var(--c-on-dark);
}

.process-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-dark-card-hover);
}

.process-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.process-card__meta {
  color: var(--c-accent-on-dark);
  font-size: 13px;
  font-weight: 600;
}

.process-card strong {
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.process-card__body > span:last-child {
  color: var(--c-on-dark-2);
  font-size: 15px;
  line-height: 1.5;
}

.up-section-head--tabs {
  align-items: flex-end;
}

.filter-tabs,
.subfilters {
  display: flex;
  max-width: 100%;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar,
.subfilters::-webkit-scrollbar,
.hub-stage-nav::-webkit-scrollbar {
  display: none;
}

.filter-tabs button,
.subfilters button {
  height: 40px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tabs button.is-active,
.subfilters button.is-active {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.latest-card {
  color: var(--c-ink);
  text-decoration: none;
}

.latest-card.is-lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-card.is-lead .latest-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--c-soft);
}

.latest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.latest-card strong {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.latest-card:hover strong {
  color: var(--c-accent);
}

.latest-card__excerpt {
  color: var(--c-text-2);
  font-size: 16px;
  line-height: 1.55;
}

.latest-card__time {
  color: var(--c-muted);
  font-size: 13px;
}

.latest-card.is-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
}

.latest-card.is-list .latest-card__media {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-s);
}

.latest-card.is-list .latest-card__content {
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
}

.latest-card.is-list strong {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.3;
}

.latest-card.is-list .latest-card__excerpt {
  display: none;
}

/* Category */
.category-hero {
  padding-top: clamp(24px, 3vw, 40px);
}

.category-hero__copy {
  max-width: 760px;
  margin-top: 20px;
}

.category-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.category-hero__copy p {
  margin: 14px 0 0;
  color: var(--c-text-2);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.subfilters {
  gap: 8px;
  margin-top: 28px;
  padding: 8px 0 4px;
}

.subfilters button {
  height: 42px;
  padding-inline: 18px;
  border-radius: 21px;
  font-size: 15px;
}

.category-feature {
  padding-top: 28px;
}

.category-feature__link {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  overflow: hidden;
  border-radius: 18px;
  background: var(--c-tint);
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color 0.15s;
}

.category-feature__link:hover {
  background: var(--c-tint-hover);
  color: var(--c-ink);
}

.category-feature__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 44px);
}

.category-feature__copy > strong {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.category-feature__copy > span:not(.up-kicker, .up-button) {
  color: var(--c-text-2);
  font-size: 16px;
  line-height: 1.55;
}

.category-feature__copy .up-button {
  align-self: flex-start;
  margin-top: 6px;
}

.category-feature__media {
  min-height: 260px;
  overflow: hidden;
}

.category-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-guides {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px);
}

.guide-card a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
}

.guide-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--c-soft);
}

.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.guide-card a:hover strong {
  color: var(--c-accent);
}

.guide-card__excerpt {
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.5;
}

.guide-card__time {
  color: var(--c-muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.pagination .page-numbers {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
}

.pagination .page-numbers .current {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.popular-guides {
  padding-bottom: 0;
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: popular;
}

.popular-list li {
  counter-increment: popular;
  border-top: 1px solid var(--c-line);
}

.popular-list li:last-child {
  border-bottom: 1px solid var(--c-line);
}

.popular-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 88px;
  color: var(--c-ink);
  text-decoration: none;
}

.popular-list a::before {
  color: var(--c-accent);
  content: counter(popular, decimal-leading-zero);
  font-size: 22px;
  font-weight: 800;
}

.popular-list strong,
.popular-list span {
  grid-column: 2;
}

.popular-list strong {
  font-size: 18px;
  line-height: 1.3;
}

.popular-list span {
  margin-top: -18px;
  color: var(--c-text-2);
  font-size: 14px;
}

.related-topics {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.related-topics h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.related-topics__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-topics__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Article */
.article-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(24px, 3vw, 40px);
}

.article-header h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(32px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.article-header__lead {
  max-width: 780px;
  margin: 0;
  color: var(--c-text-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 4px;
  color: var(--c-muted);
  font-size: 14px;
}

.article-hero {
  margin-top: clamp(24px, 3vw, 40px);
}

.article-hero img {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 21 / 9;
  border-radius: clamp(0px, 1.5vw, 20px);
  object-fit: cover;
}

.article-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.article-toc--desktop {
  position: sticky;
  top: 104px;
  display: flex;
  flex: 0 0 240px;
  flex-direction: column;
  gap: 4px;
}

.article-toc--desktop h2 {
  margin: 0 0 10px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-toc--desktop nav {
  display: flex;
  flex-direction: column;
}

.article-toc--desktop a {
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--c-line);
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc--desktop a[aria-current] {
  border-left-color: var(--c-accent);
  color: var(--c-ink);
  font-weight: 700;
}

.article-toc--mobile {
  display: none;
}

.article-body {
  width: 100%;
  max-width: var(--measure);
  min-width: 0;
  color: var(--c-body);
  font-size: 18px;
  line-height: 1.7;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 46px 0 22px;
  color: var(--c-ink);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  scroll-margin-top: 96px;
}

.article-body h3 {
  margin: 34px 0 16px;
  color: var(--c-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body a {
  color: var(--c-accent-hover);
  font-weight: 600;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: var(--radius-m);
  background: var(--c-soft);
  color: var(--c-body);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-l);
  background: var(--c-tint);
}

.article-summary__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.article-summary__steps div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-summary__steps strong {
  color: var(--c-ink);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.article-summary__steps span {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.4;
}

.article-summary ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.6;
}

.up-table {
  width: 100%;
  margin: 28px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-bg);
}

.article-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.article-body th,
.article-body td {
  padding: 14px 16px;
  border-top: 1px solid var(--c-line-soft);
  text-align: left;
  vertical-align: top;
}

.article-body thead th {
  border-top: 0;
  background: var(--c-soft);
  color: var(--c-ink);
  font-weight: 700;
}

.article-body td:first-child {
  color: var(--c-ink);
  font-weight: 600;
}

.up-checklist {
  position: relative;
  margin: 28px 0;
  padding: 8px clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-bg);
}

.up-checklist h3 {
  margin: 0;
  padding: 12px 64px 12px 0;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.up-checklist__counter {
  position: absolute;
  top: 20px;
  right: clamp(16px, 2.5vw, 24px);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
}

.up-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.up-checklist li {
  margin: 0;
  border-top: 1px solid var(--c-line-soft);
}

.up-checklist label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--c-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
}

.up-checklist input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.up-checklist label > span:first-of-type {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-border);
  border-radius: 6px;
  color: var(--color-accent-ink);
  font-size: 14px;
  font-weight: 800;
}

.up-checklist input:focus-visible + span {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.up-checklist input:checked + span {
  border-color: var(--c-green);
  background: var(--c-green);
}

.up-checklist input:checked + span::before {
  content: "✓";
}

.up-checklist input:checked + span + span {
  color: var(--c-muted);
  text-decoration: line-through;
}

.faq-item {
  margin: 0;
  border-top: 1px solid var(--c-border);
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--c-border);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 48px 16px 0;
  color: var(--c-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 0;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-accent);
  content: "+";
  font-size: 18px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item > p {
  max-width: 640px;
  margin: 0 0 20px;
  color: var(--c-text-2);
  font-size: 17px;
  line-height: 1.65;
}

.article-sources {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}

.article-sources li {
  font-size: 15px;
}

.article-related {
  border-top: 1px solid var(--c-line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
}

.related-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-m);
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.related-card > span:last-child {
  color: var(--c-muted);
  font-size: 13px;
}

.article-return {
  padding-top: 32px;
  padding-bottom: 64px;
  border-top: 1px solid var(--c-line);
}

.article-return a {
  color: var(--c-accent);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* Hub */
.hub-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(24px, 3vw, 40px);
}

.hub-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hub-hero__copy > p:not(.up-kicker) {
  margin: 0;
  color: var(--c-text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.hub-hero__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hub-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-stage-nav {
  display: flex;
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-stage-nav a {
  display: flex;
  min-width: 120px;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  color: var(--c-ink);
  text-decoration: none;
}

.hub-stage-nav span {
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 700;
}

.hub-stage-nav strong {
  font-size: 14px;
  line-height: 1.3;
}

.hub-timeline {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.hub-stage {
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 72px) minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
}

.hub-stage__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-stage__rail > span {
  display: flex;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  color: var(--c-accent);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
}

.hub-stage.is-open .hub-stage__rail > span {
  background: var(--c-accent);
  color: var(--color-accent-ink);
}

.hub-stage__rail i {
  width: 2px;
  flex: 1 1 auto;
  margin: 6px 0;
  background: var(--c-border);
}

.hub-stage__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.hub-stage__content > button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
}

.hub-stage__content > button > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-stage__content > button strong {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hub-stage__content > button small {
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 400;
}

.hub-stage__content > button i {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-accent);
  font-size: 20px;
  font-style: normal;
}

.hub-stage__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.hub-stage__panel > p {
  max-width: 680px;
  margin: 0;
  color: var(--c-body);
  font-size: 17px;
  line-height: 1.65;
}

.hub-stage__decisions > span {
  display: block;
  margin-bottom: 8px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-stage__decisions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-stage__decisions em {
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--c-tint);
  color: var(--c-ink);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.hub-stage__posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.hub-stage__posts a {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  color: var(--c-ink);
  text-decoration: none;
}

.hub-stage__posts a:hover {
  border-color: var(--c-accent);
}

.hub-stage__posts span {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

/* Search and 404 */
.simple-hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.simple-hero h1 {
  max-width: 900px;
  margin: 20px 0 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.simple-hero > p:not(.up-kicker) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--c-text-2);
  font-size: 18px;
}

.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 680px;
  margin-top: 24px;
}

.search-form label {
  flex: 1 1 auto;
}

.search-form input,
.search-form button {
  min-height: 52px;
  border-radius: 26px;
}

.search-form input {
  width: 100%;
  padding: 0 20px;
  border: 1px solid var(--c-border);
  color: var(--c-ink);
}

.search-form button {
  padding: 0 24px;
  border: 0;
  background: var(--c-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.simple-hero__return {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.site-footer__inner {
  padding-top: 64px;
  padding-bottom: 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__wordmark {
  color: var(--c-on-dark);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-footer__wordmark span {
  color: var(--c-accent-on-dark);
}

.site-footer__brand p {
  max-width: 300px;
  margin: 0;
  color: var(--c-on-dark-2);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav h2 {
  margin: 0 0 4px;
  color: var(--c-on-dark-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__nav a,
.site-footer__nav li {
  color: var(--c-on-dark);
  font-size: 15px;
  text-decoration: none;
}

.site-footer__nav ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a:hover {
  color: var(--c-accent-on-dark);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-dark-line);
  color: var(--c-on-dark-3);
  font-size: 13px;
}

@media (max-width: 68rem) {
  .site-header__bar {
    gap: 16px;
  }

  .site-nav,
  .header-search,
  .mega-menu {
    display: none;
  }

  .drawer-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
  }

  .mobile-drawer {
    position: fixed;
    z-index: 3;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    overflow: auto;
    background: var(--c-bg);
  }

  .mobile-drawer__inner {
    padding: 8px 16px 32px;
  }

  .mobile-drawer .search-form {
    margin: 8px 0 16px;
  }

  .mobile-drawer .search-form button {
    min-width: 96px;
  }

  .mobile-drawer__heading {
    margin: 24px 4px 4px;
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .mobile-drawer__heading--service {
    margin-top: 28px;
  }

  .mobile-drawer__category {
    display: flex;
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--c-line-soft);
    color: var(--c-ink);
    text-decoration: none;
  }

  .mobile-drawer__category strong {
    font-size: 18px;
  }

  .mobile-drawer__category span {
    color: var(--c-muted);
    font-size: 14px;
  }

  .mobile-drawer__service {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .mobile-drawer__service a {
    display: flex;
    min-height: 52px;
    align-items: center;
    border-bottom: 1px solid var(--c-line-soft);
    color: var(--c-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-drawer__service a[aria-current="page"] {
    color: var(--c-accent);
  }
}

@media (max-width: 60rem) {
  .article-toc--desktop {
    display: none;
  }

  .article-layout {
    display: block;
  }

  .article-toc--mobile {
    display: block;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-m);
    background: var(--c-bg);
  }

  .article-toc--mobile > button {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }

  .article-toc--mobile button span {
    color: var(--c-accent);
  }

  .article-toc--mobile nav {
    display: flex;
    flex-direction: column;
    padding: 0 18px 12px;
  }

  .article-toc--mobile nav a {
    padding: 12px 0;
    border-top: 1px solid var(--c-line-soft);
    color: var(--c-ink);
    font-size: 15px;
    text-decoration: none;
  }
}

@media (max-width: 40rem) {
  .site-brand__word {
    font-size: 19px;
  }

  .home-hero {
    padding-inline: 16px;
  }

  .home-hero__media {
    height: 300px;
  }

  .home-hero__media img {
    object-position: 58% center;
  }

  .home-hero__panel {
    margin: -86px 16px 0;
    padding: 24px 20px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search label {
    flex-basis: auto;
  }

  .hero-search button {
    align-self: flex-start;
  }

  .home-hero__chips a,
  .home-hero__chips > span {
    white-space: nowrap;
  }

  .up-section-head {
    align-items: flex-start;
  }

  .topic-grid,
  .guide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-feature__link {
    grid-template-columns: 1fr;
  }

  .category-feature__media {
    min-height: 220px;
  }

  .category-hero h1 {
    font-size: 40px;
  }

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

  .latest-card.is-list {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
  }

  .article-header h1 {
    font-size: 34px;
  }

  .article-header__lead {
    font-size: 17px;
  }

  .article-hero {
    width: 100%;
    padding-inline: 0;
  }

  .article-hero img {
    min-height: 220px;
    border-radius: 0;
  }

  .article-layout {
    padding-top: 32px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.7;
  }

  .article-summary__steps {
    grid-template-columns: 1fr;
  }

  .article-body h2 {
    font-size: 27px;
  }

  .popular-list span {
    display: none;
  }

  .hub-hero {
    grid-template-columns: 1fr;
  }

  .hub-hero h1 {
    font-size: 40px;
  }

  .hub-stage {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    align-self: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
