/* claude_modern_001 — editorial monochrome (black / white / grey), serif, content-first */
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; background: #ffffff; color: #0b0b0b; margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.container { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; color: #0b0b0b; }
h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin-top: 44px; }
p { color: #555; line-height: 1.75; font-size: 1.05rem; }
a { color: #0b0b0b; }
.muted { color: #8a8a8a; font-size: 0.92rem; }
.site-header { border-bottom: 1px solid #e6e6e6; }
.site-header nav { margin: 0; padding: 22px 32px; display: grid; grid-template-columns: auto 1fr; align-items: center; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 28px; min-width: 0; }

/* Dropdown nav menus (shared site-menu chrome). Children are hidden until the
   parent is hovered or focused; nested menus fly out to the side. */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item--has-children > a::after,
.nav-item--has-children > .nav-label::after { content: "\25BE"; margin-left: 5px; font-size: 0.65em; opacity: 0.7; }
.nav-label { cursor: default; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.nav-submenu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  display: flex; flex-direction: column; padding: 8px 0; margin-top: 8px;
  background: #ffffff; border: 1px solid #e6e6e6; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 100;
}
.nav-item:hover > .nav-submenu, .nav-item:focus-within > .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-submenu a, .nav-submenu .nav-label {
  display: block; padding: 7px 18px; white-space: nowrap; text-transform: none; letter-spacing: normal; font-size: 0.9rem; color: #5a5a5a;
}
.nav-submenu a:hover { background: #f5f5f5; color: #0b0b0b; }
.nav-submenu .nav-item { display: block; }
.nav-submenu .nav-item--has-children > .nav-submenu { top: -8px; left: 100%; margin: 0 0 0 4px; }
/* Mega menu: wide multi-column panel; each second-level group becomes a column
   (heading + inline links), right-anchored. Desktop only. */
@media (min-width: 821px) {
  .nav-item--mega > .nav-submenu {
    display: flex; flex-wrap: wrap; gap: 4px 30px;
    left: auto; right: 0; min-width: 460px; max-width: min(720px, 90vw);
    padding: 18px 24px; white-space: normal;
  }
  .nav-item--mega > .nav-submenu > .nav-item { display: flex; flex-direction: column; min-width: 150px; }
  .nav-item--mega > .nav-submenu > .nav-item > a,
  .nav-item--mega > .nav-submenu > .nav-item > .nav-label { font-weight: 600; color: #0b0b0b; padding: 6px 0; }
  .nav-item--mega > .nav-submenu > .nav-item--has-children > a::after,
  .nav-item--mega > .nav-submenu > .nav-item--has-children > .nav-label::after { content: ""; }
  .nav-item--mega .nav-submenu .nav-submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; margin: 0; padding: 0; min-width: 0;
    background: transparent; display: flex; flex-direction: column;
  }
  .nav-item--mega .nav-submenu .nav-submenu a { padding: 5px 0; font-weight: 500; color: #5a5a5a; }
  .nav-item--mega .nav-submenu .nav-submenu a:hover { background: transparent; color: #0b0b0b; }
}
.brand { font-family: Georgia, serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; }
nav a { color: #8a8a8a; text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
nav a:hover { color: #0b0b0b; }
.btn, .read-more { display: inline-block; color: #0b0b0b; text-decoration: none; border-bottom: 1px solid #0b0b0b; padding-bottom: 2px; font-size: 0.95rem; }
.btn:hover, .read-more:hover { color: #555; border-color: #555; }
ul { color: #3a3a3a; line-height: 2; padding-left: 1.1rem; }
.post { border-top: 1px solid #e6e6e6; padding: 22px 0; }
.post h3 { margin: 0 0 4px; font-size: 1.3rem; }
.post h3 a { text-decoration: none; }
.post .byline { margin: 0 0 8px; color: #8a8a8a; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
nav.breadcrumb-nav { border-bottom: 1px solid #e6e6e6; }
nav.breadcrumb-nav .breadcrumb { list-style: none; max-width: 760px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 0.82rem; color: #8a8a8a; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 4px; color: #c9c9c9; }
.breadcrumb-item a { color: #8a8a8a; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; }
.breadcrumb-item a:hover { color: #0b0b0b; }
.breadcrumb-item.active { color: #0b0b0b; text-transform: uppercase; letter-spacing: 0.06em; }
.error { border: 1px solid #c9c9c9; color: #555; padding: 10px 14px; }
.site-footer { border-top: 1px solid #e6e6e6; }
.footer-inner { max-width: 760px; margin: 0 auto; padding: 48px 24px 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px 28px; }
.footer-col__title { display: block; font-family: Georgia, serif; font-weight: 600; font-size: 0.95rem; color: #0b0b0b; margin-bottom: 11px; text-decoration: none; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; }
.footer-col li a { color: #8a8a8a; text-decoration: none; font-size: 0.88rem; }
.footer-col li a:hover { color: #0b0b0b; }
.footer-brand { margin-top: 32px; }
.footer-brand img { height: 36px; width: auto; display: block; }
.footer-brand .brand { color: #0b0b0b; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid #e6e6e6; }
.footer-legal { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: #8a8a8a; text-decoration: none; font-size: 0.82rem; }
.footer-legal a:hover { color: #0b0b0b; }
.copyright { color: #8a8a8a; font-size: 0.82rem; margin: 0; }
.theme-badge { display: inline-block; border: 1px solid #0b0b0b; padding: 2px 8px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== Dark/light colour mode (theme-init sets <html data-theme>) ========== */
.theme-switch { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; margin-left: 6px; border: 0; border-radius: 999px; background: transparent; color: #0b0b0b; cursor: pointer; }
.theme-switch:hover { background: #f0f0f0; }
.theme-switch__sun { display: none; }
.theme-switch__moon { display: block; }
[data-theme="dark"] .theme-switch__moon { display: none; }
[data-theme="dark"] .theme-switch__sun { display: block; }

[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body { background: #0b0b0b; color: #b8b8b8; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #f4f4f4; }
[data-theme="dark"] p { color: #9a9a9a; }
[data-theme="dark"] a, [data-theme="dark"] .brand { color: #f4f4f4; }
[data-theme="dark"] .muted { color: #777; }
[data-theme="dark"] .theme-switch { color: #f4f4f4; }
[data-theme="dark"] .theme-switch:hover { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .site-header, [data-theme="dark"] nav.breadcrumb-nav, [data-theme="dark"] .site-footer { border-color: #222; }
[data-theme="dark"] nav a { color: #9a9a9a; }
[data-theme="dark"] nav a:hover { color: #fff; }
[data-theme="dark"] .nav-submenu { background: #161616; border-color: #262626; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
[data-theme="dark"] .nav-submenu a, [data-theme="dark"] .nav-submenu .nav-label { color: #bbb; }
[data-theme="dark"] .nav-submenu a:hover { background: #222; color: #fff; }
[data-theme="dark"] .btn, [data-theme="dark"] .read-more { color: #f4f4f4; border-color: #f4f4f4; }
[data-theme="dark"] .btn:hover, [data-theme="dark"] .read-more:hover { color: #bbb; border-color: #bbb; }
[data-theme="dark"] ul { color: #bbb; }
[data-theme="dark"] .post { border-top-color: #222; }
[data-theme="dark"] .post h3 a { color: #f4f4f4; }
[data-theme="dark"] .post .byline { color: #888; }
[data-theme="dark"] .breadcrumb-item a { color: #888; }
[data-theme="dark"] .breadcrumb-item.active { color: #f4f4f4; }
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #555; }
[data-theme="dark"] .error { border-color: #555; color: #bbb; }
[data-theme="dark"] .site-footer { border-top-color: #222; }
[data-theme="dark"] .footer-col__title { color: #f4f4f4; }
[data-theme="dark"] .footer-col li a, [data-theme="dark"] .footer-legal a { color: #888; }
[data-theme="dark"] .footer-col li a:hover, [data-theme="dark"] .footer-legal a:hover { color: #fff; }
[data-theme="dark"] .footer-bottom { border-top-color: #222; }
[data-theme="dark"] .copyright { color: #777; }
[data-theme="dark"] .footer-brand .brand { color: #f4f4f4; }
[data-theme="dark"] .theme-badge { border-color: #f4f4f4; color: #f4f4f4; }

/* ── Responsive main navigation ─────────────────────────────────────────────
   Desktop is unchanged (hover/focus dropdowns above). Below 820px the nav
   collapses behind a hamburger and submenus become an inline accordion driven
   by .is-open (toggled by site-nav.js), so every child stays reachable on touch. */
.nav-hamburger { display: none; }
.nav-submenu-toggle { display: none; }

@media (max-width: 820px) {
  .nav-hamburger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; justify-self: end;
    background: none; border: none; cursor: pointer; color: #0b0b0b;
  }
  .nav-hamburger span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .site-header.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header nav { grid-template-columns: 1fr auto; position: relative; }

  .site-nav { display: none; }
  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #ffffff; border-top: 1px solid #e6e6e6;
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
    padding: 6px 0; max-height: calc(100vh - 64px); overflow-y: auto; z-index: 200;
  }
  .site-nav > a, .site-nav .nav-item { width: 100%; }
  .nav-item { flex-wrap: wrap; align-items: center; }
  .site-nav > a, .nav-item > a, .nav-item > .nav-label { display: flex; align-items: center; flex: 1; padding: 12px 22px; color: #0b0b0b; }

  .nav-item--has-children > a::after, .nav-item--has-children > .nav-label::after { display: none; }
  .nav-submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center; align-self: stretch;
    width: 46px; background: none; border: none; cursor: pointer; color: #0b0b0b;
  }
  .nav-submenu-toggle::before { content: "\25BE"; font-size: 0.8em; transition: transform .2s ease; }
  .nav-item.is-open > .nav-submenu-toggle::before { transform: rotate(180deg); }

  .nav-submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; flex-direction: column; background: none; border: none;
    box-shadow: none; border-radius: 0; min-width: 0; margin: 0; padding: 0; z-index: auto;
  }
  .nav-item--mega > .nav-submenu { display: none; grid-template-columns: none; }
  .nav-item.is-open > .nav-submenu { display: flex; }
  .nav-submenu a, .nav-submenu .nav-label { padding-left: 38px; white-space: normal; }
  .nav-submenu .nav-item--has-children > .nav-submenu { top: auto; left: auto; margin: 0; }
  .nav-submenu .nav-submenu a { padding-left: 54px; }
}

/* Articles — editorial: clean image + title + dek, no card chrome. */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-top: 28px; }
.article-card { display: flex; flex-direction: column; }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 6px; }
.article-card h2 { font-size: 1.25rem; margin: 14px 0 6px; }
.article-card h2 a { color: #0b0b0b; text-decoration: none; }
.article-card h2 a:hover { color: #555; }
.article-card .muted { margin: 0; }
.article-detail .article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; margin: 16px 0 24px; }
.article-detail .lead { font-size: 1.2rem; color: #333; line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.article-body { line-height: 1.8; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
[data-theme="dark"] .article-card h2 a { color: #f4f4f4; }
[data-theme="dark"] .article-card h2 a:hover { color: #bbb; }
[data-theme="dark"] .article-detail .lead { color: #bbb; }
.article-count { margin-top: 8px; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.article-card__meta .read-more { font-size: 0.85rem; }
.article-date { font-size: 0.78rem; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.06em; }
.article-detail .article-date { margin: 0 0 16px; }
[data-theme="dark"] .article-date { color: #888; }

/* Listings */
.listing-count { margin-top: 8px; }
.listing-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; margin-top: 24px; }
.listing-card { display: flex; flex-direction: column; }
.listing-card__media { position: relative; display: block; aspect-ratio: 4/3; background: #f0f0f0; overflow: hidden; border-radius: 6px; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-badge { position: absolute; left: 12px; top: 12px; background: #0b0b0b; color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.listing-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 0; flex: 1; }
.listing-price { margin: 0; font-size: 1.2rem; font-weight: 600; color: #0b0b0b; font-family: Georgia, serif; }
.listing-price .muted { font-weight: 400; }
.listing-card__body h2 { font-size: 1.1rem; margin: 0; }
.listing-card__body h2 a { color: #0b0b0b; text-decoration: none; }
.listing-card__body h2 a:hover { color: #555; }
.listing-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: #8a8a8a; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; padding: 10px 0; }
.listing-address { margin: auto 0 0; font-size: 0.85rem; }
.listing-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 6px; margin: 16px 0 24px; }
.listing-detail .listing-price { font-size: 1.8rem; margin-bottom: 16px; }
.listing-facts ul { list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid #e6e6e6; }
.listing-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid #e6e6e6; font-size: 0.92rem; }
.listing-facts li:last-child { border-bottom: 0; }
.listing-facts li span:first-child { font-weight: 600; color: #0b0b0b; }
.listing-facts li span:last-child { color: #8a8a8a; text-align: right; }
.listing-body { line-height: 1.8; }
.listing-body img { max-width: 100%; height: auto; border-radius: 6px; }
[data-theme="dark"] .listing-card__media { background: #222; }
[data-theme="dark"] .listing-badge { background: #f4f4f4; color: #0b0b0b; }
[data-theme="dark"] .listing-price, [data-theme="dark"] .listing-card__body h2 a, [data-theme="dark"] .listing-facts li span:first-child { color: #f4f4f4; }
[data-theme="dark"] .listing-specs, [data-theme="dark"] .listing-facts ul, [data-theme="dark"] .listing-facts li { border-color: #262626; }

/* Pagination — the numbered pager on the articles/listings index. */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pager a, .pager span { display: inline-flex; min-width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; padding: 0 0.6rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; text-decoration: none; color: inherit; }
.pager a:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.pager .pager-current { background: var(--primary, #2563eb); border-color: var(--primary, #2563eb); color: #fff; }
[data-theme="dark"] .pager a, [data-theme="dark"] .pager span { border-color: #303030; }
