:root {
  --brand: #155eef;
  --ink: #172033;
  --muted-bg: #f6f8fb;
  --line: #dbe2ea;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

main {
  flex: 1;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand);
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
}

.fw-black {
  font-weight: 900;
}

.nav-link.active {
  color: var(--brand) !important;
}

.site-header {
  z-index: 1030;
}

.breadcrumb-wrap {
  padding: 0.85rem 0;
  font-size: 0.9rem;
}

.breadcrumb-wrap a {
  color: #56657a;
  text-decoration: none;
}

.breadcrumb-wrap a:hover {
  color: var(--brand);
}

.storage-item-card {
  position: relative;
}

.favorite-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(21, 94, 239, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0.25rem 0.75rem rgba(23, 32, 51, 0.12);
}

.favorite-toggle.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.favorite-toggle-detail {
  top: 1rem;
  right: 1rem;
}

.storage-detail-summary {
  position: relative;
}

.storage-page {
  background: #ffffff;
}

.storage-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.storage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.storage-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.storage-card-image,
.storage-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--muted-bg);
}

.storage-card-placeholder {
  display: grid;
  place-items: center;
  color: #687589;
  font-weight: 700;
}

.storage-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.storage-card-title {
  display: -webkit-box;
  min-height: 3.1rem;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storage-card-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.storage-card-meta div {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) 1fr;
  gap: 0.75rem;
}

.storage-card-meta dt {
  color: #687589;
  font-size: 0.875rem;
  font-weight: 600;
}

.storage-card-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.storage-remove-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 800;
}

.share-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.share-panel-title {
  color: #687589;
  font-size: 0.9rem;
  font-weight: 900;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #24364f;
  font-weight: 900;
  text-decoration: none;
}

.share-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.share-button span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
}

.share-text {
  display: none;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1080;
  max-width: min(24rem, calc(100vw - 2rem));
  transform: translate(-50%, 1rem);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.94);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  opacity: 0;
  padding: 0.75rem 1rem;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.share-toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  background: #f8fafc;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.footer-copy,
.footer-note {
  margin-top: 0.5rem;
  color: #687589;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: #24364f;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
}

.error-panel {
  max-width: 44rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 2rem;
}

.policy-page {
  background: #ffffff;
}

.policy-document {
  max-width: 46rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 2rem;
}

.policy-document h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
}

.policy-document h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.12rem;
  font-weight: 900;
}

.policy-document p {
  color: #334155;
  line-height: 1.75;
}

.policy-updated {
  margin-bottom: 2rem;
  color: #687589 !important;
  font-size: 0.92rem;
}

.contact-box {
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-bg);
  padding: 1rem;
}

.contact-box span {
  color: #687589;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-box strong {
  color: var(--brand);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.guide-list-page,
.guide-detail-page {
  background: #ffffff;
}

.guide-category-tabs {
  flex-wrap: nowrap;
}

.guide-category-section {
  scroll-margin-top: 6rem;
}

.guide-category-section + .guide-category-section {
  margin-top: 3rem;
}

.guide-category-heading {
  margin-bottom: 1.25rem;
}

.guide-category-heading h2,
.related-guides h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.25rem;
}

.guide-card-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: #e9f1ff;
  padding: 0.35rem 0.7rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.4;
}

.guide-card p {
  color: #56657a;
  line-height: 1.6;
}

.guide-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: auto 0 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: #687589;
  font-size: 0.9rem;
}

.guide-card-meta strong {
  color: var(--ink);
}

.guide-article {
  max-width: 800px;
  margin: 0 auto;
}

.guide-article-header {
  margin-bottom: 1.5rem;
}

.guide-article-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.22;
}

.guide-lead {
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.75;
}

.guide-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: #687589;
  font-size: 0.92rem;
}

.guide-toc,
.guide-warning-box,
.related-guides {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.25rem;
}

.guide-toc {
  margin: 1.5rem 0 2rem;
  background: var(--muted-bg);
}

.guide-toc h2,
.guide-warning-box h2 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
  font-weight: 900;
}

.guide-toc ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.guide-toc a {
  color: #24364f;
  font-weight: 700;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--brand);
}

.guide-body-section {
  scroll-margin-top: 6rem;
  margin-bottom: 2.25rem;
}

.guide-body-section h2 {
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.35;
}

.guide-body-section p {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.85;
}

.guide-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.guide-inline-links a {
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.guide-warning-box {
  margin: 2rem 0;
  border-color: #f2c94c;
  background: #fffaf0;
}

.guide-warning-box ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: #5f4b16;
  line-height: 1.7;
}

.guide-cta {
  margin: 2rem 0;
}

.related-guides {
  margin: 2rem 0;
}

.related-guides h2 {
  margin-bottom: 1rem;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.5rem;
}

