@font-face {
  font-family: "Sofia";
  src: url("../assets/fonts/sofia-light.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Sofia";
  src: url("../assets/fonts/sofia-medium.otf") format("opentype");
  font-weight: 600;
}

@font-face {
  font-family: "Sofia";
  src: url("../assets/fonts/sofia-bold.otf") format("opentype");
  font-weight: 800;
}

:root {
  --navy: #172554;
  --navy-deep: #0f1b3d;
  --navy-soft: #eef2ff;
  --yellow: #ffd21c;
  --yellow-dark: #e8b900;
  --orange: #ff7a00;
  --ink: #172033;
  --muted: #667085;
  --line: #e2e6ec;
  --line-strong: #cbd2dc;
  --surface: #ffffff;
  --background: #f5f6f8;
  --success: #067647;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Sofia", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-container {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
}

/* Marketplace header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: #fff;
  background: var(--navy-deep);
  box-shadow: 0 2px 12px rgba(15, 27, 61, 0.24);
}

.header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: 174px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-link img,
.footer-logo {
  width: 154px;
  max-height: 44px;
  filter: brightness(0) invert(1);
}

.header-search {
  height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.header-search:focus-within {
  border-color: var(--yellow);
}

.header-search input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-search button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
}

.header-search button:hover {
  background: #ffe05f;
}

.header-search img {
  width: 20px;
  height: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #e5e7eb;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-action:hover {
  color: var(--yellow);
}

.header-action span {
  font-size: 1.1rem;
}

.account-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.account-avatar,
.avatar-circle {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-deep);
  background: var(--yellow);
  font-weight: 800;
}

.account-avatar.large,
.avatar-circle {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  font-size: 1.15rem;
}

.dropdown-menu {
  min-width: 220px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 27, 61, 0.2) !important;
}

.dropdown-item {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 0.92rem;
}

.dropdown-item:hover {
  background: var(--navy-soft);
}

.category-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy);
}

.category-nav-inner {
  height: 42px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8ebf4;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.category-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.category-nav .all-categories {
  padding-left: 0;
  color: var(--yellow);
}

.category-nav .all-categories span {
  margin-right: 8px;
}

/* Buttons and controls */
.primary-button,
.ghost-button,
.text-button,
.text-link,
.icon-button,
.search-form button,
.share-form > button,
.auth-card button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.primary-button,
.search-form button,
.share-form > button,
.auth-card button {
  color: var(--navy-deep);
  border-color: var(--yellow);
  background: var(--yellow);
}

.primary-button:hover,
.search-form button:hover,
.share-form > button:hover,
.auth-card button:hover {
  color: var(--navy-deep);
  border-color: var(--yellow-dark);
  background: #ffe05a;
  transform: translateY(-1px);
}

.primary-button.compact {
  min-height: 42px;
  padding-inline: 16px;
  white-space: nowrap;
}

.ghost-button {
  color: var(--navy);
  border-color: var(--line-strong);
  background: #fff;
}

.ghost-button:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--navy-soft);
}

.text-button,
.text-link {
  min-height: 34px;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
}

.text-button:hover,
.text-link:hover {
  color: var(--orange);
}

.danger,
.text-danger {
  color: var(--danger) !important;
}

.ghost-button.danger {
  border-color: #f0b8b4;
}

/* Shared pages */
.page-band,
.home-app-band {
  min-height: 54vh;
  padding: 28px 0 64px;
}

