/* /static/css/style.css  */

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: 'FeatureFlatHeadline';
  src:
    url('/static/fonts/FeatureFlat/FeatureFlatHeadline.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src:
    url('/static/fonts/Suisselntl/SuisseIntl-Regular.woff2') format('woff2'),
    url('/static/fonts/Suisselntl/SuisseIntl-Regular.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src:
    url('/static/fonts/Suisselntl/SuisseIntl-Regular.woff2') format('woff2'),
    url('/static/fonts/Suisselntl/SuisseIntl-Regular.woff') format('woff');
  font-weight: regular;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src:
    url('/static/fonts/Suisselntl/SuisseIntl-Regular.woff2') format('woff2'),
    url('/static/fonts/Suisselntl/SuisseIntl-Regular.woff') format('woff');
  font-weight: medium;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src:
    url('/static/fonts/Suisselntl/SuisseIntl-SemiBold.woff2') format('woff2'),
    url('/static/fonts/Suisselntl/SuisseIntl-SemiBold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
  font-family: 'SuisseIntlBold';
  src:
    url('/static/fonts/Suisselntl/SuisseIntl-Black.woff2') format('woff2'),
    url('/static/fonts/Suisselntl/SuisseIntl-Black.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
} */

/* ==========================================================================
   General
   ========================================================================== */


*, *::before, *::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body{
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  color: #131313;
  background: #fff;
  margin: 0px;
  padding: 0;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family:
    'SuisseIntl',
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    sans-serif,
    "Helvetica Neue",
    Helvetica,
    Apple Color Emoji,
    Arial,
    sans-serif,
    Segoe UI Emoji,
    Segoe UI Symbol;
  font-optical-sizing: auto;
  font-variation-settings: normal;
  text-rendering: optimizeLegibility;
}
.e-content{
  font-size: 1.125rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* Remove excess top margin when heading is the first element in content */
.e-content > :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}
h1 {
  font-size: 1.55em;
}
h2 {
  font-size: 1.35em;
}
h3 {
  font-size: 1.15em;
}

/* Mobile heading sizes */
@media (max-width: 800px) {
  h1 {
    font-size: 1.4em;
  }
  h2 {
    font-size: 1.25em;
  }
  h3 {
    font-size: 1.1em;
  }
}

a {
  color: #131313;
}
a{
  word-wrap: break-word;
}
a:link {
  text-decoration: underline;
  color: #131313;
}
a:visited {
  text-decoration: underline;
  color: #131313;
}
a:hover {
  color:rgba(13, 204, 108, 1);
  text-decoration: underline;
}
a:active {
  color:rgba(13, 204, 108, 1);
  text-decoration: underline;
}
a:focus {
  outline: 2px dashed #377ba8; 
}
hr{
  border: 1px solid #c2c2c2;
}
blockquote {
  border-left:  6px solid #E4E4E4;
  margin: 1.3em 0px;
  padding: 0em 20px;
  font-family: "FeatureFlatHeadline", "Georgia", "Times New Roman", "Times", serif;
  letter-spacing: 0.01em;
  font-weight: 330;
  font-variation-settings: "wght" 330, "opsz" 14; 
}
blockquote p {
  display: inline;
}
@media (max-width:800px) {
  blockquote{
    font-size: 1em;
  }
}

.text-serif-all {
  font-family: "FeatureFlatHeadline", "Georgia", "Times New Roman", "Times", serif;
  font-size: 1.18rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  font-weight: 330;
  font-variation-settings: "wght" 330, "opsz" 14;
}

.text-serif p,
.text-serif li {
  font-family: "FeatureFlatHeadline", "Georgia", "Times New Roman", "Times", serif;
  font-size: 1.18rem;
  line-height: 1.75; 
  letter-spacing: 0.01em;
  font-weight: 330;
  font-variation-settings: "wght" 330, "opsz" 14;
}

button {
  display: inline-block;
  padding: 7px 10px 5px 10px;
  background-color: #fff;
  color: #2fbc5c;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  clear: both;
  border-radius: 2px;
  cursor: pointer;
  border:0;
  border:1px solid #2fbc5c;
}
label{
  font-weight: 600;
  font-size: 13px;
  color:gray;
}
select {
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
  border-radius: 0px;
  height: 26px;
}
select:focus {
  outline: none;
}
pre {
  font-family: monospace;
	border-left: 11px solid #ccc;
	margin: 1.7em 0 1.7em 0.3em;
	overflow: auto;
  width: 93%;
  font-size: 0.8em;
  background: #f5f5f5; 
  padding: 15px; 
  border-radius: 5px; 
  overflow-x: auto;
}
/* target IE7 and IE6 */
*:first-child+html pre {
	padding-bottom: 2em;
	overflow-y: hidden;
	overflow: visible;
	overflow-x: auto;
}
* html pre {
	padding-bottom: 2em;
	overflow: visible;
	overflow-x: auto;
}

#site{
  width: 100%;
  position: relative;
  right: 0;
  left: 0;
  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#site > main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 800px) {
  #site > main {
    padding: 0 10px;
  }
}

#site > #footer {
  flex-shrink: 0;
}
#top-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  position: sticky;
  top: 0px;
  z-index: 100000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-right: 10px;
  padding-left: 10px;
}

/* Enable transitions only when in smart sticky mode */
#top-container.header-animate {
  transition: transform 0.3s ease, box-shadow 0.25s ease;
}

/* Shadow when scrolled past threshold */
#top-container.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid #c2c2c2;
}

/* Hide header when scrolling down */
#top-container.header-hidden {
  transform: translateY(-100%);
}

#top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  border-bottom: 1px solid #c2c2c2;
  padding-top: 1rem;
  padding-bottom: 0.8rem;
  transition: padding 0.25s ease, border-color 0.25s ease;
}

/* Compact inner content when scrolled */
#top-container.scrolled #top-content {
  padding-top: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom-color: transparent;
}

#site_logo{
  flex-shrink: 0;
  display: flex;
  font-size: 35px;
  margin:0;
  padding: 0;
  padding-right: 20px;
}

#site_logo a{
  color: rgb(0, 0, 0);
  text-decoration: underline;
  text-decoration-thickness: 16px;
  text-decoration-color: rgba(13, 204, 108, 1);
  font-weight: 900 !important;
}
#site_logo h1{
  font-size: 1em;
  margin: 0;
  line-height: 1;
  font-weight: inherit;
}
#site_logo a:hover{
  color: rgba(13, 204, 108, 1);
}
@media (max-width: 800px) {
  #site_logo{
      font-size: 28px;
  }
}

#editor_tools, .post_static_container {
  display: flex;
  gap: 0rem;
  align-items: center;
  margin-top: 0;  /* Remove top margin */
}

#editor_tools a{
  font-weight: 600;
}
mark{
    background: #fffece;
    color: black;
}
/* .post_static_container{
  position: absolute;
  top:-13px;
  right:0px;
} */
.post_static {
  font-size: 18px;
  margin: 0;  /* Remove all margins */
  /* padding: 3px; */
  /* border-radius: 3px; */
  display: flex;  /* Add flex display */
  align-items: center;  /* Center items vertically */
}
.post_static::before {
  content: "/";
  color: #000000;
  margin-right: 0.8rem;
  margin-left: 0.8rem;
  font-weight: 400;
}

@media (max-width: 800px) {
  .post_static::before {
    margin-right: 0.2rem;
    margin-left: 0.2rem;
    content: "";
  }
}

.post_static:first-child::before {
  display: none;
}
.post_static[data-jq-dropdown="#jq-dropdown-publish"] {
  margin: 0;
}

