/* Asteroid 1.4: retain Classic identity and improve reading. */
body { color: var(--ast-color-text); font-size: 16px; line-height: 1.6; }
a { color: var(--ast-color-link); }
a:hover { color: var(--ast-color-link-hover); }
#container { overflow: visible; }
#header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; min-height: var(--ast-header-min-height); padding: 18px 20px; background-color: var(--ast-header-bg); }
#header-info-wrap { float: none; flex: 1 1 360px; min-width: 0; }
#header-info-wrap #header-text { padding: 0; margin: 0; }
#site-title { font-size: clamp(30px, 3vw, 44px); overflow-wrap: anywhere; }
#site-description { font-size: 14px; line-height: 1.45; margin: 8px 0 0; }
.ast-header-search { flex: 0 1 290px; width: 100%; }
.ast-header-search .search-form { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
.ast-header-search label { flex: 1; min-width: 0; }
.ast-header-search input[type="search"] { width: 100%; min-width: 0; height: 44px; }
.ast-header-search input[type="submit"] { min-height: 44px; }
#nav .drop-toggle { display: none; min-width: 44px; min-height: 44px; }
#nav .ast-category-menu { position: relative; }
#nav summary { padding: 10px 16px; cursor: pointer; color: var(--ast-color-nav-fg); min-height: 44px; }
#nav .ast-category-list { position: absolute; right: 0; top: 100%; width: min(340px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; background: var(--ast-color-nav-bg); border: 1px solid #555; z-index: 1000; }
#nav .ast-category-list a { white-space: normal; font-size: 15px; }
#nav li.ast-open > ul { display: block; }
#nav .sub-menu.ast-flip { left: auto; right: 0; }
#nav .sub-menu .sub-menu.ast-flip { right: 100%; }
#nav .ast-submenu-toggle { background: transparent; color: var(--ast-color-nav-fg); border: 0; cursor: pointer; min-width: 44px; min-height: 44px; position: absolute; right: 0; top: 0; }
#nav .menu-item-has-children { position: relative; }
#nav .menu-item-has-children > a { padding-right: 48px; }
#nav .menu-item-has-children > a::after { display: none; }
.blog-view { padding: 14px; margin: 14px 0 18px; background: #f0f0f0; box-shadow: 0 1px 2px #0002; }
.blog-view .entry-title { font-size: 23px; line-height: 1.3; display: block; }
.blog-view .entry-date { float: none; display: inline-block; margin: 6px 0 0; font-size: 13px; }
.blog-view .entry-categories { font-size: 13px; margin-top: 6px; }
.blog-view .ast-excerpt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.blog-view .ast-excerpt::before, .blog-view .ast-excerpt::after { content: none; }
.blog-view .entry-thumbnail { float: none; display: block; margin: 0; aspect-ratio: auto; width: 100%; height: auto; max-height: none; background: #fff; }
.blog-view .entry-thumbnail img { display: block; width: 100%; height: auto; max-height: none; }
.blog-view .entry-excerpt { min-width: 0; font-size: 16px; line-height: 1.6; }
.blog-view .entry-excerpt p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.blog-view .entry-title { margin: 0; }
.blog-view .continue-reading { padding: 8px 14px; min-height: 40px; }
.single-view { max-width: 760px; margin: 18px auto; }
.single-view .entry-content { font-size: 18px; line-height: 1.7; }
.single-view .entry-title { font-size: clamp(25px, 2.3vw, 34px); line-height: 1.25; }
.single-view .entry-meta-top { font-size: 14px; }
.single-view .entry-author,.single-view .entry-date { float: none; display: inline-block; margin: 0 6px 6px 0; }
.single-view .updated { font-size: 14px; }
.entry-content, .comment-content, .comment-author { overflow-wrap: anywhere; min-width: 0; }
.entry-content > .alignfull { width: 100%; margin-left: 0; margin-right: 0; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre { max-width: 100%; overflow-x: auto; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.comment-body { min-width: 0; }
#comments .children { padding-left: clamp(8px, 2vw, 24px); }
.comment-form input, .comment-form textarea { font-size: 16px; }
.archive-title { font-size: 25px; text-transform: none; }
.ast-related { margin-top: 32px; border-top: 1px solid var(--ast-color-border); padding-top: 14px; }
.ast-related h2 { font-size: 24px; }
.ast-related li { margin-bottom: 12px; }
.ast-toc { margin: 20px 0; padding: 14px 18px; border: 1px solid var(--ast-color-border); background: #f6f6f6; font-size: 16px; }
.ast-toc summary { cursor: pointer; font-weight: 700; }
.ast-toc ol { max-height: 50vh; overflow-y: auto; padding-left: 22px; }
.entry-content [id] { scroll-margin-top: 20px; }
.widget-sidebar { font-size: 15px; }
#widgets-wrap-sidebar { padding-top: 12px; }
.asteroid-widget:empty { display: none; }
#footer { color: var(--ast-color-footer-fg); background-color: var(--ast-color-footer-bg); }
#footer-links nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media(max-width:767px){
 #header { min-height: 0; padding: 16px; gap: 14px; }
 #header-info-wrap { flex-basis: 100%; }
 .ast-header-search { flex-basis: 100%; }
 .ast-js #nav .drop-toggle { display: block; }
 #nav.drop .menu { display: block; }
 .ast-js #nav.drop:not(.dropped) .menu { display: none; }
 #nav .ast-category-list { position: static; width: 100%; max-height: 60vh; }
 #nav.dropped .sub-menu { width: 100%; }
 html:not(.ast-js) #nav .sub-menu { display: block; position: static; width: 100%; }
 #nav .menu > li > a { text-align: left; font-size: 16px; min-height: 44px; }
 .blog-view .entry-title { font-size: 21px; }
 .blog-view .entry-excerpt { font-size: 16px; }
 .single-view .entry-content { font-size: 17px; line-height: 1.65; }
 #content { padding-left: 12px; padding-right: 12px; }
 #nav.dropped .menu { margin: 0 12px 12px; }
}
@media(min-width:768px){ #nav.drop .menu { display: flex; } }
@media print { .ast-header-search,.ast-toc,.ast-related { display: none; } .single-view{max-width:none}.single-view .entry-content{font-size:12pt} }
