/* MiniWeb site styles (everything except the published pages; those are in themes.css).
   Two classic fonts: Georgia for headlines, Helvetica/Arial for text (change them in :root). Colors: greys, green for positive actions, red for delete/report.
   Change the tokens in :root and the whole site follows. */

/* ===== Tokens ===== */
:root {
  --font-text: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-head: Georgia, 'Times New Roman', serif;
  --ink: #222; --muted: #666; --line: #e0e0e0; --edge: #bdbdbd; --paper: #f6f6f6; --white: #fff;
  --grey: #ececec; --grey-dk: #dcdcdc;                       /* basic buttons */
  --green: #2f7d4f; --green-dk: #25663f;                     /* positive actions */
  --b: #4073cf;   /* box accent: borders, headline bars, links in lists (blue by default) */
  --red: #b3261e; --red-dk: #8f1d17; --red-tint: #fdeceb;    /* delete and report */
  --coral: #DE7272; --peach: #FFCA88; --butter: #FFF6A9; --mint: #B4E4D6;   /* avatar squares */
  --r: 6px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font-text); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: inherit; line-height: 1.2; }   /* published pages keep their own fonts */
.wrap h1, .wrap h2, .wrap h3, .hero h1, legend, .tl-h { font-family: var(--font-head); font-weight: 700; }
.wrap > h2 { margin-top: 2rem; }
.wrap a, .hero a, .top a, .site-foot a, .cookie-bar a { color: var(--ink); text-underline-offset: 2px; }
.wrap a:hover, .hero a:hover, .top a:hover, .site-foot a:hover, .cookie-bar a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { width: 100%; max-width: 800px; margin: 0 auto; padding: 1rem; }
main.wrap { padding-bottom: 2.5rem; }
.hint, .cnt, .dir small { color: var(--muted); }
.hint { font-size: .85rem; margin: .2rem 0; }

