/* Shared visual language established by the writer and account profiles. */
:root{
  --radius-control:9px;
  --radius-card:16px;
  --radius-panel:20px;
  --shadow-soft:0 5px 24px color-mix(in srgb,var(--shadow-color) 25%,transparent);
  --shadow-raised:0 8px 30px color-mix(in srgb,var(--shadow-color) 40%,transparent);
  --surface-inset:color-mix(in srgb,var(--paper) 75%,var(--white));
  --surface-tint:linear-gradient(115deg,var(--soft-green),color-mix(in srgb,var(--green) 8%,var(--white)));
}

/* Navigation, actions and fields. */
.site-header{background:var(--white);box-shadow:0 2px 14px color-mix(in srgb,var(--shadow-color) 15%,transparent)}
.desktop-nav{gap:10px}
.desktop-nav a{padding:10px 13px;border-radius:var(--radius-control);transition:background-color .15s,color .15s}
.desktop-nav a:hover,.desktop-nav a.active{background:var(--soft-green);color:var(--green)}
.desktop-nav a.active:after{display:none}
.button{min-height:44px;border-radius:var(--radius-control)}
.button:not(.secondary):not(.danger){box-shadow:0 2px 6px color-mix(in srgb,var(--shadow-color) 40%,transparent)}
.button.secondary{background:var(--white)}
.button.secondary:hover:not(:disabled){border-color:color-mix(in srgb,var(--green) 35%,var(--line))}
.site-header .header-actions .write-button{gap:7px;padding:8px 12px;background:transparent;color:var(--ink);border-color:var(--line);box-shadow:none;font-size:11px;font-weight:400}
.site-header .header-actions .write-button:hover{background:var(--soft-green);color:var(--green)}
.site-header .write-button>.icon{width:16px;height:16px}
.icon-button{border-radius:var(--radius-control)}
.profile-button{box-shadow:none}
.profile-button>.avatar{width:34px;height:34px;border:1px solid var(--line)}
input,textarea,select{border-radius:var(--radius-control);background:var(--surface-inset)}
input:focus,textarea:focus,select:focus{background:var(--white)}
input[type=file]::file-selector-button{border:1px solid var(--line);border-radius:6px;padding:6px 9px;margin-right:8px;background:var(--white);color:var(--green);font:inherit;cursor:pointer}
.theme-options{border-radius:12px;padding:8px;box-shadow:var(--shadow-raised)}
.theme-options button{border-radius:7px}
.policy-nav a{padding:8px 10px;border-radius:8px}
.policy-nav a:hover,.policy-nav a[aria-current=page]{background:var(--soft-green);color:var(--green)}

/* Page introductions and collection navigation. */
.page-container:not(.account-profile-page)>.page-heading,
.about-page>.page-heading,.policy-page>.page-heading{
  padding:0 0 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;
  background:transparent;box-shadow:none;margin-bottom:24px;
}
.page-heading>div{min-width:0}
.page-heading h1{font-size:28px;line-height:1.65;margin:6px 0 8px;overflow-wrap:anywhere}
.page-heading p{font-size:13px;line-height:2}
.page-heading .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10px}
.page-heading .eyebrow:empty{display:none}
.page-heading .eyebrow:before{content:'';width:18px;height:2px;border-radius:2px;background:var(--ochre);flex-shrink:0}
.section-heading h2{line-height:1.9}
.tabs{display:flex;align-items:center;gap:6px;width:fit-content;max-width:100%;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:var(--shadow-soft)}
.tabs a{padding:10px 16px;min-height:44px;border:0;border-radius:7px;font-size:12px}
.tabs a.selected{background:var(--soft-green);color:var(--green);border:0}
.writer-directory-tabs{gap:10px}
.writer-directory-tabs [aria-current=page]{background:var(--soft-green)}
.writer-directory-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-bottom:24px}
.writer-directory-tools .writer-directory-tabs{margin:0}
.writer-directory-tools .inline-search{margin:0;flex:0 1 340px;min-height:44px;box-shadow:none;padding-block:0}
.writer-directory-tools .inline-search input{padding-block:10px}
.inline-search{width:420px;min-height:48px;border-radius:11px;box-shadow:var(--shadow-soft)}
.inline-search input{background:transparent}
.category-nav{gap:8px;padding:13px 0}
.category-nav a{display:inline-flex;align-items:center;min-height:44px;padding:7px 12px;border-radius:8px}
.category-nav a:hover,.category-nav a.selected{background:var(--soft-green);color:var(--green)}
.category-nav .selected:after{display:none}
.hero{border-radius:var(--radius-card);box-shadow:var(--shadow-soft)}
.hero-stage{border-radius:inherit}
.hero-text summary{border-radius:8px}