.post_static a{
  text-decoration: none;
  color:#000000;
  font-weight: 100 !important;
  white-space: nowrap;
}
.post_static a:hover{
  color:#2fbc5c;
}


/* ==========================================================================
   Tags
   ========================================================================== */

.hashtag{
  text-decoration: none!important;
}

.hashtag-link {
  background-color: rgba(0, 0, 0, 0);
  padding: 5px 5px 3px 5px;
  border-radius: 5px;
  text-decoration: none !important;
  font-size: 14px;
  color: #131313;
  border: 1px solid rgba(0, 0, 0, 0.8);
  font-family:
    'SuisseIntl',
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    sans-serif,
    "Helvetica Neue",
    Helvetica,
    Apple Color Emoji,
    Arial,
    sans-serif,
    Segoe UI Emoji,
    Segoe UI Symbol;
}

.hashtag-link:hover {
  background-color: rgba(0, 0, 0, 0);
  border-color:#2fbc5c;
  color:#2fbc5c;
}

.tags-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}

.tags-header .page_title {
  margin: 0;
}

.tags-explore-btn,
.tags-explore-btn:link,
.tags-explore-btn:visited,
.tags-explore-btn:hover,
.tags-explore-btn:active {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: #2fbc5c;
  border: none;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  font-weight: 600;
}

.tags-explore-btn:hover {
  background: #28a34f;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0rem 0;
}
.tag_container{
  white-space: nowrap;
  line-height:10px;
  padding:8px 8px;
  border-radius:5px;
  font-size:14px;
  color:black;
  text-decoration:none!important;
  background-color:rgba(0, 0, 0, 0.01);
  border: 1px solid #c2c2c2;
  display: flex;
}
.tag_container:hover{
  background-color:rgba(0, 0, 0, 0.04);
  color:#38bb60;
  border-color: #2fbc5c;
}

.tag-search-container {
  display: flex; 
  gap: 10px; 
  align-items: center;
  font-size: 16px;
}


@media (max-width: 512px) {
  .tag-search-container {
    margin-top: -10px;
    margin-bottom: 10px;
  }
}

.tags_explore {
  padding: 5px 10px 4px 10px;
  border-radius: 20px;
  text-decoration: none !important;
  /* background-color: #cef7db; */
  font-weight: 600;
  border: 1px solid #d4d4d4;
  color: #000000;
  white-space:nowrap; 
}

.tags_explore:hover {
  border: 1px solid #2fbc5c;
  color: #2fbc5c;
}

.tag_container_counter{
  margin-left: 5px;
  color:gray;
  font-size: 10px;
}

/* Tag tiers removed - post counts speak for themselves */

.tag-search-input {
    width: 100%;
    max-width: 300px;
    padding: 9px 15px 7px  15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* font-size: 14px; */
    border-radius: 20px !important;

}

.tag-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

/* ============================================
   Tag Spotlights - Featured tags with posts
   ============================================ */

/* Tag cloud section - always visible at bottom */
.tags-cloud-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #c2c2c2;
}

.tags-cloud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tags-cloud-header-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.tags-cloud-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.tags-cloud-stat {
  font-size: 14px;
  color: #888;
}

.tags-cloud-search .tag-search-input {
  width: 220px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tag Spotlights - visual discovery */
#tag-spotlights {
  margin-bottom: 1rem;
}

.spotlight-loading {
  text-align: center;
  color: #999;
  padding: 3rem 1rem;
  font-size: 14px;
}

.tag-spotlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .tag-spotlights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Wide desktop: expand spotlights for bigger tiles */
@media (min-width: 800px) {
  #tag-spotlights {
    margin-left: -2rem;
    margin-right: -2rem;
  }
  
  .tag-spotlights-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  #tag-spotlights {
    margin-left: -4rem;
    margin-right: -4rem;
  }
}

.spotlight-section {
  min-width: 0;
  padding: 1rem;
  /* background: #fafafa; */
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.spotlight-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.spotlight-heading a {
  color: #111;
  transition: color 0.15s ease;
}

.spotlight-heading a:hover {
  color: #2fbc5c;
  text-decoration: none !important;
}

.spotlight-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .spotlight-posts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .spotlight-posts .spotlight-card:nth-child(3) {
    display: none;
  }
}

.spotlight-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s ease;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.spotlight-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  margin-bottom: 0.6rem;
}

.spotlight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.spotlight-card:hover .spotlight-card-image img {
  transform: scale(1.03);
}

.spotlight-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #c2c2c2 100%);
}

.spotlight-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-card:hover .spotlight-card-title {
  color: #2fbc5c;
}

.spotlight-card.no-image .spotlight-card-title {
  font-size: 15px;
}


/* ==========================================================================
   Page
   ========================================================================== */


.page_title{
  font-size: 28px;
  margin-top: 14px;
  margin-bottom: 14px;
  line-height: 1em;
  font-weight: bold;
}
.page_title:first-letter {
  text-transform: uppercase;
}
.page_title a{
  text-decoration: none!important;
}
@media (max-width: 800px) {
  .page_title{
    font-size: 1.4em;
  }
}

#posts{
  list-style: none;
  padding:0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.post_user_icon{
  margin-top: -1px;
  left:-33px;
  position: absolute;
  height: 25px;
  width: 25px;
  border-radius: 100px;
  background-image: url("/static/img/favicon.png");
  background-color: #fff;
  background-size: 100%;
  /* border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1px; */
}
@media (max-width:800px) {
  .post_user_icon{
    left:0px;
    margin-top:-0px;
    margin-bottom: -2px;
    margin-right: 2px;
    height: 15px;
    width: 15px;
    position:relative;
    display: inline-block;
  }
}

.h-entry{
  position: relative;
  margin: 0;
  padding: 0;
  padding-top: 16px;
}

.post_meta{
  color:rgb(184, 184, 184);
  font-size: 14px;
  margin-bottom: 10px;
  -webkit-animation: fadein 2s;
       -moz-animation: fadein 2s;
        -ms-animation: fadein 2s;
         -o-animation: fadein 2s;
            animation: fadein 2s;
}
.post_meta a{
  text-decoration: underline;
}
.post_meta a:hover{
  text-decoration: underline;
}
.post_date{
  color:#868686 !important;
  opacity: 1;
  font-weight: 100;
}
.post_date:hover{
  color: #377ba8;
}

.post_meta h2{
  font-size: 1em;
  display: inline;
  color: black;
  margin-right: 10px;
  font-weight: 700;
}
.post_meta h2 a{
  text-decoration: none!important;
  max-width: 25ch;
  float:right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadein {
    0% { opacity: 0; }
    100%{ opacity: 1; }
}
/* Firefox < 16 */
@-moz-keyframes fadein {
  0% { opacity: 0; }
  100%{ opacity: 1; }
}
/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  0% { opacity: 0; }
  100%{ opacity: 1; }
}
/* Internet Explorer */
@-ms-keyframes fadein {
  0% { opacity: 0; }
  100%{ opacity: 1; }
}
/* Opera < 12.1 */
@-o-keyframes fadein {
  0% { opacity: 0; }
  100%{ opacity: 1; }
}

.p-author{
  margin-right: 0px;
  color: #696969;
}
.p-author b{
  font-weight: 500;
}
#editor_buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
#submit_btn{
  display: none;
  background-color: #2fbc5c;
  color: white;
  border: 1px solid #2fbc5c;
  border-radius: 5px;
  padding: 6px 14px;
  padding-top: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}
#submit_btn:hover {
  background-color: #28a54f;
  border-color: #28a54f;
}
#submit_btn svg {
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}
#related_btn {
  display: none;
  margin-left: auto;
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 6px 12px;
  padding-top: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}
