:root {
  color-scheme: light;
  --bg: #fff7fa;
  --surface: #ffffff;
  --surface-soft: #fff1f5;
  --primary: #e27f95;
  --primary-dark: #ec2165;
  --green: #ec2165;
  --blue-soft: #fde7ee;
  --text: #17202a;
  --muted: #667085;
  --border: #ffd3dd;
  --danger: #b9154e;
  --shadow: 0 18px 50px rgba(236, 33, 101, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 118px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .8rem; min-width: max-content; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: #fff; font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; color: #4a2330; font-weight: 650; }
.main-nav a { padding: .35rem .2rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .78rem 1rem;
  font-weight: 750;
  cursor: pointer;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(236, 33, 101, .12); }
.button--primary { background: var(--primary); color: #fff; }
.button--ghost { border-color: var(--border); color: var(--primary-dark); }
.button--danger { background: #fff1f5; color: var(--danger); border-color: #f4a3b4; }
.button--small { padding: .5rem .7rem; font-size: .9rem; }
.button.is-active { background: var(--primary-dark); color: #fff; }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: clamp(2rem, 6vw, 5rem) 0 2rem;
}
.hero__content, .hero__card, .info-card, .filter-panel, .job-section, .compliance-section, .form-preview, .admin-section, .page-shell, .detail-hero, .detail-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero__content { padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, #fff, #fff1f5); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.04em; margin: .4rem 0 1rem; }
.hero__lead { max-width: 780px; color: #5c2b3a; font-size: 1.08rem; }
.eyebrow { color: var(--green); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 .3rem; }
.hero__card { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; background: #ec2165; color: #fff; }
.check-steps { padding-left: 1.2rem; display: grid; gap: .8rem; }
.check-steps li { padding: .7rem; border-radius: 14px; background: rgba(255,255,255,.12); }

.search-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .75rem;
  margin-top: 1.8rem;
  padding: .9rem;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.search-panel--secondary {
  margin-top: 1rem;
  background: #fff7fa;
  border-style: dashed;
}
label { display: grid; gap: .35rem; font-weight: 700; color: #4a2330; }
label span { font-size: .84rem; color: var(--muted); }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: .78rem .85rem;
  min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }

.notice-banner {
  display: flex; gap: .8rem; align-items: flex-start;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid #f4a3b4;
  background: #fff1f5;
  color: #b9154e;
  border-radius: 18px;
}
.notice-banner strong { min-width: max-content; }
.community-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: .8rem;
  margin-top: 1.5rem;
}
.community-action {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 750;
}
.community-action span { color: var(--muted); font-size: .88rem; font-weight: 650; }
.community-action--primary { background: linear-gradient(135deg, var(--primary), var(--green)); color: #fff; border-color: transparent; }
.community-action--primary span { color: rgba(255,255,255,.86); }
.quick-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 2rem; }
.quick-links a, .tag-list li, .admin-grid span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: #4a2330;
  font-weight: 700;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.2rem 0;
}
.directory-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.directory-card {
  display: grid;
  gap: .55rem;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fff7fa);
  box-shadow: 0 10px 24px rgba(236, 33, 101, .08);
}
.directory-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(236, 33, 101, .13); }
.directory-card h2 { margin: .1rem 0 0; font-size: 1.12rem; }
.directory-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.job-index-page .home-premium-section, .job-search-page .home-premium-section { margin-top: 1.2rem; }

.content-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.filter-panel { position: sticky; top: 86px; padding: 1.2rem; display: grid; gap: .9rem; }
.view-toggle { display: flex; gap: .4rem; }
.job-section { padding: 1.2rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.job-list.list-mode { grid-template-columns: 1fr; }
.job-card {
  display: grid;
  gap: .75rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.job-card.premium { border-color: #e27f95; background: linear-gradient(180deg, #fff, #fff1f5); }
.job-card__header, .job-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.job-card h3 { margin: 0; font-size: 1.18rem; }
.company, .legal-mini { color: var(--muted); margin: 0; }
.legal-mini { font-size: .82rem; background: #fff7fa; border-radius: 12px; padding: .65rem; }
.badge { display: inline-flex; border-radius: 999px; padding: .35rem .65rem; font-weight: 800; font-size: .78rem; }
.badge--category { background: var(--blue-soft); color: var(--primary-dark); }
.badge--verified { background: #fff1f5; color: #b9154e; }
.badge--pending { background: #fff1f5; color: #b9154e; }
.job-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.job-meta div { background: #fff7fa; border-radius: 14px; padding: .65rem; }
.job-meta dt { font-size: .75rem; color: var(--muted); font-weight: 800; }
.job-meta dd { margin: .15rem 0 0; font-weight: 750; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.tag-list li { font-size: .78rem; padding: .32rem .55rem; }

.two-column, .mvp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.mvp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card, .compliance-section, .form-preview, .admin-section, .page-shell { padding: clamp(1.2rem, 3vw, 2rem); }
.info-card code { display: block; margin-top: .8rem; padding: .8rem; border-radius: 14px; background: #ec2165; color: #fff5f8; font-size: .86rem; overflow-x: auto; }
.clean-list { padding-left: 1.15rem; }
.policy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.policy-grid article { border: 1px solid var(--border); border-radius: 18px; padding: 1rem; background: #fffafd; }
.form-preview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; margin: 1.2rem 0; align-items: start; }
.moderation-form { display: grid; gap: .8rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; min-height: auto; }
#moderation-result { display: block; white-space: pre-wrap; border-radius: 14px; background: #fff7fa; padding: .9rem; border: 1px solid var(--border); min-height: 58px; }
.admin-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.api-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.api-grid article {
  border: 1px solid var(--border);
  background: #fffafd;
  border-radius: 18px;
  padding: 1rem;
}
code {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff7fa;
  padding: .12rem .35rem;
  font-size: .9em;
  color: var(--primary-dark);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  background: #ec2165;
  color: #fff5f8;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.page-shell { margin-top: 2rem; }
.detail-page { display: grid; gap: 1rem; }
.detail-hero { padding: 1.5rem; background: linear-gradient(135deg, #fff, #fff1f5); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.detail-grid article { box-shadow: none; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.policy-list { display: grid; gap: .8rem; padding-left: 1.2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; color: var(--muted); font-weight: 700; }
.breadcrumb a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb > * + *::before { content: '/'; margin-right: .45rem; color: #b77a8d; }
.seo-section, .landing-hero { margin: 1.2rem 0; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.faq-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.faq-list article { border: 1px solid var(--border); background: #fffafd; border-radius: 18px; padding: 1rem; }
.faq-list h3 { margin-top: 0; }
.menu-overview {
  margin: 1.2rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #fff1f5);
  box-shadow: var(--shadow);
}
.menu-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
}
.menu-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 1.1rem;
}
.menu-card--primary {
  background: #ec2165;
  color: #fff;
  border-color: #ec2165;
}
.menu-card h3 { margin-top: 0; }
.menu-card ul { display: grid; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.menu-card a { display: block; padding: .65rem .75rem; border-radius: 12px; background: #fff7fa; color: var(--primary-dark); font-weight: 800; }
.menu-card--primary a { background: rgba(255,255,255,.14); color: #fff; }
.product-table, .board-list, .support-form {
  display: grid;
  gap: .8rem;
  margin: 1rem 0;
}
.product-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr .75fr .8fr 1.25fr;
  gap: .75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.product-row--head { background: var(--primary-dark); color: #fff; font-weight: 850; }
.board-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff1f5);
  box-shadow: var(--shadow);
}
.board-header h1 { margin: .2rem 0; }
.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .8rem 0 1rem;
}
.board-tabs a {
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 850;
}
.board-tabs a.is-active { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.board-list article {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 1.1rem;
}
.board-list--compact article {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: .8rem;
  align-items: center;
}
.board-list h2 { margin: .45rem 0 .35rem; font-size: 1.12rem; }
.board-list--compact h2 { margin: 0; }
.support-form {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.auth-switch { margin: 1rem 0 0; color: var(--muted); font-weight: 700; }
.auth-switch a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.auth-login-page {
  max-width: 860px;
}
.auth-login-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: start;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid #ffd3dd;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff7fa);
  box-shadow: var(--shadow);
}
.auth-login-copy h1 {
  margin: .2rem 0 .7rem;
  color: #4a1027;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.07em;
}
.auth-login-copy p:last-child {
  margin: 0;
  color: #6b273d;
  font-weight: 750;
  line-height: 1.65;
}
.auth-login-form {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #ffd3dd;
  border-radius: 22px;
  background: #fff;
}
.auth-login-form label {
  display: grid;
  gap: .35rem;
  color: #4a2330;
  font-weight: 850;
}
.auth-login-form input {
  min-height: 48px;
  border-color: #ffd3dd;
  background: #fff7fa;
}
.auth-login-form output {
  min-height: 22px;
  color: #b9154e;
  font-weight: 800;
}
.auth-login-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  padding-top: .2rem;
}
.auth-login-links a {
  padding: .65rem .9rem;
  border-radius: 999px;
  background: #fff;
  color: #b9154e;
  border: 1px solid #ffd3dd;
  font-weight: 900;
}
.message-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; }
.message-panel {
  display: grid;
  gap: .9rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(236, 33, 101, .09);
}
.message-compose-form { position: sticky; top: 138px; }
.message-list { display: grid; gap: .85rem; }
.message-thread {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7fa);
}
.message-thread.is-unread { border-color: #f4a3b4; box-shadow: 0 10px 24px rgba(236, 33, 101, .12); }
.message-thread-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.message-thread-header h3 { margin: .35rem 0 0; font-size: 1.08rem; }
.message-thread-header time, .message-meta dt { color: var(--muted); font-size: .82rem; font-weight: 800; }
.message-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.message-meta div { padding: .65rem; border-radius: 12px; background: #fff7fa; }
.message-meta dd { margin: .15rem 0 0; font-weight: 800; }
.message-body { margin: 0; padding: .85rem; border-radius: 14px; background: #fff; border: 1px solid #ffd3dd; }
.message-replies { display: grid; gap: .6rem; padding-left: .8rem; border-left: 3px solid #f4a3b4; }
.message-replies h4 { margin: 0; }
.message-reply { display: grid; gap: .4rem; padding: .8rem; border-radius: 14px; background: #fff1f5; }
.message-reply header { display: flex; justify-content: space-between; gap: .7rem; color: var(--primary-dark); }
.message-reply p { margin: 0; }
.admin-message-reply-form { display: grid; gap: .65rem; padding-top: .7rem; border-top: 1px dashed var(--border); }
.home-header {
  background: #ec2165;
  color: #fff;
  border-bottom: 4px solid #b9154e;
}
.global-fixed-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 10px 28px rgba(185, 21, 78, .22);
}
.home-header__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(260px, 1fr) max-content;
  gap: 1rem;
  align-items: center;
}
.home-logo {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: .65rem;
  align-items: center;
}
.home-logo span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  font-weight: 950;
  letter-spacing: -.08em;
}
.home-logo strong { font-size: 1.45rem; line-height: 1; letter-spacing: -.06em; }
.home-logo small { color: rgba(255,255,255,.76); font-size: .73rem; }
.home-logo--image {
  display: flex;
  align-items: center;
  min-width: 0;
}
.home-logo--image img {
  display: block;
  width: min(210px, 42vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  max-width: 360px;
  border: 3px solid #b9154e;
  background: #fff;
}
.home-search input {
  border: 0;
  min-height: 36px;
  border-radius: 0;
  padding: .4rem .7rem;
}
.home-search button {
  border: 0;
  background: #fff;
  color: #ec2165;
  font-weight: 900;
  cursor: pointer;
}
.home-top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
  color: #ffe3ea;
  font-size: .82rem;
  font-weight: 750;
}
.home-main-nav {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.home-main-nav a {
  padding: .75rem .5rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.home-main {
  width: min(1180px, calc(100% - 1rem));
  padding-top: 1rem;
}
.home-portal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 210px;
  gap: 1rem;
  align-items: start;
}
.home-left-rail,
.home-right-rail {
  display: grid;
  gap: .7rem;
}
.home-ad-card,
.right-rail-banner,
.home-filter-block,
.home-premium-section {
  border: 1px solid #ffd3dd;
  background: #fff;
}
.home-ad-card {
  display: grid;
  gap: .25rem;
  min-height: 94px;
  padding: .85rem;
  position: relative;
  overflow: hidden;
}
.home-ad-card::after,
.right-rail-banner::after {
  content: '';
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.home-ad-card strong { font-size: 1.35rem; line-height: 1.08; letter-spacing: -.05em; }
.home-ad-card span { max-width: 150px; color: rgba(74, 35, 48, .72); font-size: .82rem; font-weight: 750; }
.home-ad-card em,
.right-rail-banner em {
  width: max-content;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #3b1020;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: .76rem;
  z-index: 1;
}
.home-ad-card--notice { background: linear-gradient(135deg, #fff1f5, #f4a3b4); color: #b9154e; }
.home-ad-card--partner { background: linear-gradient(135deg, #fff1f5, #f4a3b4); color: #b9154e; }
.home-ad-card--app { background: linear-gradient(135deg, #fff1f5, #e27f95); color: #b9154e; }
.home-link-panel { margin-top: 0; }
.home-center {
  display: grid;
  gap: 1rem;
}
.home-filter-block {
  padding: .85rem;
}
.home-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid #ffd3dd;
  padding-bottom: .6rem;
}
.home-section-title h1,
.home-section-title h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}
.home-section-title span,
.home-section-title a {
  color: var(--muted);
  font-weight: 850;
  font-size: .86rem;
}
.home-filter-group {
  display: grid;
  gap: .55rem;
  margin-top: .85rem;
}
.home-filter-group h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}
.home-filter-group p {
  margin: 0;
  padding: .65rem .7rem;
  border: 1px solid #ffd3dd;
  color: #b77a8d;
  font-size: .84rem;
}
.home-tab-grid {
  display: grid;
  border-top: 1px solid #ffd3dd;
  border-left: 1px solid #ffd3dd;
}
.home-tab-grid--regions { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.home-tab-grid--themes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.home-tab-grid a {
  display: grid;
  place-items: center;
  min-height: 39px;
  padding: .25rem;
  border-right: 1px solid #ffd3dd;
  border-bottom: 1px solid #ffd3dd;
  color: #4a2330;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}
.home-tab-grid a.is-active {
  background: #ec2165;
  color: #fff;
}
.home-premium-section {
  padding: .85rem;
}
.home-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.home-job-tile a {
  display: grid;
  min-height: 210px;
  align-content: space-between;
  padding: .9rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e27f95, #f4a3b4);
}
.home-job-tile a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 30%), linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.48));
}
.home-job-tile header,
.home-job-tile h3,
.home-job-tile p,
.home-job-tile footer { position: relative; z-index: 1; }
.home-job-tile header,
.home-job-tile footer {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
}
.home-job-tile header span,
.home-job-tile header b {
  padding: .25rem .5rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  font-size: .78rem;
  font-weight: 900;
}
.home-job-tile h3 {
  margin: 2rem 0 .4rem;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.06em;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.home-job-tile p { margin: 0; font-weight: 850; }
.home-job-tile footer { color: #ffe3ea; font-weight: 900; }
.home-job-tile footer small { color: rgba(255,255,255,.88); font-weight: 750; }
.home-job-tile--2 a { background: linear-gradient(135deg, #d94d78, #ffd3dd); }
.home-job-tile--3 a { background: linear-gradient(135deg, #e27f95, #f4a3b4); }
.home-job-tile--4 a { background: linear-gradient(135deg, #ec2165, #f7bac8); }
.right-rail-banner {
  display: grid;
  align-content: space-between;
  gap: .45rem;
  min-height: 150px;
  padding: .9rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.right-rail-banner strong {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: -.05em;
}
.right-rail-banner span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: rgba(255,255,255,.86);
}
.right-rail-banner--pink { background: linear-gradient(135deg, #be185d, #f9a8d4); }
.right-rail-banner--cream { background: linear-gradient(135deg, #b9154e, #f4a3b4); }
.right-rail-banner--blue { background: linear-gradient(135deg, #d94d78, #ffd3dd); }
.right-rail-banner--dark { background: linear-gradient(135deg, #5b1230, #e27f95); }
.job-portal {
  display: grid;
  gap: 1rem;
}
.home-main-nav {
  width: min(980px, calc(100% - 2rem));
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.home-search {
  max-width: 480px;
}
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 1rem;
  align-items: stretch;
  border: 1px solid #ffd3dd;
  background: linear-gradient(135deg, #ffffff, #fff1f5);
  padding: 1rem;
}
.portal-hero-copy {
  display: grid;
  align-content: center;
  gap: .75rem;
  min-height: 260px;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, #e27f95, #e27f95);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.portal-hero-copy::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.portal-hero-copy .eyebrow { color: #ffe3ea; }
.portal-hero-copy h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.07em;
}
.portal-hero-copy p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-weight: 650;
}
.portal-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.portal-stats span {
  display: grid;
  min-width: 118px;
  padding: .65rem .8rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 800;
}
.portal-stats strong { color: #fff; font-size: 1.25rem; }
.portal-quick-search {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid #ffd3dd;
  background: #fff;
}
.portal-quick-search > strong {
  padding-bottom: .55rem;
  border-bottom: 2px solid #e27f95;
  color: #b9154e;
  font-size: 1.2rem;
}
.portal-quick-search label { gap: .2rem; }
.portal-quick-search select,
.portal-quick-search input { min-height: 40px; border-radius: 6px; }
.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.portal-action-grid a {
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  gap: .15rem .75rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid #ffd3dd;
  background: #fff;
}
.portal-action-grid span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fde7ee;
  color: #ec2165;
  font-size: .72rem;
  font-weight: 950;
}
.portal-action-grid strong { color: #17202a; font-size: 1.05rem; }
.portal-action-grid small { color: var(--muted); font-weight: 700; }
.portal-side-menu,
.safety-center-card,
.portal-talk-section,
.portal-search-board {
  border: 1px solid #ffd3dd;
  background: #fff;
}
.portal-side-menu { display: grid; padding: .8rem; gap: .45rem; }
.portal-side-menu h2,
.safety-center-card h2 { margin: 0 0 .25rem; font-size: 1rem; }
.portal-side-menu a {
  display: flex;
  justify-content: space-between;
  padding: .52rem .62rem;
  background: #fff7fa;
  color: #4a2330;
  font-weight: 800;
  font-size: .84rem;
}
.portal-side-menu a::after { content: '›'; color: #b77a8d; }
.portal-side-menu--company h2 { color: #e27f95; }
.portal-search-board {
  display: grid;
  gap: .9rem;
  padding: .85rem;
}
.portal-link-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .45rem;
}
.portal-link-panel h2 { margin: 0; font-size: 1.05rem; }
.portal-link-panel header a { color: #b77a8d; font-size: .8rem; font-weight: 850; }
.home-tab-grid--categories,
.home-tab-grid--conditions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.portal-premium-section .home-premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-job-tile a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: .75rem;
  min-height: 160px;
  align-content: stretch;
  padding: .9rem;
  color: #17202a;
  background: #fff;
  border: 1px solid #ffd3dd;
}
.home-job-tile a::before { display: none; }
.home-job-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fde7ee;
  color: #ec2165;
  font-weight: 950;
  font-size: 1.35rem;
}
.home-job-content { display: grid; gap: .45rem; min-width: 0; }
.home-job-tile header span,
.home-job-tile header b {
  background: #fff1f5;
  border-color: #ffd3dd;
  color: #b9154e;
}
.home-job-tile h3 {
  margin: .2rem 0 0;
  color: #17202a;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.03em;
  text-shadow: none;
}
.home-job-tile p { color: #667085; font-size: .9rem; }
.home-job-tile footer { color: #e27f95; align-items: start; flex-direction: column; }
.home-job-tile footer small { color: #667085; }
.portal-talk-section { padding: .85rem; }
.portal-talk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.portal-talk-grid article {
  border: 1px solid #ffd3dd;
  background: #fffafd;
  padding: .8rem;
}
.portal-talk-grid h3 { margin: 0 0 .5rem; font-size: .98rem; }
.portal-talk-grid ul { display: grid; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.portal-talk-grid li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .4rem; font-size: .82rem; }
.portal-talk-grid a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-talk-grid time { color: #b77a8d; }
.safety-center-card { display: grid; gap: .6rem; padding: .9rem; }
.safety-center-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.safety-center-card a { display: block; padding: .55rem .65rem; background: #fff1f5; color: #b9154e; font-weight: 850; }
.community-hub {
  max-width: 1180px;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
}
.community-hub-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem 0 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ffd3dd;
}
.community-hub-title h1 {
  margin: .1rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -.04em;
}
.community-hub-title p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.community-hub-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.community-sidebar {
  display: grid;
  gap: .75rem;
}
.sidebar-link-panel,
.board-preview-card {
  border: 1px solid #ffd3dd;
  background: #fff;
}
.sidebar-link-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: .55rem .75rem;
  color: #fff;
  font-weight: 850;
}
.member-access-card {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid #ffd3dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7fa);
  box-shadow: 0 12px 28px rgba(236, 33, 101, .08);
}
.member-access-card h2 {
  margin: -.2rem 0 0;
  color: #b9154e;
  font-size: 1.1rem;
  letter-spacing: -.04em;
}
.member-access-card p {
  margin: 0;
  color: #5f293b;
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.55;
}
.member-access-card p strong { color: #4a1027; }
.member-access-card p span { color: #ec2165; font-weight: 900; }
.member-access-card nav {
  display: grid;
  gap: .4rem;
}
.member-access-card nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: .55rem .7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ffd3dd;
  color: #4a2330;
  font-size: .86rem;
  font-weight: 900;
}
.member-access-card nav a::after {
  content: '›';
  color: #ec2165;
  font-size: 1.05rem;
}
.member-access-card .logout-button {
  width: 100%;
  justify-content: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar-banner {
  display: grid;
  gap: .2rem;
  min-height: 94px;
  padding: .9rem;
  border: 1px solid #ffd3dd;
  overflow: hidden;
  position: relative;
}
.sidebar-banner::after {
  content: '';
  position: absolute;
  right: -24px;
  bottom: -22px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}
.sidebar-banner strong { font-size: 1.25rem; line-height: 1.15; letter-spacing: -.04em; }
.sidebar-banner span { max-width: 150px; color: rgba(74, 35, 48, .72); font-size: .82rem; font-weight: 700; }
.sidebar-banner em {
  width: max-content;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #3b1020;
  color: #fff;
  font-style: normal;
  font-weight: 850;
  font-size: .78rem;
}
.sidebar-banner--blue { background: linear-gradient(135deg, #fff1f5, #f4a3b4); color: #b9154e; }
.sidebar-banner--sky { background: linear-gradient(135deg, #fff1f5, #ffd3dd); color: #d94d78; }
.sidebar-banner--yellow { background: linear-gradient(135deg, #fff1f5, #e27f95); color: #b9154e; }
.sidebar-link-panel header { background: #ec2165; }
.sidebar-link-panel--green header { background: #ec2165; }
.sidebar-link-panel--dark header { background: #6b1236; }
.sidebar-link-panel div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .5rem;
  padding: .75rem;
}
.sidebar-link-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  min-width: 0;
  font-size: .78rem;
  color: #4a2330;
}
.sidebar-link-panel a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-link-panel b,
.new-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #ec2165;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}
.board-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
}
.board-preview-card {
  min-width: 0;
}
.board-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .58rem .75rem;
  border-bottom: 1px solid #ffd3dd;
  background: #fff7fa;
}
.board-preview-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.board-preview-header a {
  color: #b77a8d;
  font-size: .78rem;
  font-weight: 800;
}
.board-post-list {
  display: grid;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: .72rem .75rem .85rem;
}
.board-post-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) max-content;
  gap: .35rem;
  align-items: center;
  min-height: 23px;
  color: #4a2330;
  font-size: .84rem;
}
.board-post-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-post-list time {
  color: #b77a8d;
  font-size: .78rem;
  white-space: nowrap;
}
.post-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a3b4;
  justify-self: center;
}
dialog { max-width: 480px; border: 0; border-radius: 22px; box-shadow: var(--shadow); padding: 1.4rem; }
dialog::backdrop { background: rgba(59, 16, 32, .45); }

.public-entry-page {
  display: grid;
  gap: 1.3rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.1rem, 4vw, 2.8rem);
}
.public-entry-hero {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 5vw, 3.4rem);
  border: 1px solid #ffd3dd;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff7fa, #fde7ee 62%, #fff);
  box-shadow: var(--shadow);
}
.public-entry-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #4a1027;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.07em;
}
.public-entry-hero p {
  max-width: 720px;
  margin: 0;
  color: #6b273d;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.7;
}
.public-entry-actions,
.login-required-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
}
.public-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.public-entry-grid article,
.login-required-card {
  padding: 1.25rem;
  border: 1px solid #ffd3dd;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(236, 33, 101, .08);
}
.public-entry-grid h2,
.login-required-card h1 {
  margin: 0 0 .5rem;
  color: #b9154e;
  letter-spacing: -.05em;
}
.public-entry-grid p,
.login-required-card p {
  margin: 0;
  color: #5f293b;
  font-weight: 700;
  line-height: 1.65;
}
.public-entry-grid a { display: inline-block; margin-top: .7rem; color: #ec2165; font-weight: 900; }
.login-required-body {
  padding-top: 0;
  min-height: 100vh;
  background: #fff7fa;
}
.login-required-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  background: radial-gradient(circle at 50% 0%, #fff 0, #fff1f5 52%, #fde7ee 100%);
}
.login-required-card {
  width: min(520px, 100%);
  display: grid;
  gap: 1rem;
  text-align: center;
}
.login-required-actions { justify-content: center; }
.login-required-note { color: #8a3b55 !important; font-size: .9rem; }

.age-gate-body {
  padding-top: 0;
  min-height: 100vh;
  background: #f4f6fb;
}
.age-gate-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  background: radial-gradient(circle at 50% 0%, #fff 0, #f8fafc 42%, #eef2f7 100%);
}
.age-gate-card {
  width: min(440px, 100%);
  display: grid;
  justify-items: center;
  gap: 1.05rem;
  padding: clamp(1.35rem, 5vw, 2.4rem);
  border: 1px solid #d8dee9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
  text-align: center;
}
.age-icon {
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(124px, 32vw, 170px);
  height: clamp(124px, 32vw, 170px);
  border: 10px solid #f43f5e;
  border-radius: 50%;
  color: #111827;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff, 0 10px 28px rgba(244, 63, 94, .18);
}
.age-icon strong { font-size: clamp(3.2rem, 11vw, 5.4rem); line-height: .86; letter-spacing: -.08em; }
.age-icon span { margin-top: .25rem; color: #475569; font-weight: 900; }
.age-icon--phone { border-color: #2563eb; }
.age-icon--phone strong { font-size: clamp(1.4rem, 6vw, 2.1rem); letter-spacing: -.05em; }
.age-gate-card h1 { margin: 0; font-size: clamp(1.45rem, 5vw, 2rem); letter-spacing: -.05em; }
.age-gate-notice {
  display: grid;
  gap: .18rem;
  margin: 0;
  color: #334155;
  font-size: clamp(.98rem, 3.2vw, 1.08rem);
  font-weight: 750;
  line-height: 1.62;
}
.age-gate-notice span { display: block; }
.age-gate-actions,
.guest-age-form {
  width: min(340px, 100%);
  display: grid;
  gap: .7rem;
}
.age-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: .85rem 1rem;
  color: #111827;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.age-button--exit { background: #d1d5db; color: #111827; }
.age-button--login { background: #facc15; color: #271900; }
.age-button--guest { background: #2563eb; color: #fff; }
.age-gate-help,
.age-gate-back { margin: 0; color: #64748b; font-size: .86rem; font-weight: 700; }
.age-gate-back { text-decoration: underline; text-underline-offset: 4px; }
.guest-age-form label { text-align: left; }
.guest-age-form input { border-color: #cbd5e1; background: #f8fafc; }
.guest-age-form output { min-height: 22px; color: #2563eb; font-weight: 850; }

@media (max-width: 980px) {
  body { padding-top: 178px; }
  .public-entry-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .content-grid, .two-column, .mvp-grid, .form-preview, .detail-grid, .community-actions, .menu-grid, .community-hub-layout, .home-portal-layout, .home-header__inner { grid-template-columns: 1fr; }
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { position: static; }
  .policy-grid, .api-grid, .faq-list, .board-preview-grid, .home-premium-grid, .directory-grid, .directory-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-main-nav { width: min(100% - 1rem, 760px); }
  .home-header__inner { gap: .55rem; padding: .55rem 0; }
  .home-tab-grid--regions, .home-tab-grid--themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-row { grid-template-columns: 1fr 1fr; }
  .board-header { align-items: flex-start; flex-direction: column; }
  .board-list--compact article { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-top: 186px; }
  .public-entry-actions,
  .login-required-actions { display: grid; grid-template-columns: 1fr; }
  .public-entry-page { padding: 1rem; }
  main { width: min(100% - 1rem, 1180px); }
  .search-panel, .job-list, .job-meta, .policy-grid, .api-grid, .faq-list, .product-row, .board-preview-grid, .home-premium-grid, .home-tab-grid--regions, .home-tab-grid--themes, .directory-grid, .directory-grid--featured { grid-template-columns: 1fr; }
  .notice-banner, .community-hub-title { flex-direction: column; align-items: flex-start; }
  .board-post-list li { grid-template-columns: 16px minmax(0, 1fr); }
  .board-post-list time { grid-column: 2; }
  .home-header__inner { width: min(100% - 1rem, 1180px); }
  .home-logo { grid-template-columns: 40px 1fr; }
  .home-logo span { width: 38px; height: 38px; }
  .home-logo strong { font-size: 1.18rem; }
  .home-logo--image img { width: min(190px, 64vw); max-height: 48px; }
  .home-top-links { justify-content: flex-start; gap: .45rem; font-size: .76rem; }
  .home-search { max-width: none; }
  .home-main-nav { display: flex; width: 100%; overflow-x: auto; padding: 0 .5rem; white-space: nowrap; scrollbar-width: none; }
  .home-main-nav::-webkit-scrollbar { display: none; }
  .home-main-nav a { flex: 0 0 auto; padding: .62rem .82rem; font-size: .92rem; }
  .home-section-title { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .site-header .button { width: auto; }
}

/* Final polish: stable top navigation and community board UI */
.home-main-nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(.22rem, .9vw, .72rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  white-space: nowrap;
  text-align: center;
}
.home-main-nav::-webkit-scrollbar { display: none; }
.home-main-nav a {
  flex: 0 0 auto;
  padding: .7rem clamp(.52rem, 1.1vw, .95rem);
  border-radius: 999px;
  font-size: clamp(.9rem, 1vw, 1.02rem);
  line-height: 1;
}
.home-main-nav a:hover { background: rgba(255,255,255,.14); }

.board-toolbar,
.community-form,
.permission-panel,
.post-detail,
.comments-section,
.post-neighbor,
.popular-posts,
.community-latest-posts {
  margin: 1rem 0;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(236, 33, 101, .09);
}
.board-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px max-content;
  gap: .75rem;
  align-items: end;
}
.board-toolbar--compact {
  width: min(760px, 100%);
  margin: .8rem 0 0;
  padding: .75rem;
  grid-template-columns: 130px minmax(160px, 1fr) max-content 150px;
  justify-items: stretch;
  box-shadow: none;
  background: #fff7fa;
}
.board-toolbar--compact label { gap: .25rem; }
.board-toolbar--compact label span { font-size: .76rem; font-weight: 900; color: #7b2742; }
.board-toolbar--compact input,
.board-toolbar--compact select { min-height: 38px; padding: .45rem .6rem; border-radius: 10px; font-size: .9rem; }
.board-toolbar--compact .button { min-height: 38px; align-self: end; }
.board-toolbar--compact .sort-field { margin-left: .25rem; }
.board-table {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
}
.board-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px 72px 76px 160px;
  gap: .75rem;
  align-items: center;
  min-height: 62px;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.board-row--head {
  min-height: auto;
  background: #ec2165;
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
}
.board-row h2 { min-width: 0; margin: 0; font-size: 1rem; }
.board-row h2 a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.board-row h2 small { display: inline-block; margin-left: .45rem; color: #ec2165; font-size: .78rem; font-weight: 900; }
.board-comment-count { color: #b9154e; font-weight: 900; }
.board-row.is-pinned { border-color: #e27f95; background: #fff1f5; }
.popular-post-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.popular-post-list li {
  display: grid;
  grid-template-columns: 34px 128px minmax(0, 1fr) 96px 84px 84px 150px;
  gap: .55rem;
  align-items: center;
  min-height: 48px;
  padding: .65rem .75rem;
  border: 1px solid #ffd3dd;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fff7fa);
  color: #6b273d;
  font-size: .88rem;
  font-weight: 760;
}
.popular-post-list--latest li { grid-template-columns: 128px minmax(0, 1fr) 96px 84px 150px; }
.popular-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ec2165;
  color: #fff;
  font-weight: 950;
}
.popular-board {
  color: #b9154e;
  font-weight: 950;
  white-space: nowrap;
}
.popular-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4a1027;
  font-weight: 950;
}
.popular-author { color: #7b2742; }
.popular-post-list time { color: var(--muted); white-space: nowrap; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1.2rem 0; }
.pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
}
.pagination a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { padding: 1.2rem; border: 1px dashed var(--border); border-radius: 16px; background: #fff7fa; color: var(--muted); text-align: center; }

.post-detail { display: grid; gap: 1rem; }
.post-detail-header { display: grid; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.post-detail-header h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.post-detail-header dl { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0; color: var(--muted); }
.post-detail-header div { display: flex; gap: .35rem; }
.post-detail-header dt { font-weight: 850; color: #4a2330; }
.post-content { min-height: 180px; padding: .5rem 0; font-size: 1.02rem; }
.post-content p { margin: .5rem 0; }
.post-attachments h2,
.comments-section h2 { margin: 0; }
.post-attachment-grid,
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.post-attachment,
.upload-preview-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff7fa;
}
.post-image,
.post-video,
.upload-preview-item img,
.upload-preview-item video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #3b1020;
}
.post-attachment figcaption,
.upload-preview-item span { display: block; padding: .55rem .7rem; color: var(--muted); font-size: .85rem; }
.post-actions,
.form-actions,
.comment-actions,
.board-header-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.post-neighbor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.post-neighbor a,
.post-neighbor span { display: grid; gap: .25rem; padding: .8rem; border-radius: 14px; background: #fff7fa; color: var(--muted); }
.post-neighbor strong { color: var(--primary-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.comment-list,
.reply-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.comment-item { padding: .85rem; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.comment-item header { display: flex; justify-content: space-between; gap: .7rem; color: var(--muted); font-size: .86rem; }
.comment-item header strong { color: #17202a; }
.comment-item p { margin: .55rem 0; }
.comment-item--reply { margin-left: 1.2rem; background: #fff7fa; }
.comment-form { display: grid; gap: .75rem; margin-top: 1rem; }
.form-help { margin: -.2rem 0 .2rem; color: var(--muted); font-size: .9rem; }

.permission-panel { overflow-x: auto; }
.permission-grid {
  display: grid;
  grid-template-columns: 160px repeat(7, minmax(120px, 1fr));
  gap: .55rem;
  align-items: stretch;
  min-width: 980px;
  margin: .55rem 0;
  border: 0;
  padding: 0;
}
.permission-grid legend { font-weight: 900; padding: .8rem .6rem; }
.permission-grid--head { padding: .65rem; border-radius: 14px; background: #ec2165; color: #fff; font-size: .84rem; font-weight: 850; }
.permission-grid label { gap: .25rem; font-size: .78rem; }
.permission-grid select { min-height: 112px; padding: .45rem; border-radius: 10px; }
.permission-grid label span { color: #4a2330; }

@media (max-width: 980px) {
  .home-main-nav { justify-content: flex-start; width: 100%; padding: 0 .75rem; }
  .board-toolbar { grid-template-columns: 1fr; }
  .board-toolbar--compact { grid-template-columns: 130px minmax(0, 1fr) max-content; }
  .board-toolbar--compact .sort-field { grid-column: 1 / -1; margin-left: 0; }
  .board-row { grid-template-columns: 92px minmax(0, 1fr) 82px 72px; }
  .board-row--head span:nth-child(5),
  .board-row--head span:nth-child(6),
  .board-row > span:nth-of-type(4),
  .board-row time { display: none; }
  .popular-post-list li,
  .popular-post-list--latest li { grid-template-columns: 34px minmax(0, 1fr) 78px; }
  .popular-post-list--latest li { grid-template-columns: minmax(0, 1fr) 78px; }
  .popular-board,
  .popular-author,
  .popular-post-list span:nth-last-of-type(2),
  .popular-post-list time { display: none; }
  .post-neighbor,
  .post-attachment-grid,
  .upload-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .board-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
  .board-tabs::-webkit-scrollbar { display: none; }
  .board-tabs a { flex: 0 0 auto; }
  .board-toolbar--compact { grid-template-columns: 1fr 1fr; }
  .board-toolbar--compact input,
  .board-toolbar--compact .button,
  .board-toolbar--compact .sort-field { grid-column: 1 / -1; width: 100%; }
  .board-row { grid-template-columns: 76px minmax(0, 1fr); padding: .75rem; }
  .board-row--head { display: none; }
  .board-row > span:nth-of-type(2),
  .board-row > span:nth-of-type(3) { display: none; }
  .popular-post-list li,
  .popular-post-list--latest li { grid-template-columns: 28px minmax(0, 1fr); }
  .popular-post-list--latest li { grid-template-columns: minmax(0, 1fr); }
  .popular-post-list li > span:not(.popular-rank),
  .popular-post-list li time { display: none; }
  .post-actions .button,
  .form-actions .button,
  .comment-form .button,
  .board-header-actions .button { width: 100%; }
  .comment-item--reply { margin-left: .4rem; }
}

@media (max-width: 980px) {
  .message-layout { grid-template-columns: 1fr; }
  .message-compose-form { position: static; }
}
@media (max-width: 640px) {
  .message-thread-header,
  .message-reply header { flex-direction: column; align-items: flex-start; }
  .message-meta { grid-template-columns: 1fr; }
}

/* Final operations UI: company approvals, free jobs, paid ads */
.badge--danger { background: #fff1f5; color: #b9154e; }
.notice-text {
  margin: .55rem 0 0;
  padding: .65rem .75rem;
  border-radius: 12px;
  background: #fff1f5;
  color: #b9154e;
  font-weight: 700;
}
.job-note {
  margin: .75rem 0 0;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: #fff7fa;
  color: var(--muted);
  font-weight: 700;
}
.company-signup-fields {
  display: grid;
  gap: .75rem;
  margin: .4rem 0;
  padding: 1rem;
  border: 1px solid #ffd3dd;
  border-radius: 18px;
  background: #fff7fa;
}
.company-signup-fields legend { padding: 0 .35rem; color: var(--primary-dark); font-weight: 900; }
.company-signup-fields.is-hidden { display: none; }
.form-hint { margin: 0; color: var(--muted); font-size: .9rem; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.count-card,
.status-card { display: grid; gap: .45rem; }
.count-card span { color: var(--muted); font-weight: 850; }
.count-card strong { color: var(--primary-dark); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.admin-menu-grid a {
  display: grid;
  gap: .4rem;
  min-height: 132px;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(236, 33, 101, .08);
}
.admin-menu-grid strong { font-size: 1.08rem; color: var(--primary-dark); }
.admin-menu-grid span { color: var(--muted); font-weight: 700; }
.admin-list,
.company-job-list { display: grid; gap: .85rem; }
.admin-row,
.company-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
.admin-row p,
.company-job-card p { margin: .25rem 0 0; color: var(--muted); }
.admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; align-items: center; }
.admin-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .35rem; }
.company-job-card { align-items: start; grid-template-columns: 1fr; }
.company-job-card header { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.company-job-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin: .75rem 0 0;
}
.company-job-card div { padding: .65rem; border-radius: 12px; background: #fff7fa; }
.company-job-card dt { color: var(--muted); font-size: .78rem; font-weight: 850; }
.company-job-card dd { margin: .1rem 0 0; font-weight: 800; }
.button.is-disabled,
.button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.paid-ad-section,
.free-job-section {
  padding: .85rem;
  border: 1px solid #ffd3dd;
  background: #fff;
}
.paid-ad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}
.paid-ad-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: .15rem .65rem;
  min-height: 112px;
  padding: .8rem;
  border: 1px solid #ffd3dd;
  background: linear-gradient(180deg, #fff, #fff7fa);
}
.paid-ad-card figure {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fde7ee;
  color: #ec2165;
  font-weight: 950;
  font-size: 1.25rem;
}
.paid-ad-card img { width: 100%; height: 100%; object-fit: cover; }
.paid-ad-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #17202a; }
.paid-ad-card em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-style: normal; font-size: .86rem; font-weight: 800; }
.paid-ad-card small { color: #667085; font-weight: 700; }
.paid-ad-card b { color: var(--primary); font-size: .86rem; }
.paid-ad-card--empty { grid-template-columns: 1fr; align-content: center; text-align: center; color: var(--muted); }
.free-job-list { display: grid; border-top: 1px solid #ffd3dd; }
.free-job-line {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) .8fr .8fr .7fr;
  gap: .7rem;
  align-items: center;
  min-height: 44px;
  padding: .65rem .35rem;
  border-bottom: 1px solid #ffd3dd;
  color: #4a2330;
  font-size: .92rem;
}
.free-job-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #17202a; }
.free-job-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 700; }
.auth-form output,
.support-form output { display: block; margin-top: .5rem; color: var(--primary-dark); font-weight: 800; white-space: pre-wrap; }

@media (max-width: 980px) {
  .dashboard-grid,
  .admin-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paid-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-job-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dashboard-grid,
  .admin-menu-grid,
  .paid-ad-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-row-actions { justify-content: stretch; }
  .admin-row-actions .button { width: 100%; }
  .company-job-card header { flex-direction: column; align-items: flex-start; }
  .company-job-card dl,
  .free-job-line { grid-template-columns: 1fr; }
  .paid-ad-card { min-height: 96px; }
}
