/* SITE module: announcement/blog images, static pages (/page/<slug>), pages admin (/pages), legacy 410 page.
   Theme tokens only (nb.css); sharp radii. */

/* ------------------------------------------------------------ post / announcement images */
.st-img { display: block; overflow: hidden; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); }
.st-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-img.is-card { margin: 12px 0 2px; max-width: 100%; }
.st-img.is-card img { height: auto; max-height: 320px; }
.st-img.is-card:hover { border-color: color-mix(in oklab, var(--foreground) 22%, transparent); }
.st-img.is-hero { margin: 4px 0 18px; }
.st-img.is-hero a { display: block; }
.st-img.is-hero img { height: auto; max-height: min(70vh, 640px); object-fit: contain; cursor: zoom-in; }
/* compact home card: banner across the top, the usual row below */
.bl-ann.is-compact.has-img { flex-wrap: wrap; row-gap: 12px; }
.bl-ann.is-compact .st-img.is-banner { flex: 0 0 100%; aspect-ratio: 12 / 5; border: 0; }

/* image field of the edit forms */
.st-imgfield-box { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.st-imgfield-preview {
	display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
	border: 1px dashed var(--input); border-radius: var(--radius); background: var(--muted); color: var(--muted-foreground);
}
.st-imgfield-preview:not(.is-empty) { border-style: solid; border-color: var(--border); }
.st-imgfield-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-imgfield-inputs { display: grid; gap: 8px; min-width: 0; }
.st-imgfield-pick { position: relative; overflow: hidden; justify-self: start; max-width: 100%; cursor: pointer; }
.st-imgfield-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-imgfield-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.st-imgfield-inputs input[type="url"] { width: 100%; max-width: none; height: 36px; margin: 0; box-sizing: border-box; }
.st-imgfield-rm { font-size: 13px; }
.st-imgfield-err { display: flex; align-items: center; gap: 6px; color: var(--destructive); font-size: 13px; }
@media (max-width: 560px) {
	.st-imgfield-box { grid-template-columns: minmax(0, 1fr); }
	.st-imgfield-preview { max-width: 220px; }
}

/* ------------------------------------------------------------ static pages */
.st-page { max-width: 780px; margin: 0 auto; padding-block: 8px 40px; }
.st-page-head { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.st-page-head h1 { margin: 6px 0 8px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.st-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted-foreground); }
.st-page-meta .nb-btn { margin-left: auto; }
.st-prose { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.78; color: var(--foreground); overflow-wrap: anywhere; }
.st-prose > :first-child { margin-top: 0; }
.st-prose p, .st-prose ul, .st-prose ol, .st-prose blockquote, .st-prose table { margin: 0 0 1.05em; }
.st-prose h2, .st-prose h3, .st-prose h4, .st-prose h5, .st-prose h6 { font-family: var(--font-sans); line-height: 1.3; letter-spacing: -0.01em; margin: 1.7em 0 0.6em; color: var(--foreground); }
.st-prose h2 { font-size: 23px; }
.st-prose h3 { font-size: 19px; }
.st-prose h4, .st-prose h5, .st-prose h6 { font-size: 16px; }
.st-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.st-prose ul, .st-prose ol { padding-left: 1.4em; }
.st-prose li { margin: 0 0 0.35em; }
.st-prose blockquote { padding: 4px 0 4px 16px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
.st-prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.st-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.st-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--font-sans); font-size: 14px; }
.st-prose th, .st-prose td { padding: 6px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.st-prose code { font-size: 0.9em; padding: 1px 5px; background: var(--muted); border-radius: var(--radius-sm); }
.st-page-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ------------------------------------------------------------ pages admin */
.st-admin-list .nb-table td.slug { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; color: var(--muted-foreground); }
.st-admin-list .nb-table td.t a { color: var(--foreground); font-weight: 600; }
.st-admin-list .nb-table td.act { white-space: nowrap; text-align: right; }
.st-form { display: grid; gap: 18px; padding: 22px; }
.st-form .st-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.st-field { display: grid; gap: 7px; margin: 0; font-weight: 400; }
.st-field > span { font-size: 13px; font-weight: 600; color: var(--foreground); }
.st-field > span em { font-style: normal; font-weight: 500; margin-left: 6px; }
.st-field input[type="text"], .st-field input[type="number"], .st-field textarea, .st-field select { width: 100%; max-width: none; margin: 0; box-sizing: border-box; }
.st-field input[type="text"], .st-field input[type="number"], .st-field select { height: 38px; }
.st-field textarea.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.55; min-height: 380px; }
.st-field small { font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
.st-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.st-checks label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; }
.st-checks input { margin: 0; }
.st-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 700px) { .st-form .st-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ legacy: removed series (410) */
.st-gone { max-width: 620px; margin: 40px auto; text-align: center; padding: 36px 28px; }
.st-gone .ico { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); }
.st-gone h1 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.st-gone p { color: var(--muted-foreground); margin: 0 auto 20px; max-width: 46ch; }
.st-gone .nb-row { justify-content: center; }
