:root {
  color-scheme: light;
  --primary: #d97745;
  --primary-deep: #bc6436;
  --primary-soft: #f8e0cf;
  --primary-ink: #fffaf6;
  --background: #f6efe7;
  --background-soft: #fffaf5;
  --foreground: #243244;
  --foreground-soft: #5f6c7a;
  --foreground-muted: #8290a0;
  --surface: #ffffff;
  --surface-soft: #fcf6f0;
  --surface-alt: #fff8f2;
  --border: #eadccf;
  --border-strong: #dcc8b6;
  --shadow-sm: 0 12px 28px rgba(36, 50, 68, 0.06);
  --shadow-md: 0 20px 40px rgba(36, 50, 68, 0.1);
  --shadow-lg: 0 30px 70px rgba(36, 50, 68, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
  --header-height: 84px;
  --status-lost: #dc2626;
  --status-lost-bg: #fee2e2;
  --status-sighted: #c67a10;
  --status-sighted-bg: #fdf0c8;
  --status-shelter: #1f9d55;
  --status-shelter-bg: #dcfce7;

  --status-roadkill: #374151;

  --status-roadkill-bg: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(217, 119, 69, 0.09), transparent 30%),
    radial-gradient(circle at top right, rgba(247, 211, 184, 0.5), transparent 26%),
    linear-gradient(180deg, #fffaf6 0%, var(--background) 100%);
  color: var(--foreground);
  font-family: "Pretendard Variable", "Pretendard", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(234, 220, 207, 0.72);
  background: rgba(255, 250, 245, 0.86);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(217, 119, 69, 0.24);
  flex-shrink: 0;
}

.brand-title {
  display: block;
  font-size: 1.1rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-title span {
  color: var(--primary);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--foreground-muted);
  font-size: 0.8rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-action,
.primary-button,
.secondary-button,
.back-button,
.detail-link {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-action:hover,
.primary-button:hover,
.secondary-button:hover,
.back-button:hover,
.detail-link:hover {
  transform: translateY(-1px);
}

.header-action {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 69, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.header-action.is-secondary {
  background: rgba(217, 119, 69, 0.1);
  color: var(--primary-deep);
}

.page-main {
  padding-bottom: 96px;
}

.hero-shell {
  padding: 26px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  padding: 30px 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 69, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 242, 0.92));
  border: 1px solid rgba(217, 119, 69, 0.14);
  box-shadow: var(--shadow-sm);
}

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow {
  background: rgba(217, 119, 69, 0.12);
  color: var(--primary-deep);
}

.section-eyebrow {
  padding: 0;
  min-height: auto;
  background: transparent;
  color: var(--primary);
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(2.05rem, 3.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-title span {
  color: var(--primary-deep);
}

.hero-description,
.hero-support-note,
.panel-sub,
.panel-note,
.filter-panel-copy,
.results-note,
.footer-summary,
.detail-section-box p,
.detail-panel-note {
  color: var(--foreground-soft);
  line-height: 1.75;
}

.hero-description {
  margin: 18px 0 0;
  font-size: 1rem;
}

.hero-support-note {
  margin: 16px 0 0;
  max-width: 650px;
  font-size: 0.92rem;
}

.hero-stats {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(234, 220, 207, 0.8);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-stat strong {
  font-size: 1.18rem;
  font-weight: 800;
}

.hero-stat span {
  color: var(--foreground-muted);
  font-size: 0.84rem;
}

.hero-stat.is-lost strong {
  color: var(--status-lost);
}

.hero-stat.is-sighted strong {
  color: var(--status-sighted);
}

.hero-stat.is-shelter strong {
  color: var(--status-shelter);
}

.stat-divider {
  width: 1px;
  height: 18px;
  background: rgba(130, 144, 160, 0.24);
}

.search-panel,
.filter-panel,
.detail-panel,
.detail-data-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 220, 207, 0.86);
  box-shadow: var(--shadow-sm);
}

.search-panel {
  padding: 20px 24px;
  align-self: stretch;
}

.search-panel-top {
  display: grid;
  gap: 14px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(246, 239, 231, 0.88);
}

.mode-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.mode-chip.is-active {
  background: var(--surface);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.search-panel-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.search-panel-form .filter-panel-body {
  margin-top: 0;
  align-items: center;
}

.search-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.search-field {
  min-width: 0;
}

.search-submit-button {
  min-height: 54px;
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 9px;
}

.field-inline {
  min-width: 190px;
}

.field-label {
  color: var(--foreground-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.search-input-row {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--foreground-muted);
  font-size: 1.1rem;
}

.text-input,
.select-input,
.file-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.text-input {
  min-height: 54px;
  padding: 0 18px 0 48px;
  font-size: 0.98rem;
}

.select-input {
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.file-input {
  padding: 10px 12px;
}

.file-input::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(217, 119, 69, 0.12);
  color: var(--primary-deep);
  font-weight: 700;
  cursor: pointer;
}

.text-input:focus,
.select-input:focus,
.file-input:focus {
  border-color: rgba(217, 119, 69, 0.56);
  box-shadow: 0 0 0 4px rgba(217, 119, 69, 0.12);
}

.panel-title {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.panel-sub,
.panel-note {
  margin: 0;
  font-size: 0.9rem;
}

.upload-dropzone {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(circle at top, rgba(217, 119, 69, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 242, 0.86), rgba(255, 255, 255, 0.96));
}

.upload-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 69, 0.12);
  color: var(--primary);
  font-size: 1.7rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: var(--primary-ink);
  box-shadow: 0 16px 30px rgba(217, 119, 69, 0.22);
}

.secondary-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.helper-box {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8ed;
  border: 1px solid #f2dfbf;
  color: #866236;
  font-size: 0.84rem;
  line-height: 1.7;
}

.results-section {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.filter-panel {
  padding: 22px 24px;
}

.filter-panel.is-compact .filter-panel-body {
  margin-top: 0;
  align-items: center;
}

.filter-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.filter-panel-title {
  margin: 6px 0 0;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.filter-panel-copy {
  max-width: 420px;
  margin: 0;
  font-size: 0.88rem;
  text-align: right;
}

.filter-panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group-status {
  flex: 1 1 auto;
}

.filter-label {
  color: var(--foreground-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(246, 239, 231, 0.9);
  color: var(--foreground-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.chip input:checked + .chip-all {
  background: var(--foreground);
  color: white;
}

.chip input:checked + .chip-lost {
  background: var(--status-lost-bg);
  color: var(--status-lost);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.chip input:checked + .chip-sighted {
  background: var(--status-sighted-bg);
  color: var(--status-sighted);
  box-shadow: inset 0 0 0 1px rgba(198, 122, 16, 0.18);
}

.chip input:checked + .chip-shelter {
  background: var(--status-shelter-bg);
  color: var(--status-shelter);
  box-shadow: inset 0 0 0 1px rgba(31, 157, 85, 0.18);
}



.chip input:checked + .chip-roadkill {

  background: var(--status-roadkill-bg);

  color: var(--status-roadkill);

  box-shadow: inset 0 0 0 1px rgba(55, 65, 81, 0.18);

}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.results-copy {
  display: grid;
  gap: 10px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.tag-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(217, 119, 69, 0.1);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-tag .material-symbols-outlined {
  font-size: 0.95rem;
}

.results-note {
  margin: 0;
  font-size: 0.88rem;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.results-actions-form {
  display: inline-flex;
  align-items: end;
  gap: 10px;
}

.results-select {
  display: grid;
  gap: 8px;
  color: var(--foreground-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.limit-select {
  min-width: 112px;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pet-card {
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(234, 220, 207, 0.9);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pet-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 119, 69, 0.12), rgba(36, 50, 68, 0.08));
}

.pet-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pet-card:hover .pet-card-media img {
  transform: scale(1.05);
}

.pet-image-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(217, 119, 69, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(248, 224, 207, 0.86));
  text-align: center;
}

.pet-image-empty-inner {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.pet-image-empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 69, 0.12);
  color: var(--primary);
  font-size: 24px;
}

.pet-image-empty-label {
  color: var(--foreground);
  font-size: 0.96rem;
  font-weight: 800;
}

.pet-image-empty-note {
  color: var(--foreground-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill,
.pet-type-pill,
.reward-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 30px;
  padding: 0 11px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(36, 50, 68, 0.14);
}

.status-pill.is-lost {
  background: rgba(254, 226, 226, 0.96);
  color: var(--status-lost);
}

.status-pill.is-sighted {
  background: rgba(253, 240, 200, 0.96);
  color: var(--status-sighted);
}

.status-pill.is-shelter {
  background: rgba(220, 252, 231, 0.96);
  color: var(--status-shelter);
}



.status-pill.is-roadkill {

  background: rgba(229, 231, 235, 0.96);

  color: var(--status-roadkill);

}

.pet-type-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(17, 24, 39, 0.42);
  color: white;
}

.pet-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.pet-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.pet-card-source {
  margin: 0 0 6px;
  color: var(--foreground-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.pet-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.similarity-badge {
  min-width: 74px;
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(217, 119, 69, 0.1);
  color: var(--primary-deep);
  text-align: right;
  flex-shrink: 0;
}

.similarity-badge strong {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.similarity-badge span {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 700;
}

.fact-list,
.detail-fact-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.fact-item,
.detail-fact-item {
  margin: 0;
  padding: 12px 13px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(234, 220, 207, 0.9);
}

.fact-item dt,
.detail-fact-item dt {
  color: var(--foreground-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.fact-item dd,
.detail-fact-item dd {
  margin: 5px 0 0;
  color: var(--foreground);
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 700;
  word-break: break-word;
}

.pet-summary {
  margin: 0;
  color: var(--foreground-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.meta-list {
  display: grid;
  gap: 9px;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--foreground-soft);
  font-size: 0.82rem;
}

.meta-line .material-symbols-outlined {
  color: rgba(217, 119, 69, 0.86);
  font-size: 1rem;
}

.pet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 220, 207, 0.76);
}

.detail-link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(217, 119, 69, 0.1);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.source-link-inline {
  color: var(--foreground-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.empty-state {
  padding: 64px 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(234, 220, 207, 0.86);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.empty-state img {
  width: 124px;
  height: 124px;
  margin: 0 auto 16px;
  object-fit: contain;
  opacity: 0.84;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.12rem;
}

.empty-state p {
  margin: 10px auto 0;
  max-width: 360px;
  color: var(--foreground-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.empty-actions,
.pagination-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 42px;
  border-top: 1px solid rgba(234, 220, 207, 0.86);
  background: rgba(255, 255, 255, 0.54);
}

.footer-inner {
  padding: 30px 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-main {
  display: grid;
  gap: 12px;
  max-width: 600px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 18px;
}

.footer-brand strong {
  display: block;
  font-size: 0.94rem;
}

.footer-brand span {
  color: var(--foreground-muted);
  font-size: 0.78rem;
}

.footer-summary {
  margin: 0;
  font-size: 0.86rem;
}

.footer-side {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-contact-chip {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(217, 119, 69, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.footer-contact-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 69, 0.28);
  background: white;
}

.footer-contact-chip .material-symbols-outlined {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 69, 0.12);
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.footer-contact-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.footer-contact-copy strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.footer-contact-copy small {
  color: var(--foreground-muted);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--foreground-muted);
  font-size: 0.78rem;
}

.footer-links a:hover,
.source-link-inline:hover {
  color: var(--primary);
}

.detail-page {
  padding: 30px 0 88px;
}

.detail-shell {
  display: grid;
  gap: 14px;
}

.detail-backrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.detail-source-caption {
  color: var(--foreground-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(234, 220, 207, 0.86);
  box-shadow: var(--shadow-lg);
}

.detail-hero-media {
  position: relative;
  height: clamp(280px, 32vw, 340px);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 119, 69, 0.12), rgba(36, 50, 68, 0.08));
}

.detail-hero-media.is-clickable,
.detail-hero-media.is-clickable img {
  cursor: zoom-in;
}

.detail-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  color: var(--foreground);
}

.detail-hero-empty span {
  font-size: 56px;
  color: var(--primary);
}

.detail-hero-empty strong {
  font-size: 1rem;
}

.detail-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.62) 100%);
}

.detail-hero-top,
.detail-hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 24px;
}

.detail-hero-top {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-pill,
.type-pill {
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  backdrop-filter: blur(10px);
}

.reward-pill .material-symbols-outlined,
.type-pill .material-symbols-outlined {
  font-size: 14px;
}

.detail-view-button {
  border: 0;
}

.detail-hero-bottom {
  bottom: 0;
}

.detail-title {
  margin: 0;
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.detail-sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.detail-gallery {
  display: flex;
  gap: 10px;
  padding: 18px 24px 0;
  overflow-x: auto;
}

.detail-gallery-button {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(246, 239, 231, 0.72);
  box-shadow: inset 0 0 0 1px rgba(234, 220, 207, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.detail-gallery-button:hover {
  transform: translateY(-1px);
}

.detail-gallery-button.is-active {
  box-shadow: inset 0 0 0 2px rgba(217, 119, 69, 0.82), 0 12px 24px rgba(217, 119, 69, 0.12);
}

.detail-gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
  padding: 24px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 16px;
}

.detail-panel,
.detail-data-panel {
  padding: 22px;
}

.detail-panel-head {
  display: grid;
  gap: 8px;
}

.detail-fact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-info-item,
.detail-section-box,
.detail-data-item {
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid rgba(234, 220, 207, 0.86);
}

.detail-info-item {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 15px;
}

.detail-info-item .material-symbols-outlined,
.detail-section-head .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
}

.detail-info-copy span,
.detail-data-item span {
  display: block;
  color: var(--foreground-muted);
  font-size: 0.78rem;
}

.detail-info-copy strong,
.detail-data-item strong {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
}

.detail-section-box {
  padding: 18px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.detail-section-box p {
  margin: 0;
  font-size: 0.92rem;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(246, 239, 231, 0.9);
  color: var(--foreground-soft);
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-data-body {
  display: grid;
  gap: 12px;
}

.detail-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-data-item {
  padding: 14px;
}

body.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  background: rgba(18, 24, 31, 0.84);
  backdrop-filter: blur(12px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-stage {
  width: min(100%, 1040px);
  max-height: calc(100vh - 64px);
  display: grid;
  justify-items: center;
}

.image-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 148px);
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.image-lightbox-caption {
  width: min(100%, 860px);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.94rem;
  line-height: 1.6;
}

.image-lightbox-caption strong {
  font-size: 1rem;
  font-weight: 700;
}

.image-lightbox-counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

.image-lightbox-close,
.image-lightbox-nav {
  border: 0;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.image-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.image-lightbox-nav[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .pet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .filter-panel-body {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filter-panel-header,
  .results-toolbar,
  .detail-backrow,
  .detail-actions,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .filter-panel-copy {
    text-align: left;
  }

  .pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-fact-list,
  .detail-info-grid,
  .detail-data-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 26px), var(--container));
  }

  .site-header {
    position: static;
  }

  .panel-actions,
  .results-actions,
  .footer-contact {
    align-items: stretch;
    width: 100%;
  }

  .results-actions,
  .panel-actions,
  .footer-contact {
    display: grid;
    gap: 10px;
  }

  .site-header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 26px), var(--container));
  }

  .header-actions {
    display: flex;
    justify-content: flex-end;
    width: auto;
  }

  .search-submit-row {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .back-button {
    width: 100%;
  }

  .header-action {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .brand-title {
    font-size: 1rem;
    white-space: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .hero-copy,
  .search-panel,
  .filter-panel,
  .detail-panel,
  .detail-data-panel,
  .detail-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero-title {
    margin-top: 14px;
    font-size: 2rem;
    line-height: 1.12;
  }

  .hero-description {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .hero-support-note {
    display: none;
  }

  .hero-stats {
    margin-top: 18px;
    padding-top: 14px;
  }

  .search-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .detail-layout {
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .pet-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-media {
    height: clamp(220px, 58vw, 250px);
  }

  .detail-hero-top,
  .detail-hero-bottom {
    padding: 16px 18px;
  }

  .detail-gallery {
    padding: 16px 18px 0;
  }

  .image-lightbox {
    padding: 18px 12px;
    gap: 10px;
  }

  .image-lightbox-image {
    max-height: calc(100vh - 180px);
    border-radius: 18px;
  }

  .image-lightbox-caption {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 18px), var(--container));
  }

  .hero-shell {
    padding-top: 20px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .mode-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-title {
    font-size: 1.65rem;
  }

  .detail-gallery-button {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}


/* App layout: one comfortable reading column at every screen size. */
:root {
  --primary: #bd563c; --primary-deep: #a74731; --primary-soft: #f6e7e0;
  --background: #eeefed; --background-soft: #fafaf8;
  --foreground: #222c2a; --foreground-soft: #68716e; --foreground-muted: #858d89;
  --surface: #fff; --surface-soft: #f6f7f5; --surface-alt: #f7f8f6;
  --border: #e6e9e5; --border-strong: #d7ddd8;
  --shadow-sm: 0 2px 12px rgba(31, 44, 38, .035);
  --shadow-md: 0 8px 24px rgba(31, 44, 38, .06);
  --shadow-lg: 0 12px 32px rgba(31, 44, 38, .07);
  --radius-xl: 20px; --radius-lg: 16px; --radius-md: 14px; --radius-sm: 10px;
  --container: 548px; --header-height: 66px;
}
html { background: #eeefed; }
body { max-width: 600px; margin: 0 auto; min-height: 100vh; background: #fafaf8; box-shadow: 0 0 36px rgba(30,40,35,.06); }
.container, .site-header-inner { width: calc(100% - 40px); max-width: var(--container); }
.site-header { position: sticky; min-height: 66px; background: rgba(250,250,248,.96); border-color: #eeefec; }
.site-header-inner { min-height: 66px; gap: 8px; }
.brand { gap: 8px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: #bd563c; box-shadow: none; font-size: 20px; }
.brand-title { font-size: .98rem; white-space: nowrap; }
.brand-sub { display: none; }
.header-actions { gap: 3px; flex-wrap: nowrap; }
.header-action { min-height: 40px; padding: 0 7px; border: 0; background: transparent; box-shadow: none; font-size: .77rem; gap: 3px; white-space: nowrap; }
.header-action .material-symbols-outlined { font-size: 19px; }
.page-main { padding-bottom: 28px; }
.hero-shell { padding: 25px 0 12px; }
.hero-grid { gap: 20px; }
.hero-copy { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.eyebrow { min-height: auto; padding: 0; border-radius: 0; background: none; color: var(--primary); font-size: .75rem; letter-spacing: 0; }
.eyebrow .material-symbols-outlined { font-size: 16px; }
.hero-title { margin: 10px 0 0; font-size: 1.75rem; line-height: 1.27; letter-spacing: -.045em; }
.hero-title span { color: var(--foreground); }
.hero-description { margin: 10px 0 0; font-size: .9rem; line-height: 1.6; }
.hero-support-note { display: none; }
.hero-stats { margin-top: 18px; padding: 14px 0 0; gap: 8px 18px; border-color: var(--border); }
.hero-stat { gap: 5px; }
.hero-stat strong, .hero-stat.is-lost strong, .hero-stat.is-sighted strong, .hero-stat.is-shelter strong { color: var(--foreground); font-size: .8rem; }
.hero-stat span { font-size: .72rem; }
.stat-divider { display: none; }
.search-panel { padding: 16px; border-radius: 18px; border-color: var(--border); box-shadow: var(--shadow-sm); }
.mode-toggle { gap: 3px; padding: 4px; border-radius: 12px; background: #f0f2ef; }
.mode-chip { min-height: 40px; border-radius: 9px; font-size: .87rem; }
.mode-chip.is-active { box-shadow: 0 1px 4px rgba(25,35,30,.1); }
.search-panel-form { gap: 12px; margin-top: 14px; }
.search-submit-row { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.search-submit-button { width: auto; min-height: 50px; padding: 0 16px; }
.primary-button, .secondary-button, .back-button { border-radius: 10px; box-shadow: none; }
.primary-button { background: var(--primary); }
.text-input, .select-input, .file-input { border-radius: 10px; }
.filter-panel-body { display: grid; grid-template-columns: 1fr; gap: 10px; }
.field-inline { min-width: 0; }
.chip-row { gap: 6px; }
.results-section { padding-top: 15px; }
.results-toolbar { gap: 12px; margin-bottom: 16px; }
.section-eyebrow { font-size: .72rem; letter-spacing: 0; }
.section-title { font-size: 1.22rem; letter-spacing: -.03em; }
.results-actions { width: 100%; flex-direction: row; align-items: end; }
.results-actions .secondary-button { width: auto; }
.pet-grid { grid-template-columns: 1fr; gap: 10px; }
.pet-card { display: grid; grid-template-columns: 132px minmax(0,1fr); min-height: 160px; border-color: var(--border); border-radius: 14px; box-shadow: none; }
.pet-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.pet-card-media { height: 100%; min-height: 160px; }
.pet-card-body { gap: 8px; padding: 14px; align-content: start; min-width: 0; }
.pet-card-head { gap: 5px; }
.pet-card-source { margin-bottom: 4px; font-size: .7rem; }
.pet-card-title { font-size: .95rem; }
.pet-card .fact-list { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.pet-card .fact-item { padding: 0; border: 0; background: none; display: flex; gap: 4px; }
.pet-card .fact-item dt, .pet-card .fact-item dd { margin: 0; font-size: .72rem; line-height: 1.45; }
.pet-card .pet-summary { font-size: .76rem; line-height: 1.5; }
.meta-list { gap: 4px; }
.meta-line { font-size: .73rem; gap: 5px; }
.meta-line .material-symbols-outlined { font-size: 15px; }
.pet-card-footer { padding-top: 7px; }
.detail-link { min-height: 28px; padding: 0; background: none; font-size: .76rem; }
.source-link-inline { font-size: .75rem; }
.status-pill { left: 8px; top: 8px; min-height: 25px; padding: 0 8px; font-size: .67rem; box-shadow: none; }
.pet-type-pill { right: 8px; bottom: 8px; min-height: 24px; font-size: .67rem; }
.similarity-badge { min-width: auto; padding: 7px; border-radius: 8px; }
.similarity-badge strong { font-size: .8rem; }
.similarity-badge span { font-size: .6rem; }
.empty-state { padding: 40px 20px; border-color: var(--border); box-shadow: none; }
.footer { margin-top: 28px; background: #f4f5f2; border-color: var(--border); }
.footer-inner { padding: 26px 0; gap: 20px; flex-direction: column; }
.footer-side { justify-items: start; }
.footer-contact { justify-content: start; }
.footer-contact-chip { border-radius: 12px; box-shadow: none; }
.detail-page { padding: 20px 0 48px; }
.detail-backrow { flex-direction: row; align-items: center; }
.detail-backrow .back-button { width: auto; }
.detail-card { border-color: var(--border); box-shadow: none; }
.detail-hero-media { height: 310px; }
.detail-layout { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
.detail-panel, .detail-data-panel { padding: 17px; border-color: var(--border); border-radius: 14px; box-shadow: none; }
.detail-fact-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-info-grid, .detail-data-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-info-item, .detail-section-box, .detail-data-item, .fact-item, .detail-fact-item { border-color: var(--border); border-radius: 12px; }
:focus-visible { outline: 3px solid #d18b72; outline-offset: 3px; }
@media (max-width: 390px) {
  .container, .site-header-inner { width: calc(100% - 28px); }
  .brand-title { font-size: .88rem; }
  .header-action { padding: 0 4px; font-size: .7rem; }
  .pet-card { grid-template-columns: 112px minmax(0,1fr); }
  .pet-card-body { padding: 12px; }
}

.upload-feedback { color: var(--foreground-soft); font-size: .78rem; overflow-wrap: anywhere; }
button:disabled { opacity: .7; cursor: wait; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Keep keyboard filter focus visible and long card text within its column. */
.chip input:focus-visible + span { outline: 3px solid #d18b72; outline-offset: 3px; }
.pet-card-head > div:first-child { min-width: 0; }
.pet-card-title, .pet-card-source { overflow-wrap: anywhere; }
/* Community pages follow the centered app shell. */
.community-nav { display:flex; gap:4px; padding:0 0 10px; overflow-x:auto; scrollbar-width:thin; }
.community-nav a { flex:1; min-height:38px; display:flex; align-items:center; justify-content:center; white-space:nowrap; font-size:.79rem; font-weight:650; color:var(--foreground-soft); border-radius:9px; padding:0 8px; }
.community-nav a:hover { background:var(--surface-soft); }
.community-nav a[aria-current="page"] { color:var(--primary-deep); background:var(--primary-soft); }
.skip-link { position:fixed; left:16px; top:-100px; z-index:100; padding:12px; background:#fff; border:2px solid var(--primary); }
.skip-link:focus { top:12px; }
.board-main { padding-top:26px; padding-bottom:32px; min-height:48vh; }
.board-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 22px; }
.board-heading > div { min-width:0; }
.board-heading h1 { font-size:1.6rem; line-height:1.35; letter-spacing:-.045em; margin:7px 0; }
.board-heading p { color:var(--foreground-soft); margin:0; font-size:.87rem; line-height:1.65; }
.board-heading .primary-button { min-height:42px; padding:0 16px; white-space:nowrap; flex-shrink:0; font-size:.83rem; }
.board-back { display:inline-flex; padding:4px 0 16px; font-size:.85rem; color:var(--foreground-soft); }
.board-message { border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:18px; background:var(--surface-soft); font-size:.82rem; line-height:1.7; color:var(--foreground-soft); }
.board-message.is-error { color:#942c24; background:#fff0ed; border-color:#efc7c0; }
.board-private-note { display:flex; gap:12px; align-items:flex-start; }
.board-private-note p { margin:0; }
.board-private-note .material-symbols-outlined { color:var(--primary); padding-top:2px; }
.board-pinned { display:grid; gap:0; margin-bottom:20px; background:#f7eee8; border:1px solid #eadbd2; border-radius:14px; overflow:hidden; }
.board-pinned a { display:flex; gap:9px; align-items:baseline; padding:14px; font-size:.84rem; }
.board-pinned a + a { border-top:1px solid #eadbd2; }
.board-pinned strong { flex:1; overflow-wrap:anywhere; line-height:1.5; }
.board-tag { display:inline-block; color:var(--primary-deep); font-size:.7rem; font-weight:750; line-height:1.5; }
.board-list { border-top:1px solid var(--border); }
.board-list-item { display:block; padding:20px 2px; border-bottom:1px solid var(--border); }
.board-list-item:hover h2 { color:var(--primary-deep); }
.board-list-item h2 { font-size:.98rem; line-height:1.6; letter-spacing:-.025em; margin:3px 0 8px; overflow-wrap:anywhere; }
.board-meta { display:flex; flex-wrap:wrap; gap:5px 12px; font-size:.75rem; line-height:1.6; color:var(--foreground-muted); }
.board-empty { text-align:center; padding:45px 12px; }
.board-empty > .material-symbols-outlined { font-size:34px; color:var(--primary); }
.board-empty h2 { font-size:1.05rem; margin:14px 0 8px; }
.board-empty p,.board-muted { font-size:.82rem; color:var(--foreground-soft); line-height:1.65; }
.board-empty .secondary-button { margin-top:12px; }
.board-card { padding:22px; background:#fff; border:1px solid var(--border); border-radius:16px; }
.board-form { display:grid; gap:18px; }
.board-form .field { min-width:0; gap:8px; }
.board-form .text-input { width:100%; }
.board-form small { font-size:.71rem; color:var(--foreground-soft); line-height:1.5; }
.board-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.board-textarea { display:block; resize:vertical; min-height:112px; font:inherit; line-height:1.75; padding:12px 14px; }
.board-form-actions { display:flex; gap:8px; justify-content:flex-end; }
.board-form .primary-button { min-height:46px; }
.markdown-help { font-size:.78rem; color:var(--foreground-soft); line-height:1.8; }
.markdown-help summary,.board-delete summary { cursor:pointer; min-height:32px; }
.markdown-help p { margin:8px 0 0; }
.markdown-help code { color:var(--foreground); }
.board-article h1 { margin:9px 0 12px; font-size:1.45rem; line-height:1.5; letter-spacing:-.04em; overflow-wrap:anywhere; }
.markdown-body { margin-top:22px; font-size:.92rem; line-height:1.9; overflow-wrap:anywhere; }
.markdown-body > :first-child { margin-top:0; }
.markdown-body > :last-child { margin-bottom:0; }
.markdown-body h1,.markdown-body h2,.markdown-body h3 { font-size:1.15em; line-height:1.55; margin:26px 0 12px; }
.markdown-body a { color:var(--primary-deep); text-decoration:underline; text-underline-offset:3px; }
.markdown-body img { max-width:100%; height:auto; border-radius:12px; margin:16px auto; }
.markdown-body pre { white-space:pre-wrap; padding:14px; background:var(--surface-soft); border-radius:10px; }
.markdown-body code { font-size:.88em; }
.markdown-body blockquote { margin:16px 0; padding:4px 14px; border-left:3px solid var(--primary); color:var(--foreground-soft); }
.markdown-body table { display:block; overflow-x:auto; border-collapse:collapse; }
.markdown-body td,.markdown-body th { border:1px solid var(--border); padding:8px; }
.board-delete { border-top:1px solid var(--border); margin-top:24px; padding-top:14px; color:var(--foreground-soft); font-size:.75rem; }
.board-delete form { display:grid; gap:12px; margin-top:6px; }
.board-delete .text-input { width:100%; }
.board-comments { margin-top:28px; }
.board-comments > h2 { font-size:1.05rem; margin-bottom:18px; }
.board-comments > h2 span { color:var(--primary); }
.board-comment { margin-bottom:12px; padding:18px; }
.board-comment .markdown-body { margin-top:12px; font-size:.86rem; }
.board-comment .board-delete { margin-top:14px; padding-top:10px; }
.board-admin-logout { margin-top:22px; }
.footer-links { flex-wrap:wrap; gap:10px 16px; }
@media (max-width:390px) { .board-card { padding:17px; } .board-form-row { grid-template-columns:1fr; } .community-nav a { font-size:.73rem; padding:0 5px; } .board-heading { gap:10px; } .board-heading h1 { font-size:1.45rem; } }
.board-edit { display:inline-flex; min-height:36px; align-items:center; margin-top:18px; color:var(--foreground-soft); font-size:.75rem; text-decoration:underline; text-underline-offset:3px; }

.seo-faq { padding-top: 3rem; padding-bottom: 3rem; }
.seo-faq h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.seo-faq h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.seo-faq p { line-height: 1.7; }