.home-hero {
  background: #f6f8fb;
  border-bottom: 1px solid #e6ebf2;
}

.home-hero-inner {
  max-width: 760px;
  padding: 4rem 0 3.5rem;
}

.home-kicker {
  margin-bottom: 0.8rem;
  color: #24706f;
  font-size: 0.95rem;
  font-weight: 800;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 1.1rem;
  color: #172033;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.18;
}

.home-hero-copy {
  max-width: 680px;
  margin-bottom: 1.6rem;
  color: #657085;
  font-size: 1.08rem;
  line-height: 1.75;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-onbid {
  border-color: #176f73;
  background: #176f73;
  color: #ffffff;
}

.btn-onbid:hover {
  border-color: #115b5e;
  background: #115b5e;
  color: #ffffff;
}

.btn-court {
  border-color: #243b6b;
  background: #243b6b;
  color: #ffffff;
}

.btn-court:hover {
  border-color: #1b2e55;
  background: #1b2e55;
  color: #ffffff;
}

.home-section {
  padding: 3.5rem 0;
}

.home-services {
  background: #ffffff;
}

.home-benefits,
.home-guides {
  background: #f8fafc;
}

.home-section-heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.home-section-heading h2,
.home-notice-box h2 {
  margin-bottom: 0.45rem;
  color: #172033;
  font-size: 1.65rem;
  font-weight: 900;
}

.home-section-heading p,
.home-notice-box p {
  margin-bottom: 0;
  color: #657085;
  line-height: 1.7;
}

.home-section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 100%;
  border: 1px solid #dce4ee;
  border-radius: 18px;
  background: #ffffff;
  padding: 1.5rem;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.045);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.home-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.home-service-card-onbid:hover {
  border-color: #176f73;
}

.home-service-card-court:hover {
  border-color: #243b6b;
}

.home-service-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
}

.home-service-card-onbid .home-service-mark {
  background: #176f73;
}

.home-service-card-court .home-service-mark {
  background: #243b6b;
}

.home-service-body,
.home-service-body > span,
.home-service-body strong {
  display: block;
}

.home-service-body strong {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.home-service-body > span {
  color: #657085;
  line-height: 1.65;
}

.home-service-points {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin-top: 1rem;
}

.home-service-points span {
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
}

.home-service-action {
  margin-top: 1.15rem;
  color: #172033 !important;
  font-weight: 900;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-benefit-item {
  border-top: 3px solid #cbd5e1;
  padding-top: 1rem;
}

.home-benefit-item strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #172033;
  font-size: 1.04rem;
  font-weight: 900;
}

.home-benefit-item p {
  margin-bottom: 0;
  color: #657085;
  line-height: 1.65;
}

.home-notice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #dce4ee;
  border-radius: 18px;
  background: #ffffff;
  padding: 1.5rem;
}

.home-notice-box a,
.home-guide-more {
  flex: 0 0 auto;
  color: #176f73;
  font-weight: 900;
  text-decoration: none;
}

.home-notice-box a:hover,
.home-guide-more:hover {
  color: #115b5e;
  text-decoration: underline;
}

.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-guide-card {
  display: block;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 1.15rem;
  color: #172033;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.home-guide-card:hover {
  border-color: #176f73;
  transform: translateY(-2px);
}

.home-guide-card strong,
.home-guide-card span {
  display: block;
}

.home-guide-card strong {
  margin-bottom: 0.45rem;
  font-weight: 900;
}

.home-guide-card span {
  color: #657085;
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-header {
  background: var(--muted-bg);
  border-bottom: 1px solid var(--line);
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 42rem;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.view-tab.active,
.view-tab:hover {
  background: var(--brand);
  color: #ffffff;
}

.search-band {
  background: #ffffff;
}

.rank-band {
  background: #ffffff;
}

.rank-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rank-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.rank-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.rank-tab.active,
.rank-tab:hover {
  border-color: var(--brand);
  background: #e9f1ff;
  color: var(--brand);
}

.rank-grid {
  display: grid;
  grid-auto-columns: minmax(17rem, 80vw);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
}

.rank-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  scroll-snap-align: start;
}

.rank-card-image,
.rank-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--muted-bg);
}

.rank-card-placeholder {
  display: grid;
  place-items: center;
  color: #687589;
  font-weight: 700;
}

