:root {
  --ink: #132620;
  --ink-2: #20352f;
  --brass: #b48a45;
  --brass-dark: #8a6833;
  --paper: #f5f1e8;
  --paper-soft: #fbfaf6;
  --slate: #34515f;
  --line: #d8d0c0;
  --muted: #68736e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(19, 38, 32, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 150px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(216, 208, 192, 0.8);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(16px);
  overflow: visible;
}

.brand,
.brand > span:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(180, 138, 69, 0.55);
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
}

.brand-mark circle {
  stroke: currentColor;
  stroke-width: 1.6;
}

.brand-mark path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-mark text {
  fill: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark.large {
  width: 72px;
  height: 72px;
}

.brand-mark.large svg {
  width: 58px;
  height: 58px;
}

.main-nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a,
.nav-action,
.nav-parent {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

.main-nav a:hover,
.nav-action:hover,
.nav-parent:hover,
.nav-group:focus-within .nav-parent,
.nav-group:hover .nav-parent {
  color: var(--brass-dark);
}

.nav-action-strong {
  border: 1px solid rgba(180, 138, 69, 0.45);
  padding-inline: 10px;
  background: rgba(180, 138, 69, 0.11);
}

.nav-group {
  position: relative;
}

.nav-parent {
  list-style: none;
}

.nav-parent::-webkit-details-marker {
  display: none;
}

.nav-parent::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 5px solid currentColor;
  border-inline: 4px solid transparent;
  transform: translateY(-1px);
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1001;
  display: none;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid rgba(180, 138, 69, 0.45);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(19, 38, 32, 0.22);
}

.nav-group[open] .submenu {
  display: grid;
  position: static;
  margin-top: 6px;
}

.submenu a,
.submenu button {
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-transform: uppercase;
}

.submenu a:last-child,
.submenu button:last-child {
  border-bottom: 0;
}

.submenu a:hover,
.submenu button:hover {
  background: var(--paper);
  color: var(--brass-dark);
}

.icon-button {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.admin-page {
  background: var(--paper);
}

.account-page {
  background: var(--paper);
}

.admin-shell,
.account-shell {
  display: grid;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 54px) 54px;
}

.admin-hero,
.admin-login,
.admin-board,
.account-hero,
.account-auth,
.account-dashboard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.admin-hero,
.account-hero {
  display: grid;
  gap: 8px;
  padding: clamp(26px, 4vw, 46px);
}

.admin-hero h1,
.admin-login h2,
.admin-board h2,
.account-hero h1,
.account-auth h2,
.account-dashboard h2 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.admin-hero p:not(.eyebrow),
.account-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.admin-login,
.account-auth {
  max-width: 620px;
  padding: 24px;
}

.admin-login form,
.admin-card,
.account-form {
  display: grid;
  gap: 16px;
}

.admin-board,
.account-dashboard {
  padding: 24px;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card h3,
.admin-empty h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.admin-card p,
.admin-empty p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-payload {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(216, 208, 192, 0.7);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.admin-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-field strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions button {
  min-width: 130px;
}

.account-tabs {
  width: fit-content;
  margin-bottom: 18px;
}

.account-form.compact {
  gap: 12px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

.account-wide {
  margin-top: 16px;
}

.account-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.account-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 0;
}

.account-facts dt {
  color: var(--brass-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-facts dd {
  margin: 0;
  color: var(--muted);
}

.account-actions {
  display: grid;
  gap: 10px;
}

.lawyer-profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lawyer-profile-form .full-span {
  grid-column: 1 / -1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(580px, 1.55fr);
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 54px) 46px;
}

.intro-panel,
.finder,
.publish-panel,
.community-card,
.plan-card,
.action-modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  overflow: hidden;
}

.intro-copy {
  min-height: 540px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(10, 24, 20, 0.97) 0%, rgba(13, 33, 28, 0.9) 38%, rgba(19, 38, 32, 0.52) 72%, rgba(19, 38, 32, 0.18) 100%),
    linear-gradient(180deg, rgba(180, 138, 69, 0.18), rgba(19, 38, 32, 0.5)),
    url("assets/legal-hero-courthouse.png");
  background-position: center, center, 62% center;
  background-size: cover;
  color: var(--paper-soft);
}

.intro-copy .eyebrow {
  color: #dec28f;
}

.intro-copy h1 {
  max-width: 520px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.75rem);
  font-weight: 600;
  line-height: 0.98;
}

.intro-copy p:last-child {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(245, 241, 232, 0.86);
  font-size: 1.04rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-strip button {
  min-height: 70px;
  border: 0;
  padding: 18px;
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.trust-strip button:hover,
.trust-strip button:focus-visible {
  background: var(--white);
  color: var(--brass-dark);
  transform: translateY(-1px);
  outline: 2px solid rgba(180, 138, 69, 0.4);
  outline-offset: -2px;
}

.finder {
  min-width: 0;
  padding: 24px;
}

.finder-head,
.section-heading,
.result-toolbar,
.membership,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.primary-action,
.secondary-action,
.chip-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
  background: var(--ink);
  color: var(--paper-soft);
}

.secondary-action,
.chip-button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.chip-button:hover {
  transform: translateY(-1px);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper-soft);
  color: var(--ink);
  text-transform: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.segmented .active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(19, 38, 32, 0.08);
}

.result-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lawyer-grid,
.classified-grid,
.article-list,
.guest-grid,
.plan-grid {
  display: grid;
  gap: 14px;
}

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

.lawyer-card,
.job-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.lawyer-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.lawyer-top {
  display: flex;
  gap: 13px;
}

.name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.name-line h3 {
  line-height: 1.12;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(180, 138, 69, 0.42);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(180, 138, 69, 0.12);
  color: var(--brass-dark);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.verification-badge.pending {
  border-color: rgba(52, 81, 95, 0.24);
  background: rgba(52, 81, 95, 0.08);
  color: var(--muted);
}

.avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--slate);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.meta-row,
.tag-row,
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.status,
.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(180, 138, 69, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(180, 138, 69, 0.12);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.status {
  border-color: rgba(52, 81, 95, 0.24);
  background: rgba(52, 81, 95, 0.1);
}

.lawyer-card p,
.job-card p,
.article-card p,
.feed-item p,
.action-card p,
.membership-copy p,
.publish-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-actions button {
  flex: 1;
}

.section-band,
.split-section,
.community-hub,
.action-band,
.membership {
  padding: 46px clamp(18px, 4vw, 54px);
}

.section-band {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 22px;
}

.posting-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -4px 0 22px;
}

.posting-rules article {
  display: flex;
  gap: 12px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}

.posting-rules h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.posting-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rule-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 900;
}

