/*
Theme Name: Osbirds
Theme URI: https://birds.ofblog.com/
Author: OFBlog
Author URI: https://birds.ofblog.com/
Description: 面向安静写作与串联回复的 macOS 风格 WordPress 经典主题。
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osbirds
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, footer-widgets, theme-options
*/

:root {
	--os-bg: #dfe2e7;
	--os-wall: #d5d8de;
	--os-window: rgba(250, 250, 252, .94);
	--os-content: #f7f7f9;
	--os-glass: rgba(246, 247, 250, .72);
	--os-glass-strong: rgba(247, 248, 251, .88);
	--os-sidebar: rgba(238, 240, 244, .78);
	--os-line: rgba(17, 24, 39, .11);
	--os-line-strong: rgba(17, 24, 39, .18);
	--os-text: #17181a;
	--os-muted: #6b6f76;
	--os-muted-2: #8d9198;
	--os-accent: #0a84ff;
	--os-accent-strong: #0071e3;
	--os-accent-soft: rgba(10, 132, 255, .13);
	--os-red: #ff5f57;
	--os-yellow: #febc2e;
	--os-green: #28c840;
	--os-shadow: 0 26px 70px rgba(24, 30, 40, .22), 0 2px 8px rgba(24, 30, 40, .12);
	--os-radius-window: 18px;
	--os-radius-panel: 14px;
	--os-radius-control: 10px;
	--os-left: 228px;
	--os-right: 292px;
	--os-toolbar: 58px;
	--os-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
	--os-reading: 760px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--os-bg: #1c1d20;
		--os-wall: #111216;
		--os-window: rgba(35, 36, 41, .95);
		--os-content: #24252a;
		--os-glass: rgba(47, 49, 56, .72);
		--os-glass-strong: rgba(48, 50, 57, .9);
		--os-sidebar: rgba(38, 40, 47, .82);
		--os-line: rgba(255, 255, 255, .10);
		--os-line-strong: rgba(255, 255, 255, .17);
		--os-text: #f4f4f6;
		--os-muted: #a8abb2;
		--os-muted-2: #7f838b;
		--os-accent-soft: rgba(10, 132, 255, .2);
		--os-shadow: 0 28px 80px rgba(0, 0, 0, .44), 0 2px 10px rgba(0, 0, 0, .3);
	}
}

body.osbirds-mode-light {
	--os-bg: #e9eaec;
	--os-wall: #dcdfe4;
	--os-window: rgba(250, 250, 252, .95);
	--os-content: #f7f7f9;
	--os-glass: rgba(246, 247, 250, .72);
	--os-glass-strong: rgba(247, 248, 251, .9);
	--os-sidebar: rgba(238, 240, 244, .82);
	--os-line: rgba(17, 24, 39, .11);
	--os-line-strong: rgba(17, 24, 39, .18);
	--os-text: #17181a;
	--os-muted: #6b6f76;
}

body.osbirds-mode-dark {
	--os-bg: #1c1d20;
	--os-wall: #111216;
	--os-window: rgba(35, 36, 41, .95);
	--os-content: #24252a;
	--os-glass: rgba(47, 49, 56, .72);
	--os-glass-strong: rgba(48, 50, 57, .9);
	--os-sidebar: rgba(38, 40, 47, .82);
	--os-line: rgba(255, 255, 255, .10);
	--os-line-strong: rgba(255, 255, 255, .17);
	--os-text: #f4f4f6;
	--os-muted: #a8abb2;
}