/* ===== Boxes: one look for every white panel ===== */
.cards div, fieldset, details, .faq, .tl, .dir, .key, .empty { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.cards div { padding: 0; overflow: hidden; border: 1px solid var(--b); border-radius: 0; }
.cards div:nth-child(2) { --b: var(--green); }
.cards div:nth-child(3) { --b: #c2580c; }   /* orange */
.wrap .cards h3 { margin: 0; padding: .7rem 1rem; font: 700 1.05rem/1.2 var(--font-text); color: #fff; background: var(--b); }
.cards p { margin: 0; padding: .8rem 1rem 1rem; }
fieldset { margin: 0 0 1rem; padding: .6rem 1rem 1rem; border-color: var(--b); border-radius: 0; }
fieldset legend { font: 700 1.05rem/1.3 var(--font-text); color: #fff; background: var(--b); padding: .2rem .8rem; border-radius: 0; }
details { padding: .4rem .9rem; margin-top: .6rem; }
summary { cursor: pointer; font-weight: 700; }
.empty { border-style: dashed; border-color: var(--edge); padding: 1.5rem; text-align: center; }
.tl .empty { border: 0; border-radius: 0; }
.wrap code { background: var(--grey); padding: 0 .25rem; border-radius: 3px; font: inherit; font-weight: 700; }
.key { font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; border: 2px dashed var(--edge); padding: .5rem; }

/* ===== Top bar and footer ===== */
.top { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; padding: .6rem max(1rem, calc((100% - 800px) / 2 + 1rem)); background: var(--white); border-bottom: 1px solid var(--line); }
.top a { font-weight: 700; text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top .brand { margin-right: auto; }
.top .logo { display: block; font-size: 1.4rem; }
.logo img { display: block; max-width: 200px; height: auto; }
.brand .beta { display: block; margin: .15rem 0 0 .2rem; font-size: .72rem; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: .4rem 1.4rem; }
.nav-links a:last-child { background: var(--green); color: #fff; border: 1px solid var(--green-dk); border-radius: var(--r); padding: .3rem .9rem; }
.nav-links a:last-child:hover { background: var(--green-dk); text-decoration: none; }
.site-foot { margin-top: auto; background: var(--white); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.foot-in p { margin: 0; }
/* hamburger menu on small screens: a hidden checkbox + label, no JavaScript */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; padding: .7rem .5rem; margin: 0; cursor: pointer; border-radius: var(--r); }
.nav-burger span { display: block; width: 1.6rem; height: 3px; background: var(--ink); border-radius: 2px; box-shadow: 0 -8px 0 var(--ink), 0 8px 0 var(--ink); }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--ink); outline-offset: 2px; }
.nav-toggle:checked + .nav-burger { background: var(--grey); }
@media (max-width: 640px) {
  .top { position: relative; flex-wrap: nowrap; }
  .top .brand { margin-right: 0; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: .3rem 1rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 10px 18px rgba(0, 0, 0, .1); }
  .nav-links a, .nav-links a:last-child { padding: .8rem .2rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); text-decoration: underline; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ===== Buttons: square pixel look (notched corners, darker bottom edge). Grey by default, green = positive, red = delete / hide / report ===== */
button, .btn, .btn-grey, .filters a, .zones a, .tabs a, .rand, fieldset details > summary, .cookie-bar button, .legal form button {
  --px: #9a9a9a; display: inline-block; font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.4; padding: .4rem 1rem; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--grey); border: 0; border-radius: 0; margin: 3px;
  box-shadow: 0 -3px 0 0 var(--px), 0 3px 0 0 var(--px), -3px 0 0 0 var(--px), 3px 0 0 0 var(--px), inset 0 -4px 0 0 rgba(0,0,0,.16); }
button:hover, .btn:hover, .btn-grey:hover, .filters a:hover, .zones a:hover, .tabs a:hover, .rand:hover, fieldset details > summary:hover, .cookie-bar button:hover, .legal form button:hover { background: var(--grey-dk); color: var(--ink); text-decoration: none; }
button:active, .btn:active, .btn-grey:active, .filters a:active, .zones a:active, .tabs a:active, .rand:active, fieldset details > summary:active, details.sure > summary:active, details.start > summary:active, .nav-links a:last-child:active { transform: translateY(2px); }
.tabs a.on { background: var(--grey-dk); --px: var(--ink); }
button.main, .btn.main, .legal form button[value=yes] { background: var(--green); --px: var(--green-dk); color: #fff; }
button.main:hover, .btn.main:hover, .legal form button[value=yes]:hover { background: var(--green-dk); color: #fff; }
/* red: everything that deletes, hides or reports (matched by the button's value, so no extra classes are needed) */
button.danger, button[value=delete], button[value=delete_ask], button[value=gbdel], button[value=blogdel], button[value=boardthread], button[value=boardreply], button[value=news_del], button[value=unpublish], button[value=hide_report], button[value=clear_status], .legal form button[value=no] { background: var(--red); --px: var(--red-dk); color: #fff; }
button.danger:hover, button[value=delete]:hover, button[value=delete_ask]:hover, button[value=gbdel]:hover, button[value=blogdel]:hover, button[value=boardthread]:hover, button[value=boardreply]:hover, button[value=news_del]:hover, button[value=unpublish]:hover, button[value=hide_report]:hover, button[value=clear_status]:hover, .legal form button[value=no]:hover { background: var(--red-dk); color: #fff; }
button.link { background: none; margin: 0; padding: 0; box-shadow: none; transform: none; font-weight: 400; text-decoration: underline; }
button.link:hover { background: none; }
/* header "Edit page" link: same pixel look */
.nav-links a:last-child { --px: var(--green-dk); border: 0; border-radius: 0; margin: 3px 3px 3px 6px; padding: .35rem 1rem;
  box-shadow: 0 -3px 0 0 var(--px), 0 3px 0 0 var(--px), -3px 0 0 0 var(--px), 3px 0 0 0 var(--px), inset 0 -4px 0 0 rgba(0,0,0,.16); }
@media (max-width: 640px) { .nav-links a:last-child { margin: 0; box-shadow: none; padding: .8rem .2rem; } }
.danger-zone { margin: 1.5rem 0 0; font-size: .9rem; }
.danger-zone a { color: var(--red); }
.row { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.filters, .zones, .tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
/* directory sort links: plain text, the current one in bold */
.filters { margin: 0 0 1.2rem; gap: 1.4rem; }
.filters a, .filters a:hover, .filters a:active, .filters a[aria-current=page] { background: none; box-shadow: none; margin: 0; padding: 0; transform: none; font-weight: 400; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.filters a:hover { text-decoration-thickness: 2px; }
.filters a[aria-current=page] { font-weight: 700; text-decoration: none; }
.filters strong { margin-right: -.4rem; }
.zones { margin: 0 0 1.4rem; } .zones strong { margin-right: .3rem; }
.zones a { font-size: .855rem; padding: .36rem .9rem; }   /* zone buttons: 10% smaller */
.tabs { margin: 1rem 0 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.edit-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .edit-top form { margin: 0; }
.rand { padding: .6rem 1.1rem; }
fieldset details { padding: 0; border: 0; background: none; margin-top: .8rem; }   /* SimpleCode guide: the summary is the button */
fieldset details > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; }
fieldset details > summary::-webkit-details-marker { display: none; }
fieldset details > summary::before { content: "\25B8"; }
fieldset details[open] > summary::before { content: "\25BE"; }
fieldset details > p { margin: .6rem 0 0; }

/* ===== Forms and messages ===== */
label { display: block; font-weight: 700; margin: .6rem 0 .15rem; }
input, select, textarea { width: 100%; font: inherit; padding: .45rem .6rem; color: var(--ink); background: var(--white); border: 1px solid var(--edge); border-radius: var(--r); }
textarea { resize: vertical; }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--ink); }
input[readonly] { background: var(--paper); }
.check, .theme { font-weight: 400; display: flex; gap: .4rem; align-items: center; }
.cnt { display: block; text-align: right; font-weight: 400; font-size: .8rem; margin-top: .15rem; }
.cnt.warn { color: var(--red); font-weight: 700; }
.err, .notice { background: var(--red-tint); border: 2px solid var(--red); border-radius: var(--r); color: var(--red-dk); padding: .5rem 1.5rem; font-weight: 700; }
.err::before { content: "Please fix:"; display: block; margin-left: -1rem; }
.notice { padding: .8rem 1rem; margin: 1rem 0; } .notice a { color: inherit; }
.ok { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* hidden bot trap */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .4rem; margin-top: .6rem; }
.theme { border: 1px solid var(--line); border-radius: var(--r); padding: .3rem .5rem; margin: 0; }
.theme:has(input:checked) { border: 2px solid var(--ink); background: var(--grey); padding: calc(.3rem - 1px) calc(.5rem - 1px); }
.sw { width: 1.3rem; height: 1.3rem; border: 1px solid #333; border-radius: 3px; flex: none; }
.sw-dark { background: #1c1c1f; } .sw-minimal { background: #fbfbfa; } .sw-green { background: #cfe8c9; } .sw-blue { background: #c3dcf5; } .sw-pink { background: #f8c6d5; }
.sw-chrome { background: linear-gradient(135deg, #fff 35%, #8f8f8f); } .sw-orange { background: linear-gradient(135deg, #fff1e0 50%, #ff7a00 50%); }
.sw-sunny { background: linear-gradient(135deg, #fff3b8 50%, #0b6b3a 50%); } .sw-bold { background: linear-gradient(135deg, #ffe0cf 50%, #1a1f6b 50%); } .sw-pixel { background: linear-gradient(135deg, #6abf3b 35%, #c8782f 35% 70%, #7ec8ff 70%); }
.sw-realm { background: linear-gradient(135deg, #10302a 50%, #ffd100 50%); } .sw-kawaii { background: linear-gradient(135deg, #ffd9e8 50%, #8e2a63 50%); } .sw-shibuya { background: linear-gradient(135deg, #dccdf3 50%, #72b43f 50%); }
.avatars { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.avo { position: relative; margin: 0; cursor: pointer; }
.avo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avo img, .avo .none { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 2px solid var(--line); border-radius: var(--r); font-size: .75rem; font-weight: 400; image-rendering: pixelated; background: var(--white); }
.avo:hover img, .avo:hover .none { border-color: var(--ink); }
.avo input:checked + img, .avo input:checked + .none { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.avo input:focus-visible + img, .avo input:focus-visible + .none { outline: 3px solid var(--ink); }
.emo-h { margin: .8rem 0 .2rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.emo { display: flex; flex-wrap: wrap; gap: .25rem; }
.emo span { font-size: 1.6rem; line-height: 1; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; -webkit-user-select: all; user-select: all; }
.emo span:hover { border-color: var(--ink); background: var(--grey); }
.zonepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .3rem .8rem; }
.gb-owner { border-top: 1px solid var(--line); padding: .6rem 0; } .gb-owner p { margin: .1rem 0; overflow-wrap: anywhere; } .gb-owner form { margin: .3rem 0 0; }

/* ===== Homepage and lists ===== */
.hero { background: linear-gradient(180deg, #eef3fc, #e1eafa); border-bottom: 1px solid #c9d7f0; }
.hero .wrap { padding-top: 2.2rem; padding-bottom: 1.6rem; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 .6rem; }
.lead { font-size: 1.1rem; max-width: 36rem; }
.crumbs { font-size: .85rem; margin: 0 0 .8rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin: 0 .5rem; }
.crumbs a { color: var(--muted); }
.dir { list-style: none; margin: 0 0 1rem; padding: 0; }
.dir li { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.dir li:last-child { border-bottom: 0; }
.twocol { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; margin: 1rem 0; }
@media (min-width: 760px) { .twocol { grid-template-columns: 1fr 1fr; } }
.tl { overflow: hidden; border: 1px solid var(--b); border-radius: 0; }
.hint + .tl { margin-top: .8rem; }
.wrap h2.tl-h { margin: 0; padding: .7rem 1rem; font-size: 1.05rem; color: #fff; background: var(--b); font-family: var(--font-text); }
.tl .dir { border: 0; border-radius: 0; margin: 0; }
.dir li.tw { padding: 0; }
.dir li.tw a { display: flex; gap: .75rem; padding: .75rem 1rem; text-decoration: none; }
.dir li.tw a:hover { background: var(--paper); }
.dir li.tw a:hover strong { text-decoration: underline; }
.av { display: flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: var(--r); font-weight: 700; font-size: 1.3rem; }
.av-0 { background: var(--coral); } .av-1 { background: var(--peach); } .av-2 { background: var(--butter); box-shadow: inset 0 0 0 1px #e3d77f; } .av-3 { background: var(--mint); }
.av-img { object-fit: cover; image-rendering: pixelated; background: var(--white); }
.who.meta { margin-top: .15rem; }
.txt { min-width: 0; } .who, .snip { display: block; overflow-wrap: anywhere; } .who small { font-size: .85rem; }
.tl-more, .pager { margin: 0; padding: .6rem 1rem; background: #f3f3f3; border-top: 1px solid var(--b); font-size: .9rem; font-weight: 700; }
.tl-more a, .pager a { color: var(--b); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .pager .off { color: var(--muted); }
/* every 2nd profile / blog row gets a very light blue background */
.dir li.tw:nth-child(even), .dir li.bl:nth-child(even) { background: #f1f6fd; }
.dir li.tw:nth-child(even) a:hover { background: #e4edfb; }
/* "What's new?" on the homepage: each status is a small white card with pixel corners */
.talk { margin: 0 0 1.6rem; }
.talk-h { margin: 0 0 1rem; font-size: 1.6rem; line-height: 1.2; color: var(--ink); }   /* plain heading, same font as the page titles */
.talk-list { list-style: none; margin: 0; padding: 0 4px 4px 0; display: grid; gap: .8rem; filter: drop-shadow(4px 4px 0 #d3dbea); }
/* each status is a white card with stepped ("pixel") corners; the shadow follows the shape */
.talk-list li { display: flex; align-items: flex-start; gap: .9rem; padding: .7rem 1.1rem; background: #fff;
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)); }
.talk .who { flex: none; text-decoration: none; color: var(--ink); }
.talk .av { width: 48px; height: 48px; border-radius: var(--r); box-shadow: none; image-rendering: auto; }   /* plain, smooth profile pictures (not pixelated) */
.talk .msg { min-width: 0; }
.talk .nm { margin: 0; line-height: 1.3; } .talk .nm a { font-size: 1.1rem; font-weight: 700; text-decoration: none; } .talk .nm a:hover { text-decoration: underline; }
.talk .dt { margin-left: .5rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.talk .say { margin: .1rem 0 0; overflow-wrap: anywhere; }
.faq { overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--b); border-radius: 0; }
.faq details { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.faq summary { padding: .7rem 1rem; font-size: 1.05rem; color: var(--b); background: var(--white); border-bottom: 1px solid var(--b); }
.faq details:last-child:not([open]) summary { border-bottom: 0; }
.faq summary:hover { background: #eef3fb; }
.faq details[open] summary { color: #fff; background: var(--b); }
.faq details p { margin: 0; padding: .8rem 1rem 1rem; background: var(--white); }
.faq details[open]:not(:last-child) p { border-bottom: 1px solid var(--b); }
.music { margin-top: 1.5rem; }
.music .mrow { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; padding: 1rem; }
.music iframe { display: block; width: 360px; max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.music .mtxt { flex: 1 1 220px; } .music .mtxt p { margin: 0 0 .6rem; }
.yt-off { font-size: .9rem; }

/* admin Health tab */
.hc .h-ok { color: var(--green); } .hc .h-warn { color: #a05a00; } .hc .h-bad { color: var(--red); } .hc strong { display: inline-block; min-width: 4.8rem; }

/* ===== Cookie banner and legal pages ===== */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem max(1rem, calc((100% - 800px) / 2 + 1rem)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(0, 0, 0, .08); }
.cookie-bar p { flex: 1 1 18rem; margin: 0; font-size: .92rem; }
.cookie-bar form, .legal form { display: flex; gap: .5rem; margin: 0; }
.legal h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; } .legal ul { padding-left: 1.2rem; } .legal li { margin-bottom: .5rem; }

/* ===== Blog: like button, pictures, post previews, single post page ===== */
.like { display: inline; margin: 0; } .like button { font-size: .85rem; padding: .1rem .6rem; }
.bimg { display: block; max-width: 100%; height: auto; margin: 0 0 .6rem; }
/* list of previews: grid, picture on the left, so the text can use the full width on phones */
.dir li.bl { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .3rem; align-items: start; }
.dir li.bl .th { grid-column: 1; grid-row: 1 / 3; } .dir li.bl .th img { display: block; width: 150px; height: 100px; object-fit: cover; }
.dir li.bl .txt { grid-column: 2; grid-row: 1; min-width: 0; } .dir li.bl .snip { grid-column: 2; grid-row: 2; display: block; margin: 0; overflow-wrap: anywhere; }
.dir li.bl.noimg .txt, .dir li.bl.noimg .snip { grid-column: 1 / 3; }
@media (max-width: 560px) { .dir li.bl .th { grid-row: 1; } .dir li.bl .snip { grid-column: 1 / 3; } }
@media (max-width: 480px) { .dir li.bl .th img { width: 96px; height: 64px; } }
/* a post on its own page (/blog?h=..&p=..): one generic design for every blog, not the author's theme */
.site.blogsite { background: none; padding: 0; font: inherit; color: var(--ink); overflow: visible; }
.site.blogsite .bp { background: var(--white); border: 1px solid var(--b); padding: 1.2rem 1.4rem; margin: 0 0 1rem; }
.site.blogsite .bp h1 { font: 700 1.9rem/1.2 var(--font-head); margin: 0 0 .3rem; }
.site.blogsite .bp a { color: var(--ink); }
.site.blogsite .bp .bd.gbe { border-top: 1px solid var(--line); background: none; margin-top: 1rem; padding-top: 1rem; }
.site.blogsite .bp .bhd { flex: 1 1 200px; }
.site.blogsite .bp small { color: var(--muted); font-size: .9rem; }
main > .tl + .tl { margin-top: 1.2rem; }
main > .tl + .hint { margin-top: 1rem; }   /* only stacked boxes, not the two side-by-side columns */

/* ===== 404 page ===== */
.err404 { text-align: center; padding-top: 2rem; padding-bottom: 3rem; }
.e404 { font: 700 clamp(5rem, 24vw, 9rem)/1 var(--font-head); color: var(--b); text-shadow: 6px 6px 0 #c9d7f0; margin: 0; }
.err404 h1 { margin: .4rem 0 .6rem; } .err404 .row { justify-content: center; }

/* zone message boards */
.board { list-style: none; margin: 1rem 0; padding: 0; }
.board .bd { display: flex; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); } .board .bd:first-child { border-top: 0; }
.board .av, .threads .av { image-rendering: auto; }
.board .av { width: 40px; height: 40px; flex: none; }
.board .msg { min-width: 0; flex: 1; } .board .nm { margin: 0; } .board .dt { color: var(--muted); font-size: .85em; margin-left: .6rem; }
.board .say { margin: .2rem 0; overflow-wrap: anywhere; } .board form { margin: .3rem 0 0; }

/* delete: first click only opens "Are you sure?" (no JavaScript) */
details.sure { display: inline-block; background: none; border: 0; padding: 0; margin: 0; vertical-align: top; }
details.sure > summary { list-style: none; --px: var(--red-dk); background: var(--red); color: #fff; display: inline-block; font-size: .95rem; font-weight: 700; line-height: 1.4; padding: .4rem 1rem; margin: 3px; cursor: pointer; border-radius: 0; box-shadow: 0 -3px 0 0 var(--px), 0 3px 0 0 var(--px), -3px 0 0 0 var(--px), 3px 0 0 0 var(--px), inset 0 -4px 0 0 rgba(0,0,0,.16); }
details.sure > summary::-webkit-details-marker { display: none; }
details.sure > summary:hover { background: var(--red-dk); }
details.sure p { margin: .5rem 0 .2rem; font-size: .9rem; }

/* zone members: small icon + @name chips */
.mem { list-style: none; margin: .6rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.mem a { display: flex; align-items: center; gap: .4rem; padding: .2rem .6rem .2rem .25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: .9rem; }
.mem a:hover { background: #f2f5fc; text-decoration: underline; }
.mem .av { width: 26px; height: 26px; font-size: .8rem; image-rendering: auto; }

/* zone board: "Start a thread" folds open (no JavaScript) */
details.start { background: none; border: 0; padding: 0; margin: .6rem 0 1rem; }
details.start > summary { display: inline-block; list-style: none; cursor: pointer; --px: #1f5a3a; background: var(--green); color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.4; padding: .4rem 1rem; margin: 3px; border-radius: 0; box-shadow: 0 -3px 0 0 var(--px), 0 3px 0 0 var(--px), -3px 0 0 0 var(--px), 3px 0 0 0 var(--px), inset 0 -4px 0 0 rgba(0,0,0,.16); }
details.start > summary::-webkit-details-marker { display: none; }
details.start > summary:hover { filter: brightness(1.1); }
details.start[open] > summary { margin-bottom: .6rem; }

/* [quote] in blog posts */
.bd blockquote { margin: .8rem 0; padding: .5rem 1rem; border-left: 4px solid var(--b); background: #f2f5fc; color: var(--ink); font-style: italic; overflow-wrap: anywhere; }
.bd blockquote blockquote { margin: .4rem 0; }

/* zone subtitle */
.zsub { margin: -.4rem 0 1rem; color: var(--muted); }
.dir .zsub { margin: 0; font-size: .9rem; }
.mem + nav.zones { margin-top: 1.6rem; }