.classified-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-card,
.article-card {
  padding: 18px;
}

.job-card {
  display: grid;
  gap: 12px;
  background: var(--white);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 22px;
  align-items: start;
}

.community-hub {
  background: var(--paper-soft);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.community-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  box-shadow: none;
}

.community-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.feed-board {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(240px, 0.82fr);
  gap: 14px;
  margin-top: 18px;
}

.feed-column,
.news-column,
.action-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feed-column,
.news-column {
  padding: 18px;
}

.mini-heading {
  margin-bottom: 14px;
}

.feed-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.feed-item h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.meter {
  display: flex;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.meter span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 8px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
}

.meter span:first-child {
  background: var(--slate);
}

.meter span:last-child {
  background: var(--brass);
}

.news-link {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.news-link span {
  color: var(--brass-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-link strong {
  line-height: 1.26;
}

.publish-panel {
  padding: 26px;
}

.publish-panel p {
  margin: 16px 0 20px;
}

.article-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  background: var(--white);
}

.guest-section {
  padding: 46px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.guest-editorial-note {
  display: grid;
  gap: 6px;
  max-width: 880px;
  margin-bottom: 18px;
  border-left: 4px solid var(--brass);
  padding: 14px 16px;
  background: var(--white);
}

.guest-editorial-note p {
  margin: 0;
  color: var(--muted);
}

.guest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guest-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 241, 232, 0.78)),
    var(--white);
}

