/* =====================================================================
   STYLE JOURNAL + SINGLE STYLE GUIDE — style-journal.css
   Scoped: .sj-* (journal) · .sg-* (single)
   ===================================================================== */

:root {
  --sj-accent:   #E8001D;
  --sj-text:     #1A1A1A;
  --sj-muted:    #6B6B6B;
  --sj-border:   #E5E5E5;
  --sj-bg:       #F7F5F0;
  --sj-card:     #FFFFFF;
  --sj-radius:   12px;
  --sj-shadow:   0 2px 12px rgba(0,0,0,.08);
  --sj-shadow-lg:0 8px 32px rgba(0,0,0,.13);
  --sj-gold:     #D4A017;
}

/* =====================================================================
   JOURNAL HERO
   ===================================================================== */

.sj-hero {
  background: var(--sj-text);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}

.sj-hero__inner {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 20px;
}

.sj-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--sj-accent);
  margin-bottom: 14px;
}

.sj-hero__title {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -.02em;
}

.sj-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================================
   FEATURED POST
   ===================================================================== */

.sj-featured {
  max-width: 1180px;
  margin-inline: auto;
  padding: 32px 20px;
}

.sj-featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--sj-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sj-shadow-lg);
}

.sj-featured__image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.sj-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.sj-featured__inner:hover .sj-featured__image img { transform: scale(1.04); }

.sj-featured__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--sj-bg);
  height: 100%;
  min-height: 340px;
}

.sj-featured__label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sj-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}

.sj-featured__content {
  padding: 32px 32px 32px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.sj-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Meta chips (shared) */
.sj-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--sj-bg);
  border: 1px solid var(--sj-border);
  font-size: 12px;
  color: var(--sj-muted);
  font-weight: 500;
}

.sj-meta-chip--budget {
  background: #FFFDE7;
  border-color: #FFD54F;
  color: #825600;
  font-weight: 700;
}

.sj-meta-chip--sm { font-size: 10px; padding: 2px 7px; }

.sj-featured__kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sj-accent);
  margin: 0;
}

.sj-featured__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}

.sj-featured__title a { color: var(--sj-text); text-decoration: none; }
.sj-featured__title a:hover { color: var(--sj-accent); }

.sj-featured__excerpt {
  font-size: 14px;
  color: var(--sj-muted);
  line-height: 1.65;
  margin: 0;
}

.sj-featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sj-featured__disclosure {
  font-size: 11px;
  color: var(--sj-muted);
  margin: 0;
  font-style: italic;
}

/* =====================================================================
   TAGS (shared atom)
   ===================================================================== */

.sj-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(232,0,29,.08);
  color: var(--sj-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

a.sj-tag:hover { background: var(--sj-accent); color: #fff; }

/* =====================================================================
   BUTTONS
   ===================================================================== */

.sj-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.sj-btn--primary {
  background: var(--sj-text);
  color: #fff;
}
.sj-btn--primary:hover { background: var(--sj-accent); color: #fff; transform: translateY(-1px); }

/* =====================================================================
   CATEGORY FILTERS
   ===================================================================== */

.sj-filters {
  max-width: 1180px;
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sj-filters::-webkit-scrollbar { display: none; }

.sj-cat-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 40px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--sj-border);
  background: var(--sj-card);
  color: var(--sj-muted);
  transition: all .15s;
}

.sj-cat-pill:hover,
.sj-cat-pill--active {
  background: var(--sj-text);
  border-color: var(--sj-text);
  color: #fff;
}

.sj-cat-pill--tag { background: rgba(232,0,29,.05); border-color: rgba(232,0,29,.2); color: var(--sj-accent); }
.sj-cat-pill--tag.sj-cat-pill--active { background: var(--sj-accent); border-color: var(--sj-accent); color: #fff; }

/* =====================================================================
   ARTICLES GRID
   ===================================================================== */

.sj-grid-section {
  max-width: 1180px;
  margin-inline: auto;
  padding: 16px 20px 48px;
}

.sj-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* =====================================================================
   ARTICLE CARD
   ===================================================================== */

.sj-card {
  background: var(--sj-card);
  border-radius: var(--sj-radius);
  overflow: hidden;
  box-shadow: var(--sj-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.sj-card:hover {
  box-shadow: var(--sj-shadow-lg);
  transform: translateY(-3px);
}

.sj-card__image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--sj-bg);
}

.sj-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.sj-card:hover .sj-card__image-wrap img { transform: scale(1.05); }

.sj-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  width: 100%;
  height: 100%;
}

.sj-card__budget-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #825600;
  color: #FFD54F;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.sj-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.sj-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sj-card__location {
  font-size: 11px;
  color: var(--sj-muted);
  font-weight: 500;
}

.sj-card__time {
  font-size: 11px;
  color: var(--sj-muted);
  background: var(--sj-bg);
  padding: 2px 8px;
  border-radius: 20px;
}

.sj-card__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sj-accent);
  margin: 0;
}

.sj-card__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sj-card__title a { color: var(--sj-text); text-decoration: none; }
.sj-card__title a:hover { color: var(--sj-accent); }

.sj-card__excerpt {
  font-size: 13px;
  color: var(--sj-muted);
  line-height: 1.55;
  margin: 0;
}

.sj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sj-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.sj-card__read-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--sj-text);
  text-decoration: none;
}

