/**
 * Sloppy Life Hack Phase 2 UI
 * Work Order: WO-SLOPPY-ADSENSE-SEO-UI-001
 */

.slh-phase2 {
  --slh-bg: #fbfaf7;
  --slh-surface: #ffffff;
  --slh-surface-soft: #f5f3ed;
  --slh-text: #252725;
  --slh-muted: #656a64;
  --slh-border: #dedfd9;
  --slh-accent: #496b5c;
  --slh-accent-deep: #315344;
  --slh-accent-soft: #e9f0eb;
  --slh-warm: #9a6b45;
  --slh-warm-soft: #f4ece5;
  --slh-blue: #4d657a;
  --slh-blue-soft: #ebf0f4;
  --slh-radius: 14px;
  --slh-shadow: 0 8px 24px rgba(38, 42, 38, 0.06);
  --slh-reading-width: 760px;
  color: var(--slh-text);
}

.slh-phase2 a { text-underline-offset: .16em; }
.slh-phase2 .entry-content { font-size: 1rem; line-height: 1.9; }
.slh-phase2 .entry-content > p,
.slh-phase2 .entry-content > ul,
.slh-phase2 .entry-content > ol,
.slh-phase2 .entry-content > blockquote { margin-bottom: 1.35em; }

.slh-phase2 .entry-content h2 {
  margin-top: 2.8em;
  margin-bottom: 1em;
  padding: 0 0 .55em;
  border: 0;
  border-bottom: 1px solid var(--slh-border);
  background: transparent;
  color: var(--slh-text);
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.72rem);
  line-height: 1.45;
}

.slh-phase2 .entry-content h3 {
  margin-top: 2.1em;
  margin-bottom: .8em;
  padding-left: .8em;
  border-left: 3px solid var(--slh-accent);
  background: transparent;
  font-size: clamp(1.12rem, 1rem + .35vw, 1.32rem);
  line-height: 1.5;
}

.slh-phase2 .entry-content table { font-size: .94rem; }
.slh-phase2 .scrollable-table,
.slh-phase2 .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.slh-phase2 .header-container,
.slh-phase2 .navi { background: rgba(255, 255, 255, .97); }
.slh-phase2 .navi-in > ul > li > a { font-weight: 600; letter-spacing: .01em; }
.slh-phase2 .slh-dog-menu-item > a { color: var(--slh-accent-deep); }

.slh-home-editorial { margin: 0 auto 48px; }
.slh-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 48px;
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid var(--slh-border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(233,240,235,.96), rgba(251,250,247,.98));
  box-shadow: var(--slh-shadow);
}
.slh-home-hero::after {
  position: absolute;
  top: -72px;
  right: -52px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(73,107,92,.18);
  border-radius: 50%;
  content: "";
}