.guest-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.16;
}

.guest-card p {
  margin: 0;
  color: var(--muted);
}

.guest-byline {
  color: var(--ink-2);
  font-weight: 800;
}

.action-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.15fr);
  gap: 22px;
  align-items: start;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.action-band > div:first-child p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.action-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.sponsored-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, var(--brass), var(--slate));
  border-color: rgba(180, 138, 69, 0.45);
}

.article-icon {
  display: grid;
  min-height: 88px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--ink), var(--slate));
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.membership {
  align-items: start;
  background: var(--ink);
  color: var(--paper-soft);
}

.membership .eyebrow {
  color: #dec28f;
}

.membership-copy {
  max-width: 440px;
}

.membership-copy p {
  margin-top: 14px;
  color: rgba(245, 241, 232, 0.78);
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
}

.plan-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  box-shadow: none;
}

.featured-plan {
  border-color: var(--brass);
}

.price {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

li + li {
  margin-top: 6px;
}

.site-footer {
  padding: 26px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-credit {
  display: grid;
  gap: 2px;
  min-width: 190px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.footer-credit small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.action-modal {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
}

.action-modal::backdrop {
  background: rgba(19, 38, 32, 0.55);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 28px;
}

.modal-body h2 {
  margin-right: 42px;
}

.modal-body p {
  color: var(--muted);
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.profile-modal {
  display: grid;
  gap: 18px;
}

.profile-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.profile-heading h2 {
  margin: 0;
}

.profile-heading p,
.profile-summary {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.profile-grid section,
.profile-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper-soft);
}

.profile-grid h3,
.profile-section h3 {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.profile-grid p,
.profile-section p {
  margin: 0;
  color: var(--muted);
}

.form-status {
  margin: 0;
  border: 1px solid rgba(180, 138, 69, 0.35);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(180, 138, 69, 0.1);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--paper-soft);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1120px) {
  .workspace,
  .split-section,
  .action-band,
  .membership {
    grid-template-columns: 1fr;
    display: grid;
  }

  .intro-panel {
    position: static;
  }

  .intro-copy {
    min-height: 420px;
  }

  .membership-copy {
    max-width: 720px;
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .main-nav a,
  .main-nav .nav-action,
  .main-nav .nav-parent {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    padding: 8px 10px;
    background: var(--white);
    text-align: center;
  }

  .nav-group {
    flex: 0 0 auto;
  }

  .submenu {
    top: calc(100% + 6px);
    left: 0;
    min-width: 0;
    width: max-content;
    min-width: 170px;
  }

  .submenu a,
  .submenu button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .main-nav a:last-child,
  .main-nav .nav-action:last-child,
  .main-nav .nav-parent:last-child {
    border-bottom: 1px solid var(--line);
  }

  .finder-head,
  .section-heading,
  .result-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-grid,
  .lawyer-grid,
  .classified-grid,
  .posting-rules,
  .community-grid,
  .feed-board,
  .action-grid,
  .guest-grid,
  .plan-grid,
  .account-grid,
  .lawyer-profile-form {
    grid-template-columns: 1fr;
  }

  .lawyer-profile-form .full-span {
    grid-column: auto;
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .profile-heading {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .workspace,
  .section-band,
  .split-section,
  .community-hub,
  .action-band,
  .membership,
  .account-shell,
  .admin-shell {
    padding-inline: 14px;
  }

  .intro-copy {
    min-height: 350px;
    padding: 24px;
  }

  .trust-strip,
  .article-card {
    grid-template-columns: 1fr;
  }

  .finder {
    padding: 16px;
  }
}
