
/*
  Spirit Meat Medium Layout Upgrade
  Creates a Medium-inspired interface without copying Medium branding.
*/

:root {
  --smmu-text: #111418;
  --smmu-muted: #6b7280;
  --smmu-border: #ececec;
  --smmu-soft: #f8f8f6;
  --smmu-bg: #ffffff;
  --smmu-black: #111111;
}

/* Top app button */
.smmu-top-cta {
  position: fixed;
  top: 10px;
  right: 104px;
  z-index: 99999;
  font-family: inherit;
}

.admin-bar .smmu-top-cta {
  top: 42px;
}

.smmu-get-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.smmu-app-icon {
  font-size: 13px;
  line-height: 1;
}

.smmu-app-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 158px;
  background: #fff;
  border: 1px solid var(--smmu-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}

.smmu-app-dropdown.is-open {
  display: grid;
  gap: 4px;
}

.smmu-app-dropdown a {
  color: var(--smmu-text);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
}

.smmu-app-dropdown a:hover {
  background: var(--smmu-soft);
}

/* Feed shell */
.smmu-feed-enabled body {
  background: #fff;
}

.smmu-left-rail,
.smmu-right-rail {
  position: fixed;
  top: 92px;
  bottom: 0;
  z-index: 20;
  overflow-y: auto;
  background: #fff;
}

.admin-bar .smmu-left-rail,
.admin-bar .smmu-right-rail {
  top: 124px;
}

.smmu-left-rail {
  left: 0;
  width: 216px;
  border-right: 1px solid var(--smmu-border);
  padding: 26px 22px;
}

.smmu-left-rail nav {
  display: grid;
  gap: 4px;
}

.smmu-left-rail nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--smmu-text);
  text-decoration: none;
  font-weight: 650;
  padding: 10px 8px;
  border-radius: 10px;
}

.smmu-left-rail nav a span {
  width: 20px;
  text-align: center;
  opacity: .75;
}

.smmu-left-rail nav a:hover,
.smmu-left-rail nav a.is-active {
  background: #f7f7f4;
}

.smmu-left-note {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--smmu-border);
}

.smmu-left-note strong {
  display: block;
  font-size: .95rem;
}

.smmu-left-note p {
  margin: 6px 0 0;
  color: var(--smmu-muted);
  line-height: 1.45;
  font-size: .9rem;
}

.smmu-right-rail {
  right: 0;
  width: 330px;
  border-left: 1px solid var(--smmu-border);
  padding: 26px 26px 46px;
}

.smmu-right-card {
  margin-bottom: 32px;
}

.smmu-right-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.smmu-staff-list {
  display: grid;
  gap: 18px;
}

.smmu-staff-item {
  display: grid;
  gap: 5px;
  text-decoration: none;
  color: var(--smmu-text);
}

.smmu-staff-item strong {
  font-size: .98rem;
  line-height: 1.25;
}

.smmu-staff-item small,
.smmu-staff-kicker {
  color: var(--smmu-muted);
  font-size: .82rem;
}

