/* Making Memories SC — warm lifestyle */
:root {
  --primary: #1f3d2b;
  --accent: #d97706;
  --bg: #fff7ed;
  --text: #1c1917;
  --muted: #57534e;
  --border: #fed7aa;
  --card: #fffdfb;
  --font: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Layout spacing — use across pages for even gutters and section rhythm */
  --layout-max-width: 1140px;
  --space-gutter: 24px;
  --space-page-top: 32px;
  --space-page-bottom: 96px;
  --space-section-y: 56px;
  /* Uniform gap between stacked blocks inside a column (sections, cards, RSS, etc.) */
  --space-stack-y: 28px;
  --space-inner: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

h1,
h2,
h3 {
  font-family: var(--font);
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(31, 61, 43, 0.06);
}

.header-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 14px var(--space-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: var(--primary);
}

.logo img {
  height: 44px;
  width: auto;
  max-width: min(260px, 62vw);
  display: block;
  object-fit: contain;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.nav-main a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.nav-main a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
}

.ad-leaderboard {
  max-width: var(--layout-max-width);
  margin: 12px auto;
  padding: 0 var(--space-gutter);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

.wrap {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--space-page-top) var(--space-gutter) var(--space-page-bottom);
}

/* Homepage: equal vertical rhythm between major sections */
main.page-home {
  display: flex;
  flex-direction: column;
  gap: var(--space-section-y);
}

/* Single-column layouts: equal top-to-bottom spacing between main-level blocks */
main.wrap:not(.two-col):not(.prose):not(.page-home):not(.error-page),
main.wrap.prose:not(.error-page) {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-y);
}

main.wrap:not(.two-col):not(.prose):not(.page-home):not(.error-page) > * + *,
main.wrap.prose:not(.error-page) > * + * {
  margin-top: 0;
}

main.wrap.error-page > * + * {
  margin-top: var(--space-stack-y);
}

/* Category / hub primary column: same stack gap as other pages */
main.wrap.two-col.layout-hub > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-y);
}

main.wrap.two-col.layout-hub > div:first-child > * + * {
  margin-top: 0;
}

main.wrap.two-col.layout-hub > div:first-child > .rss-block--section {
  margin-top: 0;
}

main.wrap.two-col.layout-hub > div:first-child > h1 {
  margin-bottom: 0;
}

/* Prose/legal-style pages */
main.wrap.prose > h1:first-child {
  margin-top: 0;
}

main.wrap.prose:not(.error-page) > h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
}

main.wrap.prose:not(.error-page) .article-body h2 {
  margin-top: calc(var(--space-section-y) * 0.65);
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
}

.hero-block .hero-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 18px;
  box-shadow: 0 12px 40px rgba(31, 61, 43, 0.12);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.35rem;
  margin: 36px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h3 {
  font-weight: 700;
  letter-spacing: 0.015em;
}

section[aria-labelledby] > h2 {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 1.12rem;
}

section[aria-labelledby] > h2:first-child {
  margin-top: 0;
}

section[aria-labelledby]:not(.faq-home) {
  padding-bottom: var(--space-stack-y);
}

main.page-home > section[aria-labelledby]:not(.faq-home) {
  padding-bottom: 0;
}

.hero-block h1 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1.article-title {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.article-card a {
  text-decoration: none;
  color: inherit;
}

.article-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.article-card .body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: var(--font);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.article-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.btn-read {
  display: inline-block;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

/* —— RSS / wire sections —— */
.rss-block {
  margin-top: 0;
  padding: 0;
  background: linear-gradient(145deg, #fffdfb 0%, #fff 55%, #fff7ed 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(31, 61, 43, 0.06);
  overflow: hidden;
  font-size: 0.94rem;
}

.rss-block--section {
  margin-top: var(--space-stack-y);
}

.rss-block--hero {
  margin-bottom: 0;
}

.rss-block__header {
  padding: var(--space-inner) var(--space-inner) calc(var(--space-inner) * 0.6);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.rss-block__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: var(--sans);
}

.rss-block__title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rss-block__lede {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.rss-block__feed {
  padding: 12px var(--space-inner) var(--space-inner);
  min-height: 3rem;
}

.rss-block__feed--loading {
  position: relative;
  min-height: 140px;
}

.rss-block__feed--loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rss-spin 0.7s linear infinite;
}

@keyframes rss-spin {
  to {
    transform: rotate(360deg);
  }
}

.rss-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rss-feed__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(254, 215, 170, 0.55);
  transition: background 0.15s ease;
}

.rss-feed__item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.rss-feed__item:hover {
  background: rgba(255, 247, 237, 0.85);
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -6px;
  margin-right: -6px;
}

.rss-feed__link {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--sans);
}

.rss-feed__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rss-feed__meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.rss-feed__fallback {
  margin: 12px 0;
  padding: 14px var(--space-inner);
  background: #fff7ed;
  border-radius: 8px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.rss-feed__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 4px 0;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(254, 215, 170, 0.45);
  font-size: 0.82rem;
  line-height: 1.45;
}

.rss-feed__footer-sep {
  color: var(--muted);
  user-select: none;
}

a.rss-feed__ext {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--sans);
}

a.rss-feed__ext:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.rss-feed__ext--domain {
  color: var(--primary);
}

.see-all {
  display: inline-block;
  margin-top: var(--space-stack-y);
  font-weight: 700;
  font-size: 0.9rem;
}