.page-header {
  min-height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-header h1,
.detail-main h1,
.share-intro h1,
.auth-card h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-lead {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.25rem;
  font-weight: 800;
}

.success-note,
.auth-alert,
.auth-hint,
.validation-list {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 7px;
}

.success-note {
  color: var(--success);
  border-color: #a6d8c2;
  background: #ecfdf3;
}

.auth-alert,
.validation-list {
  color: var(--danger);
  border-color: #f4c7c3;
  background: #fff2f1;
}

.auth-hint {
  color: #694f00;
  border-color: #f0d97c;
  background: #fffae7;
}

.property-section fieldset.has-validation-error {
  border-color: var(--danger);
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.property-section fieldset.has-validation-error legend {
  color: var(--danger);
}

.property-validation-message {
  display: block;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
}

.empty-state {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.empty-state strong {
  color: var(--navy-deep);
  font-size: 1.15rem;
}

.empty-state .primary-button,
.empty-state .ghost-button {
  margin-top: 10px;
}

/* Home marketplace */
.app-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.category-panel,
.market-surface,
.detail-main,
.contact-panel,
.share-intro,
.share-form,
.auth-card,
.profile-card,
.account-sidebar,
.dashboard-card,
.service-tabs,
.service-purchases,
.conversation-panel,
.list-card,
.message-row,
.blocked-user-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.category-panel {
  position: sticky;
  top: 138px;
  overflow: hidden;
}

.panel-title {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.panel-title small {
  color: #cbd3ea;
  font-weight: 400;
}

.category-list {
  padding: 6px 0;
}

.category-group {
  border-bottom: 1px solid #edf0f4;
}

.category-group:last-child {
  border-bottom: 0;
}

.category-group summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  color: #344054;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.category-group summary::-webkit-details-marker {
  display: none;
}

.category-group summary:hover,
.category-group[open] summary {
  color: var(--navy);
  background: #f7f8fb;
}

.category-icon,
.ad-icon {
  display: inline-grid;
  place-items: center;
}

.category-icon svg,
.ad-icon svg {
  max-width: 28px;
  max-height: 28px;
}

.sub-category-list {
  display: grid;
  padding: 0 14px 10px 53px;
}

.sub-category-list a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sub-category-list a:hover {
  color: var(--orange);
}

.market-surface {
  min-width: 0;
  padding: 18px;
}

.search-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(120deg, var(--navy-deep), #263d83);
}

.search-panel::after {
  position: absolute;
  right: -50px;
  bottom: -85px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(255, 210, 28, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.search-panel .eyebrow {
  color: var(--yellow);
}

.search-panel h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
}

.search-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
}

.search-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  outline: 0;
  background: #fff;
}

.search-form input:focus {
  border-color: var(--yellow-dark);
  box-shadow: inset 0 0 0 1px var(--yellow-dark);
}

.search-form button {
  min-height: 48px;
  border-radius: 0 7px 7px 0;
}

.search-form.compact-form {
  width: min(460px, 100%);
}

.market-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  color: #ced5ea;
  font-size: 0.88rem;
}

.market-metrics strong {
  color: var(--yellow);
}

.quick-actions {
  display: none;
}

.highlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.highlight-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid #f0dd84;
  border-radius: 8px;
  background: #fffbea;
}

.highlight-card span,
.highlight-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-card strong {
  overflow: hidden;
  color: var(--navy-deep);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ad-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ad-card {
  min-width: 0;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ad-card:hover {
  color: var(--ink);
  border-color: #aeb8c7;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ad-card-top {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ad-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  background: var(--navy-soft);
}

.ad-price {
  max-width: 70%;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--navy-deep);
  background: #fff5b8;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.ad-card > strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ad-card > p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.ad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
  color: var(--muted);
  font-size: 0.76rem;
}

.category-ad-sections {
  margin-top: 28px;
}

.category-ad-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.category-ad-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-ad-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-ad-heading h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.1rem;
}

.category-ad-heading small {
  color: var(--muted);
}

.category-ad-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Detail and listing management */
.detail-layout,
.share-layout,
.account-workspace,
.conversation-layout {
  display: grid;
  align-items: start;
  gap: 20px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-main {
  padding: 26px;
}

.breadcrumb-line {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-meta span + span::before {
  margin-right: 8px;
  content: "•";
}

.price-panel {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--yellow);
  border-radius: 4px;
  color: var(--navy-deep);
  background: #fff9dc;
  font-size: 1.55rem;
  font-weight: 800;
}

.detail-description {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: #344054;
  line-height: 1.75;
}

.property-grid,
.mini-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.property-item,
.mini-meta > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f9fb;
}

.property-item span,
.mini-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.property-item strong,
.mini-meta dd {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 800;
}

.contact-panel {
  position: sticky;
  top: 138px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 22px;
}

.contact-panel .avatar-circle {
  align-self: center;
}

.contact-panel h2 {
  margin: 2px 0 8px;
  color: var(--navy-deep);
  font-size: 1.15rem;
  text-align: center;
}