#related_btn:hover {
  background-color: #f5f5f5;
  border-color: #bbb;
  color: #333;
}
#related_btn svg {
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}

/* Schedule Picker */
#schedule_picker {
  position: relative;
  margin-left: 8px;
}
#schedule_btn {
  display: none;
  background-color: transparent;
  color: #888;
  border: 1px dashed #ccc;
  border-radius: 5px;
  padding: 6px 10px;
  padding-top: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}
#schedule_btn:hover {
  background-color: #f8f8f8;
  border-color: #aaa;
  color: #555;
}
#schedule_btn.scheduled {
  background-color: #fff8e6;
  border-color: #e6a700;
  border-style: solid;
  color: #996600;
}
#schedule_btn.scheduled:hover {
  background-color: #fff3cc;
}
#schedule_btn svg {
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -1px;
}
#schedule_dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 12px;
  min-width: 220px;
  z-index: 100;
}
#schedule_dropdown.schedule-dropdown-hidden {
  display: none;
}
.schedule-header {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}
.schedule-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.schedule-preset {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
  color: #555;
}
.schedule-preset:hover {
  background: #eee;
  border-color: #ccc;
}
.schedule-preset[data-offset="0"] {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}
.schedule-preset[data-offset="0"]:hover {
  background: #c8e6c9;
}
.schedule-custom {
  margin-bottom: 12px;
}
.schedule-custom label {
  display: block;
  font-size: 11px;
  color: #777;
  margin-bottom: 4px;
}
.schedule-custom input[type="datetime-local"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
}
.schedule-custom input[type="datetime-local"]:focus {
  outline: none;
  border-color: #999;
}
.schedule-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}
.schedule-actions button {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}
#schedule_clear {
  background: transparent;
  border: 1px solid #ddd;
  color: #777;
}
#schedule_clear:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
#schedule_apply {
  background: #2fbc5c;
  border: 1px solid #2fbc5c;
  color: white;
  flex: 1;
}
#schedule_apply:hover {
  background: #28a54f;
}

/* Related Posts Side Panel */
#related_panel.related-panel-hidden {
  display: none !important;
}
#related_panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.2s ease-out;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.related-panel-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.related-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
#related_count {
  margin-left: 8px;
  font-size: 13px;
  color: #888;
}
#related_close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
#related_close:hover {
  color: #333;
}
#related_results {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* Related post items */
.related-post-item {
  background: #fff;
  border: 1px solid #c2c2c2;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px;
  transition: box-shadow 0.15s ease;
}
.related-post-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.related-post-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.related-post-date {
  font-size: 12px;
  color: #888;
}
.related-insert-btn {
  margin-left: auto;
  background: #2fbc5c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}
.related-insert-btn:hover {
  background: #28a54f;
}
.related-insert-btn svg {
  width: 12px;
  height: 12px;
}
.related-post-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #222;
}
.related-post-content {
  font-size: 13px;
  line-height: 1.5;
  max-height: 200px;
  overflow: hidden;
  position: relative;
}
.related-post-content.content_shortend {
  height: 200px;
}
.related-post-content img {
  max-width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 4px;
}
.related-post-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.related-tag {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}
.related-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}
.related-empty-hint {
  font-size: 13px;
  color: #aaa;
  margin-top: 8px;
}
.related-loading {
  text-align: center;
  padding: 40px;
}
.related-load-more {
  text-align: center;
  padding: 16px;
}
.related-load-more-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
}
.related-load-more-btn:hover {
  background: #eee;
}

.content_btn{
  border-radius: 6px;
  padding: 11px 16px 8px 16px;
  text-align: center;
  position: absolute;
  right: 0px;
  margin-top: -20px;
  font-weight: 900;
}
.btn_select{
  position: absolute;
  right: 0px;
  margin-top: -35px;
  min-width: 70px;
}
.btn_cancel{
  border-color: #a2a2a2;
  color:#a2a2a2;
  position: absolute;
  right: 115px;
  margin-top: -35px;
}
.btn_save {
  position: absolute;
  right: 0px;
  margin-top: -35px;
  margin-right: 0px;
  background-color: #2fbc5c;
  padding-left: 35px;
  padding-right: 35px;
  color:white;
}
.btn_related {
  position: absolute;
  right: 200px;
  margin-top: -35px;
  margin-right: 10px;
  border-color: #5c9fd4;
  color: #5c9fd4;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn_related:hover {
  background-color: #5c9fd4;
  color: white;
}
.btn_related svg {
  vertical-align: middle;
}
.post_status{
  float: right;
  margin-right: 20px;
}
.btn_disabled{
  opacity: 0.4;
}
.settings_container{
  width: calc(50% - 12px);
  display: inline-block;
  vertical-align: top;
  margin-right: 10px;
}
#settings_save{
  margin-top: 2px;
  float: right;
  font-size: 16px;
}

#search_form{
  margin-bottom: 15px;
}

.note_publish {
  position: fixed;
  display: none;
  font-size: 0.8em;
  text-align: center;
  right: 11px;
  top: 10px;
  background: #fff;
  border: 1px solid #737373;
  padding: 5px;
  z-index: 100000;
  border-radius: 2px;
  min-width: 160px;
  max-width: 250px;
  overflow: hidden;
  white-space: -moz-pre-wrap;
  white-space: -hp-pre-wrap;
  white-space: -o-pre-wrap;
  white-space: -pre-wrap;
  white-space: pre-wrap;
  white-space: pre-line;
  word-wrap: break-word;
  word-break: break-all;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner{
  margin-bottom: 10px;
}
.banner a{
  text-decoration: none;
}

/* Explore section when embedded in tags page */
.explore-section {
  margin-bottom: 40px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color, #c2c2c2);
}

.explore-section-title {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: var(--text-color, #333);
}

.explore_title_container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}

#date_filter{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
@media (max-width: 800px) {
  #date_filter{
    padding: 0px!important;
    font-size: 0.8em;
    margin-bottom: 14px;
  }
}
.button_filter {
  margin: 0;
  padding: 6px 10px 4px 10px;
  border-radius: 20px;
  border: 1px solid #c2c2c2;
  color: #000000;
}
.button_active {
  background-color: rgba(13, 204, 108, 1);
  color:white;
  border-color: rgba(13, 204, 108, 1);
}

.post_dropdown{
  position: absolute;
  right:7px;
  width: 20px;
  height: 20px;
  line-height: 15px;
  text-align: center;
  border-radius: 100px;
  text-decoration: none!important;
  color:gray;
  font-size: 23px;
}
.post_dropdown:hover{
  color:rgb(0, 0, 0);
}
.post_edit{
  text-decoration: none;
  font-size: 13px;
}
.post_delete{
  text-decoration: none;
  font-size: 13px;
}

#pagination_container{
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.3em;
  display: flex;
  gap: 10px;
  text-transform: uppercase;
}
.e-content img{
  max-width: 60%;
  height: auto;
  display: block;
  cursor: zoom-in;
  margin-top: 15px;
  margin-bottom: 15px;
}

.e-content p:first-of-type {
  margin-top:0px;
}

.content_shortend{
  height:355px;
  overflow:hidden;
  width: 100%;
  /* margin-top:-10px; */
}
.showmore{
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  height: auto;
  min-height: 355px;
  width: 100%;
  display: inline;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,0) 38%,rgba(255,255,255,1) 97%,rgba(255,255,255,1) 100%);
}
.btn_showmore{
  position: relative;
  text-align: center;
  cursor: pointer;
  margin-top: 3px;
  margin-bottom: 10px;
  z-index: 1002;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

.content_divider_post{
  margin-top:20px;
  margin-bottom:0px;
}

.content_divider{
  background-color: #c2c2c2;
  height: 1px;
  border: 0;
  margin:0px;
  /* margin-bottom:7px;
  margin-top: 7px; */
}
main {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;

}
main > .content_divider:first-of-type {
  margin-top: 0;
}
#posts > .content_divider:first-of-type {
  margin-top: 0;
}