.faq-home {
  margin-top: 0;
  padding: var(--space-inner);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq-home > h2:first-child {
  margin-top: 0;
}

.faq-home details {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.faq-home summary {
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.site-footer {
  background: var(--primary);
  color: #fef3c7;
  /* Vertical padding only — horizontal inset matches main.wrap via footer children */
  padding: 44px 0;
  margin-top: 40px;
}

.site-footer a {
  color: #fde68a;
}

.footer-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  box-sizing: border-box;
}

.footer-inner h3 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fde68a;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner li {
  margin-bottom: 8px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--layout-max-width);
  margin: 28px auto 0;
  padding: 20px var(--space-gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
  color: #fcd34d;
  text-align: center;
  box-sizing: border-box;
}

.google-news-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #4285f4;
  color: #fff;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.google-news-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.skyscraper-ad {
  display: none;
}

@media (min-width: 768px) {
  .skyscraper-ad {
    display: block;
  }
}

.sidebar-ad {
  margin-bottom: 0;
  min-height: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.sidebar-ad ins,
.sidebar-ad iframe {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.two-col {
  display: grid;
  gap: var(--space-stack-y);
}

@media (min-width: 960px) {
  .two-col.layout-hub {
    grid-template-columns: 1fr 300px;
  }

  .two-col.layout-article {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.sticky-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 20px;
}

/* Sidebar category navigation */
.sidebar-categories {
  margin-top: 0;
  background: linear-gradient(
    165deg,
    #fffdfb 0%,
    #fff 42%,
    #fff7ed 100%
  );
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(31, 61, 43, 0.07);
  overflow: hidden;
}

.sidebar-categories .sidebar-categories__title {
  margin: 0;
  padding: 14px 18px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--accent);
  line-height: 1.3;
  border-bottom: 1px solid rgba(254, 215, 170, 0.65);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-categories__list {
  list-style: none;
  margin: 0;
  padding: 10px 10px 12px;
}

.sidebar-categories__list li {
  margin: 0;
}

.sidebar-categories__link {
  display: block;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--primary);
  line-height: 1.35;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.sidebar-categories__link:hover {
  background: rgba(255, 247, 237, 0.98);
  color: var(--accent);
}

.sidebar-categories__link[aria-current="page"] {
  background: linear-gradient(
    90deg,
    rgba(217, 119, 6, 0.12) 0%,
    rgba(255, 253, 251, 0.95) 38%
  );
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 700;
}

.sidebar-categories__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-stack-y) 0;
}

.category-pills a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}

.category-pills a:hover,
.category-pills a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Breadcrumbs — left-aligned, shared on all pages */
.breadcrumb {
  width: 100%;
  text-align: left;
  margin: 0 0 var(--space-stack-y);
  padding: 11px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 253, 251, 0.98) 0%,
    rgba(255, 247, 237, 0.88) 55%,
    rgba(254, 243, 199, 0.35) 100%
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(31, 61, 43, 0.05);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-family: var(--sans);
  line-height: 1.35;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.65em;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 500;
  pointer-events: none;
}

a.breadcrumb__link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

a.breadcrumb__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb__current {
  color: var(--muted);
  font-weight: 600;
  max-width: 100%;
}

/* One stack gap after breadcrumb; avoid doubling with * + * rules */
main.wrap.prose > .breadcrumb + *,
main.wrap:not(.page-home):not(.two-col):not(.prose) > .breadcrumb + *,
main.wrap.two-col.layout-hub > div:first-child > .breadcrumb + * {
  margin-top: 0;
}

.error-page .breadcrumb {
  text-align: left;
  max-width: 100%;
}

.byline {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.article-body .float-ad-wrap {
  float: right;
  margin: 0 0 16px 22px;
  max-width: 300px;
}

.article-body::after {
  content: "";
  display: table;
  clear: both;
}

blockquote.pull-quote {
  margin: var(--space-stack-y) 0;
  padding: var(--space-inner);
  border-left: 4px solid var(--accent);
  background: #fff7ed;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--primary);
}

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-inner);
  margin: var(--space-stack-y) 0;
}

main.wrap.prose:not(.error-page) .article-body .toc h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  border: none;
  padding: 0;
}

.toc ul {
  margin: 0;
  padding-left: 18px;
}

.author-bio {
  margin-top: var(--space-section-y);
  padding: var(--space-inner);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.author-bio h3 {
  margin-top: 0;
  font-family: var(--font);
}

.social-share a {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 8px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.social-share a:hover {
  background: var(--accent);
  color: #fff;
}

form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 16px;
}

form.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

form.contact-form button:hover {
  background: var(--primary);
}

/* Contact page — centered column and card form */
main.wrap.prose.contact-page {
  align-items: center;
}

main.wrap.prose.contact-page .breadcrumb {
  align-self: stretch;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

main.wrap.prose.contact-page .breadcrumb__list {
  justify-content: center;
}

main.wrap.prose.contact-page h1 {
  text-align: center;
  max-width: 36rem;
  width: 100%;
}

main.wrap.prose.contact-page > p {
  text-align: center;
  max-width: 36rem;
  width: 100%;
}

main.wrap.prose.contact-page form.contact-form {
  width: 100%;
  max-width: 520px;
  margin-top: 0;
  padding: var(--space-inner);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(31, 61, 43, 0.08);
}

main.wrap.prose.contact-page form.contact-form input,
main.wrap.prose.contact-page form.contact-form select,
main.wrap.prose.contact-page form.contact-form textarea {
  max-width: none;
}

main.wrap.prose.contact-page form.contact-form button {
  width: 100%;
  margin-top: 4px;
}

.category-hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 8px 28px rgba(31, 61, 43, 0.1);
}

.prose p {
  margin: 0 0 1em;
}

.error-page {
  text-align: center;
  padding: 60px var(--space-gutter);
}

.search-404 input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