.sj-card__read-btn:hover { color: var(--sj-accent); }

.sj-card__disclosure-dot {
  font-size: 11px;
  color: var(--sj-muted);
  cursor: help;
}

/* =====================================================================
   SUBMIT CTA
   ===================================================================== */

.sj-submit-cta {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 20px 48px;
}

.sj-submit-cta__inner {
  background: var(--sj-text);
  color: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
}

.sj-submit-cta__inner h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  margin: 0 0 10px;
  color: #fff;
}

.sj-submit-cta__inner p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0 0 24px;
}

/* =====================================================================
   PAGINATION
   ===================================================================== */

.sj-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.sj-pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--sj-border);
  color: var(--sj-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}

.sj-pagination .page-numbers.current,
.sj-pagination .page-numbers:hover {
  background: var(--sj-text);
  border-color: var(--sj-text);
  color: #fff;
}

/* =====================================================================
   EMPTY STATE
   ===================================================================== */

.sj-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--sj-muted);
}
.sj-empty span { font-size: 56px; display: block; margin-bottom: 12px; }
.sj-empty h3 { font-size: 20px; color: var(--sj-text); margin: 0 0 8px; }

/* =====================================================================
   SINGLE STYLE GUIDE — .sg-*
   ===================================================================== */

.sg-wrap { }

/* Hero */
.sg-hero {
  background: var(--sj-text);
  color: #fff;
  padding: 60px 0 52px;
  position: relative;
  overflow: hidden;
}

.sg-hero--has-img {
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.sg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
}

.sg-hero__content {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.sg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sg-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.sg-breadcrumb a:hover { color: #fff; }

.sg-hero__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sg-hero .sj-meta-chip {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}

.sg-hero .sj-meta-chip--budget {
  background: rgba(212,160,23,.2);
  border-color: var(--sj-gold);
  color: #FFD54F;
}

.sg-hero__kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sj-accent);
  margin: 0 0 8px;
}

.sg-hero__title {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -.02em;
}

.sg-hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sg-hero .sj-tag {
  background: rgba(232,0,29,.2);
  color: #FF8A80;
  border: 1px solid rgba(232,0,29,.3);
}

.sg-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.sg-hero__author img {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
}

.sg-hero__author strong { color: #fff; }

/* Disclosure */
.sg-disclosure {
  max-width: 780px;
  margin: 16px auto 0;
  padding-inline: 20px;
}

.sg-disclosure {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #6D4C00;
  line-height: 1.5;
}

/* Article body */
.sg-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.sg-body__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--sj-text);
}

.sg-body__content h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.sg-body__content h3 { font-size: 18px; font-weight: 800; margin: 24px 0 10px; }
.sg-body__content p  { margin: 0 0 18px; }
.sg-body__content a  { color: var(--sj-accent); font-weight: 600; }
.sg-body__content img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.sg-body__content blockquote {
  margin: 0 0 18px;
  padding: 16px 20px;
  border-left: 4px solid var(--sj-accent);
  background: var(--sj-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--sj-muted);
}

/* Tags footer */
.sg-tags-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sj-border);
}

.sg-tags-footer span { font-size: 13px; color: var(--sj-muted); }

/* Share */
.sg-share {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sj-border);
}

.sg-share p {
  font-size: 14px;
  color: var(--sj-muted);
  margin: 0 0 10px;
}

.sg-share__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sg-share-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none;
}

.sg-share-btn--wa   { background: #25D366; color: #fff; }
.sg-share-btn--wa:hover { background: #128C7E; }
.sg-share-btn--tw   { background: #1DA1F2; color: #fff; }
.sg-share-btn--tw:hover { background: #0d8ecf; }
.sg-share-btn--copy { background: var(--sj-bg); border: 1.5px solid var(--sj-border); color: var(--sj-text); }
.sg-share-btn--copy:hover { background: var(--sj-text); color: #fff; }

/* Related Guides */
.sg-related {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 20px 48px;
}

.sg-related__title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 20px;
}

.sg-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.sg-related-card {
  background: var(--sj-card);
  border-radius: var(--sj-radius);
  overflow: hidden;
  box-shadow: var(--sj-shadow);
  transition: box-shadow .2s, transform .2s;
}

.sg-related-card:hover {
  box-shadow: var(--sj-shadow-lg);
  transform: translateY(-2px);
}

.sg-related-card__img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sj-bg);
}

.sg-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.sg-related-card:hover .sg-related-card__img img { transform: scale(1.05); }

.sg-related-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  width: 100%;
  height: 100%;
}

.sg-related-card__body {
  padding: 14px 16px;
}

.sg-related-card__body h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 6px 0 6px;
  line-height: 1.3;
}

.sg-related-card__body h4 a { color: var(--sj-text); text-decoration: none; }
.sg-related-card__body h4 a:hover { color: var(--sj-accent); }

.sg-related-card__time {
  font-size: 11px;
  color: var(--sj-muted);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 900px) {
  .sj-featured__inner { grid-template-columns: 1fr; }
  .sj-featured__content { padding: 24px; }
  .sg-hero--has-img { min-height: 360px; }
}

@media (max-width: 600px) {
  .sj-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .sg-hero__title { font-size: 28px; }
  .sj-submit-cta__inner { padding: 28px 20px; }
}
