
:root {
  --spot-x: 100px;
  --inner-pad: 20px;
  --header-maxw: 1000px;
  --maxw: 1000px;

  --bg: #fafafa;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --border: #e2e8f0;
  --chip-bg: #f1f5f9;
  --radius: 16px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);

  --topbar-h: 70px;
  --sticky-gap: 16px;
}

* { box-sizing: border-box; margin:0; padding:0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.top-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: var(--header-maxw);
  margin: 0 auto;
}

.site-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: font-size 180ms ease;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -15px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--topbar-h);
  left: 0;
  width: 100%;
  background: #141a22;
  border-top: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar {
  --container-w: min(var(--header-maxw), calc(100vw - (2 * var(--inner-pad))));
  --container-left: calc(50% - (var(--container-w) / 2));
  --spot-page-x: calc(var(--container-left) + var(--inner-pad) + var(--spot-x));

  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--topbar-h);
  z-index: 1000;

  border-bottom: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(240px 62px at var(--spot-page-x) 50%, rgba(255,255,255,0.26), rgba(255,255,255,0.00) 58%),
    radial-gradient(420px 110px at var(--spot-page-x) 50%, rgba(255,255,255,0.07), rgba(255,255,255,0.00) 75%),
    #141a22;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.main-content {
  max-width: var(--maxw);
  margin: 90px auto 20px;
  padding: 0 var(--inner-pad);
}


.expired-listing-notice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px 20px;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(127,29,29,0.10);
}

.expired-listing-notice strong {
  flex: 0 0 auto;
  font-size: 1rem;
}

.expired-listing-notice span {
  font-size: 0.95rem;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.main-panel,
.sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero {
  padding: 28px 28px 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-summary {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 65ch;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 245;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  background:
    radial-gradient(600px 220px at 30% 40%, rgba(255,255,255,0.75), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.hero-fallback .tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #0f172a;
}

.hero-fallback .title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.hero-fallback .sub {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}
.chip {
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.chip strong { font-weight: 700; }

.note-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.95rem;
  color: #1e40af;
  margin: 20px 0;
}

.section {
  padding: 28px;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }
.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.section p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section ul {
  padding-left: 20px;
  list-style: disc;
  color: var(--text-muted);
}
.section li { margin-bottom: 8px; }

.sidebar {
  align-self: start;
}

.sidebar-head {
  padding: 20px 24px;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--border);
}
.sidebar-head h2 { font-size: 1.25rem; margin-bottom: 4px; }
.sidebar-head p { font-size: 0.9rem; color: var(--text-muted); }

.kv {
  padding: 10px 16px 14px;
  display: grid;
  gap: 10px;
}

.kv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
}

.kv-row span {
  color: rgba(0,0,0,0.70);
  white-space: nowrap;
  flex: 0 0 auto;
}

.kv-row b {
  font-weight: 900;
  color: #111;
  margin-left: auto;
}

.cta-button {
  display: block;
  margin: 20px 24px 24px;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(59,130,246,0.3);
  transition: all 0.15s ease;
  white-space:nowrap;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59,130,246,0.4);
}

.sources-section {
  padding: 28px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.sources-section h2 {
  margin-bottom: 16px;
}

.source-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.source-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.source-item a:hover { text-decoration: underline; }
.source-label { font-size: 0.9rem; color: var(--text-muted); }

.official-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.official-link:hover { text-decoration: underline; }

/* Sidebar column wrapper so last-updated stays under the sidebar box */
.sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}

@media (min-width: 901px) {
  .sidebar-wrap {
    position: sticky;
    top: calc(var(--topbar-h) + var(--sticky-gap));
  }
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0 0;
}
.last-updated span {
  font-weight: 600;
  color: var(--text);
}

.notice-tabs {
  margin-top: 22px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.notice-tabs-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--border);
}

.notice-tabs-title h2 { font-size: 1.25rem; margin: 0; }
.notice-tabs-title p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.notice-tab-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tab-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}
.tab-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.tab-btn.is-active {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 6px 16px rgba(59,130,246,0.15);
}

.notice-tabs-body { padding: 0; }

.tab-panel {
  display: none;
  padding: 18px 20px 16px;
}
.tab-panel.is-active { display: block; }

.notice-pdf-object,
.notice-iframe {
  width: 100%;
  height: min(80vh, 900px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.pdf-mobile-fallback { display: none; }

.pdf-fallback-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.pdf-fallback-title { font-weight: 800; margin-bottom: 6px; }
.pdf-fallback-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.pdf-open-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.notice-text {
  white-space: pre;
  overflow: auto;
  word-break: normal;
  font-size: 0.85rem;
  line-height: 1.35;
}

.notice-mini-links { margin-top: 10px; text-align: right; }
.notice-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}
.notice-link:hover { text-decoration: underline; }


@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }

  .hero-image-wrapper { aspect-ratio: 16 / 9; }
  .hero-image-wrapper img { object-position: 50% 30%; }

  .notice-pdf-object,
  .notice-iframe { display: none; }
  .pdf-mobile-fallback { display: block; }

  .sidebar-wrap { width: 100%; }
  .sidebar { width: 100%; }

  .sidebar-wrap { position: static; top: auto; }
}

@media (max-width: 600px) {
  .main-content { margin-top: 80px; padding: 0 16px; }
  .expired-listing-notice {
    display: block;
    padding: 14px 16px;
  }
  .expired-listing-notice strong {
    display: block;
    margin-bottom: 3px;
  }
  .hero { padding: 20px 20px 16px; }
  .hero h1 { font-size: 2rem; }
  .quick-chips { gap: 10px; }
  .chip { padding: 7px 12px; font-size: 0.9rem; }
  .section { padding: 20px; }
  .cta-button { margin: 20px; padding: 14px; }

  .notice-tabs-head {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .tab-panel { padding: 16px; }
  .notice-mini-links { text-align: left; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .top-bar { position: static; }
  .main-content { margin-top: 20px; }

  .sidebar-wrap { position: static; top: auto; }
}

@media (hover: none) {
  .cta-button:hover { transform: none; box-shadow: 0 6px 16px rgba(59,130,246,0.3); }
}