/* .content_divider{
  content: "";
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='Squiggle-svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='gray' stroke-width='1' class='st0' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 4px;
  display: block;
  height: 4px;
  width: 100%;
  border: 0;
  margin-bottom:8px;
  margin-top: 10px;
  opacity: 0.2;
} */


/* ==========================================================================
   Editable
   ========================================================================== */


#settings_form input[type=text] {
  width: 100%;
  min-width: 100px;
  height:30px;
  padding: 2px 3px 2px 3px;
  margin: 0px 10px 0px 0px;
  box-sizing: border-box;
  border-radius: 2px;
  border:1px solid #c2c2c2;
}
#settings_form input[type=text]::placeholder {
  color:#aaaaaa;
  font-size:0.8em;
}

.medium-editor-anchor-preview {
  z-index: 100000000;
}
.medium-editor-toolbar {
  z-index: 100000000;
}
.medium-editor-toolbar-actions {
  z-index: 100000000;
}

.medium-insert-images.medium-insert-images-left{
  max-width: 43.33%;
  margin: 10px 30px 20px 0px;
}
.medium-insert-images.medium-insert-images-right{
  max-width: 43.33%;
  margin: 10px 0px 20px 30px;
}
.medium-insert-images.medium-insert-images-wide{
  max-width: 100%;
}
.medium-insert-images.medium-insert-images-wide img{
  width: 100%;
}

/* ==========================================================================
   Enhanced Image Display Styles
   Modern publication-style image formatting options
   ========================================================================== */

/* FULL BLEED - Edge-to-edge, breaks out of content column */
.medium-insert-images.medium-insert-images-bleed {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  text-align: center;
}
.medium-insert-images.medium-insert-images-bleed img {
  width: 100%;
  max-width: 100vw;
}
.medium-insert-images.medium-insert-images-bleed figcaption {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* FEATURE - Wider than content but not full bleed, emphasis style */
.medium-insert-images.medium-insert-images-feature {
  width: calc(100% + 120px);
  max-width: calc(100% + 120px);
  margin-left: -60px;
  margin-right: -60px;
  text-align: center;
}
.medium-insert-images.medium-insert-images-feature img {
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.medium-insert-images.medium-insert-images-feature figcaption {
  max-width: 100%;
  padding: 0 60px;
}

/* FRAMED - White border with shadow, polaroid/print aesthetic */
.medium-insert-images.medium-insert-images-framed {
  text-align: center;
}
.medium-insert-images.medium-insert-images-framed figure {
  display: inline-block;
  background: #fff;
  padding: 12px 12px 8px 12px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
}
.medium-insert-images.medium-insert-images-framed img {
  max-width: 100%;
  display: block;
}
.medium-insert-images.medium-insert-images-framed figcaption {
  background: #fff;
  padding-top: 8px;
  font-style: normal;
  color: #666;
}

/* OFFSET - Breaks out of left edge, editorial magazine style */
.medium-insert-images.medium-insert-images-offset {
  width: calc(100% + 100px);
  max-width: calc(100% + 100px);
  margin-left: -100px;
  margin-right: 0;
  text-align: left;
}
.medium-insert-images.medium-insert-images-offset img {
  width: 100%;
}
.medium-insert-images.medium-insert-images-offset figcaption {
  padding-left: 100px;
  text-align: left;
  font-style: italic;
}

/* ROUNDED - Soft rounded corners for a modern feel */
.medium-insert-images.medium-insert-images-rounded {
  text-align: center;
}
.medium-insert-images.medium-insert-images-rounded img {
  border-radius: 12px;
  max-width: 100%;
}
.medium-insert-images.medium-insert-images-rounded figure {
  overflow: hidden;
}

/* ==========================================================================
   Mobile Responsive Fallbacks for Enhanced Image Styles
   ========================================================================== */
@media (max-width: 800px) {
  /* Bleed: Keep full-bleed on tablet, it still looks dramatic */
  .medium-insert-images.medium-insert-images-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  .medium-insert-images.medium-insert-images-bleed figcaption {
    padding: 0 15px;
  }

  /* Feature: Reduce the breakout on tablet */
  .medium-insert-images.medium-insert-images-feature {
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
  .medium-insert-images.medium-insert-images-feature figcaption {
    padding: 0 20px;
  }

  /* Offset: Reduce breakout on tablet */
  .medium-insert-images.medium-insert-images-offset {
    width: calc(100% + 50px);
    max-width: calc(100% + 50px);
    margin-left: -50px;
  }
  .medium-insert-images.medium-insert-images-offset figcaption {
    padding-left: 50px;
  }

  /* Left/Right floats: Make them a bit narrower */
  .medium-insert-images.medium-insert-images-left,
  .medium-insert-images.medium-insert-images-right {
    max-width: 40%;
  }
}

@media (max-width: 600px) {
  /* Bleed: Full width on mobile (already is via vw) */
  .medium-insert-images.medium-insert-images-bleed figcaption {
    padding: 0 12px;
    font-size: 0.75em;
  }

  /* Feature: Fall back to full width on mobile */
  .medium-insert-images.medium-insert-images-feature {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .medium-insert-images.medium-insert-images-feature img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  .medium-insert-images.medium-insert-images-feature figcaption {
    padding: 0;
  }

  /* Framed: Slightly smaller padding on mobile */
  .medium-insert-images.medium-insert-images-framed figure {
    padding: 8px 8px 6px 8px;
  }

  /* Offset: Fall back to full width on mobile */
  .medium-insert-images.medium-insert-images-offset {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .medium-insert-images.medium-insert-images-offset figcaption {
    padding-left: 0;
  }

  /* Rounded: Slightly less rounding on mobile */
  .medium-insert-images.medium-insert-images-rounded img {
    border-radius: 8px;
  }

  /* Left/Right: Stack on very small screens */
  .medium-insert-images.medium-insert-images-left,
  .medium-insert-images.medium-insert-images-right {
    max-width: 100%;
    float: none;
    margin: 1em 0;
  }
}
.medium-editor-element > p:first-child {
  margin-top: 0px;
  margin-bottom: 0px;
}
.medium-editor-element > p:last-child {
  margin-bottom: 0px;
}

.editable {
  padding: 4px;
  padding-top: 15px;
  padding-bottom: 15px;
  -webkit-transition: all 0.20s ease-in-out;
  -moz-transition: all 0.20s ease-in-out;
  -ms-transition: all 0.20s ease-in-out;
  -o-transition: all 0.20s ease-in-out;
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0.1em 0em rgba(0, 0, 0, 1);

  margin-bottom: 4px;
  position: relative;
  /* Subtle dashed border when showing placeholder */
  border: 1px dashed transparent;
}
/* Editor wrapper for placeholder positioning */
#editor_wrapper {
  position: relative;
}
/* Custom placeholder overlay - positioned over .editable */
#editor_placeholder {
  position: absolute;
  top: 18px;
  left: 8px;
  color: #b0b0b0;
  font-style: italic;
  pointer-events: none;
  z-index: 1;
}
.editable:focus {
  box-shadow: 0 0 0.1em 0.0em rgba(119, 181, 222, 0.4);
}
#edit_container{
  margin-top: 0px;
  margin-bottom: 11px;
  position: relative;
}
.TweetTextSize img{
  width:15px;
}

#jq-dropdown-publish{
  min-width: 160px;
  max-width: 160px;
  margin-right: 15px;
}
#btn_publish{
  border: 1px solid #2fbc5c;
  background-color: #2fbc5c;
  color: white;
  width: 100%;
  border-radius: 6px;
  min-width: 60px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.15s ease;
  right:0px;
  padding-bottom: 8px;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 2px;
  font-weight: bold !important;
}
#btn_publish:hover{ 
  background-color: #31d465;
  border-color: #31d465;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(47, 188, 92, 0.3);
}