/* Existing compact post geometry is shared by every listing. */
.post-card,.featured-card{border-radius:12px;box-shadow:var(--shadow-soft)}
.post-card>.card-bottom,.featured-card>.card-bottom{background:var(--surface-inset)}
.card-keywords .category-label,.card-keywords .issue-label{border-radius:5px}
.load-more{border-radius:10px}
.author-card,.series-card,.home-trending,.invitation{border-radius:var(--radius-card);box-shadow:var(--shadow-soft)}
.author-card{background:var(--white);padding:20px;box-shadow:none}
.author-card-link{display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 14px;align-items:start}
.author-card-link>.avatar{width:48px;height:48px;grid-row:1/4;border:1px solid var(--line);box-shadow:none}
.author-card h2{font-size:17px;line-height:1.8;margin:0;overflow-wrap:anywhere}
.author-card p{font-size:12px;line-height:2;min-height:0;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.author-card-link>span:last-child{grid-column:2}
.author-card .writer-follow{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.writer-alert-toggle{width:44px;padding:0;justify-content:center;flex-shrink:0}
.author-card .follower-count{margin:0;font-size:11px}
.series-card{padding:28px;background:var(--white)}
.series-card>.icon{width:44px;height:44px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--soft-green);color:var(--green)}
.series-card h2{line-height:1.9;overflow-wrap:anywhere}
.series-card p{font-size:12px;line-height:2}
.invitation{background:var(--surface-tint);padding:25px}
.invitation>.icon{width:38px;height:38px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--green)}
.invitation h2{font-size:16px}
.invitation p{font-size:12px;line-height:2}
.invitation .button{font-size:12px}
.invitation small{font-size:10px}
.sidebar-section{padding:22px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--white);box-shadow:var(--shadow-soft)}
.sidebar-section .section-heading h3{font-size:13px}
.author-row strong{font-size:12px}
.author-row small{font-size:10px}
.magazine-promo{border:1px solid var(--warm-line);border-radius:var(--radius-card);box-shadow:var(--shadow-soft);padding:25px}
.magazine-promo p,.magazine-promo>a{font-size:11px}
.trending-rank{width:24px;min-height:24px;border-radius:6px;background:var(--soft-green);color:var(--green);text-align:center;padding:2px;font-size:11px}
.empty-state{padding:52px 24px;border:1px dashed var(--line);border-radius:var(--radius-card);background:var(--white);margin:20px 0}
.empty-state h2{line-height:1.9}
.empty-state p{max-width:580px;margin-left:auto;margin-right:auto;line-height:2}
#main>.empty-state{max-width:760px;margin:40px auto}