body.osbirds-accent-graphite { --os-accent: #636366; --os-accent-strong: #48484a; --os-accent-soft: rgba(99, 99, 102, .15); }
body.osbirds-accent-indigo { --os-accent: #5856d6; --os-accent-strong: #4845c4; --os-accent-soft: rgba(88, 86, 214, .15); }
body.osbirds-accent-orange { --os-accent: #ff9500; --os-accent-strong: #d97700; --os-accent-soft: rgba(255, 149, 0, .16); }

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; background: radial-gradient(circle at 20% -10%, rgba(10, 132, 255, .12), transparent 33%), var(--os-wall); color: var(--os-text); font-family: var(--os-font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, input, textarea, select { font-family: var(--os-font); }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, textarea, select { color: inherit; font-size: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select { min-height: 36px; }
button, .osbirds-button { cursor: pointer; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; margin: 0; overflow: visible; clip: auto; color: #fff; background: var(--os-accent-strong); border-radius: 8px; }
:focus-visible { outline: 3px solid var(--os-accent); outline-offset: 3px; }

.osbirds-app { width: min(1440px, calc(100% - 48px)); min-height: max(620px, calc(100dvh - 48px)); margin: 24px auto; overflow: hidden; position: relative; display: grid; grid-template-rows: var(--os-toolbar) 1fr auto; background: var(--os-window); border: 1px solid rgba(255, 255, 255, .38); border-radius: var(--os-radius-window); box-shadow: var(--os-shadow); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); }
.osbirds-toolbar { z-index: 50; min-height: var(--os-toolbar); display: grid; grid-template-columns: var(--os-left) minmax(0, 1fr) var(--os-right); border-bottom: 1px solid var(--os-line); background: var(--os-glass-strong); backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%); }
.osbirds-toolbar-section { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.osbirds-toolbar-brand { padding-left: 16px; }
.osbirds-toolbar-center { justify-content: center; gap: 10px; }
.osbirds-toolbar-actions { justify-content: flex-end; padding-right: 12px; }
.osbirds-traffic { display: flex; gap: 8px; margin-right: 8px; }
.osbirds-traffic i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.osbirds-traffic i:nth-child(1) { background: var(--os-red); }
.osbirds-traffic i:nth-child(2) { background: var(--os-yellow); }
.osbirds-traffic i:nth-child(3) { background: var(--os-green); }
.osbirds-brand { min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.osbirds-logo { width: 25px; height: 25px; border-radius: 7px; object-fit: cover; }
.osbirds-brand-mark { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #6ec5ff, #7067ff); border-radius: 7px; font-weight: 750; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.osbirds-site-name, .osbirds-toolbar-title, .osbirds-toolbar-subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osbirds-toolbar-title { font-weight: 650; }
.osbirds-toolbar-subtitle { color: var(--os-muted); font-size: 12px; }
.osbirds-icon-button, .osbirds-user-chip, .osbirds-toolbar-link, .osbirds-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--os-line); border-radius: var(--os-radius-control); background: rgba(255, 255, 255, .42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 1px 3px rgba(0, 0, 0, .04); color: inherit; text-decoration: none; }
.osbirds-icon-button { min-width: 34px; padding: 0 8px; font-size: 18px; line-height: 1; }
.osbirds-icon-button:hover, .osbirds-user-chip:hover, .osbirds-toolbar-link:hover, .osbirds-button:hover { background: var(--os-accent-soft); }
.osbirds-user-chip, .osbirds-toolbar-link { padding: 0 9px; font-size: 12px; }
.osbirds-utility-menu ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.osbirds-utility-menu a { display: block; padding: 6px 8px; font-size: 12px; text-decoration: none; border-radius: 7px; }
.osbirds-utility-menu a:hover { background: var(--os-accent-soft); }

.osbirds-workspace { min-height: 0; display: block; background: var(--os-content); }
.osbirds-layout { min-height: 0; display: grid; grid-template-columns: var(--os-left) minmax(0, 1fr) var(--os-right); }
.osbirds-layout > .osbirds-content { min-width: 0; min-height: 650px; overflow: auto; background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 180px), var(--os-content); scrollbar-gutter: stable; }
.osbirds-sidebar, .osbirds-inspector { min-height: 650px; overflow: auto; overscroll-behavior: contain; background: var(--os-sidebar); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
.osbirds-sidebar { border-right: 1px solid var(--os-line); }
.osbirds-inspector { border-left: 1px solid var(--os-line); padding: 18px 16px; }
.osbirds-sidebar-inner { padding: 14px 10px 18px; }
.osbirds-sidebar-group { margin: 6px 0 18px; }
.osbirds-sidebar-label, .osbirds-eyebrow { margin: 0 10px 7px; color: var(--os-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.osbirds-menu, .osbirds-menu ul { margin: 0; padding: 0; list-style: none; }
.osbirds-menu li { margin: 0; }
.osbirds-menu a { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.osbirds-menu a:hover { background: rgba(127, 127, 127, .10); }
.osbirds-menu .current-menu-item > a, .osbirds-menu .current-menu-ancestor > a { color: var(--os-accent-strong); background: var(--os-accent-soft); font-weight: 650; }
.osbirds-menu .sub-menu { margin-left: 15px; border-left: 1px solid var(--os-line); }
.osbirds-menu .sub-menu a { min-height: 30px; color: var(--os-muted); font-size: 13px; }
.osbirds-sidebar-widgets { margin-top: 22px; }
.osbirds-account-card { display: flex; align-items: center; gap: 9px; margin: 14px 6px 0; padding: 14px 4px 0; border-top: 1px solid var(--os-line); }
.osbirds-account-card > span:last-child { min-width: 0; }
.osbirds-account-card strong, .osbirds-account-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osbirds-account-card strong { font-size: 13px; }
.osbirds-account-card small { color: var(--os-muted); font-size: 11px; }
.osbirds-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, #6ec5ff, #7067ff); border-radius: 50%; font-size: 13px; font-weight: 700; text-decoration: none; }
.osbirds-avatar img { width: 100%; height: 100%; object-fit: cover; }
.osbirds-avatar-small { width: 32px; height: 32px; font-size: 12px; }
.osbirds-drawer-close { margin: 10px; padding: 0; border: 0; color: var(--os-muted); background: transparent; font-size: 24px; }

.osbirds-feed-page, .osbirds-reading-column { max-width: var(--os-reading); margin: 0 auto; padding: 32px 34px 80px; }
.osbirds-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.osbirds-page-header h1, .osbirds-document-header h1 { margin: 0; color: var(--os-text); font-size: clamp(27px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.08; }
.osbirds-page-header p:not(.osbirds-eyebrow) { margin: 7px 0 0; color: var(--os-muted); font-size: 14px; }
.osbirds-eyebrow { margin-left: 0; margin-right: 0; }
.osbirds-button { padding: 0 13px; font-size: 13px; font-weight: 600; }
.osbirds-button-primary { border-color: transparent; color: #fff; background: var(--os-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .28); }
.osbirds-button-primary:hover { color: #fff; background: var(--os-accent-strong); }
.osbirds-composer { margin-bottom: 22px; padding: 14px; border: 1px solid var(--os-line); border-radius: var(--os-radius-panel); background: rgba(127, 127, 127, .045); }
.osbirds-composer-heading { display: flex; align-items: center; gap: 10px; }
.osbirds-composer-heading h2 { margin: 0; font-size: 14px; }
.osbirds-composer-heading p { margin: 2px 0 0; color: var(--os-muted); font-size: 12px; }
.osbirds-composer-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--os-accent); background: var(--os-accent-soft); font-size: 18px; }
.osbirds-composer-form { display: grid; gap: 9px; margin-top: 12px; }
.osbirds-composer-form input, .osbirds-composer-form textarea, .comment-form textarea, .search-form input { width: 100%; padding: 10px 11px; border: 1px solid var(--os-line-strong); border-radius: 10px; outline: 0; background: rgba(255, 255, 255, .46); }
.osbirds-composer-form textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.osbirds-composer-form input:focus, .osbirds-composer-form textarea:focus, .comment-form textarea:focus, .search-form input:focus { border-color: var(--os-accent); box-shadow: 0 0 0 3px var(--os-accent-soft); }
.osbirds-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--os-muted); font-size: 12px; }
.osbirds-composer-note { margin: 12px 0 0; color: var(--os-muted); font-size: 13px; }
.osbirds-section-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 0 10px; border-bottom: 1px solid var(--os-line); }
.osbirds-section-bar h2 { margin: 0; font-size: 13px; font-weight: 700; }
.osbirds-section-bar span { color: var(--os-muted); font-size: 11px; }
.osbirds-post { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--os-line); }
.osbirds-post-main { min-width: 0; }
.osbirds-post-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 7px; }
.osbirds-post-head strong { font-size: 14px; }
.osbirds-post-head time { margin-left: auto; color: var(--os-muted); font-size: 12px; }
.osbirds-post-head time a { text-decoration: none; }
.osbirds-handle { color: var(--os-muted); font-size: 12px; }
.osbirds-post-title { margin: 0 0 7px; font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
.osbirds-post-title a { text-decoration: none; }
.osbirds-entry-content { overflow-wrap: anywhere; font-size: 15px; line-height: 1.58; }
.osbirds-entry-content > :first-child { margin-top: 0; }
.osbirds-entry-content > :last-child { margin-bottom: 0; }
.osbirds-entry-content p { margin: 0 0 12px; }
.osbirds-entry-content h2, .osbirds-entry-content h3, .osbirds-entry-content h4 { margin: 1.5em 0 .55em; line-height: 1.2; }
.osbirds-entry-content h2 { font-size: 22px; }
.osbirds-entry-content h3 { font-size: 18px; }
.osbirds-entry-content ul, .osbirds-entry-content ol { padding-left: 1.4em; }
.osbirds-entry-content blockquote { margin: 1.2em 0; padding: .1em 1em; border-left: 3px solid var(--os-accent); color: var(--os-muted); }
.osbirds-entry-content pre, .osbirds-entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.osbirds-entry-content pre { overflow: auto; padding: 14px; border-radius: 10px; background: rgba(127, 127, 127, .1); }
.osbirds-entry-content table { width: 100%; border-collapse: collapse; }
.osbirds-entry-content th, .osbirds-entry-content td { padding: 8px; border: 1px solid var(--os-line-strong); text-align: left; }
.osbirds-entry-content figure { margin: 1.2em 0; }
.osbirds-entry-content figcaption { color: var(--os-muted); font-size: 12px; }
.osbirds-post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 13px; }
.osbirds-post-actions a { padding: 5px 8px; color: var(--os-muted); border-radius: 7px; font-size: 12px; text-decoration: none; }
.osbirds-post-actions a:hover { color: var(--os-text); background: rgba(127, 127, 127, .09); }
.osbirds-post-actions span { color: var(--os-muted-2); }
.osbirds-topic-chip { color: var(--os-accent-strong) !important; background: var(--os-accent-soft); }
.core-actions, .core-comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.core-edit { flex: 1 1 100%; padding: 10px; border: 1px solid var(--os-line); border-radius: var(--os-radius-control); background: rgba(127, 127, 127, .045); }
.core-edit summary { cursor: pointer; }
.core-edit-form { display: grid; gap: 8px; margin-top: 10px; }
.core-edit-form label { color: var(--os-muted); font-size: 12px; font-weight: 650; }
.core-edit-form .textfield, .core-edit-form .textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--os-line-strong); border-radius: 9px; outline: 0; background: rgba(255, 255, 255, .46); }
.core-edit-form .textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.core-edit-form .textfield:focus, .core-edit-form .textarea:focus { border-color: var(--os-accent); box-shadow: 0 0 0 3px var(--os-accent-soft); }
.core-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.core-action-form { margin: 0; }
.core-actions .tool-link, .core-comment-actions .tool-link { min-height: 30px; padding: 4px 8px; border: 0; border-radius: 7px; color: var(--os-muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.core-actions .tool-link:hover, .core-comment-actions .tool-link:hover { color: var(--os-text); background: rgba(127, 127, 127, .09); }
.core-actions .core-danger:hover, .core-comment-actions .core-danger:hover { color: #c9342d; background: rgba(255, 59, 48, .10); }
.core-actions .push, .core-comment-actions .push { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; color: #fff; background: var(--os-accent); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.osbirds-latest-reply { display: flex; gap: 7px; margin-top: 11px; padding: 8px 10px; color: var(--os-muted); border-left: 2px solid var(--os-line-strong); font-size: 12px; text-decoration: none; }
.osbirds-latest-reply strong { color: var(--os-text); }
.osbirds-latest-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osbirds-pagination { padding: 20px 0; }
.osbirds-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.osbirds-pagination a, .osbirds-pagination span { display: block; padding: 7px 10px; border: 1px solid var(--os-line); border-radius: 8px; font-size: 12px; text-decoration: none; }
.osbirds-pagination .current { color: var(--os-accent-strong); background: var(--os-accent-soft); }

.osbirds-inspector-card, .osbirds-widget { padding: 14px 0; border-bottom: 1px solid var(--os-line); }
.osbirds-inspector-card:first-child, .osbirds-widget:first-child { padding-top: 0; }
.osbirds-inspector-card:last-child, .osbirds-widget:last-child { border-bottom: 0; }
.osbirds-inspector-card h2, .widget-title { margin: 0 0 9px; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.osbirds-inspector-card p, .osbirds-widget p { margin: 0; color: var(--os-muted); font-size: 12px; line-height: 1.5; }
.osbirds-inspector-list, .osbirds-widget ul { margin: 0; padding: 0; list-style: none; }
.osbirds-inspector-list li, .osbirds-widget li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--os-line); font-size: 12px; }
.osbirds-inspector-list li:last-child, .osbirds-widget li:last-child { border-bottom: 0; }
.osbirds-inspector-list a, .osbirds-widget a { text-decoration: none; }
.osbirds-inspector-list small { color: var(--os-muted); white-space: nowrap; }
.osbirds-category-list span { color: var(--os-muted); }
.osbirds-widget select, .osbirds-widget input:not([type="submit"]), .osbirds-widget textarea { width: 100%; max-width: 100%; padding: 8px 9px; border: 1px solid var(--os-line-strong); border-radius: 8px; background: transparent; }
.osbirds-widget .wp-block-heading { margin: 0 0 9px; font-size: 12px; text-transform: uppercase; }

.osbirds-document-header { padding-bottom: 22px; border-bottom: 1px solid var(--os-line); }
.osbirds-document-header .osbirds-eyebrow { margin-bottom: 10px; }
.osbirds-post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--os-muted); font-size: 12px; }
.osbirds-post-meta a { color: var(--os-accent-strong); text-decoration: none; }
.osbirds-document > .osbirds-entry-content { padding: 26px 0; }
.osbirds-document-footer { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid var(--os-line); color: var(--os-muted); font-size: 12px; }
.osbirds-document-footer a { color: var(--os-accent-strong); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 34px; }
.post-navigation a { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--os-line); border-radius: 10px; text-decoration: none; }
.post-navigation .nav-previous { text-align: left; }
.post-navigation .nav-next { text-align: right; }
.post-navigation span { color: var(--os-muted); font-size: 11px; }
.post-navigation strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.osbirds-comments { margin-top: 22px; padding-top: 6px; }
.osbirds-comment-list { margin-top: 4px; }
.comment { padding: 17px 0; border-bottom: 1px solid var(--os-line); }
.comment-body { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.comment-main { min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.comment-author { font-size: 13px; }
.comment-metadata { color: var(--os-muted); font-size: 11px; }
.comment-metadata a { text-decoration: none; }
.comment-content { font-size: 14px; line-height: 1.55; }
.comment-content p { margin: 0 0 8px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation { display: block; margin: 6px 0; color: var(--os-muted); font-size: 12px; }
.comment .children { margin: 0 0 0 44px; padding-left: 14px; border-left: 2px solid var(--os-line); }
.reply { margin-top: 7px; font-size: 12px; }
.reply a { color: var(--os-accent-strong); }
.comment-form { margin-top: 24px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 650; }
.comment-form textarea { min-height: 118px; resize: vertical; }
.form-submit .submit { min-height: 34px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--os-accent); font-weight: 650; }
.osbirds-comment-navigation { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 12px; }
.osbirds-empty-inline { color: var(--os-muted); font-size: 13px; }
.osbirds-empty-state { max-width: 500px; margin: 0 auto; padding: 110px 24px; text-align: center; }
.osbirds-empty-state-small { padding: 70px 24px; }
.osbirds-empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; color: var(--os-accent); background: var(--os-accent-soft); font-size: 30px; }
.osbirds-empty-state h1, .osbirds-empty-state h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.03em; }
.osbirds-empty-state p:not(.osbirds-eyebrow) { max-width: 370px; margin: 0 auto 20px; color: var(--os-muted); }

.osbirds-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 16px 20px; border-top: 1px solid var(--os-line); background: var(--os-glass); color: var(--os-muted); font-size: 11px; }
.osbirds-footer-brand { display: grid; gap: 3px; }
.osbirds-footer-brand a { color: var(--os-text); font-weight: 650; text-decoration: none; }
.osbirds-footer-widgets { display: flex; gap: 20px; }
.osbirds-footer .osbirds-widget { padding: 0; border: 0; }
.osbirds-footer .widget-title { margin-bottom: 4px; color: var(--os-text); font-size: 10px; }
.osbirds-footer .osbirds-widget li { padding: 2px 0; border: 0; }
.osbirds-footer-menu { display: flex; flex-wrap: wrap; gap: 10px; }
.osbirds-footer-menu a { min-height: 0; padding: 2px 0; color: var(--os-muted); font-size: 11px; }

.osbirds-mobile-only, .osbirds-scrim { display: none; }
.osbirds-density-compact .osbirds-post { padding-top: 13px; padding-bottom: 13px; }
.osbirds-inspector-hidden .osbirds-inspector { display: none; }
.osbirds-inspector-hidden .osbirds-layout { grid-template-columns: var(--os-left) minmax(0, 1fr); }

@media (max-width: 1180px) {
	:root { --os-right: 0px; }
	.osbirds-toolbar { grid-template-columns: var(--os-left) minmax(0, 1fr) auto; }
	.osbirds-layout { grid-template-columns: var(--os-left) minmax(0, 1fr); }
	.osbirds-inspector { position: absolute; z-index: 45; top: var(--os-toolbar); right: 0; bottom: 0; width: 300px; transform: translateX(101%); transition: transform .22s ease; box-shadow: -20px 0 50px rgba(0, 0, 0, .12); }
	.osbirds-app.osbirds-inspector-open .osbirds-inspector { transform: none; }
	.osbirds-inspector-hidden .osbirds-layout { grid-template-columns: var(--os-left) minmax(0, 1fr); }
}

@media (max-width: 820px) {
	body { background: var(--os-content); }
	.osbirds-app { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
	.osbirds-toolbar { grid-template-columns: auto minmax(0, 1fr) auto; }
	.osbirds-toolbar-brand { padding-left: 10px; }
	.osbirds-traffic, .osbirds-site-name, .osbirds-toolbar-subtitle { display: none; }
	.osbirds-toolbar-center { justify-content: center; }
	.osbirds-mobile-only { display: inline-flex; }
	.osbirds-toolbar-actions { padding-right: 8px; }
	.osbirds-user-chip, .osbirds-toolbar-link, .osbirds-utility-menu { display: none; }
	.osbirds-layout, .osbirds-inspector-hidden .osbirds-layout { display: block; }
	.osbirds-layout > .osbirds-content { min-height: calc(100dvh - var(--os-toolbar)); }
	.osbirds-sidebar { position: absolute; z-index: 46; top: var(--os-toolbar); bottom: 0; left: 0; width: min(310px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, .14); }
	.osbirds-app.osbirds-nav-open .osbirds-sidebar { transform: none; }
	.osbirds-app.osbirds-inspector-open::after, .osbirds-app.osbirds-nav-open::after { content: none; }
	.osbirds-app.osbirds-nav-open .osbirds-scrim, .osbirds-app.osbirds-inspector-open .osbirds-scrim { display: block; position: absolute; z-index: 44; inset: var(--os-toolbar) 0 0; width: 100%; padding: 0; border: 0; background: rgba(0, 0, 0, .16); backdrop-filter: blur(2px); }
	.osbirds-inspector { top: var(--os-toolbar); width: min(310px, 86vw); }
	.osbirds-feed-page, .osbirds-reading-column { max-width: none; padding: 24px 20px 70px; }
	.osbirds-page-header { align-items: flex-start; }
	.osbirds-page-header .osbirds-button { display: none; }
	.osbirds-post { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
	.osbirds-post-head { flex-wrap: wrap; }
	.osbirds-post-head time { width: 100%; margin-left: 0; }
	.osbirds-footer { display: block; }
	.osbirds-footer-widgets { margin-top: 12px; }
}

@media (max-width: 680px) {
	.osbirds-app { min-height: 100dvh; }
	.osbirds-composer-footer { align-items: flex-start; flex-direction: column; }
	.osbirds-composer-footer .osbirds-button { width: 100%; }
	.osbirds-post-head time { font-size: 11px; }
	.osbirds-entry-content { font-size: 16px; }
	.osbirds-document-footer { display: grid; gap: 7px; }
}

@media (max-width: 520px) {
	.osbirds-toolbar-section { padding-left: 6px; padding-right: 6px; }
	.osbirds-toolbar-title { font-size: 14px; }
	.osbirds-feed-page, .osbirds-reading-column { padding-right: 16px; padding-left: 16px; }
	.osbirds-page-header h1, .osbirds-document-header h1 { font-size: 27px; }
	.osbirds-post-title { font-size: 18px; }
	.osbirds-post-actions a:nth-child(3) { display: none; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.osbirds-footer-widgets { display: block; }
	.osbirds-footer-widgets > div + div { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
	:root { --os-line: rgba(17, 24, 39, .30); --os-line-strong: rgba(17, 24, 39, .52); }
	.osbirds-icon-button, .osbirds-user-chip, .osbirds-toolbar-link, .osbirds-button, .core-edit-form .textfield, .core-edit-form .textarea { border-color: var(--os-line-strong); }
}

@media print {
	body { background: #fff; }
	.osbirds-app { width: 100%; min-height: 0; margin: 0; border: 0; box-shadow: none; }
	.osbirds-toolbar, .osbirds-sidebar, .osbirds-inspector, .osbirds-footer, .osbirds-composer, .osbirds-post-actions { display: none !important; }
	.osbirds-workspace, .osbirds-layout { display: block; }
	.osbirds-feed-page, .osbirds-reading-column { max-width: 100%; padding: 0; }
}