.medium-insert-buttons{
  left:-35px!important;
  margin-top:-2px!important;
}
.medium-insert-buttons-addons{
  /*top:-44px!important;*/
  left:37px!important;
}
.medium-editor-insert-plugin .medium-insert-buttons .medium-insert-buttons-addons li {
    display: inline-block;
    margin: 0!important;
}
.medium-editor-insert-plugin:before{
  display: inline!important;
}
.medium-editor-insert-plugin:after{
  display: inline!important;
}

.medium-editor-insert-plugin.medium-editor-placeholder:after {
    padding-top: 7px!important;
    padding-left: 7px!important;
    cursor: text;
    color:lightgray;
    -webkit-animation: fadein 0.8s; /* Safari, Chrome and Opera > 12.1 */
         -moz-animation: fadein 0.8s; /* Firefox < 16 */
          -ms-animation: fadein 0.8s; /* Internet Explorer */
           -o-animation: fadein 0.8s; /* Opera < 12.1 */
              animation: fadein 0.8s;
}

.medium-editor-insert-plugin .medium-insert-buttons .medium-insert-buttons-show span {
    display: block;
    margin-top: 0px;
}

.medium-editor-insert-plugin .medium-insert-buttons span {
    display: block;
    margin-top: -2px;
}

.medium-insert-embeds{
  text-align: left;
}
.medium-insert-images figure figcaption,
.mediumInsert figure figcaption,
.medium-insert-embeds figure figcaption,
.mediumInsert-embeds figure figcaption {
  font-size: 12px;
  line-height: 1.2em;
}
.medium-insert-images-slideshow figure {
  width: 100%;
}
.medium-insert-images-slideshow figure img {
  margin: 0;
}
.medium-insert-images.medium-insert-images-grid.small-grid figure {
  width: 12.5%;
}
@media (max-width: 800px) {
  .medium-insert-images.medium-insert-images-grid.small-grid figure {
    width: 25%;
  }
}
@media (max-width: 450px) {
  .medium-insert-images.medium-insert-images-grid.small-grid figure {
    width: 50%;
  }
}

.search_icon {
  font-size: 14px; 
  margin-right: 4px;
}  

/* ==========================================================================
   Magnific Popup CSS
   ========================================================================== */

.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8; }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #CCC; }
    .mfp-preloader a:hover {
      color: #FFF; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation; }

button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: 'SuisseIntl', Arial, Baskerville, monospace; }
  .mfp-close:hover,
  .mfp-close:focus {
    opacity: 1; }
  .mfp-close:active {
    top: 1px; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap; }

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent; }
  .mfp-arrow:active {
    margin-top: -54px; }
  .mfp-arrow:hover,
  .mfp-arrow:focus {
    opacity: 1; }
  .mfp-arrow:before,
  .mfp-arrow:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent; }
  .mfp-arrow:after {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px; }
  .mfp-arrow:before {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: 0.7; }

.mfp-arrow-left {
  left: 0; }
  .mfp-arrow-left:after {
    border-right: 17px solid #FFF;
    margin-left: 31px; }
  .mfp-arrow-left:before {
    margin-left: 25px;
    border-right: 27px solid #3F3F3F; }

.mfp-arrow-right {
  right: 0; }
  .mfp-arrow-right:after {
    border-left: 17px solid #FFF;
    margin-left: 39px; }
  .mfp-arrow-right:before {
    border-left: 27px solid #3F3F3F; }

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto; }

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  padding-right: 36px; }

.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px; }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } }

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px; } }





/*! normalize.css v2.1.1 | MIT License | git.io/normalize */

