.stories-page,.stories-related,[data-story-editor]{--story-line:var(--border-default,#c9d6d4);--story-accent:var(--link,#006b64);color:var(--text-primary,#172c2b)}
[data-theme=dark] .stories-page,[data-theme=dark] .stories-related,[data-theme=dark] [data-story-editor]{--story-line:#425957;--story-accent:#8edbd0;color:#e9f4f2}
.stories-main{max-width:1120px;margin:auto;padding:2rem clamp(1rem,4vw,3rem) 4rem}.stories-main>nav{font-size:.9rem;margin-bottom:2rem;overflow-wrap:anywhere}
.stories-intro{max-width:44rem;margin:1rem 0 2.5rem}.stories-intro h1{font-size:clamp(2rem,4vw,3rem);line-height:1.35;margin-bottom:1rem}.stories-lead{font-size:1.2rem;line-height:1.9}.stories-intro>p:last-child{line-height:1.9}
.stories-search{display:flex;align-items:end;flex-wrap:wrap;gap:1rem;margin:2rem 0}.stories-search label{display:grid;gap:.4rem;flex:1;min-width:10rem}.stories-search input,.stories-search select{width:100%;min-height:44px;padding:.6rem;background:var(--bg-elevated,#fff);color:inherit;border:1px solid var(--story-line,#9baead);border-radius:6px;font:inherit}
.stories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:2rem}.story-card{border-top:1px solid var(--story-line);padding-top:1.2rem;min-width:0}.story-card img{width:100%;aspect-ratio:8/5;object-fit:cover;height:auto;border-radius:6px}.story-card h3{font-size:1.3rem;line-height:1.65;margin:.6rem 0}.story-card p{line-height:1.8}.story-meta{font-size:.85rem;color:var(--text-secondary,#455f5c)}
.stories-main>section{margin-block:3rem}.stories-page a,.stories-related a{color:var(--story-accent);text-underline-offset:.2em}.stories-page a:hover,.stories-related a:hover{text-decoration-thickness:2px}.stories-page :focus-visible,[data-story-editor] :focus-visible{outline:3px solid #008c86;outline-offset:4px}
.story-body{max-width:42em;margin:0 auto;font-size:1.05rem;overflow-wrap:anywhere}.story-body h1{font-size:clamp(1.9rem,4vw,3rem);line-height:1.55}.story-body h2{font-size:1.5em;margin:2.6em 0 .8em}.story-body h3{font-size:1.25em;margin:2em 0 .7em}.story-cover{width:100%;height:auto;max-height:600px;object-fit:cover;margin:1.8rem 0}.story-prose{line-height:1.95;overflow-wrap:anywhere}.story-prose p{white-space:pre-line;margin:0 0 1.5em}.story-prose ul,.story-prose ol{padding-left:1.6em;margin:1.2em 0}.story-prose li{margin:.5em 0}.story-prose blockquote{margin:2em 0;padding:1rem 1.5rem;border-block:1px solid var(--story-line,#9baead)}.story-prose figure{margin:2em 0}.story-prose img{max-width:100%;height:auto}.story-prose figcaption{font-size:.85em;margin-top:.5em}.story-toc{border-block:1px solid var(--story-line);padding:1rem 0;margin:2rem 0}.story-toc h2{font-size:1rem;margin:0}.story-toc li{margin:.7rem 0}.story-tags{display:flex;flex-wrap:wrap;gap:1rem;margin:2rem 0}.story-share{margin:2rem 0;display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.stories-footer{max-width:1120px;margin:auto;padding:2rem;border-top:1px solid var(--story-line,#c9d6d4)}
.stories-page button,.story-toolbar button{font:inherit;min-height:44px;padding:.5rem 1rem;border:1px solid var(--story-line,#9baead);border-radius:6px;background:var(--bg-raised,#edf5f3);color:inherit;cursor:pointer}.stories-pager{display:flex;justify-content:space-between;gap:1rem}.stories-notice{padding:1rem;border:1px solid var(--story-line)}
[data-story-editor]{max-width:900px}[data-story-editor] label{display:grid;gap:.5rem;margin:1rem 0}[data-story-editor] input:not([type=checkbox]),[data-story-editor] textarea,[data-story-editor] select{max-width:100%;width:100%;box-sizing:border-box;font:inherit;line-height:1.7}[data-story-editor] textarea{resize:vertical;padding:1rem}[data-story-editor] fieldset{min-width:0;margin:2rem 0;padding:1rem;border:1px solid var(--story-line)}.story-toolbar{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0}.story-edit-preview:not(:empty){border:1px solid var(--story-line);padding:1.5rem;margin:1rem 0}.story-save{padding:1rem 0;border-top:1px solid var(--story-line)}.story-upload-preview{display:block;max-width:320px;max-height:220px;width:auto;height:auto;margin:1rem 0}.stories-related{margin:3rem 0;padding-top:1.5rem;border-top:1px solid var(--story-line)}.stories-related ul{list-style:none;padding:0}.stories-related li{margin:1.5rem 0}.stories-related a{font-weight:700}.stories-related p{margin:.4rem 0;line-height:1.8}
@media(max-width:540px){.stories-main{padding:1.5rem 1rem}.stories-search{display:grid;grid-template-columns:1fr}.story-body{font-size:1rem}.stories-grid{grid-template-columns:1fr}.story-toolbar button{padding:.5rem}.story-upload-preview{max-width:100%}}

.stories-page a:focus-visible,[data-story-editor] :focus-visible{outline:3px solid var(--story-accent,#006b64);outline-offset:3px}.story-prose h2,.story-prose h3{scroll-margin-top:2rem}.story-card,.story-prose,.story-body{overflow-wrap:anywhere}.stories-page button:hover{border-color:var(--story-accent)}

.dn-dashboard .story-toolbar button{color:#263448!important;background:#fff;border-color:#9baead}.dn-dashboard .story-toolbar button:hover{background:#edf5f3;border-color:#006b64}[data-story-editor] label:has(input[type=checkbox]){display:flex;align-items:center;gap:.65rem}.dn-dashboard [data-story-editor] input[type=checkbox]{width:18px;height:18px;margin:0}

@media(min-width:760px){.story-card:only-child:has(img){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:2rem}.story-card:only-child:has(img)>a{grid-row:1/4}.story-card:only-child:has(img)>p,.story-card:only-child:has(img)>h3{grid-column:2}.story-card:only-child:not(:has(img)){max-width:44rem}}

.story-admin-list table{min-width:1120px;font-variant-numeric:tabular-nums}.story-admin-list td:nth-child(2){min-width:16rem;max-width:28rem;white-space:normal;overflow-wrap:anywhere}.story-admin-list td:last-child{min-width:10rem}.story-admin-list td:last-child button{white-space:nowrap}[data-count]{font-size:.9rem;font-variant-numeric:tabular-nums}

.story-select-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.story-admin-list td:first-child label{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer}#stories-bulk{margin-block:1rem}.story-admin-list td:has(strong){background:var(--bg-raised,#edf5f3)}[data-storage-status],[data-check-list]{overflow-wrap:anywhere}