.slh-home-kicker,
.slh-section-eyebrow {
  margin: 0 0 10px;
  color: var(--slh-accent-deep);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.slh-home-hero h2 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--slh-text);
  font-size: clamp(1.72rem, 1.22rem + 2vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: .01em;
}
.slh-home-lead {
  max-width: 760px;
  margin: 0;
  color: var(--slh-muted);
  font-size: clamp(1rem, .94rem + .28vw, 1.12rem);
  line-height: 1.9;
}
.slh-home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.slh-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.slh-button-primary { background: var(--slh-accent-deep); color: #fff; }
.slh-button-primary:hover { background: #233f34; color: #fff; }
.slh-button-secondary { border: 1px solid var(--slh-border); background: #fff; color: var(--slh-text); }

.slh-home-section { margin: 0 0 56px; }
.slh-section-heading { max-width: 780px; margin-bottom: 22px; }
.slh-section-heading h2,
.slh-category-intro h2 {
  margin: 0 0 10px;
  color: var(--slh-text);
  font-size: clamp(1.4rem, 1.2rem + .7vw, 1.85rem);
  line-height: 1.45;
}
.slh-section-heading > p:last-child,
.slh-category-intro > p:last-child { margin: 0; color: var(--slh-muted); line-height: 1.8; }

.slh-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.slh-topic-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--slh-border);
  border-radius: var(--slh-radius);
  background: var(--slh-surface);
  box-shadow: 0 4px 16px rgba(38,42,38,.035);
  color: var(--slh-text);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.slh-topic-card:hover { border-color: rgba(73,107,92,.42); box-shadow: var(--slh-shadow); color: var(--slh-text); transform: translateY(-2px); }
.slh-topic-mark { width: 34px; height: 5px; margin-bottom: 22px; border-radius: 999px; background: var(--slh-accent); }
.slh-topic-card-dog .slh-topic-mark { background: var(--slh-warm); }
.slh-topic-card-organize .slh-topic-mark { background: var(--slh-blue); }
.slh-topic-card-learn .slh-topic-mark { background: #7a6d91; }
.slh-topic-title { margin-bottom: 10px; font-size: 1.08rem; font-weight: 700; }
.slh-topic-description { color: var(--slh-muted); font-size: .92rem; line-height: 1.75; }
.slh-topic-link { margin-top: auto; padding-top: 20px; color: var(--slh-accent-deep); font-size: .88rem; font-weight: 700; }

.slh-dog-path { padding: clamp(24px,4vw,38px); border-radius: 18px; background: var(--slh-warm-soft); }
.slh-step-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.slh-step-list li { margin: 0; }
.slh-step-list a {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid rgba(154,107,69,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: var(--slh-text);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}
.slh-step-number { color: var(--slh-warm); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }

.slh-editorial-types { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.slh-editorial-type { padding: 20px; border: 1px solid var(--slh-border); border-radius: var(--slh-radius); background: var(--slh-surface); }
.slh-editorial-type p { margin: 12px 0 0; color: var(--slh-muted); font-size: .92rem; line-height: 1.75; }

.slh-content-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
.slh-badge-review { background: var(--slh-accent-soft); color: var(--slh-accent-deep); }
.slh-badge-compare { background: var(--slh-warm-soft); color: #724c2f; }
.slh-badge-guide { background: var(--slh-blue-soft); color: #395267; }
.slh-article-premise { margin: 0 0 30px; padding: 18px 20px; border: 1px solid var(--slh-border); border-radius: 12px; background: var(--slh-surface-soft); }
.slh-article-premise p { margin: 10px 0 0; color: var(--slh-muted); font-size: .92rem; line-height: 1.75; }
.slh-article-premise strong { color: var(--slh-text); }

.slh-category-intro { margin: 0 0 28px; padding: 24px; border: 1px solid var(--slh-border); border-radius: 14px; background: var(--slh-surface-soft); }

.slh-phase2 .ad-area,
.slh-phase2 .google-auto-placed,
.slh-phase2 ins.adsbygoogle { margin-top: 30px; margin-bottom: 30px; }

.slh-trust-strip { margin-top: 56px; border-top: 1px solid var(--slh-border); border-bottom: 1px solid var(--slh-border); background: var(--slh-surface-soft); }
.slh-trust-strip-inner { display: grid; max-width: 1180px; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 32px; margin: 0 auto; padding: 32px 20px; }
.slh-trust-title { margin: 0 0 7px; font-weight: 800; }
.slh-trust-copy { max-width: 680px; margin: 0; color: var(--slh-muted); font-size: .88rem; line-height: 1.75; }
.slh-trust-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 16px; }
.slh-trust-links a { color: var(--slh-text); font-size: .86rem; }

.slh-phase2.home #main,
.slh-phase2.blog #main { width: 100%; }
.slh-phase2.home #sidebar,
.slh-phase2.blog #sidebar { display: none; }

.slh-phase2.single-post .entry-content > * { max-width: var(--slh-reading-width); margin-right: auto; margin-left: auto; }
.slh-phase2.single-post .entry-content > .wp-block-table,
.slh-phase2.single-post .entry-content > .scrollable-table,
.slh-phase2.single-post .entry-content > .wp-block-image,
.slh-phase2.single-post .entry-content > figure,
.slh-phase2.single-post .entry-content > .ad-area { max-width: 100%; }

.slh-phase2 a:focus-visible,
.slh-phase2 button:focus-visible { outline: 3px solid rgba(73,107,92,.42); outline-offset: 3px; }

@media screen and (max-width: 1023px) {
  .slh-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slh-step-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .slh-trust-strip-inner { grid-template-columns: 1fr; }
}

@media screen and (max-width: 600px) {
  .slh-home-editorial { margin-bottom: 36px; }
  .slh-home-hero { margin-bottom: 36px; padding: 26px 20px; border-radius: 16px; }
  .slh-home-actions { display: grid; grid-template-columns: 1fr; }
  .slh-button { width: 100%; }
  .slh-home-section { margin-bottom: 42px; }
  .slh-topic-grid,
  .slh-editorial-types { grid-template-columns: 1fr; }
  .slh-topic-card { min-height: 0; padding: 19px; }
  .slh-dog-path { padding: 22px 16px; border-radius: 14px; }
  .slh-step-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slh-step-list a { min-height: 76px; }
  .slh-article-premise { padding: 16px; }
  .slh-category-intro { padding: 20px 16px; }
  .slh-trust-strip-inner { padding: 26px 16px; }
  .slh-phase2 .entry-content { font-size: .98rem; line-height: 1.88; }
  .slh-phase2 .entry-content h2 { margin-top: 2.4em; }
}

@media (prefers-reduced-motion: reduce) {
  .slh-topic-card { transition: none; }
}