/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined in IE 8/9.
 */

 article,
 aside,
 details,
 figcaption,
 figure,
 footer,
 header,
 hgroup,
 main,
 nav,
 section,
 summary {
     display: block;
 }

 /**
  * Correct `inline-block` display not defined in IE 8/9.
  */

 audio,
 canvas,
 video {
     display: inline-block;
 }

 /**
  * Prevent modern browsers from displaying `audio` without controls.
  * Remove excess height in iOS 5 devices.
  */

 audio:not([controls]) {
     display: none;
     height: 0;
 }

 /**
  * Address styling not present in IE 8/9.
  */

 [hidden] {
     display: none;
 }

 /* ==========================================================================
    Base
    ========================================================================== */


 html {
     background: #fff; /* 1 */
     color: #000; /* 2 */
     -ms-text-size-adjust: 100%; /* 4 */
     -webkit-text-size-adjust: 100%; /* 4 */
 }

 /**
  * Remove default margin.
  */

 body {
     margin: 0;
 }

 /* ==========================================================================
    Links
    ========================================================================== */

 /**
  * Address `outline` inconsistency between Chrome and other browsers.
  */

 a:focus {
     outline: thin dotted;
 }

 /**
  * Improve readability when focused and also mouse hovered in all browsers.
  */

 a:active,
 a:hover {
     outline: 0;
 }

 /* ==========================================================================
    Typography
    ========================================================================== */

 /**
  * Address variable `h1` font-size and margin within `section` and `article`
  * contexts in Firefox 4+, Safari 5, and Chrome.
  */

 h1 {
     font-size: 2em;
     margin: 0.67em 0;
 }

 /**
  * Address styling not present in IE 8/9, Safari 5, and Chrome.
  */

 abbr[title] {
     border-bottom: 1px dotted;
 }

 /**
  * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
  */

 b,
 strong {
     font-weight: bold;
 }

 /**
  * Address styling not present in Safari 5 and Chrome.
  */

 dfn {
     font-style: italic;
 }

 /**
  * Address differences between Firefox and other browsers.
  */

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
  max-width: 120px;
  margin: 2em auto;
}

 /**
  * Address styling not present in IE 8/9.
  */

 mark {
     background: #ff0;
     color: #000;
 }

 /**
  * Correct font family set oddly in Safari 5 and Chrome.
  */

 code,
 kbd,
 pre,
 samp {
     font-family: monospace, serif;
 }

 /**
  * Improve readability of pre-formatted text in all browsers.
  */

 pre {
     white-space: pre-wrap;
 }

 /**
  * Set consistent quote types.
  */

 q {
     quotes: "\201C" "\201D" "\2018" "\2019";
 }

 /**
  * Address inconsistent and variable font size in all browsers.
  */

 small {
     font-size: 80%;
 }

 /**
  * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  */

 sub,
 sup {
     font-size: 75%;
     line-height: 0;
     position: relative;
     vertical-align: baseline;
 }

 sup {
     top: -0.5em;
 }

 sub {
     bottom: -0.25em;
 }

 /* ==========================================================================
    Embedded content
    ========================================================================== */

 /**
  * Remove border when inside `a` element in IE 8/9.
  */

 img {
     border: 0;
 }

 /**
  * Correct overflow displayed oddly in IE 9.
  */

 svg:not(:root) {
     overflow: hidden;
 }

 /* ==========================================================================
    Figures
    ========================================================================== */

 /**
  * Address margin not present in IE 8/9 and Safari 5.
  */

 figure {
     margin: 0;
 }

 /* ==========================================================================
    Forms
    ========================================================================== */

 /**
  * Define consistent border, margin, and padding.
  */

 fieldset {
     border: 1px solid #c0c0c0;
     margin: 0 2px;
     padding: 0.35em 0.625em 0.75em;
 }

 /**
  * 1. Correct `color` not being inherited in IE 8/9.
  * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  */

 legend {
     border: 0; /* 1 */
     padding: 0; /* 2 */
 }

 /**
  * 1. Correct font family not being inherited in all browsers.
  * 2. Correct font size not being inherited in all browsers.
  * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
  */

 button,
 input,
 select,
 textarea {
     font-family: inherit; /* 1 */
     font-size: 100%; /* 2 */
     margin: 0; /* 3 */
 }

 /**
  * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  * the UA stylesheet.
  */

 button,
 input {
     line-height: normal;
 }

 /**
  * Address inconsistent `text-transform` inheritance for `button` and `select`.
  * All other form control elements do not inherit `text-transform` values.
  * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
  * Correct `select` style inheritance in Firefox 4+ and Opera.
  */

 button,
 select {
     text-transform: none;
 }

 /**
  * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  *    and `video` controls.
  * 2. Correct inability to style clickable `input` types in iOS.
  * 3. Improve usability and consistency of cursor style between image-type
  *    `input` and others.
  */

 button,
 html input[type="button"], /* 1 */
 input[type="reset"],
 input[type="submit"] {
     -webkit-appearance: button; /* 2 */
     cursor: pointer; /* 3 */
 }

 /**
  * Re-set default cursor for disabled elements.
  */

 button[disabled],
 html input[disabled] {
     cursor: default;
 }

 /**
  * 1. Address box sizing set to `content-box` in IE 8/9.
  * 2. Remove excess padding in IE 8/9.
  */

 input[type="checkbox"],
 input[type="radio"] {
     box-sizing: border-box; /* 1 */
     padding: 0; /* 2 */
 }

 /**
  * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
  * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
  *    (include `-moz` to future-proof).
  */

 input[type="search"] {
     -webkit-appearance: textfield; /* 1 */
     -moz-box-sizing: content-box;
     -webkit-box-sizing: content-box; /* 2 */
     box-sizing: content-box;
 }

 /**
  * Remove inner padding and search cancel button in Safari 5 and Chrome
  * on OS X.
  */

 input[type="search"]::-webkit-search-cancel-button,
 input[type="search"]::-webkit-search-decoration {
     -webkit-appearance: none;
 }

 /**
  * Remove inner padding and border in Firefox 4+.
  */

 button::-moz-focus-inner,
 input::-moz-focus-inner {
     border: 0;
     padding: 0;
 }

 /**
  * 1. Remove default vertical scrollbar in IE 8/9.
  * 2. Improve readability and alignment in all browsers.
  */

 textarea {
     overflow: auto; /* 1 */
     vertical-align: top; /* 2 */
 }

 /* ==========================================================================
    Tables
    ========================================================================== */

 /**
  * Remove most spacing between table cells.
  */

 /* table {
     border-collapse: collapse;
     border-spacing: 0;
 } */




 /*!
 * medium-editor-insert-plugin v2.5.0 - jQuery insert plugin for MediumEditor
 *
 * http://linkesch.com/medium-editor-insert-plugin
 *
 * Copyright (c) 2014 Pavel Linkesch (http://linkesch.com)
 * Released under the MIT license
 */

 .medium-insert-images,.mediumInsert{
  text-align:center
}
.medium-insert-images figure,.mediumInsert figure{
  margin:0;
  display:block
}
.medium-insert-images figure img,.mediumInsert figure img{
  max-width:100%;
  margin-top:1em;
  vertical-align:top;
  cursor: zoom-in;
}
.medium-insert-images figure:first-child img,.mediumInsert figure:first-child img{
  margin-top:0
}
.medium-insert-images-left.mediumInsert,.medium-insert-images.medium-insert-images-left,.mediumInsert.small{
  max-width:33.33%;
  float:left;
  margin:0 30px 20px 0
}
.medium-insert-images-right.mediumInsert,.medium-insert-images.medium-insert-images-right{
  max-width:33.33%;
  float:right;
  margin:0 0 20px 30px
}
.medium-insert-images-grid.mediumInsert,.medium-insert-images.medium-insert-images-grid{
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -ms-flex-wrap:wrap;
  flex-wrap:wrap;
  -webkit-box-align:start;
  -ms-flex-align:start;
  align-items:flex-start;
  -webkit-box-pack:center;
  -ms-flex-pack:center;
  justify-content:center;
  margin:.5em -.5em
}
.medium-insert-images-grid.mediumInsert figure,.medium-insert-images.medium-insert-images-grid figure{
  width:33.33%;
  display:inline-block;
  margin: 0px;
  padding: 0px;
}
.medium-insert-images-grid.mediumInsert figure img,.medium-insert-images.medium-insert-images-grid figure img{
  max-width:calc(100% - 1em);
  margin:.5em
}
.medium-insert-embeds,.mediumInsert-embeds{
  text-align:center;
  margin:1em 0;
  position:relative
}
.medium-insert-embeds div,.medium-insert-embeds iframe,.mediumInsert-embeds div,.mediumInsert-embeds iframe{
  margin:0 auto!important
}
.medium-insert-embeds-left.mediumInsert-embeds,.medium-insert-embeds.medium-insert-embeds-left{
  width:33.33%;
  float:left;
  margin:0 30px 20px 0
}
.medium-insert-embeds-right.mediumInsert-embeds,.medium-insert-embeds.medium-insert-embeds-right{
  width:33.33%;
  float:right;
  margin:0 0 20px 30px
}
.medium-insert-embeds figure,.medium-insert-images figure,.mediumInsert figure,.mediumInsert-embeds figure{
  position:relative
}
.medium-insert-embeds figure figcaption,.medium-insert-images figure figcaption,.mediumInsert figure figcaption,.mediumInsert-embeds figure figcaption{
  position:relative;
  z-index:1;
  display:block;
  text-align:center;
  margin:10px 0;
  color:#ccc;
  font-size:.8em;
  font-style:italic;
  outline:0 solid transparent
}
.medium-insert-embeds figure figcaption:focus,.medium-insert-images figure figcaption:focus,.mediumInsert figure figcaption:focus,.mediumInsert-embeds figure figcaption:focus{
  outline:0 solid transparent
}

ul {
  margin-bottom: 20px;
}

/* ==========================================================================
   Pagefind Search
   ========================================================================== */

#search-container {
  animation: fadeIn 0.2s ease-in-out;
}

.pagefind-ui {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: #2fbc5c;
  --pagefind-ui-text: #2f2f2f;
  --pagefind-ui-background: #ffffff;
  --pagefind-ui-border: #c2c2c2;
  --pagefind-ui-tag: #f0f0f0;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: inherit;
}

.pagefind-ui__search-input {
  font-size: 16px !important;
  padding: 12px 16px !important;
}

.pagefind-ui__result-link {
  color: #377ba8 !important;
  font-weight: 600;
}

.pagefind-ui__result-link:hover {
  color: #2fbc5c !important;
}

.pagefind-ui__result-excerpt {
  font-size: 14px;
  line-height: 1.5;
}

.pagefind-ui__message {
  font-size: 14px;
  color: #666;
}

/* ==========================================================================
   Editor Search Page
   ========================================================================== */

.search-page {
  padding: 20px 0;
}

.search-form {
  margin-bottom: 24px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #c2c2c2;
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 600px;
}

.search-input-wrapper:focus-within {
  border-color: #2fbc5c;
  box-shadow: 0 0 0 3px rgba(47, 188, 92, 0.1);
}

.search-icon {
  color: #999;
  flex-shrink: 0;
  margin-right: 12px;
}

