/* LocalMind publishing surfaces. The v1 dynamic templates were demo filler; these styles serve real v2 data. */

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: var(--shadow-lg);
}

.skip-link:focus { top: 1rem; }

.page-content {
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text-primary);
}

.page-content #ai_header {
  background: rgba(35, 43, 92, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 30px rgba(17, 23, 55, 0.16);
}

.page-content #main-content { padding-top: 120px; }
.page-content #ai_header.scrolled .header-grid { height: 72px; }

.content-container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.content-container--narrow { width: min(940px, calc(100% - 3rem)); }
.content-container--article { width: min(760px, calc(100% - 3rem)); }

.content-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 196, 48, 0.22), transparent 32%),
    linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: #fff;
}

.content-hero__inner { max-width: 760px; text-align: center; }

.content-hero h1,
.post-header h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.05;
}

.content-hero p:not(.content-eyebrow) {
  max-width: 660px;
  margin: 1.25rem auto 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.content-eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.content-eyebrow a { color: inherit; text-decoration: none; }
.content-section-main { padding: clamp(4rem, 8vw, 7rem) 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-light);
}

.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, var(--brand-accent), transparent 20%), linear-gradient(135deg, var(--brand-light), #c7d0ff);
}

.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.post-card__tag { color: var(--brand-primary); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.post-card h2 { margin: .65rem 0; font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.25; }
.post-card h2 a { color: var(--color-text-primary); text-decoration: none; }
.post-card p { margin: 0 0 1.1rem; color: var(--color-text-secondary); line-height: 1.65; }

.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  color: var(--color-text-secondary);
  font-size: .8rem;
}

.content-empty { padding: 4rem 1rem; text-align: center; color: var(--color-text-secondary); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; }
.pagination a { padding: .75rem 1.1rem; border-radius: .5rem; background: var(--brand-primary); color: #fff; text-decoration: none; }

.post-header {
  padding: clamp(5rem, 9vw, 8rem) 0 3rem;
  background: linear-gradient(180deg, var(--brand-light), rgba(232,236,250,0));
  text-align: center;
}

.post-header h1 { color: var(--brand-dark); font-size: clamp(2.5rem, 6vw, 5rem); }
.post-deck { max-width: 740px; margin: 1.5rem auto; color: var(--color-text-secondary); font-size: 1.15rem; line-height: 1.7; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.25rem; color: var(--color-text-secondary); font-size: .9rem; }
.post-meta a { color: var(--brand-primary); text-decoration: none; }

.post-feature-image { margin: 3rem 0 0; overflow: hidden; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); }
.post-feature-image img { display: block; width: 100%; height: auto; }

.post-body { padding: 3rem 0; font-size: 1.08rem; line-height: 1.85; }
.post-body :is(h2,h3,h4) { margin: 2.4em 0 .7em; font-family: var(--font-heading); line-height: 1.2; color: var(--brand-dark); }
.post-body h2 { font-size: 2rem; }
.post-body h3 { font-size: 1.55rem; }
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote { margin: 0 0 1.4em; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-card); }
.post-body a { color: var(--brand-primary); }
.post-body blockquote { padding: 1rem 1.4rem; border-left: 4px solid var(--brand-accent); background: var(--brand-light); }

.post-share { display: flex; flex-wrap: wrap; gap: .65rem; padding: 1.5rem 0 4rem; border-top: 1px solid var(--color-border); }
.post-share :is(a,button) { padding: .6rem .85rem; border: 1px solid var(--color-border); border-radius: .45rem; background: #fff; color: var(--brand-dark); font: inherit; text-decoration: none; cursor: pointer; }
.post-share :is(a,button):hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.post-share button.is-copied { background: var(--brand-light); }
.content-related { background: var(--brand-light); }
.content-related > .content-container > h2 { margin: 0 0 2rem; font-family: var(--font-heading); font-size: 2rem; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .page-content #main-content { padding-top: 90px; }
  .post-grid { grid-template-columns: 1fr; }
  .content-container,
  .content-container--narrow,
  .content-container--article { width: min(100% - 2rem, 760px); }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card__media img { transition: none; }
}