.smmu-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smmu-topic-cloud a {
  text-decoration: none;
  color: var(--smmu-text);
  background: #f3f3f1;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

/* Push main content into Medium-like center column */
.smmu-feed-enabled .sm-site-header,
.smmu-feed-enabled header.sm-site-header {
  border-bottom: 1px solid var(--smmu-border);
  background: #fff;
}

.smmu-feed-enabled .sm-home,
.smmu-feed-enabled .site-main,
.smmu-feed-enabled main.sm-home {
  max-width: none !important;
}

.smmu-feed-enabled .sm-home > section,
.smmu-feed-enabled .sm-feed-home > section,
.smmu-feed-enabled main > section {
  margin-left: 216px;
  margin-right: 330px;
}

.smmu-feed-enabled .sm-wrap {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.smmu-feed-enabled .sm-home-tabs {
  border-bottom: 1px solid var(--smmu-border);
}

.smmu-feed-enabled .sm-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 0;
  padding-top: 18px;
}

.smmu-feed-enabled .sm-tabs a {
  color: var(--smmu-muted);
  font-weight: 650;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
}

.smmu-feed-enabled .sm-tabs a.is-active {
  color: var(--smmu-text);
  border-bottom-color: var(--smmu-text);
}

.smmu-feed-enabled .sm-feed-intro,
.smmu-feed-enabled .sm-home-intro {
  max-width: 760px;
  color: var(--smmu-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Feed items Medium style */
.smmu-feed-enabled .sm-feed-item,
.smmu-feed-enabled .sm-post-card,
.smmu-feed-enabled article.post {
  border-bottom: 1px solid var(--smmu-border) !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 34px 0 !important;
  background: transparent !important;
}

.smmu-feed-enabled .sm-feed-item h2,
.smmu-feed-enabled .sm-post-card h2,
.smmu-feed-enabled article.post h2,
.smmu-feed-enabled .entry-title {
  font-size: clamp(1.4rem, 2.4vw, 2.05rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
}

.smmu-feed-enabled .sm-feed-item p,
.smmu-feed-enabled .sm-post-card p,
.smmu-feed-enabled article.post p {
  color: var(--smmu-muted);
  line-height: 1.48;
}

.smmu-feed-enabled .sm-post-thumb img,
.smmu-feed-enabled .post-thumbnail img,
.smmu-feed-enabled .wp-post-image {
  border-radius: 4px !important;
  object-fit: cover;
}

.smmu-feed-enabled .sm-post-meta,
.smmu-feed-enabled .entry-meta {
  color: var(--smmu-muted);
  font-size: .92rem;
}

/* Single devotional page, wider and cleaner */
.single-post .sm-wrap,
.single-post .entry-header,
.single-post .entry-content,
.single-post .sm-single-header,
.single-post .sm-single-content,
.single-post .sm-post-content {
  max-width: min(980px, calc(100vw - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-post .entry-title,
.single-post .sm-single-title {
  font-size: clamp(2.3rem, 5.8vw, 5rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.06em !important;
  max-width: 900px;
}

.single-post .entry-content,
.single-post .sm-single-content,
.single-post .sm-post-content {
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.78;
}

.single-post .entry-content p,
.single-post .sm-single-content p,
.single-post .sm-post-content p {
  max-width: 760px;
}

.single-post .wp-post-image,
.single-post .post-thumbnail img {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
}

/* App card below content */
.smmu-post-app-card {
  max-width: min(980px, calc(100vw - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--smmu-border);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: #fffdf5;
}

.smmu-post-app-card span {
  display: inline-block;
  color: var(--smmu-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.smmu-post-app-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.smmu-post-app-card p {
  color: var(--smmu-muted);
  margin: 0;
}

.smmu-post-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.smmu-post-app-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
}

.smmu-post-app-actions a:nth-child(2) {
  background: #f2f2ef;
  color: #111 !important;
}

/* Comments section: modern and no longer primitive */
.comments-area,
#comments,
.comment-respond {
  max-width: min(920px, calc(100vw - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.comments-area,
#comments {
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--smmu-border);
}

.comments-title,
#comments h2,
.comment-reply-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.045em !important;
  margin-bottom: 22px !important;
}

.comment-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}

.comment {
  margin: 0 0 18px;
}

.comment-body {
  border: 1px solid var(--smmu-border);
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15,23,42,.04);
}

.comment-meta {
  color: var(--smmu-muted);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.comment-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.comment-metadata {
  margin-top: 4px;
  font-size: .86rem;
}

.comment-content {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
}

.comment-reply-link,
.reply a {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f3f3f1;
  color: #111;
  text-decoration: none;
  font-weight: 800;
}

.comment-respond {
  border: 1px solid var(--smmu-border);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  box-shadow: 0 16px 45px rgba(15,23,42,.06);
}

.comment-form {
  display: grid;
  gap: 16px;
}

.comment-form label {
  font-weight: 800;
  color: var(--smmu-text);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: grid;
  gap: 8px;
  margin: 0;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--smmu-border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.comment-form textarea {
  min-height: 170px;
  resize: vertical;
}

.form-submit .submit,
.comment-form input[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 900;
  padding: 14px 22px;
  cursor: pointer;
}

/* Footer bottom area */
.smmu-footer-grid {
  max-width: min(1180px, calc(100vw - 40px));
  margin: 48px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.smmu-footer-grid article {
  border: 1px solid var(--smmu-border);
  border-radius: 22px;
  padding: 22px;
  background: #fff;
}

.smmu-footer-grid strong {
  display: block;
  margin-bottom: 8px;
}

.smmu-footer-grid p {
  color: var(--smmu-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1180px) {
  .smmu-left-rail,
  .smmu-right-rail {
    display: none;
  }

  .smmu-feed-enabled .sm-home > section,
  .smmu-feed-enabled .sm-feed-home > section,
  .smmu-feed-enabled main > section {
    margin-left: 0;
    margin-right: 0;
  }

  .smmu-feed-enabled .sm-wrap {
    max-width: min(780px, calc(100vw - 36px)) !important;
  }
}

@media (max-width: 780px) {
  .smmu-top-cta {
    top: auto;
    bottom: 18px;
    right: 18px;
  }

  .admin-bar .smmu-top-cta {
    top: auto;
  }

  .smmu-post-app-card {
    grid-template-columns: 1fr;
  }

  .smmu-post-app-actions {
    justify-content: flex-start;
  }

  .smmu-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode compatibility */
.sm-dark .smmu-left-rail,
.sm-dark .smmu-right-rail,
.sm-dark .smmu-app-dropdown,
.sm-dark .comment-body,
.sm-dark .comment-respond,
.sm-dark .smmu-post-app-card,
.sm-dark .smmu-footer-grid article {
  background: #11161d;
  border-color: #27303a;
}

.sm-dark .smmu-left-rail nav a,
.sm-dark .smmu-staff-item,
.sm-dark .smmu-app-dropdown a {
  color: #fff;
}

.sm-dark .smmu-topic-cloud a,
.sm-dark .comment-reply-link,
.sm-dark .reply a {
  background: #1b222c;
  color: #fff;
}