.search-input-wrapper:focus-within .search-icon {
  color: #2fbc5c;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  min-width: 0;
  color: #333;
}

.search-input::placeholder {
  color: #aaa;
}

.search-button {
  background: #2fbc5c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: #28a850;
}

.search-button:active {
  transform: scale(0.98);
}

.search-results-header {
  padding: 12px 0 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.search-results-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.search-results-count strong {
  color: #333;
}

/* ============================================
   Flow Embed - Twitter-style quote cards
   ============================================ */
flow-embed {
  display: block;
  margin: 16px 0;
}

.flow-embed-card {
  display: block;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flow-embed-card:hover {
  border-color: #ccd6dd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.flow-embed-card-inner {
  display: flex;
  padding: 12px;
  gap: 12px;
}

.flow-embed-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.flow-embed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-embed-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-embed-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8899a6;
  margin-bottom: 4px;
}

.flow-embed-domain {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-embed-domain::before {
  content: "🔗";
  font-size: 10px;
}

.flow-embed-meta .flow-embed-date::before {
  content: "·";
  margin-right: 6px;
  color: #ccc;
}

.flow-embed-title {
  font-size: 15px;
  font-weight: 600;
  color: #14171a;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flow-embed-excerpt {
  font-size: 14px;
  color: #657786;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flow-embed-date {
  font-size: 12px;
  color: #8899a6;
}

/* Loading state */
.flow-embed-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #e1e8ed;
  border-radius: 12px;
  background: #fafafa;
  color: #8899a6;
  font-size: 13px;
}

.flow-embed-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #e1e8ed;
  border-top-color: #8899a6;
  border-radius: 50%;
  animation: flow-embed-spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes flow-embed-spin {
  to { transform: rotate(360deg); }
}

/* Error state */
.flow-embed-error {
  display: block;
  padding: 12px 16px;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  background: #fff5f5;
  color: #cc0000;
  font-size: 13px;
  text-decoration: none;
}

.flow-embed-error:hover {
  background: #ffeeee;
}

/* No image variant */
.flow-embed-card.no-image .flow-embed-card-inner {
  padding: 16px;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .flow-embed-card-inner {
    flex-direction: column;
  }
  
  .flow-embed-image {
    width: 100%;
    height: 140px;
    margin-bottom: 4px;
  }
}

/* ============================================
   Newsletter Button
   ============================================ */
.newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border-radius: 5px;
  transition: color 0.15s ease;
}
.newsletter-btn:hover {
  color: #2fbc5c !important;
}
.newsletter-btn svg {
  display: block;
  flex-shrink: 0;
}
.newsletter-btn span {
  line-height: 1;
}

/* Random post button in nav */
.random-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.15s ease;
  margin-top: -2px;
}
.random-post-btn:hover {
  color: #2fbc5c !important;
}
.random-post-btn svg {
  display: block;
}

/* Hide subscribe text on mobile */
@media (max-width: 600px) {
  /* .newsletter-btn span {
    display: none;
  } */
  /* Tighten nav spacing on mobile */
  #editor_tools, .post_static_container {
    gap: 0.5rem;
  }
  .post_static {
    font-size: 18px;
  }
}

/* ============================================
   Content Discovery Section
   ============================================ */
.content-discovery {
  /* Break out to full width */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  margin-top: 4rem;
  margin-bottom: -20px;
  padding: 2rem 0 3rem;
  background-color: #f8f8f8;
}

.discovery-wrapper {
  /* Center content, wider than main blog */
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.discovery-section {
  min-width: 0;
}

/* Vertical divider between sections on desktop */
.discovery-section.discovery-top {
  border-top: 1px solid #c2c2c2;
  padding-top: 2rem;
}

.discovery-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  /* border-bottom: 2px solid #0066ff; */
}

/* Tag Posts Grid */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.4rem; /* more vertical spacing */
}

.discovery-card,
.discovery-card:hover,
.discovery-card:visited {
  display: block;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s ease;
}

.discovery-card:hover {
  transform: translateY(-2px);
}

.discovery-card-image {
  aspect-ratio: 16 / 11; /* slightly taller images */
  overflow: hidden;
  border-radius: 4px;
  background: #222;
  margin-bottom: 0.6rem;
}

.discovery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.discovery-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c2c2c2 0%, #c8c8c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discovery-card-placeholder::after {
  content: "👁️‍🗨️";
  font-size: 2rem;
  opacity: 0.4;
}

.discovery-card:hover .discovery-card-image img {
  transform: scale(1.05);
}

.discovery-card-title {
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discovery-card:hover .discovery-card-title {
  color: black;
}

/* Placeholder cards have same styling, just different image area */

/* Top Stories List */
.discovery-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.discovery-list-item {
  padding: 0.55rem 0;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.2); */
}
.discovery-list-item:hover {
  text-decoration: underline;
}

.discovery-list-item:first-child {
  padding-top: 0;
}

.discovery-list-item:last-child {
  border-bottom: none;
}

