/* HTML sitemap (/sitemap/) */
.sm-section { padding-top: clamp(32px, 4vw, 56px); }

.sm-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.sm-jump a { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink-900); font-size: .875rem; font-weight: 700; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.sm-jump a:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.sm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sm-card { min-width: 0; padding: clamp(20px, 2.4vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); scroll-margin-top: calc(var(--header-h) + 24px); }
.sm-card--wide { grid-column: 1 / -1; background: var(--surface); border-color: transparent; }
.sm-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; margin-bottom: 18px; }
.sm-card__head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.sm-card__head p { grid-column: 2; margin: 4px 0 0; font-size: .9375rem; color: var(--ink-600, #5b5f66); }
.sm-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--red-50); color: var(--red-600); }
.sm-ic svg { width: 20px; height: 20px; }
.sm-card--wide .sm-ic { background: var(--ink-900); color: #fff; }

.sm-sub { margin: 18px 0 8px; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.sm-sub:first-of-type { margin-top: 0; }

/* Links */
.sm-section a { color: var(--ink-900); text-decoration: none; font-weight: 600; transition: color .15s; }
.sm-section a:hover { color: var(--red-600); text-decoration: underline; text-underline-offset: 3px; }
.sm-plain { font-weight: 700; color: var(--ink-900); }
.sm-n { margin-left: 8px; font-size: .75rem; font-weight: 700; color: var(--ink-400); white-space: nowrap; }
.sm-tag { margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--red-50); color: var(--red-600); font-size: .6875rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; }

.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sm-list li { padding: 6px 0; line-height: 1.4; font-size: .9375rem; }
.sm-list li + li { border-top: 1px dashed var(--line); }

/* Tree with guide lines */
.sm-tree { list-style: none; margin: 0; padding: 0; }
.sm-tree .sm-tree { margin-left: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.sm-tree li { position: relative; }
.sm-tree .sm-tree > li::before { content: ""; position: absolute; left: -18px; top: 17px; width: 12px; border-top: 1px solid var(--line); }
.sm-tree .sm-tree > li:last-child::after { content: ""; position: absolute; left: -19px; top: 18px; bottom: 0; border-left: 3px solid var(--white); }
.sm-card--wide .sm-tree .sm-tree > li:last-child::after { border-left-color: var(--surface); }
.sm-node { padding: 6px 0; line-height: 1.4; font-size: .9375rem; }
.sm-tree--root > li > .sm-node { font-size: 1rem; }
.sm-tree--root > li > .sm-node a, .sm-tree--root > li > .sm-node .sm-plain { font-weight: 800; }

/* Areas: one block per city; its societies/phases flow across columns */
.sm-areas { display: grid; gap: 16px; }
.sm-city { min-width: 0; padding: 20px 22px 14px; background: var(--white); border-radius: 18px; }
.sm-city__h { margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 800; }
.sm-city__h a, .sm-city__h .sm-plain { font-weight: 800; }
.sm-city > .sm-tree--root { columns: 1; column-gap: 32px; }
@media (min-width: 760px) { .sm-city > .sm-tree--root { columns: 2; } }
@media (min-width: 1100px) { .sm-city > .sm-tree--root { columns: 3; } }
/* Keep each phase together with its sectors; a society may flow into the next column. */
.sm-city .sm-tree--root > li > .sm-tree > li { break-inside: avoid; }
.sm-city .sm-tree--root > li > .sm-node { break-after: avoid; }
.sm-city .sm-tree .sm-tree > li:last-child::after { border-left-color: var(--white); }

/* Insights: category columns */
.sm-cols { columns: 1; column-gap: 16px; }
@media (min-width: 760px) { .sm-cols { columns: 2; } }
@media (min-width: 1100px) { .sm-cols { columns: 3; } }
.sm-col { break-inside: avoid; margin-bottom: 16px; padding: 18px 20px; background: var(--white); border-radius: 18px; }
.sm-col__h { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.sm-col__h a { font-weight: 800; }
.sm-list--posts li { font-size: .875rem; }

/* Company & legal */
.sm-card--slim .sm-card__head { margin-bottom: 12px; }
.sm-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-inline a { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); background: var(--white); font-size: .875rem; }
.sm-inline a:hover { text-decoration: none; background: var(--ink-900); color: #fff; }

@media (max-width: 899px) {
  .sm-sub, .sm-tag { font-size: .75rem; }
  .sm-list li { padding: 0; }
  .sm-list a { display: inline-block; padding-block: 10px; }
}