/* Reading hierarchy: title and byline first; optional context expands in place. */
.article-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 20px;margin-bottom:18px}
.article-navigation .back-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;font-size:12px}
.article-navigation .breadcrumbs ol{margin:0;font-size:11px}
.article-navigation .breadcrumbs a{display:inline-flex;align-items:center;min-height:44px}
.article-navigation .breadcrumbs li:last-child{display:none}
.article-header{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.article-header h1{font-size:32px;line-height:1.65;margin:12px 0 16px}
.article-meta{margin:0;gap:10px 20px;justify-content:flex-start;font-size:11px}
.article-meta .meta{flex-wrap:wrap;gap:8px}
.reading-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;padding:5px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin:14px 0 24px;gap:8px}
.reading-toolbar .reading-actions{grid-column:2;grid-row:1;display:flex;gap:2px;align-items:center}
.reading-toolbar .icon-button{width:44px;height:44px}
.reading-font-actions{display:flex;border-right:1px solid var(--line);padding-right:6px;margin-right:6px}
.article-summary{grid-column:1;grid-row:1;min-width:0}
.article-summary[open]{grid-column:1/-1}
.article-summary summary,.article-author-bio summary{display:flex;align-items:center;gap:6px;min-height:44px;width:fit-content;max-width:100%;list-style:none;cursor:pointer;color:var(--muted);font-size:12px}
.article-summary summary::-webkit-details-marker,.article-author-bio summary::-webkit-details-marker{display:none}
.article-summary[open] summary{max-width:calc(100% - 200px)}
.article-summary summary:hover,.article-author-bio summary:hover{color:var(--green)}
.article-summary summary>.icon,.article-author-bio summary>.icon{width:14px;height:14px;flex-shrink:0;transition:transform .15s}
.article-summary[open] summary>.icon,.article-author-bio[open] summary>.icon{transform:rotate(180deg)}
.article-summary .article-deck{grid-column:1/-1;font:400 14px/2 var(--sans);margin:4px 0 12px;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:380px){
  .reading-toolbar:has(.pin-button,.pinned-indicator) .article-summary{grid-column:1/-1;grid-row:1}
  .reading-toolbar:has(.pin-button,.pinned-indicator) .article-summary summary{max-width:100%}
  .reading-toolbar:has(.pin-button,.pinned-indicator) .reading-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}
}
.article-tags{gap:6px 16px;margin:24px 0}
.article-tags a{border:0;border-radius:0;padding:6px 0;background:transparent;font-size:11px}
.article-author-box{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:0 14px;padding:18px 0;border:0;border-block:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin-top:24px}
.article-author-avatar{grid-column:1;grid-row:1}
.article-author-avatar .avatar{width:48px;height:48px;font-size:22px}
.article-author-box h3{margin:0;line-height:1.8}
.article-author-box h3 a{font-size:15px;color:var(--ink)}
.article-author-box .article-author-posts{display:inline-flex;align-items:center;gap:7px;min-height:32px;font-size:11px}
.article-author-box .writer-follow{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px;margin:0}
.article-author-box .follower-count{font-size:11px;margin:0}
.article-author-box .writer-follow-actions{gap:4px}
.article-author-box .writer-follow-actions .button{font-size:12px;padding:8px 12px}
.article-author-box .writer-alert-toggle{padding:0}
.article-author-bio{grid-column:2/-1}
.article-author-bio p{font-size:12px;line-height:2;margin:0 0 8px;white-space:pre-line;overflow-wrap:anywhere;max-width:620px}
.series-navigation{border:1px solid var(--line);border-radius:12px;background:var(--white);padding:18px 22px}
.reactions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;text-align:left;padding:16px 0;border:0;border-radius:0;background:transparent;box-shadow:none;margin:0 0 24px}
.reactions p{margin:0;font-size:12px}
.reactions>div{gap:6px}
.reactions .button{font-size:12px}
.discussion{border-top:0;padding-top:10px}
.discussion .section-heading{flex-wrap:wrap;gap:8px 16px}
.discussion select{max-width:100%}
#comment-form,#reply-form{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--white);box-shadow:none}
#comment-form{padding:8px 14px;border-radius:12px;background:color-mix(in srgb,var(--white) 94%,var(--soft-green));transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
#comment-form:hover{border-color:color-mix(in srgb,var(--green) 35%,var(--line))}
#comment-form:focus-within{outline:none;border-color:var(--green);background:var(--white);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 12%,transparent)}
.comment-composer-input{position:relative;font-size:13px;line-height:2}
.comment-composer-input:has(textarea:placeholder-shown:not(:focus))::after{content:'';position:absolute;left:0;top:calc(6px + .4em);height:1.2em;border-left:1.5px solid var(--green);pointer-events:none;animation:comment-caret 1.2s step-end infinite}
@keyframes comment-caret{0%,100%{opacity:1}50%{opacity:0}}
@media(prefers-reduced-motion:reduce){#comment-form{transition:none}.comment-composer-input::after{animation:none!important}}
#comment-form textarea{display:block;min-height:44px;max-height:180px;margin:0;padding:6px 0 6px 10px;border:0;border-radius:0;background:transparent;font-size:13px;line-height:2;caret-color:var(--green);resize:none;overflow-y:auto}
#comment-form textarea:focus,#comment-form textarea:focus-visible{outline:none;box-shadow:none;background:transparent}
.comment-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0}
.comment-composer-actions[hidden]{display:none}
.comment-composer-actions p{margin:0;font-size:10px}
.comment-composer-actions .button{flex-shrink:0;min-height:36px;padding:7px 12px;font-size:11px}
#comment-form .form-error{margin:6px 0;font-size:11px}
#comment-form .form-error:empty{display:none}
#comments{--comment-avatar:32px;--comment-gap:10px;--comment-indent:42px;margin-top:24px}
.comment{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#comments>.comment+.comment{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.comment-heading{position:relative;min-height:var(--comment-avatar);padding-left:calc(var(--comment-avatar) + var(--comment-gap));font-size:12px;flex-wrap:wrap;justify-content:flex-start;gap:2px 8px}
.comment-heading>.avatar{position:absolute;top:0;left:0;width:var(--comment-avatar);height:var(--comment-avatar);font-size:15px}
.comment-heading>a{min-width:0;font-weight:600;overflow-wrap:anywhere}
.comment-heading>time{font-size:10px;color:var(--muted);white-space:nowrap}
.comment>p{margin:8px 0 6px calc(var(--comment-avatar) + var(--comment-gap));font-size:13px;line-height:2}
.comment-actions{margin-left:calc(var(--comment-avatar) + var(--comment-gap));flex-wrap:wrap;gap:2px 6px}
.comment-actions>span{min-width:12px;text-align:center;font-variant-numeric:tabular-nums}
.comment-actions .text-button{min-height:36px;padding:6px;border-radius:7px;font-size:11px}
.comment-actions .text-button:first-child{margin-left:-6px}
.comment-replies{margin:14px 0 0 calc(var(--comment-avatar)/2 - 1px);padding-left:calc(var(--comment-indent) - var(--comment-avatar)/2);border-left:1px solid var(--line)}
.comment-replies>.comment+.comment{margin-top:18px}
.reply-comment{margin-left:0;padding-left:0;border:0}

/* Writing, review and account workspaces. */
#write-form,#review-form,#published-edit-form{padding:28px;border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--white);box-shadow:var(--shadow-soft)}
.writing-container label{line-height:2}
.writing-container input:not([type=checkbox]),.writing-container textarea{background:var(--surface-inset)}
.writing-container input:focus,.writing-container textarea:focus{background:var(--white)}
.writing-container .title-input{font-size:20px}
.writing-container .additional-options{padding:20px;border-radius:12px;background:var(--surface-inset)}
.additional-options summary{min-height:36px;line-height:2}
.notice,.section-load-error{border-radius:10px;line-height:2}
.rich-editor .editor-toolbar{padding:10px;border-radius:12px 12px 0 0;background:var(--soft-green)}
.rich-editor .editor-toolbar button{border-radius:7px}
.rich-editor .editor-help,.rich-editor .rich-surface{background:var(--white)}
.rich-editor .rich-surface,.rich-editor #writing-preview{border-radius:0 0 12px 12px}
.editor-dialog{background:var(--white);border-radius:var(--radius-card);box-shadow:var(--shadow-raised)}
.writing-footer,.review-actions{border-top:1px solid var(--line);padding-top:22px;margin-top:22px;gap:14px}
.review-checklist{padding:22px;border:1px solid var(--line);border-radius:12px}
.workflow{padding:18px 24px;border-radius:12px;background:var(--surface-tint)}
.workspace-list{display:grid;gap:14px;border-top:0}
.workspace-row{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:24px;box-shadow:var(--shadow-soft)}
.workspace-row>div{min-width:0}
.workspace-row h3{font-size:16px;line-height:1.9}
.workspace-row p{font-size:11px;line-height:2}
.workspace-row .queue-number{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--soft-green);color:var(--green);font:500 16px var(--sans)}
.workspace-row>.queue-number:first-child{flex:0 0 40px}
.workspace-row .button{font-size:12px}
/* Editorial queues share one navigation and predictable card actions. */
.editor-workspace .editor-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:var(--shadow-soft);margin-bottom:28px}
.editor-workspace .editor-tabs a{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:52px;max-width:none;padding:12px 8px;border:1px solid transparent;border-radius:8px;font-size:12px;line-height:1.8;text-align:center}
.editor-workspace .editor-tabs .icon{width:19px;height:19px;flex-shrink:0}
.editor-workspace .editor-tabs a:hover{background:var(--surface-inset);color:var(--green)}
.editor-workspace .editor-tabs a[aria-current=page]{border-color:var(--line);background:var(--soft-green);color:var(--green);font-weight:600}
.editor-workspace .editor-tabs a:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.editor-workspace>.section-heading,.editor-reports>.section-heading{flex-wrap:wrap;gap:8px 16px;margin-bottom:18px}
.editor-workspace .section-heading>span{flex-shrink:0;padding:4px 10px;border:1px solid var(--line);border-radius:20px;background:var(--white);color:var(--muted);font-size:11px;line-height:1.8}
.editor-list-help{font-size:12px;line-height:2;color:var(--muted);margin:-6px 0 20px}
.editor-workspace .workspace-row h3,.editor-workspace .workspace-row p{overflow-wrap:anywhere}
.editor-workspace .review-queue-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:start}
.editor-workspace .review-queue-row .queue-details{min-width:0}
.editor-workspace .queue-actions{max-width:270px;align-self:center}
.editor-workspace .published-search{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:var(--shadow-soft)}
.editor-workspace .published-search label{min-width:0}
.editor-reports{margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}
.editor-reports .reports-heading{margin-top:0}
.editor-reports .quiet-link{display:inline-flex;align-items:center;min-height:44px}
.editor-reports .report-actions .text-button{min-height:44px}
.role-form select{min-width:120px;min-height:44px;border-radius:8px}
.status{display:inline-block;padding:4px 10px;border:1px solid var(--line);border-radius:6px;line-height:1.8}
.editor-note{border:1px solid var(--warm-line);border-radius:8px;padding:12px 14px;line-height:2}