.discovery-list-item a {
  display: block;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.discovery-list-item a:hover {
  color: #000000;
}

.discovery-date {
  display: block;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

/* Mobile: Stack vertically */
@media (max-width: 800px) {
  .discovery-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .discovery-section.discovery-top {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 1.5rem;
  }
  
  .discovery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .discovery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .discovery-card-title {
    font-size: 13px;
  }
}

/* ============================================
   About Page Styles
   ============================================ */
.about-page {
  font-size: 1.125rem;
}

/* Hide the post meta for about page */
.about-page .post_meta,
.e-content.about-page + .post_meta,
.post:has(.about-page) .post_meta {
  display: none !important;
}

/* Also hide in parent context */
.post .about-page ~ .post_meta,
.h-entry:has(.about-page) .post_meta {
  display: none !important;
}

.about-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  position: relative;
}

.about-hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.about-hero h2 {
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #131313 0%, #444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero-intro {
  font-family: "FeatureFlatHeadline", "Georgia", serif;
  font-size: 1.55rem;
  line-height: 1.6;
  color: #4a4a4a;
  max-width: 580px;
  margin: 0 auto;
  font-weight: 330;
  font-variation-settings: "wght" 330, "opsz" 10;
  border: none;
  padding: 0;
}

.about-hero-intro a {
  color: #377ba8;
  text-decoration: underline;
  text-decoration-color: rgba(55, 123, 168, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.about-hero-intro a:hover {
  text-decoration-color: #0dcc6c;
  color: #0dcc6c;
}

/* Newsletter CTA Card */
.about-cta-card {
  background: linear-gradient(135deg, #f8fdf9 0%, #edfbf2 100%);
  border: 2px solid rgba(13, 204, 108, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(13, 204, 108, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-cta-card h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  position: relative;
}

.about-cta-card h2 a {
  color: #131313;
  text-decoration: none;
  border-bottom: 3px solid #0dcc6c;
  transition: color 0.2s ease;
}

.about-cta-card h2 a:hover {
  color: #0dcc6c;
}

.about-cta-card blockquote {
  font-size: 1.1rem;
  border: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  color: #555;
  font-style: normal;
  font-family: inherit;
  font-weight: normal;
}

.about-cta-card .about-follow-links {
  font-size: 0.95rem;
  color: #666;
}

.about-cta-card .about-follow-links a {
  color: #377ba8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-cta-card .about-follow-links a:hover {
  color: #0dcc6c;
}

/* About Me Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  align-items: start;
  margin: 2.5rem 0;
}

/* Hide content discovery on about page */
.about-page ~ #content-discovery,
.e-content.about-page ~ #content-discovery {
  display: none !important;
}

.about-section h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-section h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #c2c2c2, transparent);
}

.about-bio {
  font-family: "FeatureFlatHeadline", "Georgia", serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  font-weight: 330;
  font-variation-settings: "wght" 330, "opsz" 10;
  border: none;
  margin: 0;
  padding: 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  max-width: 130px;
  height: auto;
}

/* Links Section */
.about-links-section {
  margin: 2rem 0;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.about-link-card {
  display: block;
  background: #fff;
  border: 2px solid #c2c2c2;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.about-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #0dcc6c;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.about-link-card:hover {
  border-color: #0dcc6c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 204, 108, 0.15);
}

.about-link-card:hover::before {
  transform: scaleY(1);
}

.about-link-card h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: #131313;
}

.about-link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.about-link-card .link-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #ccc;
  transition: color 0.2s ease, transform 0.2s ease;
}

.about-link-card:hover .link-arrow {
  color: #0dcc6c;
  transform: translateY(-50%) translateX(4px);
}

/* Quote Block */
.about-quote {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  position: relative;
  text-align: center;
}

.about-quote::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: #0dcc6c;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.about-quote blockquote {
  border: none;
  margin: 0;
  padding: 0;
  padding-left: 1.5rem;
  font-size: 1.1rem;
  color: #444;
}

.about-footer-note {
  text-align: center;
  color: #999;
  font-size: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 5rem;
}

.about-footer-note a {
  color: #888;
}

.about-footer-note a:hover {
  color: #0dcc6c;
}

@media (max-width: 600px) {
  .about-hero h2 {
    font-size: 2rem;
  }
  
  .about-hero-intro {
    font-size: 1.3rem;
  }
  
  .about-hero-avatar {
    width: 56px;
    height: 56px;
  }
  
  .about-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .about-image-wrapper {
    order: -1;
  }
  
  .about-image-wrapper img {
    max-width: 130px;
  }
  
  .about-bio-content {
    text-align: left;
  }
  
  .about-links-grid {
    grid-template-columns: 1fr;
  }
  
  .about-cta-card {
    padding: 1.5rem;
  }
}

/* ============================================
   Footer
   ============================================ */
#footer {
  background: #1a1a1a;
  color: #999;
  /* Break out to full width */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.footer-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 0rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  padding-bottom: 4px;
  border-bottom: 12px solid rgba(13, 204, 108, 1);
  font-weight: 900 !important;
}

.footer-brand a:hover {
  color: #3CFFD0;
  border-bottom-color: #3CFFD0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
  font-weight: 900;
  text-transform: uppercase;

  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 900;
  padding: 8px 15px 5px 15px;
  border-radius: 100px;
}

.footer-newsletter::after {
  content: '→';
  display: inline-block;
  height: 100%;
  margin-bottom: 2px; 
}

.footer-links a:hover {
  color: #3CFFD0;
}

.footer-newsletter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-newsletter svg {
  flex-shrink: 0;
}

.footer-copy {
  font-size: 12px;
  color: #666;
}

@media (max-width: 600px) {
  .footer-content {
    padding: 2rem 0.7rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
}

/* ============================================
   Homepage Sidebar
   ============================================ */

/* Mobile: Sidebar hidden by default, JS moves it after 5th post */
@media (max-width: 1420px) {
  #sidebar {
    display: none;
  }
  
  /* When JS moves it inline, show it */
  #sidebar.sidebar-inline-mobile {
    display: block;
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 8px;
  }
  
  /* Hide popular items 6+ on mobile */
  .popular-hidden-mobile {
    display: none !important;
  }
  
  /* Show more button */
  .popular-show-more {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  
  .popular-show-more:hover {
    background: #f5f5f5;
    color: #333;
  }
}

/* Default sidebar styles (tablet+) */
#sidebar {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid #c2c2c2;
 
}

/* Welcome section */
.sidebar-welcome {
  margin-bottom: 1rem;
}

.sidebar-welcome .welcome-message {
  font-size: 14px;
  color: #333;
  margin-bottom: 0.5rem;
}

.sidebar-welcome .welcome-text {
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-welcome .welcome-new-posts {
  color: #666;
  display: block;
  font-size: 13px;
  margin-top: 0.25rem;
}

.sidebar-welcome .welcome-cta {
  font-size: 13px;
}

.sidebar-welcome .welcome-cta a {
  color: #2fbc5c;
  text-decoration: none;
}

.sidebar-welcome .welcome-cta a:hover {
  text-decoration: underline;
}

/* Popular section */
.sidebar-popular h4 {
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2fbc5c;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid #c2c2c2;
  padding-bottom: 0.75rem;

  padding-top: 0;
  padding-top: 1rem;
  border-top: 1px solid #c2c2c2;
  margin-top: 1rem;
}

.sidebar-popular ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-popular li {
  padding: 0.4rem 0;
  padding-left: 0.95rem;
  padding-bottom: 0.95rem;
  position: relative;
  line-height: 1.4!important;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-popular li > a:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-popular li::before {
  content: "";
  position: absolute;
  left: 0;
  color: #ccc;
  display: block;
  width: 4px;
  height: 4px;
  background-color: rgb(0, 0, 0);
  border-radius: 50%;
  position: absolute;
  top: 0.9em;
  left: 0;
}

.sidebar-popular li:last-child {
  border-bottom: none;
}

.sidebar-popular a {
  color: #333;
  text-decoration: none;
}

.sidebar-popular a:hover {
  color: #2fbc5c;
}

/* Tags under each popular post */
.sidebar-tags {
  display: block;
  margin-top: 0.3rem;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.sidebar-tags a {
  color: #727272;
  text-decoration: none;
  font-weight: 100;
}

.sidebar-tags a:hover {
  color: #2fbc5c;
}

.sidebar-popular .loading-placeholder {
  color: #999;
  font-style: italic;
}

.sidebar-popular .loading-placeholder::before {
  content: none;
}

/* Got a Tip section */
.sidebar-tip {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #c2c2c2;
}

.sidebar-tip h4 {
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2fbc5c;
  margin: 0 0 0.75rem;
}

.tip-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#tip-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #c2c2c2;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fafafa;
}

#tip-textarea:focus {
  outline: none;
  border-color: #2fbc5c;
  box-shadow: 0 0 0 3px rgba(47, 188, 92, 0.1);
  background: #fff;
}

#tip-textarea::placeholder {
  color: #999;
}

.tip-submit-btn {
  align-self: flex-end;
  padding: 0.5rem 1rem;
  background: #2fbc5c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0;
  transform: translateY(-5px);
  animation: tipBtnAppear 0.2s ease forwards;
}

@keyframes tipBtnAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tip-submit-btn:hover {
  background: #28a54f;
  transform: translateY(-1px);
}

.tip-submit-btn:active {
  transform: translateY(0);
}

.tip-thanks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  animation: tipThanksAppear 0.3s ease;
}

@keyframes tipThanksAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tip-thanks-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #2fbc5c;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

.tip-thanks-text {
  font-size: 14px;
  color: #166534;
  font-weight: 500;
}

/* Tablet/narrow desktop: Hide sidebar (no room in margins) */
@media (min-width: 800px) and (max-width: 1419px) {
  #sidebar {
    display: none;
  }
}

/* Wide desktop: Sidebar positioned in right margin */
@media (min-width: 1420px) {
  main {
    position: relative;
  }
  
  #sidebar {
    position: absolute;
    left: 100%;
    top: 0;
    width: 280px;
    margin-left: 1.5rem;
    margin-bottom: 0;
    background: transparent;
    padding: 1.25rem;
  }
  
  .sidebar-welcome {
    margin-bottom: 0;
  }
  .sidebar-popular li {
    font-size: 14px;
  }
 
}