.rank-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-title {
  display: -webkit-box;
  min-height: 3.1rem;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-category {
  display: -webkit-box;
  min-height: 2.6rem;
  overflow: hidden;
  color: #687589;
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.rank-meta div {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.rank-meta dt {
  color: #687589;
  font-size: 0.82rem;
  font-weight: 600;
}

.rank-meta dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.auction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.auction-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.court-view-tabs {
  max-width: 54rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.court-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.court-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.court-card-image,
.court-card-placeholder {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--muted-bg);
}

.court-card-placeholder {
  display: grid;
  place-items: center;
  color: #687589;
  font-weight: 700;
}

.court-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.court-card-title {
  display: -webkit-box;
  min-height: 3.1rem;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.court-card-address {
  display: -webkit-box;
  min-height: 2.65rem;
  overflow: hidden;
  color: #687589;
  font-size: 0.95rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.court-card-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.court-card-meta div {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.court-card-meta dt {
  color: #687589;
  font-size: 0.875rem;
  font-weight: 600;
}

.court-card-meta dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.auction-card-image,
.auction-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--muted-bg);
}

.auction-card-placeholder {
  display: grid;
  place-items: center;
  color: #687589;
  font-weight: 700;
}

.auction-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.auction-status {
  color: #56657a;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.auction-title {
  display: -webkit-box;
  min-height: 3.1rem;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.auction-address {
  display: -webkit-box;
  min-height: 2.65rem;
  overflow: hidden;
  color: #687589;
  font-size: 0.95rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.auction-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.auction-meta div {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.auction-meta dt {
  color: #687589;
  font-size: 0.875rem;
  font-weight: 600;
}

.auction-meta dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
}

.pagination-bar .pagination {
  flex-wrap: nowrap;
}

.detail-page {
  background: #ffffff;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.detail-media,
.detail-summary,
.detail-section-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-media {
  overflow: hidden;
}

.detail-carousel,
.detail-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--muted-bg);
}

.detail-carousel {
  position: relative;
}

.detail-carousel .carousel-inner,
.detail-carousel .carousel-item {
  width: 100%;
  height: 100%;
}

.detail-carousel-counter {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.78);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.7rem;
}

.detail-carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--muted-bg);
}

.detail-image-placeholder {
  display: grid;
  place-items: center;
  color: #687589;
  font-weight: 800;
}

.detail-summary {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.detail-title {
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.35;
}

.detail-address {
  color: #687589;
  line-height: 1.5;
}

.price-highlight {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.price-highlight div {
  display: grid;
  gap: 0.25rem;
  border-radius: 8px;
  background: #eef4ff;
  padding: 0.875rem 1rem;
}

.price-highlight span {
  color: #56657a;
  font-size: 0.85rem;
  font-weight: 700;
}

.price-highlight strong {
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 900;
}

.detail-summary-list,
.detail-info-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.detail-summary-list {
  margin-bottom: 1rem;
}

.detail-summary-list div,
.detail-info-list div {
  display: grid;
  grid-template-columns: minmax(6rem, auto) 1fr;
  gap: 1rem;
}

.detail-summary-list dt,
.detail-info-list dt {
  color: #687589;
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-summary-list dd,
.detail-info-list dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.detail-section-card {
  padding: 1.25rem;
}

.detail-section-card h2 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.detail-extra-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.2rem;
}

.detail-extra-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.detail-extra-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-bg);
  padding: 1rem;
}

.detail-extra-card h3 {
  margin-bottom: 0.85rem;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 900;
}

.detail-preserve-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
  }

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

  .storage-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .share-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .share-text {
    display: inline;
    margin-left: 0.35rem;
  }

  .share-button {
    padding: 0 0.85rem;
  }

  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-section-wide {
    grid-column: 1 / -1;
  }

  .detail-extra-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .rank-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .rank-grid {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

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

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

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

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

@media (max-width: 991.98px) {
  .home-service-grid,
  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section-heading-row,
  .home-notice-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .display-5 {
    font-size: 2.2rem;
  }

  .view-tabs {
    gap: 0.35rem;
  }

  .view-tab {
    min-height: 2.5rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.86rem;
  }

  .court-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empty-state,
  .policy-document,
  .guide-card,
  .guide-toc,
  .guide-warning-box,
  .related-guides,
  .rank-card-body,
  .auction-card-body,
  .court-card-body,
  .storage-card-body,
  .detail-summary,
  .detail-section-card {
    padding: 1rem;
  }

  .home-hero-inner {
    padding: 3rem 0 2.5rem;
  }

  .home-hero-copy {
    font-size: 1rem;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions .btn {
    width: 100%;
  }

  .home-section {
    padding: 2.5rem 0;
  }

  .home-service-card {
    grid-template-columns: 1fr;
    border-radius: 16px;
    padding: 1.15rem;
  }

  .home-service-points,
  .home-benefit-grid {
    grid-template-columns: 1fr;
  }

  .home-section-heading h2,
  .home-notice-box h2 {
    font-size: 1.4rem;
  }

  .detail-title {
    font-size: 1.35rem;
  }

  .detail-summary-list div,
  .detail-info-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .pagination-bar {
    justify-content: flex-start;
  }

  .pagination-bar .page-link {
    padding: 0.45rem 0.6rem;
  }
}