.contact-panel > p {
  color: var(--muted);
  text-align: center;
}

.side-action-form,
.password-form,
.toolbar-form,
.message-form,
.decline-form {
  display: grid;
  gap: 11px;
}

.side-action-form {
  margin-top: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Forms */
.share-layout {
  grid-template-columns: 310px minmax(0, 1fr);
}

.share-intro {
  position: sticky;
  top: 138px;
  padding: 22px;
}

.share-form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.mobile-form-title {
  display: none;
}

.share-form label,
.auth-card label,
.inline-edit-form label,
.password-form label,
.toolbar-form label,
.side-action-form label,
.service-save-form label,
.service-editor label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.share-form input,
.share-form select,
.share-form textarea,
.auth-card input,
.inline-edit-form input,
.password-form input,
.password-form textarea,
.toolbar-form input,
.toolbar-form textarea,
.side-action-form input,
.side-action-form select,
.side-action-form textarea,
.message-form textarea,
.decline-form input,
.service-editor select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

.share-form input:focus,
.share-form select:focus,
.share-form textarea:focus,
.auth-card input:focus,
.inline-edit-form input:focus,
.password-form input:focus,
.password-form textarea:focus,
.side-action-form input:focus,
.side-action-form select:focus,
.side-action-form textarea:focus,
.message-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 37, 84, 0.09);
}

.form-row,
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.property-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fafb;
}

.property-section > strong {
  color: var(--navy-deep);
}

.property-section fieldset {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.property-section legend {
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 0.88rem;
  font-weight: 800;
}

.check-option {
  min-height: 38px;
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  padding: 7px 9px;
  border-radius: 5px;
  cursor: pointer;
}

.check-option:hover {
  background: var(--navy-soft);
}

.check-option input {
  width: 17px;
  min-height: 17px;
  margin: 0;
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

/* Rich advertisement description editor */
.rich-editor-field {
  display: grid;
  gap: 7px;
}

.rich-editor-field > label {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}

.rich-editor:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 37, 84, 0.09);
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}

