/* v0.8 corrections. Applied after every approved template stylesheet. */
/* Sidebar uses natural document scrolling, never a separate scroll container. */
body.od-home-member .shell > .sidebar,
body.od-home-public .shell > .sidebar,
body.od-inner-page .shell > .sidebar {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overscroll-behavior: auto;
  scrollbar-width: auto;
}
body .shell > .sidebar .side-menu,
body .shell > .sidebar .side-panel {max-height:none !important;overflow:visible !important;}
/* Keep sorting and New Topic together in the same toolbar row. */
.od-home-member .toolbar-controls,.od-home-public .toolbar-controls {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.od-home-live .toolbar-controls .topic-create-link,
.od-home-live .toolbar-controls .sort-form select {
  height:38px !important;min-height:38px !important;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;
  padding-top:0 !important;padding-bottom:0 !important;line-height:normal;
}
.od-home-live .toolbar-controls .sort-form {display:flex;align-items:center;margin:0}
.od-home-live .toolbar-controls .sort-form label {margin:0}
/* Bookmark is visible even without hovering, filled when saved. */
.od-home-member .topic-bookmark {visibility:visible !important;opacity:1 !important;}
.od-home-member .topic-bookmark svg {fill:none !important;stroke:currentColor !important;}
.od-home-member .topic-bookmark.saved svg {fill:currentColor !important;stroke:currentColor !important;}
/* Every profile and post image is a circle, regardless of earlier template rules. */
.user-avatar,.large-avatar,.profile-photo,.person-avatar,.person-avatar-img,.gb-avatar,.post-avatar,.friend-tile img,.post-person img,.topic-page-links .user-avatar {border-radius:50% !important;object-fit:cover !important;}
.user-avatar img,.large-avatar img,.person-avatar img {border-radius:50% !important;object-fit:cover !important;}
/* Member profile name baseline sits directly on the cover's lower boundary. */
.od-inner-page .profile-hero .person-info {margin-top:-21px !important;padding-top:0 !important;}
.od-inner-page .profile-hero .person-title {line-height:26px !important;margin:0 !important;font-size:21px !important;}
.od-inner-page .profile-hero .person-badges {margin-top:8px !important;margin-bottom:0 !important;gap:7px;}
.od-inner-page .profile-hero .profile-cover {border-bottom:1px solid var(--od-theme-accent, #7894b5);}
.od-inner-page .content.profile-content>.ad-slot {margin:8px 0 15px;width:100%;}
/* Discussion controls with page number on right. */
.od-inner-page .topic-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 15px;}
.od-inner-page .topic-actions .topic-action-buttons {display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
.od-inner-page .topic-page-links {margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:5px;color:var(--od-theme-link, #a8bfd9);font-size:12px;}
.od-inner-page .topic-page-links span {margin-right:6px;white-space:nowrap;}
.od-inner-page .topic-page-links a {display:inline-flex;min-width:27px;min-height:29px;justify-content:center;align-items:center;border:1px solid var(--od-theme-border, #435978);background:var(--od-theme-hover, #253d58);text-decoration:none;color:var(--od-theme-text, #d8e9ff);}
.od-inner-page .topic-page-links a[aria-current="page"]{background:var(--od-theme-soft, #416690);color:var(--od-theme-text, #fff);font-weight:750;}
.od-inner-page .post-topline .topic-original-heading {font-size:19px;line-height:1.35;letter-spacing:normal;text-transform:none;margin:0;font-weight:750;color:var(--od-theme-text, #e7f0ff);}
.od-inner-page .original-post .post-topline > .post-topline-label {font-size:inherit;letter-spacing:normal;text-transform:none;}
.od-inner-page .reply-editor {width:100%;max-width:none;box-sizing:border-box;padding:0;}
.od-inner-page .reply-editor form {width:100%;max-width:none;box-sizing:border-box;padding:16px 18px;}
.od-inner-page .reply-editor textarea {width:100%;max-width:none;box-sizing:border-box;min-height:210px;}
.od-inner-page .reply-editor .reply-formatting {display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px;}
.od-inner-page .reply-formatting button {min-width:35px;height:32px;border:1px solid var(--od-theme-border, #475f7d);background:var(--od-theme-hover, #273c55);color:var(--od-theme-text, #deebff);cursor:pointer;font-weight:750;}
.od-inner-page .reply-formatting button:hover {background:var(--od-theme-soft, #37567a);}
@media(max-width:690px){.od-inner-page .profile-hero .person-info{margin-top:-20px !important;}.od-inner-page .topic-actions{align-items:flex-start;}.od-inner-page .topic-page-links{width:100%;}.od-inner-page .post-topline .topic-original-heading{font-size:16px;}}

/* Formatting used by both new-topic and reply editors. */
.post-format-quote{margin:7px 0;padding:9px 12px;border-left:3px solid var(--od-theme-accent, #6c9fea);background:var(--od-theme-hover, #23354a);color:var(--od-theme-text, #d3e4fa);}
.post-format-list{margin:7px 0 10px;padding-left:24px;list-style:disc outside;}
.post-format-list li{margin:3px 0;}
.post-format-line:empty{min-height:1em;}
.post-copy a,.gb-entry-content a{color:var(--od-theme-link, #a8cbff);text-decoration:underline;}
