/* Shared visual refinement. No external fonts or UI dependencies. */
:root { --accent:#7ee787; --panel:#121a17; --muted:#afbeb6; --line:#2a3b32; }
body { background-color:#0b100e; background-image:linear-gradient(#0b100ee8,#0b100ee8),url('/img/wallpaper.svg?v=7'); }
a { text-underline-offset:.2em; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
nav { background:#0b100ef5; border-bottom:1px solid var(--line); }
nav .logo { letter-spacing:-.04em; }
nav a.active { color:var(--accent); }
.status-bar { background:#111a15; border-color:var(--line); }
.btn,.ip-box { border-radius:10px; transition:background .18s,border-color .18s,transform .18s; }
.btn { border-color:#3b7650; }
.btn:hover { transform:translateY(-2px); }
.ip-box { background:#15251b; color:var(--accent); border:1px solid #3b7650; font-family:monospace; }
.page-header { margin:1.5rem auto 1.75rem; max-width:900px; }
.page-header h1,.article-heading h1 { color:#f0f6f2; letter-spacing:-.035em; line-height:1.15; }
.page-header p { color:var(--muted); }
.eyebrow { display:block; text-transform:uppercase; letter-spacing:.12em; font-size:.75rem; font-weight:700; color:var(--accent); margin-bottom:.65rem; }
.news-archive { padding-bottom:3rem; }
.news-preview-grid { max-width:1120px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.1rem; }
.news-preview-card { background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 28px #0002; }
.news-preview-card:hover { border-color:#568c66; transform:translateY(-3px); }
.news-preview-image { aspect-ratio:16/9; background:#0b100e; flex:none; }
.news-preview-image img { width:100%; height:100%; max-height:none; object-fit:cover; }
.news-preview-info { padding:1.25rem; flex:1; display:flex; flex-direction:column; }
.news-preview-info h2 { font-size:1.15rem; line-height:1.35; color:#eef5f0; text-align:left; margin:.4rem 0 .65rem; letter-spacing:-.015em; }
.news-preview-card .news-preview-date { font-size:.8rem; color:#aebdb4 !important; margin:0; }
.news-preview-card .news-preview-text { color:#c0cdc5 !important; font-size:.93rem; line-height:1.6; }
.read-more { color:var(--accent); font-size:.87rem; font-weight:600; padding-top:1rem; margin-top:auto; }
#latest-news { padding:1.25rem 0 2rem; }
#latest-news h2 { font-size:1.8rem; color:#eef5f0; margin-bottom:1rem; }
#latest-news .news-preview-info h2 { font-size:1.15rem; text-align:left; margin:.4rem 0 .65rem; }
.about-heading { font-size:1.8rem; color:#eef5f0; text-align:center; line-height:1.2; margin-bottom:1.5rem; }
.pagination { position:static; display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; background:none; margin:2rem 0 0; border:0; padding:0; }
.pagination a { min-width:44px; min-height:44px; display:grid; place-items:center; background:var(--panel); border:1px solid var(--line); border-radius:10px; }
.pagination a[aria-current] { color:#0b100e; background:var(--accent); border-color:var(--accent); font-weight:700; }
.news-reader { max-width:1100px; padding:1.5rem 1.5rem 3rem; margin:auto; }
.back-link { display:inline-block; font-size:.9rem; color:var(--accent); margin-bottom:1rem; }
.article-heading { max-width:900px; margin:0 auto 1.5rem; }
.article-heading h1 { font-size:clamp(1.8rem,4vw,2.75rem); margin-bottom:1rem; }
.article-meta,.media-hint { color:var(--muted); font-size:.85rem; }
.article-lead { color:#cbd9d0; font-size:1.15rem; line-height:1.65; margin-top:1rem; }
.article-media { display:flex; gap:.75rem; overflow-x:auto; scroll-snap-type:x mandatory; border-radius:14px; background:#080d0a; }
.article-media figure { flex:0 0 100%; scroll-snap-align:start; margin:0; }
.article-media a { display:block; }
.article-media img { width:100%; height:auto; max-height:65vh; object-fit:contain; display:block; }
.media-hint { text-align:center; margin:.6rem 0 1.5rem; }
.news-reader .news-article-content { max-width:900px; margin:1.5rem auto; text-align:left; font-size:1.06rem; line-height:1.8; overflow-wrap:anywhere; }
.news-article-content p { margin:0 0 1.2em; }
.article-pagination { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; background:none; padding:1rem 0; border:0; margin:1.5rem 0; }
.article-pagination a { background:var(--panel); border:1px solid var(--line); padding:1rem; border-radius:12px; color:#edf4ef; overflow-wrap:anywhere; }
.article-pagination span { display:block; color:var(--accent); font-size:.8rem; margin-bottom:.35rem; }
.empty-state { text-align:center; padding:2rem; }
.preview-notice { background:#3c3216; color:#ffdf91; padding:1rem; border-radius:10px; margin-bottom:1rem; }
#image-viewer { position:fixed; inset:0; margin:auto; width:95vw; max-width:1400px; max-height:94vh; padding:2.75rem .5rem .5rem; border:1px solid var(--line); border-radius:12px; background:#0b100e; }
#image-viewer::backdrop { background:#000d; }
#image-viewer img { max-width:100%; max-height:82vh; object-fit:contain; display:block; margin:auto; }
#image-viewer button { position:absolute; top:.15rem; right:.5rem; width:40px; height:40px; background:none; color:white; border:0; font-size:2rem; }
.skip-link { position:fixed; top:-100px; left:1rem; background:var(--accent); color:#09150c !important; padding:.65rem 1rem; z-index:10000; border-radius:8px; }
.skip-link:focus { top:.5rem; }
footer { background:#0b100e; border-top:1px solid var(--line); color:var(--muted); }
@media(max-width:1000px) { .news-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .news-preview-grid { grid-template-columns:1fr; } .news-reader { padding:1rem 1rem 2rem; } .article-pagination { grid-template-columns:1fr; } .page-header { margin:1.2rem auto; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
nav a.active { color:#07120a; background:var(--accent); }
.news-preview-image img { object-fit:contain; }
.article-pagination a { white-space:normal; }
.pagination,.article-pagination { box-shadow:none; z-index:auto; }
.article-controls { display:flex; justify-content:center; gap:.75rem; margin-top:.75rem; }
.article-controls button { min-height:44px; padding:.45rem .9rem; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--accent); }

.article-carousel { position:relative; margin-bottom:1.5rem; border-radius:14px; overflow:hidden; background:#080d0a; }
.article-carousel .article-media { scrollbar-width:none; gap:0; border-radius:0; }
.article-media::-webkit-scrollbar { display:none; }
.article-carousel figure { display:flex; align-items:center; justify-content:center; }
.article-carousel img { height:min(58vw,600px); max-height:65vh; object-fit:contain; }
.media-arrow { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:64px; border:1px solid #ffffff40; border-radius:12px; background:#07120bd9; color:#fff; font-size:2.5rem; line-height:1; }
.media-prev { left:12px; } .media-next { right:12px; }
.media-arrow:hover,.media-expand:hover { background:#254731; }
.media-expand,.media-count { position:absolute; bottom:12px; background:#07120be6; color:#fff; padding:.5rem .75rem; border-radius:8px; font-size:.85rem; }
.media-expand { right:12px; min-height:44px; display:flex; align-items:center; }
.media-count { left:12px; pointer-events:none; }
.article-carousel :focus-visible { outline-offset:-4px; }
@media(max-width:600px) { .media-arrow { width:40px; height:52px; } .media-prev { left:6px; } .media-next { right:6px; } .media-expand,.media-count { bottom:6px; } }
.builds-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; padding-bottom:3rem; }
.build-card { min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.build-card .article-carousel { border-radius:0; margin:0; }
.build-card .article-carousel img { height:auto; aspect-ratio:16/10; object-fit:contain; }
.build-info { padding:1.3rem; }
.build-info h2 { text-align:left; color:#eef5f0; font-size:1.5rem; margin:.25rem 0 .6rem; }
.build-author { color:var(--muted); margin-bottom:1rem; }
.build-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.build-actions .btn { font-size:.9rem; padding:.65rem .8rem; }
.copy-coordinates { border:1px solid var(--line); color:var(--accent); background:transparent; border-radius:8px; min-height:44px; padding:.5rem; }
.build-info .media-hint { text-align:left; margin:.5rem 0; }
.copy-status { color:var(--accent); font-size:.85rem; }
.news-article-content h2,.news-article-content h3 { color:#edf5ef; text-align:left; font-size:1.4rem; margin:1.5rem 0 .7rem; }
.news-article-content ul,.news-article-content ol { padding-left:1.5rem; margin:0 0 1.2rem; }
.news-article-content li { margin:.4rem 0; }
.news-article-content a { color:var(--accent); text-decoration:underline; }
#image-viewer .viewer-navigation { display:flex; justify-content:center; align-items:center; gap:1rem; margin-top:.5rem; }
#image-viewer .viewer-navigation[hidden] { display:none; }
#image-viewer .viewer-navigation button { position:static; width:48px; height:44px; font-size:2rem; border:1px solid var(--line); border-radius:8px; }
#image-viewer .viewer-navigation span { color:#edf5ef; }
#image-viewer img { max-height:72vh; touch-action:pan-y; }
.rules-toc { position:static; width:auto; background:var(--panel); box-shadow:none; border:1px solid var(--line); border-radius:12px; padding:1rem; margin-bottom:1.5rem; z-index:auto; }
.rules-toc ol { display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; padding-left:1.3rem; }
.rules-toc a { white-space:normal; }
.rule-category,[id^="rule-"] { scroll-margin-top:90px; }
.rule-anchor { margin-left:.5rem; color:var(--accent); font-size:.85rem; text-decoration:underline; }
.stats-period-note { color:#b6cabb; margin:1rem 0; }
.error-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin:1.5rem 0 3rem; }
.news-search-toggle { margin:0 0 .6rem; }
.news-search-toggle summary { display:flex; align-items:center; justify-content:center; width:32px; height:32px; margin-left:auto; color:var(--muted); border:1px solid var(--line); border-radius:8px; cursor:pointer; list-style:none; }
.news-search-toggle summary::-webkit-details-marker { display:none; }
.news-search-toggle summary:hover,.news-search-toggle[open] summary { color:var(--accent); border-color:var(--accent); }
.news-search { max-width:460px; margin:.5rem 0 .8rem auto; padding:.75rem; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.news-search label { display:block; margin-bottom:.5rem; color:#edf5ef; font-weight:600; }
.news-search > div { display:flex; gap:.6rem; }
.news-search input { flex:1; min-width:0; width:100%; border:1px solid var(--line); border-radius:8px; background:#0b130f; color:#edf5ef; padding:.7rem; font:inherit; }
.news-search button,.share-actions button { min-height:44px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--accent); padding:.6rem .9rem; font:inherit; cursor:pointer; }
.news-search button:hover,.share-actions button:hover { border-color:var(--accent); }
.news-search p { color:var(--muted); margin:.7rem 0 0; }
.share-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; margin:1rem 0; font-size:.9rem; }
.share-actions [role="status"] { color:var(--muted); overflow-wrap:anywhere; min-width:0; }
.build-card { scroll-margin-top:90px; }
.build-card:target { border-color:var(--accent); }
.build-description { color:#d3dfd7; line-height:1.65; margin:0 0 1rem; overflow-wrap:anywhere; }
@media(max-width:760px) { .builds-grid { grid-template-columns:1fr; } }

/* Compact discovery and clear feedback, without new image assets. */
.gallery-tools { margin-bottom:.75rem; }
.gallery-tools select { width:100%; min-height:44px; border:1px solid var(--line); border-radius:8px; background:#0b130f; color:#edf5ef; padding:.6rem; font:inherit; }
.gallery-tools label:not(:first-child) { margin-top:.75rem; }
.gallery-filter-actions { margin-top:.75rem; align-items:center; }
.filter-result { color:var(--muted); font-size:.9rem; }
.server-copy-status { text-align:center; color:var(--accent); overflow-wrap:anywhere; font-size:.9rem; }
.server-copy-status:empty { display:none; }
.server-copy-status:not(:empty) { padding-top:.5rem; padding-bottom:.5rem; }
.build-info h2,.article-heading h1,.news-preview-content h3 { overflow-wrap:anywhere; }
.news-article-content { overflow-wrap:anywhere; }
.news-article-content pre { overflow-x:auto; }

.article-carousel .article-media, #image-viewer img { cursor:pointer; }