.rich-editor-toolbar button,
.rich-editor-toolbar select,
.color-tool {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar select:hover,
.color-tool:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.rich-editor-toolbar button.is-active,
.rich-editor-toolbar button[aria-pressed="true"] {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
  box-shadow: inset 0 -3px 0 var(--yellow-dark), 0 0 0 2px rgba(23, 37, 84, 0.12);
}

.rich-editor-toolbar button.is-active:hover,
.rich-editor-toolbar button[aria-pressed="true"]:hover {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.rich-editor-toolbar select {
  min-width: 105px;
  outline: 0;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  margin: 0 3px;
  background: var(--line-strong);
}

.color-tool {
  position: relative;
  width: 36px;
  padding: 0;
  font-weight: 800;
}

.color-tool input {
  position: absolute;
  inset: auto 6px 3px;
  width: 24px;
  height: 5px;
  min-height: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.background-tool {
  background: #fff2a8;
}

.rich-editor-content {
  min-height: 210px;
  max-height: 520px;
  overflow-y: auto;
  padding: 14px 16px;
  outline: 0;
  color: var(--ink);
  line-height: 1.65;
}

.rich-editor-content:empty::before {
  color: #98a2b3;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-editor-content h2,
.rich-editor-content h3,
.rich-editor-content p,
.rich-editor-content blockquote {
  margin-top: 0;
}

.rich-editor-content blockquote {
  padding-left: 12px;
  border-left: 4px solid var(--yellow-dark);
  color: var(--muted);
}

.rich-editor-source {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 1px !important;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.rich-editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.rich-editor-footer .is-over-limit {
  color: var(--danger);
  font-weight: 800;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 6px;
  color: var(--muted);
  background: #f7f8fa;
}

.step-list span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 0.78rem;
}

.preview-panel dl {
  display: grid;
  gap: 8px;
}

.preview-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.preview-panel dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

/* Category selection and search */
.category-chooser-grid,
.keyword-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-chooser-card,
.keyword-category-card {
  min-height: 98px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-chooser-card:hover,
.keyword-category-card:hover {
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.category-chooser-card .category-icon,
.keyword-category-card .category-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  background: var(--navy-soft);
}

.keyword-category-card {
  align-items: flex-start;
  flex-direction: column;
}

.keyword-category-card > span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.search-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #f0dd84;
  border-radius: 7px;
  background: #fffbea;
}

/* Auth */
.auth-band {
  min-height: calc(100vh - 118px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: linear-gradient(135deg, #edf1f8, #fff8d5);
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.auth-card img {
  width: 150px;
  filter: none;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}

.auth-links a {
  color: var(--navy);
  font-weight: 700;
}

/* Account */
.account-layout,
.service-dashboard,
.blocked-users-page,
.narrow-content {
  max-width: 1120px;
}

.account-workspace {
  grid-template-columns: 250px minmax(0, 1fr);
}

.account-sidebar {
  position: sticky;
  top: 138px;
  overflow: hidden;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.account-summary > div {
  min-width: 0;
  display: grid;
}

.account-summary strong,
.account-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary small {
  color: var(--muted);
}

.account-tab {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  color: #344054;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.account-tab:hover,
.account-tab.is-active {
  color: var(--navy);
  background: var(--navy-soft);
}

.account-tab.is-active {
  box-shadow: inset 4px 0 0 var(--yellow-dark);
}

.profile-stack {
  min-width: 0;
}

.profile-card {
  padding: 24px;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.settings-card-head h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.2rem;
}

.settings-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.inline-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.account-stats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-stats strong {
  color: var(--navy);
  font-size: 1.5rem;
}

.status-pill,
.credit-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #475467;
  background: #eef1f5;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.is-ok {
  color: var(--success);
  background: #dcfae6;
}

.service-quick-panel {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #f0dd84;
  border-radius: 8px;
  background: #fffbea;
}

.service-action-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.service-action-list a {
  padding: 11px;
  border: 1px solid #ead36c;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.tabs-row {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tabs-row a {
  padding: 11px 17px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

.tabs-row a.is-active {
  color: var(--navy);
  border-color: var(--yellow-dark);
}

.my-ad-wrapper {
  display: grid;
  gap: 8px;
}

/* Favorites, lists and blocked users */
.management-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.management-aside {
  position: sticky;
  top: 138px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.management-aside h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.15rem;
}

.management-aside p {
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar-form.stacked {
  grid-template-columns: 1fr;
}

.contact-preference-section {
  border-left: 4px solid var(--yellow-dark);
  background: #fffdf2;
}

.list-grid,
.favorite-list-grid,
.blocked-user-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.list-card {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.list-card span {
  color: var(--muted);
}

.list-card.managed {
  gap: 12px;
}

.favorite-ads-table {
  display: grid;
  gap: 8px;
}

.favorite-ad-row,
.blocked-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.blocked-user-list {
  grid-template-columns: 1fr;
}

.blocked-user-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blocked-user-identity > div {
  min-width: 0;
  display: grid;
}

.blocked-user-identity strong,
.blocked-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocked-user-identity small {
  color: var(--muted);
}

/* Messages and notifications */
.message-workspace {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.message-aside {
  position: sticky;
  top: 138px;
  display: grid;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.message-aside strong {
  color: var(--yellow);
  font-size: 2rem;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
}

a.message-row:hover {
  color: var(--ink);
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.message-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.message-row span,
.message-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.message-row b {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: var(--navy-deep);
  background: var(--yellow);
  font-size: 0.75rem;
}

.message-row.is-unread {
  border-left: 4px solid var(--yellow-dark);
  background: #fffdf3;
}

.conversation-layout {
  grid-template-columns: 1fr;
  max-width: 950px;
}

.conversation-panel {
  overflow: hidden;
}

.conversation-box {
  min-height: 340px;
  max-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 20px;
  background: #eef1f6;
}

.message-bubble {
  max-width: 72%;
  align-self: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  background: #fff;
}

.message-bubble.is-mine {
  align-self: flex-end;
  color: #fff;
  border-color: var(--navy);
  border-radius: 12px 4px 12px 12px;
  background: var(--navy);
}

.message-bubble p {
  margin: 0 0 5px;
}

.message-bubble small {
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.7;
}

.message-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Services */
.service-header .header-actions,
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.credit-chip {
  min-height: 42px;
  padding-inline: 14px;
  color: var(--navy);
  background: #fff5b8;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 5px;
}

.service-tab {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: #475467;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.service-tab.is-active {
  color: #fff;
  background: var(--navy);
}

.service-tab span {
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: var(--yellow);
}

.dashboard-section {
  margin-top: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-card {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
}

.dashboard-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
}

.offer-drawer summary {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--navy-deep);
  background: #fff5b8;
  cursor: pointer;
  font-weight: 800;
}

.offer-drawer form {
  margin-top: 10px;
}

.service-purchases {
  margin-top: 22px;
  padding: 18px;
}

.service-editor,
.service-save-form {
  display: grid;
  gap: 15px;
}

.district-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

/* Legal */
.legal-content {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  line-height: 1.75;
}

/* Footer */
.site-footer {
  padding: 44px 0;
  color: #cbd3e4;
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-grid strong {
  margin-bottom: 4px;
  color: #fff;
}

.footer-grid a,
.footer-grid span,
.site-footer p {
  color: #aeb8ce;
  font-size: 0.88rem;
}

.footer-grid a:hover {
  color: var(--yellow);
}

/* Responsive marketplace */
/* Editorial blog */
.blog-page,
.blog-detail-page {
  min-height: 65vh;
  padding-bottom: 72px;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, var(--navy-deep) 0%, #1d326f 64%, #2b438c 100%);
}

.blog-hero::before,
.blog-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 210, 28, 0.19);
  border-radius: 50%;
  content: "";
}

.blog-hero::before {
  width: 340px;
  height: 340px;
  top: -220px;
  right: 9%;
}

.blog-hero::after {
  width: 210px;
  height: 210px;
  right: 20%;
  bottom: -160px;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 70px;
  padding-block: 48px;
}

.blog-hero .eyebrow {
  color: var(--yellow);
}

.blog-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.blog-hero h1 + p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #d4daeb;
  font-size: 1.06rem;
}

.blog-search {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(4, 12, 34, 0.2);
  backdrop-filter: blur(10px);
}

.blog-search label {
  color: #eef1f9;
  font-size: 0.82rem;
  font-weight: 800;
}

.blog-search > div {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.blog-search input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
}

.blog-search button {
  padding: 0 20px;
  border: 0;
  color: var(--navy-deep);
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
}

.blog-content-shell {
  position: relative;
  z-index: 2;
  padding-top: 30px;
}

.blog-featured {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
  margin-top: -76px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 27, 61, 0.14);
}

.blog-featured-cover,
.blog-card-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 210, 28, 0.65), transparent 19%),
    linear-gradient(135deg, var(--blog-accent, var(--navy)), #101a3b);
}

.blog-featured-cover img,
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.blog-featured:hover .blog-featured-cover img,
.blog-card:hover .blog-card-cover img {
  transform: scale(1.035);
}

.blog-featured-cover > span {
  opacity: 0.16;
  font-size: 13rem;
  font-weight: 800;
  line-height: 1;
}

.blog-featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px;
}

.blog-featured-label {
  margin-bottom: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: #fff5b8;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-featured-body small {
  color: var(--muted);
}

.blog-featured-body h2 {
  margin: 8px 0 12px;
  color: var(--navy-deep);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.blog-featured-body p {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 1rem;
}

.blog-category-nav {
  display: flex;
  gap: 8px;
  padding: 4px 0 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.blog-category-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.blog-category-nav a::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blog-accent, var(--navy));
  content: "";
}

.blog-category-nav a span {
  color: var(--muted);
  font-size: 0.75rem;
}

.blog-category-nav a:hover,
.blog-category-nav a.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.blog-category-nav a.is-active::before {
  background: var(--yellow);
}

.blog-category-nav a.is-active span {
  color: #d7dced;
}

.blog-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.blog-results-head h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.55rem;
}

.blog-results-head > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.blog-card:hover {
  border-color: #b8c0cc;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-cover {
  height: 205px;
}

.blog-card-cover > span {
  opacity: 0.2;
  font-size: 7rem;
  font-weight: 800;
}

.blog-card-cover > small {
  position: absolute;
  left: 13px;
  bottom: 13px;
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--navy-deep);
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
}

.blog-card-body {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.blog-card h2 {
  margin: 10px 0 8px;
  color: var(--navy-deep);
  font-size: 1.18rem;
  line-height: 1.25;
}

.blog-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #edf0f4;
  font-size: 0.79rem;
}

.blog-card-footer > span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-card-footer a {
  flex: 0 0 auto;
  color: var(--navy);
  font-weight: 800;
}

.blog-card-footer a:hover {
  color: var(--orange);
}

.blog-pagination {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.blog-pagination a {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}

.blog-pagination span {
  color: var(--muted);
}

.blog-detail-header {
  padding: 46px 0 88px;
  color: #fff;
  background: linear-gradient(125deg, var(--navy-deep), #243c81);
}

.blog-detail-heading {
  max-width: 950px;
}

.blog-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 30px;
  color: #cdd4e6;
  font-size: 0.83rem;
}

.blog-breadcrumb a:hover {
  color: var(--yellow);
}

.blog-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-detail-category::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blog-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
  content: "";
}

.blog-detail-heading h1 {
  max-width: 900px;
  margin: 13px 0 17px;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.blog-detail-heading > p {
  max-width: 760px;
  margin: 0;
  color: #d7ddec;
  font-size: 1.08rem;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 28px;
  color: #cbd3e7;
  font-size: 0.82rem;
}

.blog-detail-meta strong {
  color: #fff;
}

.blog-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 830px) 300px;
  align-items: start;
  justify-content: center;
  gap: 28px;
  margin-top: -50px;
}

.blog-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 27, 61, 0.1);
}

.blog-detail-cover {
  width: 100%;
  max-height: 470px;
  display: block;
  object-fit: cover;
}

.blog-article-content {
  padding: 42px clamp(24px, 6vw, 68px);
  color: #344054;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.82;
}

.blog-article-content > :first-child {
  margin-top: 0;
}

.blog-article-content > :last-child {
  margin-bottom: 0;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  color: var(--navy-deep);
  font-family: "Sofia", system-ui, sans-serif;
  line-height: 1.25;
}

.blog-article-content h2 {
  margin: 38px 0 14px;
  font-size: 1.75rem;
}

.blog-article-content h3 {
  margin: 30px 0 12px;
  font-size: 1.35rem;
}

.blog-article-content a {
  color: #234bb0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--yellow);
  color: var(--navy-deep);
  background: #fff9dc;
  font-family: "Sofia", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-article-content figure {
  margin: 28px 0;
}

.blog-article-content figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.blog-article-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.blog-article-content th,
.blog-article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.blog-article-content th {
  color: var(--navy-deep);
  background: #f4f6fa;
}

.blog-article-content pre,
.blog-article-content code {
  border-radius: 5px;
  background: #f1f3f7;
  font-size: 0.88em;
}

.blog-article-content pre {
  padding: 15px;
  overflow-x: auto;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 20px clamp(24px, 6vw, 68px);
  border-top: 1px solid var(--line);
}

.blog-tags strong {
  margin-right: 5px;
  color: var(--navy-deep);
}

.blog-tags a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475467;
  background: #f0f2f6;
  font-size: 0.79rem;
}

.blog-back-link {
  padding: 10px clamp(24px, 6vw, 68px) 30px;
}

.blog-detail-aside {
  position: sticky;
  top: 138px;
  display: grid;
  gap: 16px;
}

.blog-author-card,
.blog-related {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.blog-author-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.blog-author-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--navy-deep);
  background: var(--yellow);
  font-size: 1.35rem;
  font-weight: 800;
}

.blog-author-card div {
  display: grid;
}

.blog-author-card small,
.blog-author-card p {
  color: var(--muted);
}

.blog-author-card p {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  font-size: 0.82rem;
}

.blog-related > a {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid #edf0f4;
}

.blog-related > a:first-of-type {
  margin-top: 8px;
}

.blog-related small {
  color: var(--muted);
  font-size: 0.72rem;
}

.blog-related strong {
  color: var(--navy-deep);
  line-height: 1.3;
}

.blog-related span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Category results and filters */
.category-page-head {
  min-height: 86px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.category-page-head h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.2;
}

.category-page-head p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
}

