/* Shared account navigation and responsive rhythm; desktop reading sizes stay configurable. */
.settings-nav{display:flex;flex-wrap:wrap;gap:0 18px;padding:0 20px;border-bottom:1px solid var(--line);font-size:13px}
.settings-nav a{display:inline-flex;align-items:center;gap:5px;min-height:42px;padding:8px 0;border-bottom:2px solid transparent;color:var(--secondary);white-space:nowrap}
.settings-nav a.active{color:var(--accent);border-bottom-color:var(--accent)}
.settings-nav a:last-child{margin-left:auto;color:var(--muted)}
:is(.ns-personal-page,.ns-messages,.ns-account-card) .section-heading{padding:16px 20px;gap:16px}
:is(.ns-personal-page,.ns-messages,.ns-account-card) .section-heading h1{font-size:20px;line-height:1.4;margin:0}
:is(.ns-personal-page,.ns-messages,.ns-account-card) .section-heading p{font-size:13px;line-height:1.6;margin:4px 0 0}
.section-heading>div{min-width:0}
.ns-topic-tail{display:inline-block;white-space:nowrap;overflow-wrap:normal}
.section-heading h1,.section-heading p{overflow-wrap:anywhere}
.section-heading>.heading-icon{width:28px;height:28px}
.pagination:empty{display:none}
.ns-conversation-title{overflow-wrap:anywhere;line-height:1.5}
.ns-text-action{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--secondary)}
#message-compose .field label{font-size:13px;overflow-wrap:anywhere}
#message-compose .field small{font-size:12px;line-height:1.6}
#message-compose{max-width:640px;margin-left:auto}
#message-compose textarea{min-height:80px}
.ns-notification-list p{margin:4px 0 0}
.ns-notification-list strong{font-weight:500}
.ns-notification-list .ns-notification-action{font-weight:500;min-width:44px;min-height:44px}
.ns-notification-list>.empty-state{display:block;text-align:center;border-bottom:0;color:var(--muted);font-size:13px}
.ns-my-posts>.empty-state{color:var(--muted);font-size:13px}
/* Compact desktop actions retain a 44px hit area on touch screens. */
.site-body .button.ns-action-button{--ns-action-tint:var(--accent);position:relative;isolation:isolate;min-height:var(--ns-control-height);padding:6px 12px;gap:6px;font-size:14px;font-weight:500;line-height:1.4;color:var(--text);background:transparent;border-color:transparent;border-radius:5px}
.site-body .button.ns-action-button::before{content:"";position:absolute;inset:1px 0;border:1px solid color-mix(in srgb,var(--ns-action-tint) 22%,var(--line));border-radius:5px;background:color-mix(in srgb,var(--ns-action-tint) 7%,var(--surface));z-index:-1;pointer-events:none}
.site-body .button.ns-action-button:hover{color:var(--text);filter:none}
.site-body .button.ns-action-button:hover::before{background:color-mix(in srgb,var(--ns-action-tint) 13%,var(--surface));border-color:color-mix(in srgb,var(--ns-action-tint) 40%,var(--line))}
.site-body .button.ns-action-button .icon{width:15px;height:15px;color:var(--ns-action-tint)}
.site-body .ns-account-card .ns-account-actions>.ns-action-button{padding-inline:10px;gap:5px;font-size:13px}
.site-body .ns-account-card .ns-account-actions>.ns-action-button::before{inset-block:3px}
.site-body .button.ns-action-button:disabled{color:var(--muted)}
.site-body .sidebar .welcome-card .button.ns-action-button{display:flex;width:fit-content;margin-inline:auto;max-width:100%;background:transparent;border-color:transparent;color:var(--text)}
.sidebar .welcome-sub.ns-welcome-account-links{justify-content:center;column-gap:20px;row-gap:0;flex-wrap:wrap}
.site-body .checkin-card>.button.ns-action-button{--ns-action-tint:var(--secondary)}
.site-body .ns-editor-submit.ns-action-button{--ns-action-tint:var(--editor-submit)}
.site-body .post-actions>.button{min-height:44px;padding:6px 10px;font-size:14px;font-weight:500;line-height:1.4;gap:6px;color:var(--secondary);background:transparent;border-color:transparent}
.site-body .post-actions>.button:hover{background:var(--surface-alt);color:var(--accent);filter:none}
.site-body .post-actions>.button .icon{width:16px;height:16px}
.site-body .post-actions [data-bookmark][aria-pressed=true]{color:var(--accent)}
.comment-form .form-submit{padding:4px 12px}
.ns-action-short{display:none}
.prose .button{text-decoration:none}
.prose a.button:not(.button-outline):not(.button-quiet):not(.button-dark){color:#fff}
.profile-info{display:grid;grid-template-columns:auto minmax(0,1fr)}
.profile-info>:is(.avatar-letter,.ns-builtin-avatar){border:5px solid var(--surface);box-sizing:content-box}
.profile-name h1,.profile-bio,.profile-bottom a,.member-card h2{overflow-wrap:anywhere}
.profile-title{display:flex;align-items:center;flex-wrap:wrap;gap:0 12px}
.profile-title h1{min-width:0;max-width:100%;margin:0}
.ns-profile-details{padding:0 30px;margin-top:8px;min-width:0;text-align:left}
.ns-profile-details>p{margin:0;font-size:13px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.ns-profile-details>p span{margin:0 5px}
.profile-name{align-self:center}
.ns-profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;min-width:0;max-width:100%}
.ns-profile-actions form{margin:0;padding:0}
.ns-profile-message{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;padding:0 2px;border:0;background:transparent;color:var(--secondary);font-family:inherit;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;border-radius:4px;cursor:pointer}
.ns-profile-message .icon{width:16px;height:16px}
.ns-profile-message:hover{color:var(--accent)}
.profile-bottom{flex-wrap:wrap;gap:12px}
.feature-card>span:not(.feature-icon){min-width:0;overflow-wrap:anywhere}
.feature-icon{flex-shrink:0}
.feature-server .feature-icon{background:color-mix(in srgb,#789280 12%,var(--surface));border-color:color-mix(in srgb,#789280 22%,var(--line))}
.feature-code .feature-icon{background:color-mix(in srgb,#9c8370 12%,var(--surface));border-color:color-mix(in srgb,#9c8370 22%,var(--line))}
.topic-meta>a,.post-author>div{min-width:0;overflow-wrap:anywhere}
.post-author>div{flex:1}
.breadcrumb{flex-wrap:wrap}
.ns-editor.is-fullscreen{top:calc(var(--ns-visual-top,0px) + 15px);bottom:auto;height:calc(var(--ns-visual-height,100dvh) - 30px)}
@media(max-width:767px){.site-body .button.ns-action-button::before{inset-block:5px}.site-body .ns-account-card .ns-account-actions>.ns-action-button::before{inset-block:7px}.ns-editor.is-fullscreen{top:calc(var(--ns-visual-top,0px) + 5px);height:calc(var(--ns-visual-height,100dvh) - 10px)}}

@media(min-width:768px) and (max-width:1023px){
  body{font-size:15px}
  .header-inner{gap:22px}
  .main-nav{gap:20px}
  .community-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .sticky-sidebar .sidebar{position:static}
  .sidebar-guideline{grid-column:1/-1}
  .topic-title-line h2{font-size:16px;line-height:1.65}
  .topic-meta,.category-label,.topic-numbers{font-size:12px}
  .section-heading p,.welcome-copy>p,.feature-card small,.welcome-card p,
  .welcome-sub,.hot-list small,.tag-cloud a,.stats-grid span,.community-stats>p,
  .sidebar-guideline small,.checkin-title p,.member-card p,.member-card small,
  .site-footer p,.footer-right nav{font-size:12px}
  .welcome-card h2{font-size:17px}
  .hot-list a,.checkin-title h3,.card-heading h3{font-size:14px}
  .member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .member-card p{height:auto;min-height:40px;overflow-wrap:anywhere}
  .prose,.reply-main .prose,.reply-main .ns-comment-text{font-size:16px;line-height:1.85}
  .post-author .muted,.post-stats,.ns-comment-date{font-size:12px}
  .sort-nav a,.page-numbers,.badge,.post-neighbors small,.post-neighbors a,.profile-name p,
  .auth-layout .checkbox-label,.auth-layout .form-between,.auth-layout .auth-switch,
  .auth-layout .field small,.auth-layout .ns-security-note{font-size:12px}
  .sort-nav a,.page-numbers{min-height:44px}
  .page-numbers{min-width:44px}
  .field>input,.field>textarea,.field>select,.password-input input{font-size:16px}
}

@media(max-width:767px){
  .announcement,.announcement-label{font-size:12px}
  .welcome-copy>p,.hero-link,.section-heading p,.feature-card small,
  .topic-meta,.category-label,.topic-numbers,.post-author .muted,.post-stats,
  .breadcrumb,.post-edit,.post-neighbors small,.post-neighbors a,.badge,
  .ns-comment-date,.ns-comment-signature,.comment-form .muted,
  .comment-form-cookies-consent label,.member-card p,.member-card small,
  .site-footer p,.footer-right nav,.account-menu-heading span{font-size:12px}
  .feature-card strong{font-size:13px}
  .feature-links .feature-icon{display:none}
  .feature-card{align-items:flex-start}
  .section-label,.section-heading .eyebrow,.standard-page>.eyebrow{display:none}
  .feature-card small{line-height:1.5}
  .topic-title-line h2{font-size:15px;line-height:1.65}
  .topic-meta{row-gap:4px}
  .topic-numbers{gap:4px}
  .topic-avatar :is(.avatar-letter,.ns-builtin-avatar){--avatar-size:34px!important}
  .reply-avatar :is(.avatar-letter,.ns-builtin-avatar){--avatar-size:32px!important}
  .category-nav a,.sort-nav a{font-size:12px;min-height:44px}
  .category-nav{padding-bottom:8px}
  .sort-nav{gap:14px}
  .list-toolbar{height:48px}
  /* One control scale; compact labels keep the heading and actions in balance. */
  .site-body .button{min-height:44px;padding:8px 12px;gap:6px;font-size:13px;line-height:1.4}
  .section-heading{gap:12px}
  .section-heading h1{font-size:20px;line-height:1.4}
  .section-heading>.heading-icon{width:24px;height:24px}
  .section-heading>.button{flex-shrink:0;align-self:center}
  .ns-action-full{display:none}
  .ns-action-short{display:inline}
  .post-actions{gap:6px;padding:10px 12px;flex-wrap:wrap}
  .post-actions>.button,.post-actions>.post-edit{flex:1 1 0;min-width:0}
  .post-actions>.button{padding-inline:6px;gap:5px}
  .post-actions>.post-edit{margin:0;text-align:center}
  .post-edit-link{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px}
  .post-author{flex-wrap:wrap;row-gap:8px}
  .post-author strong{font-size:14px}
  .post-author>div{flex-basis:calc(100% - 56px)}
  .post-stats{margin-left:0}
  .prose,.reply-main .prose,.reply-main .ns-comment-text{font-size:16px;line-height:1.85}
  .prose pre,.prose code{font-size:13px}
  .reply-list .reply-meta strong{font-size:14px}
  .ns-comment-actions button,.ns-comment-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;gap:4px;padding:4px;border-radius:5px;white-space:nowrap}
  .ns-comment-actions{justify-content:space-between;flex-wrap:wrap;gap:0 8px;margin-top:8px}
  .ns-comment-actions :is(button,a):hover{background:var(--surface-alt)}
  .ns-comment-reactions,.ns-comment-replies{gap:4px}
  .ns-comment-replies{margin-left:auto}
  .reply-list .reply-body{padding-block:16px}
  .page-numbers{min-width:44px;height:44px;font-size:13px}
  .welcome-card h2{font-size:16px}
  .welcome-card p,.welcome-sub,.checkin-title p,.hot-list small,.tag-cloud a,
  .tag-cloud small,.tag-cloud p,.stats-grid span,.community-stats>p,.sidebar-guideline small{font-size:12px}
  .hot-list a,.checkin-title h3,.card-heading h2,.card-heading h3,.sidebar-guideline{font-size:14px}
  .sidebar-hot .hot-list{display:block}
  .sidebar .welcome-card{padding:16px}
  .welcome-card .eyebrow{display:none}
  .welcome-card h2{margin:0 0 6px}
  .welcome-card p{margin-bottom:12px}
  .sidebar .welcome-card .button{width:auto;max-width:100%;color:var(--accent);border-color:color-mix(in srgb,var(--accent) 25%,var(--line));background:var(--accent-soft)}
  .welcome-sub{margin-top:8px;align-items:center;flex-wrap:wrap;gap:0 8px}
  .welcome-sub a{display:inline-flex;align-items:center;min-height:44px}
  .checkin-card,.ns-density-compact .checkin-card{padding:12px 16px;gap:8px;flex-wrap:nowrap}
  .checkin-title{min-width:0;flex:1 1 0;gap:8px}
  .checkin-title>div{min-width:0}
  .checkin-title h3{font-size:13px}
  .checkin-symbol{flex-shrink:0;width:32px;height:32px}
  .checkin-card>.button{min-width:0;flex:0 0 auto}
  .settings-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 12px;gap:0 8px}
  .settings-nav a{justify-content:center;min-width:0;min-height:44px;font-size:12px;white-space:normal;overflow-wrap:anywhere;flex-wrap:wrap;gap:3px}
  .settings-nav a:last-child{margin-left:0}
  :is(.ns-personal-page,.ns-messages,.ns-account-card) .section-heading{padding:16px}
  .ns-account-card .settings-form{padding:16px}
  :is(.ns-personal-page,.ns-messages,.ns-account-card) .section-heading .eyebrow{display:none}
  .profile-info{grid-template-columns:72px minmax(0,1fr);gap:8px 12px;padding:0 18px;align-items:start}
  .profile-info>:is(.avatar-letter,.ns-builtin-avatar){--avatar-size:64px!important;border-width:4px;grid-row:1/3}
  .profile-name{padding:34px 0 0;align-self:start}
  .ns-profile-details{padding-inline:21px;margin-top:8px}
  .ns-profile-details>p{font-size:12px}
  .profile-name h1{font-size:20px}
  .profile-name p{font-size:12px;line-height:1.6}
  .profile-bio{font-size:14px;margin-top:16px}
  .profile-bottom{font-size:13px}
  .member-card h2{font-size:15px}
  .member-card p{height:auto;min-height:36px;overflow-wrap:anywhere}
  .field small,.ns-compose-extra p,.ns-upload-label{font-size:12px}
  .ns-compose-extra input,.ns-compose-fields select{font-size:16px;min-height:44px;height:44px;line-height:22px}
  .ns-compose-extra input{min-width:0}
  .ns-editor-tools button{min-width:36px;min-height:44px;padding-inline:6px}
  .ns-compose-footer{gap:8px;padding:8px}
  .ns-compose-fields{flex:1 1 130px;gap:6px}
  .ns-compose-fields select{flex:1;min-width:0;width:0;max-width:100%;padding:6px;font-size:16px}
  .ns-compose-footer .ns-editor-submit{flex-shrink:0}
  .ns-notification-list>li{align-items:flex-start;padding:12px 0;gap:8px}
  .ns-notification-list>li>form{flex-shrink:0}
  .ns-notification-list>li .button{padding-inline:8px}
  .ns-notification-list>li.empty-state{padding:24px 0}
  .ns-conversation-title,.ns-density-compact .ns-conversation-title{font-size:17px;margin:12px 0}
  .ns-inbox-item{gap:12px;padding:14px 0}
  .ns-inbox-item:first-child{padding-top:0}
  .ns-inbox-item:last-child{border-bottom:0;padding-bottom:0}
  .ns-inbox-item p{margin:4px 0}
  #message-compose .field{margin-bottom:12px}
  #message-compose textarea{font-size:16px;line-height:1.6}
  .standard-page{padding:20px 16px}
  .standard-page>h1{font-size:22px;margin:0 0 20px}
  .not-found,.auth-required{padding:28px 18px;margin:12px auto 24px}
  .not-found .eyebrow,.auth-required .eyebrow{display:none}
  .not-found h1,.auth-required h1{font-size:22px}
  .not-found-search{margin:20px auto 8px}
  .header-actions .theme-toggle,.account-menu>summary,.back-top{min-width:44px;min-height:44px}
  .header-inner{gap:6px}
  .header-inner>.brand{flex:1;min-width:0;font-size:20px;gap:6px}
  .header-actions{flex-shrink:0;gap:0}
  .header-actions .theme-toggle,.header-actions .ns-notification-link,.header-actions .account-menu>summary{width:36px;min-width:36px;height:44px;min-height:44px}
  .header-actions .theme-toggle,.header-actions .ns-notification-link{padding:8px}
  .header-actions .theme-toggle>.icon,.header-actions .ns-notification-symbol,.header-actions .ns-notification-symbol>.icon{width:20px;height:20px}
  .ns-post-filters{gap:4px}
  .ns-post-filters>a{display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:44px;padding:8px 4px;font-size:13px;white-space:nowrap}
  .site-footer{gap:12px}
}

@media(max-width:374px){.checkin-symbol{display:none}.settings-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  a,.button,.main-nav,.back-top{transition:none}
}

.ns-profile-message[aria-pressed=true]{color:var(--accent)}
.ns-profile-message:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media(max-width:374px){
  .profile-info{grid-template-columns:56px minmax(0,1fr);column-gap:8px}
  .profile-info>:is(.avatar-letter,.ns-builtin-avatar){--avatar-size:48px!important}
}