/* Inbox, dialogs, informational pages and footer. */
.notification-tools{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.notification-list{display:grid;gap:12px}
.notification-row{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:var(--shadow-soft)}
.notification-row.unread{border-left:3px solid var(--green)}
.notification-accepted{--notification-accent:#24823d;--notification-surface:#e6f4e9;--notification-text:#1c632e}
.notification-changes{--notification-accent:#d4a400;--notification-surface:#fff3bf;--notification-text:#705300}
.notification-rejected{--notification-accent:#cf3939;--notification-surface:#fde8e8;--notification-text:#9f2424}
:root[data-theme="dark"] .notification-accepted{--notification-accent:#6cd48b;--notification-surface:#213d2b;--notification-text:#9be5b1}
:root[data-theme="dark"] .notification-changes{--notification-accent:#f2ce46;--notification-surface:#403719;--notification-text:#f5dc7b}
:root[data-theme="dark"] .notification-rejected{--notification-accent:#f17c7c;--notification-surface:#462626;--notification-text:#ffb0b0}
.notification-row:is(.notification-accepted,.notification-changes,.notification-rejected){border-left:4px solid var(--notification-accent)}
.notification-row:is(.notification-accepted,.notification-changes,.notification-rejected) strong{align-self:flex-start;padding:4px 10px;border-radius:7px;background:var(--notification-surface);color:var(--notification-text)}
.notification-row strong{font-size:13px;line-height:1.9}
.notification-row>button{min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
.notification-list>.muted{padding:28px;text-align:center;border:1px dashed var(--line);border-radius:14px;background:var(--white)}
.notification-preferences{padding:28px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--white);box-shadow:var(--shadow-soft)}
.notification-preferences h2{font-size:18px;line-height:1.8;margin-bottom:10px}
.notification-preferences p{line-height:2}
.notification-preferences .checkbox-label{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-inset);font-size:12px}
dialog{border-radius:var(--radius-panel);background:var(--white);box-shadow:var(--shadow-raised)}
dialog:not(.feed-calendar) .modal-heading{padding-bottom:16px;border-bottom:1px solid var(--line)}
.signin-modal .modal-heading{border-bottom:0;padding-bottom:0}
.search-modal{max-width:650px;max-height:calc(100dvh - 32px)}
.search-modal[open]{display:flex;flex-direction:column;overflow:hidden}
.search-modal .modal-heading,.search-modal .search-form,.search-modal #search-help{flex-shrink:0}
.search-modal .search-form .button{flex-shrink:0}
.search-modal #search-help{margin-top:12px;line-height:2}
.search-topics{display:flex;flex-direction:column;min-height:0;margin-top:22px}
.search-topics>h3{font-size:14px;margin-bottom:12px}
.search-topic-list{overflow-y:auto;overscroll-behavior:contain;max-height:42dvh;padding:0 8px 4px 4px;scrollbar-width:thin}
.search-topic-group+.search-topic-group{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.search-topic-group h4{font-size:12px;color:var(--muted);margin:0 0 10px}
.search-topic-buttons{display:flex;flex-wrap:wrap;gap:8px}
.search-topic{min-height:44px;max-width:100%;padding:7px 12px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface-inset);color:var(--ink);font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.search-topic:hover,.search-topic[aria-pressed=true]{border-color:var(--green);background:var(--soft-green);color:var(--green)}
.account-links>a{border:1px solid var(--line);border-radius:9px;background:var(--surface-inset)}
.account-links>a[aria-current=page]{background:var(--soft-green);color:var(--green)}
.account-links>button{border-radius:9px}
.feed-calendar{border-radius:var(--radius-card);box-shadow:var(--shadow-raised)}
.policy-summary{border-radius:12px;line-height:2}
.about-page>.prose,.policy-page>.prose{padding:28px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--white);box-shadow:var(--shadow-soft);margin-bottom:28px}
.about-page .prose h2,.policy-page .prose h2{padding-top:20px;border-top:1px solid var(--line)}
.about-page .prose>h2:first-child,.policy-page .prose>h2:first-child{border-top:0;padding-top:0}
footer{background:linear-gradient(var(--footer-surface),var(--paper));padding-top:36px}
.footer-main>div{flex-wrap:wrap;gap:14px 22px;font-size:11px}
.footer-main>div a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}
.footer-main>p{font-size:12px}
.footer-bottom{font-size:10px;line-height:1.9}
.footer-bottom>span:last-child{font-size:10px}

@media(hover:hover){
  .post-card:hover,.featured-card:hover,.author-card:hover,.series-card:hover{border-color:color-mix(in srgb,var(--green) 35%,var(--line));box-shadow:var(--shadow-raised)}
}
@media(max-width:1080px){
  .desktop-nav{gap:4px}
  .desktop-nav a{padding:9px 8px}
}
@media(min-width:761px) and (max-width:900px){
  .header-inner{gap:10px}
  .desktop-nav{font-size:10px}
  .desktop-nav a{padding-inline:6px}
  .header-actions{gap:4px}
  .site-header .header-actions .write-button{min-width:44px;padding-inline:12px}
  .site-header .write-button>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media(max-width:760px){
  .page-container:not(.account-profile-page)>.page-heading,.about-page>.page-heading,.policy-page>.page-heading{padding:0 0 16px;border-radius:0;margin-bottom:20px}
  .page-heading h1{font-size:24px;line-height:1.8}
  .page-heading p{font-size:12px}
  .tabs a{padding:9px 12px;font-size:11px}
  .category-nav{gap:6px;padding:10px 0}
  .category-nav a{padding:7px 10px}
  .mobile-nav{box-shadow:0 -4px 20px color-mix(in srgb,var(--shadow-color) 20%,transparent)}
  .author-card{padding:18px;background:var(--white)}
  .author-card h2{font-size:16px;margin:0 0 5px}
  .author-card-link>.avatar{border-width:2px}
  .author-card .writer-follow{padding-top:12px}
  .series-card{padding:22px}
  .series-card>.icon{width:38px;height:38px;padding:7px}
  .sidebar-section{padding:18px}
  .invitation{padding:22px}
  .article-navigation{margin-bottom:12px;gap:0 12px}
  .article-navigation .breadcrumbs li:first-child{display:none}
  .article-header h1{font-size:25px;margin:10px 0 12px}
  .article-meta{margin-top:0;gap:6px 14px}
  .article-meta>.meta{width:auto}
  .reading-toolbar{padding:4px 0;gap:4px;margin:10px 0 20px}
  .reading-font-actions{padding-right:2px;margin-right:2px}
  .article-author-box{padding:16px 0;grid-template-columns:44px minmax(0,1fr);gap:0 12px}
  .article-author-box .writer-follow{grid-column:2;justify-content:flex-start;margin-top:6px}
  .article-author-bio{grid-column:2}
  .article-author-box .writer-follow-actions .button{font-size:11px}
  .reactions{padding:14px 0}
  .series-navigation{padding:16px;font-size:11px}
  #comments{--comment-avatar:28px;--comment-gap:8px;--comment-indent:16px}
  #comments>.comment+.comment{margin-top:20px;padding-top:20px}
  #reply-form{padding:14px}
  #comment-form textarea,.comment-composer-input{font-size:16px}
  .comment-composer-actions .button{min-height:44px}
  .comment-replies{margin-left:7px;padding-left:8px}
  .comment-actions .text-button{min-height:44px}
  #write-form,#review-form,#published-edit-form{padding:20px;border-radius:var(--radius-card)}
  .writing-container .title-input{font-size:18px}
  .writing-container .additional-options{padding:16px}
  .rich-editor .editor-toolbar{padding:8px}
  .rich-editor .editor-toolbar button{min-width:44px;min-height:44px}
  .workspace-row{padding:20px;gap:16px}
  .workspace-row h3{font-size:15px}
  .workspace-row .queue-number+div+div{margin-left:0;width:100%}
  .editor-workspace{padding-top:20px}
  .page-container.editor-workspace>.page-heading{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;padding:18px;margin-bottom:18px}
  .editor-workspace>.page-heading>div{flex:1 1 200px}
  .editor-workspace>.page-heading h1{font-size:21px;margin:8px 0}
  .editor-workspace>.page-heading p{font-size:11px}
  .editor-workspace>.page-heading .editor-refresh{margin-top:0;padding:8px 14px;font-size:11px}
  .editor-workspace .editor-tabs{gap:4px;padding:5px;margin-bottom:24px}
  .editor-workspace .editor-tabs a{flex-direction:column;gap:6px;min-height:76px;padding:10px 2px;font-size:11px}
  .editor-workspace .workspace-row{padding:16px;gap:14px}
  .editor-workspace .review-queue-row{grid-template-columns:36px minmax(0,1fr);gap:14px 12px}
  .editor-workspace .review-queue-row .queue-number{width:36px;min-width:36px;height:36px;font-size:14px}
  .editor-workspace .workspace-row h3{font-size:14px;margin:6px 0}
  .editor-workspace .workspace-row p{font-size:11px}
  .editor-workspace .review-queue-row .queue-actions{grid-column:1/-1;max-width:none;align-items:stretch;padding-top:14px;border-top:1px solid var(--line)}
  .editor-workspace .queue-actions .small{font-size:11px;line-height:1.9}
  .editor-workspace .workspace-row .button{min-height:46px;white-space:normal}
  .editor-workspace .workspace-row>.workspace-post-actions,.editor-reports .workspace-row>.report-actions{width:100%;flex-direction:row;align-items:center;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--line)}
  .editor-workspace .workspace-post-actions>a{flex:1}
  .editor-workspace .published-search{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
  .editor-workspace .published-search button{width:100%}
  .editor-workspace .editor-pagination{flex-wrap:wrap}
  .editor-workspace .editor-pagination .button{flex:1;white-space:normal}
  .workflow{padding:16px;gap:12px;font-size:10px}
  .notification-tools{padding:12px}
  .notification-row{padding:18px;flex-wrap:wrap;align-items:flex-start}
  .notification-row>a{flex-basis:65%}
  .notification-preferences{padding:22px}
  .notification-preferences .checkbox-label{font-size:11px}
  .about-page>.prose,.policy-page>.prose{padding:22px}
  .empty-state{padding:40px 20px}
  #main>.empty-state{margin:24px 16px}
  .footer-main>p{font-size:11px}
  .footer-main>div{font-size:11px;gap:8px 16px}
}
@media(max-width:360px){
  .editor-workspace .editor-tabs a{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .desktop-nav a{transition:none}
}

.writing-overview{margin:32px 0;padding:24px;border-top:1px solid var(--line)}
.writing-overview h2{font-size:clamp(18px,2vw,24px);line-height:1.7;margin:12px 0}
.writing-overview p{max-width:80ch;line-height:2;overflow-wrap:anywhere}
.writing-overview a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.writing-overview{padding:20px 0}}
/* Private writer statistics use the site's existing light/dark palette. */
.statistics-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:0 0 28px;flex-wrap:wrap}
.statistics-tabs a{display:inline-flex;align-items:center;gap:8px;padding:12px 0;border-bottom:2px solid transparent;color:var(--muted)}
.statistics-tabs a[aria-current="page"]{color:var(--green);border-color:currentColor}
.statistics-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 32px}
.statistics-card{border:1px solid var(--line);border-radius:12px;padding:22px;display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:center;background:var(--white)}
.statistics-card>.icon{color:var(--green)}
.statistics-card>span{font-size:14px;color:var(--muted)}
.statistics-card>strong{grid-column:2;font-size:30px;font-variant-numeric:tabular-nums;line-height:1.3}
.statistics-trend{border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:36px;background:var(--white)}
.statistics-trend .section-heading{gap:16px;flex-wrap:wrap}
.statistics-trend .section-heading strong{font-size:26px;font-variant-numeric:tabular-nums}
.statistics-chart{height:160px;display:flex;align-items:stretch;gap:5px;margin-top:26px;border-bottom:1px solid var(--line)}
.statistics-bar-slot{flex:1;min-width:0;display:flex;align-items:flex-end}
.statistics-bar{width:100%;background:var(--green);border-radius:3px 3px 0 0}
.statistics-chart-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding-top:8px}
.statistics-daily,.statistics-help{margin-top:20px;font-size:14px;line-height:1.8}
.statistics-daily summary,.statistics-help summary{cursor:pointer;color:var(--green);padding:8px 0}
.statistics-daily dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px}
.statistics-daily dl>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.statistics-daily dd{margin:0;font-variant-numeric:tabular-nums}
.statistics-posts{border-top:1px solid var(--line)}
.statistics-post{padding:24px 0;border-bottom:1px solid var(--line)}
.statistics-post h3{font-size:18px;line-height:1.7;margin:0 0 8px;overflow-wrap:anywhere}
.statistics-post dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:18px 0 0}
.statistics-post dt{font-size:12px;color:var(--muted)}
.statistics-post dd{font-size:20px;font-weight:600;margin:6px 0 0;font-variant-numeric:tabular-nums}
.statistics-pagination{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;margin:24px 0}
.statistics-help p{max-width:850px;color:var(--muted)}
@media(max-width:760px){.statistics-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.statistics-card{padding:16px 12px;gap:8px}.statistics-card>span{font-size:12px}.statistics-card>strong{font-size:26px}.statistics-trend{padding:16px}.statistics-chart{gap:3px;height:130px}.statistics-trend h2{font-size:18px}.statistics-post dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}.statistics-daily dl{grid-template-columns:1fr}.statistics-tabs{gap:18px}.statistics-tabs a{font-size:14px}}
/* Series overviews, published chapter lists and author-owned details. */
.series-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.series-summary-card{display:flex;gap:22px;padding:22px;background:var(--white);border:1px solid var(--line);border-radius:14px;min-width:0}
.series-summary-cover{flex:0 0 112px;align-self:flex-start}
.series-summary-cover img,.series-summary-cover .series-cover-placeholder{width:112px;aspect-ratio:3/4;object-fit:contain;border-radius:8px;background:var(--soft-green)}
.series-cover-placeholder{display:flex;align-items:center;justify-content:center;background:var(--soft-green);color:var(--green)}
.series-cover-placeholder .icon{width:42px;height:42px;stroke-width:1.3}
.series-summary-content{min-width:0;flex:1}
.series-summary-content h2{font-size:18px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere}
.series-state{display:inline-flex;align-items:center;font-size:11px;color:var(--green);background:var(--soft-green);border:1px solid var(--line);border-radius:20px;padding:3px 10px}
.series-state.is-complete{font-weight:600}
.series-summary-description{font-size:12px;color:var(--muted);margin:12px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}
.series-facts{display:flex;gap:10px 20px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:18px 0}
.series-facts span{display:inline-flex;align-items:center;gap:6px}
.series-facts .icon{width:16px;height:16px}
.series-detail-header{display:grid;grid-template-columns:200px minmax(0,1fr);gap:40px;padding:32px;background:var(--white);border:1px solid var(--line);border-radius:16px}
.series-detail-cover img,.series-detail-cover .series-cover-placeholder{width:100%;aspect-ratio:3/4;object-fit:contain;border-radius:10px;background:var(--soft-green)}
.series-detail-intro h1{font-size:30px;line-height:1.8;margin:12px 0;overflow-wrap:anywhere}
.series-detail-author{display:inline-flex;align-items:center;gap:8px;color:var(--green)}
.series-description{font-size:14px;line-height:2.1;white-space:pre-line;overflow-wrap:anywhere;margin:18px 0;color:var(--muted)}
.series-detail-intro>.button{margin:8px 12px 0 0}
.series-chapters{margin:40px 0}
.series-progress-note{margin-bottom:18px}
.series-chapter-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.series-chapter{display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);padding:22px 0}
.series-chapter-number{color:var(--muted);font-size:20px;min-width:36px;font-variant-numeric:tabular-nums;text-align:center}
.series-chapter-copy{flex:1;min-width:0}
.series-chapter h3{font-size:16px;line-height:1.9;overflow-wrap:anywhere}
.series-chapter p{font-size:11px;color:var(--muted);margin-top:6px}
.series-chapter.is-read{background:color-mix(in srgb,var(--soft-green) 35%,transparent)}
.series-read-toggle{white-space:nowrap;min-height:40px;font-size:12px}
.series-pagination{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin:28px 0}
.series-management{border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:24px;background:var(--white)}
.series-management h2{font-size:18px;margin-bottom:14px}
.series-management article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--line)}
.series-management h3{font-size:14px;overflow-wrap:anywhere}
.series-details-editor form{max-width:760px;display:grid;gap:22px}
.series-details-editor form>h2{font-size:20px}
.series-details-editor .series-edit-cover{max-width:160px}
.series-edit-cover img,.series-edit-cover .series-cover-placeholder{width:160px;aspect-ratio:3/4;object-fit:contain;border-radius:8px}
.series-details-editor form>.button{justify-self:start}
.article-series-read{padding:16px 0;border-block:1px solid var(--line);margin:18px 0}
@media(max-width:900px){.series-summary-grid{grid-template-columns:1fr}.series-detail-header{grid-template-columns:160px minmax(0,1fr);gap:24px;padding:24px}}
@media(max-width:600px){.series-detail-header{grid-template-columns:1fr;padding:20px;gap:20px}.series-detail-cover{max-width:150px;margin:auto;width:100%}.series-detail-intro h1{font-size:24px}.series-summary-card{padding:16px;gap:16px}.series-summary-cover{flex-basis:88px}.series-summary-cover img,.series-summary-cover .series-cover-placeholder{width:88px}.series-summary-content h2{font-size:16px}.series-chapter{gap:12px;flex-wrap:wrap}.series-chapter-copy{flex-basis:calc(100% - 60px)}.series-chapter>.series-read-toggle{margin-left:48px}.series-chapter h3{font-size:15px}.series-management article{align-items:flex-start;flex-wrap:wrap}.series-detail-intro>.button{font-size:11px}.series-chapters>.section-heading{gap:12px;flex-wrap:wrap}}
/* Compact discovery shelves leave the published feed and its controls intact. */
.home-discovery-entry{display:flex;justify-content:flex-end;margin:-4px 0 16px}
.home-discovery-entry a{min-height:40px;align-items:center}
.home-discovery-content{margin:6px 0 36px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.home-discovery-content>.section-heading{gap:16px;flex-wrap:wrap;margin-bottom:18px}
.home-discovery-content>.section-heading h2{font-size:20px}
.discovery-shelves{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.discovery-shelf{min-width:0}
.discovery-shelf>h3{display:flex;gap:8px;align-items:center;font-size:14px;line-height:1.8;margin-bottom:10px;color:var(--green)}
.discovery-shelf .discovery-excerpt{display:none}
.discovery-item{display:flex;gap:14px;min-width:0;border-bottom:1px solid var(--line);padding:18px 0}
.discovery-cover{flex:0 0 58px;align-self:flex-start}
.discovery-cover img{width:58px;height:78px;object-fit:contain;border-radius:6px;background:var(--soft-green)}
.discovery-item-copy{flex:1;min-width:0}
.discovery-item h2,.discovery-item h4{font-size:15px;line-height:1.9;overflow-wrap:anywhere;margin:0 0 6px}
.discovery-item a:hover,.discovery-item a:focus-visible{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.discovery-excerpt{font-size:12px;line-height:1.9;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin-bottom:8px}
.discovery-author{font-size:11px;color:var(--green)}
.discovery-facts{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:10px;line-height:1.8;margin-top:8px;color:var(--muted)}
.discovery-facts>span{display:inline-flex;align-items:center;gap:4px}
.discovery-facts .icon{width:14px;height:14px}
.discovery-more{margin-top:12px;min-height:40px}
.discovery-tabs{display:flex;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:20px}
.discovery-tabs a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:12px 6px;color:var(--muted);border-bottom:2px solid transparent}
.discovery-tabs a[aria-current="page"]{color:var(--green);border-bottom-color:var(--green)}
.discovery-result-count{margin-bottom:16px}
.discovery-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 30px}
.discovery-results .discovery-item{padding:24px 0}
.discovery-results .discovery-cover{flex-basis:90px}
.discovery-results .discovery-cover img{width:90px;height:120px}
.discovery-results .discovery-item h2{font-size:18px}
.discovery-results .discovery-excerpt{-webkit-line-clamp:3}
.discovery-pagination{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin:30px 0}
@media(max-width:760px){.home-discovery-content{padding:18px;margin-bottom:24px}.discovery-shelves,.discovery-results{grid-template-columns:1fr}.discovery-shelves{gap:22px}.discovery-shelf+.discovery-shelf{border-top:1px solid var(--line);padding-top:20px}.discovery-results .discovery-item h2{font-size:16px}.discovery-tabs{gap:8px}.discovery-tabs a{font-size:12px}.discovery-results .discovery-cover{flex-basis:64px}.discovery-results .discovery-cover img{width:64px;height:86px}}
@media(max-width:760px){.discovery-shelf .discovery-item:nth-child(n+2){display:none}.discovery-shelves{gap:14px}.discovery-shelf+.discovery-shelf{padding-top:14px}.discovery-shelf .discovery-item{padding:12px 0}.discovery-shelf .discovery-more{margin-top:6px}}
.feed-pagination{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:28px}
.feed-page-numbers,.feed-page-controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.feed-page-numbers .button{min-width:44px;min-height:44px;padding:8px 12px}
.feed-page-current{background:var(--green);color:var(--white)}
.feed-page-gap{padding:0 2px;color:var(--muted)}
.feed-page-controls{gap:12px}
.feed-page-controls .button{min-height:44px}
.feed-heading{scroll-margin-top:100px}
@media(max-width:480px){.feed-page-numbers{gap:4px}.feed-page-numbers .button{min-width:40px;padding:8px}.feed-page-controls{gap:8px}.feed-page-controls>span{flex-basis:100%;text-align:center;order:-1}.feed-page-controls .button{font-size:11px;padding:10px}}