.filter-mobile-toggle {
  display: none;
}

.filter-mobile-toggle span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: 0.75rem;
}

.category-page-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.filter-sidebar {
  position: sticky;
  top: 138px;
  max-height: calc(100vh - 156px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: auto;
  scrollbar-width: thin;
}

.category-filter-form {
  display: grid;
}

.filter-title {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.filter-title span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
}

.filter-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #edf0f4;
}

.filter-section > label,
.filter-section > strong {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-section input[type="search"],
.filter-section input[type="number"],
.results-toolbar select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.filter-section input:focus,
.results-toolbar select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 37, 84, 0.1);
}

.filter-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-price-row label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.filter-price-row span {
  color: var(--muted);
  font-size: 0.76rem;
}

.filter-group,
.filter-city {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.filter-group summary,
.filter-city summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: #344054;
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-group summary::-webkit-details-marker,
.filter-city summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  color: var(--muted);
  content: "+";
  font-size: 1.1rem;
}

.filter-group[open] summary::after {
  content: "−";
}

.filter-group summary b {
  margin-left: auto;
  color: var(--orange);
  font-size: 0.75rem;
}

.filter-options {
  display: grid;
  gap: 2px;
  padding: 4px 9px 10px;
}

.filter-check {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 3px;
  color: #475467;
  cursor: pointer;
  font-size: 0.84rem;
}

.filter-check:hover {
  color: var(--navy);
}

.filter-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--navy);
}

.subcategory-options {
  display: grid;
  gap: 6px;
}

.subcategory-link {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 700;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
}

.subcategory-link:hover,
.subcategory-link:focus-visible {
  border-color: rgba(255, 107, 26, 0.55);
  color: var(--navy-deep);
  background: rgba(255, 107, 26, 0.08);
}

.location-options {
  max-height: 360px;
  display: grid;
  gap: 7px;
  padding-right: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.filter-city summary {
  padding-right: 9px;
}

.filter-city summary .filter-check {
  min-width: 0;
  flex: 1;
  padding: 0;
}

.filter-city summary small {
  color: var(--muted);
  white-space: nowrap;
}

.district-options {
  max-height: 210px;
  margin: 0 9px 9px;
  padding: 5px 6px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
  overflow-y: auto;
}

.filter-actions {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.filter-actions > a:not(.primary-button) {
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 800;
  text-align: center;
}

.filter-actions > a:hover {
  color: var(--orange);
}

.category-results {
  min-width: 0;
}

.results-toolbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.results-toolbar > div {
  display: grid;
}

.results-toolbar > div span {
  color: var(--muted);
  font-size: 0.78rem;
}

.results-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.results-toolbar select {
  width: auto;
  min-width: 190px;
}

.ad-card-description {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: 150px minmax(240px, 1fr) auto;
    gap: 14px;
  }

  .header-action:not(.login-action) {
    display: none;
  }

  .app-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .ad-grid.wide,
  .category-chooser-grid,
  .keyword-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-ad-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .blog-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 42px 100px;
  }

  .blog-search {
    max-width: 620px;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-cover {
    min-height: 270px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-detail-shell {
    grid-template-columns: 1fr;
  }

  .blog-detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-main {
    min-height: auto;
    grid-template-columns: 1fr auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-link img {
    width: 132px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .account-label,
  .login-action,
  .nav-actions .primary-button {
    display: none;
  }

  .category-nav .app-container {
    width: 100%;
    padding-left: 16px;
  }

  .category-panel,
  .contact-panel,
  .share-intro,
  .account-sidebar,
  .message-aside,
  .management-aside {
    position: static;
  }

  .app-grid,
  .category-page-layout,
  .detail-layout,
  .share-layout,
  .account-workspace,
  .message-workspace,
  .management-shell {
    grid-template-columns: 1fr;
  }

  .filter-mobile-toggle {
    display: inline-flex;
  }

  .filter-sidebar {
    position: static;
    display: none;
    max-height: none;
  }

  .filter-sidebar.is-open {
    display: block;
  }

  .category-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-panel {
    max-height: none;
  }

  .category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-group {
    border-right: 1px solid #edf0f4;
  }

  .sub-category-list {
    padding-left: 52px;
  }

  .ad-grid,
  .ad-grid.wide,
  .category-ad-row,
  .category-chooser-grid,
  .keyword-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-row {
    grid-template-columns: 1fr;
  }

  .property-grid,
  .mini-meta,
  .district-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-intro .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-summary {
    grid-column: 1 / -1;
  }

  .service-action-list,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .app-container {
    width: min(100% - 20px, 560px);
  }

  .blog-page,
  .blog-detail-page {
    padding-bottom: 44px;
  }

  .blog-hero-inner {
    padding-block: 34px 76px;
  }

  .blog-hero h1 {
    font-size: 2.25rem;
  }

  .blog-hero h1 + p {
    margin-top: 14px;
    font-size: 0.94rem;
  }

  .blog-search {
    padding: 13px;
  }

  .blog-featured {
    min-height: 0;
    margin-top: -58px;
  }

  .blog-featured-cover {
    min-height: 205px;
  }

  .blog-featured-body {
    padding: 24px 20px;
  }

  .blog-featured-body h2 {
    font-size: 1.55rem;
  }

  .blog-category-nav {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .blog-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-cover {
    height: 195px;
  }

  .blog-detail-header {
    padding: 28px 0 70px;
  }

  .blog-breadcrumb {
    margin-bottom: 22px;
  }

  .blog-detail-heading h1 {
    font-size: 2.15rem;
  }

  .blog-detail-heading > p {
    font-size: 0.96rem;
  }

  .blog-detail-meta {
    gap: 7px 13px;
  }

  .blog-detail-shell {
    width: 100%;
    gap: 14px;
  }

  .blog-article {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .blog-article-content {
    padding: 28px 18px;
    font-size: 0.98rem;
  }

  .blog-article-content h2 {
    font-size: 1.5rem;
  }

  .blog-article-content table {
    display: block;
    overflow-x: auto;
  }

  .blog-detail-aside {
    grid-template-columns: 1fr;
    padding-inline: 10px;
  }

  .page-band,
  .home-app-band {
    padding: 14px 0 42px;
  }

  .category-page-head {
    min-height: auto;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 14px;
  }

  .category-page-head h1 {
    font-size: 1.45rem;
  }

  .category-page-head .eyebrow {
    display: none;
  }

  .category-page-head p:last-child {
    font-size: 0.82rem;
  }

  .filter-mobile-toggle {
    min-height: 40px;
    padding-inline: 13px;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 11px;
  }

  .results-toolbar label {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .results-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .category-nav a {
    padding-inline: 14px;
  }

  .market-surface {
    padding: 10px;
  }

  .search-panel {
    padding: 20px 16px;
  }

  .search-panel h1 {
    font-size: 1.75rem;
  }

  .market-metrics {
    gap: 12px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .page-header > form,
  .page-header > .primary-button,
  .page-header > .ghost-button {
    width: 100%;
  }

  .search-form.compact-form {
    width: 100%;
  }

  .category-list,
  .ad-grid,
  .ad-grid.wide,
  .category-ad-row,
  .category-chooser-grid,
  .keyword-category-grid,
  .dashboard-grid,
  .list-grid,
  .favorite-list-grid,
  .property-grid,
  .mini-meta,
  .district-picker,
  .form-row,
  .editor-grid,
  .service-tabs,
  .service-action-list,
  .account-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-panel {
    display: none;
  }

  .ad-card {
    min-height: 165px;
  }

  .category-ad-sections {
    display: none;
  }

  .detail-main,
  .contact-panel,
  .share-form,
  .share-intro,
  .auth-card,
  .profile-card {
    padding: 18px;
  }

  .share-intro {
    display: none;
  }

  .mobile-form-title {
    display: block;
  }

  .account-sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-edit-form,
  .message-form {
    grid-template-columns: 1fr;
  }

  .message-aside {
    display: none;
  }

  .message-bubble {
    max-width: 88%;
  }

  .favorite-ad-row,
  .blocked-user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .blocked-user-row form,
  .blocked-user-row button {
    width: 100%;
  }

  .search-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
