/*
Theme Name: BlogHash Child
Theme URI: https://sujungcompany.com/
Description: Brand plus media child theme for the Sujungcompany WordPress rebuild.
Author: Codex
Template: bloghash
Version: 1.1.0
Text Domain: bloghash-child
*/

:root {
  --sujung-ink: #15212a;
  --sujung-soft-ink: #44525f;
  --sujung-line: #d7e1e7;
  --sujung-panel: #f7f9fb;
  --sujung-panel-strong: #eff4f7;
  --sujung-accent: #d0673d;
  --sujung-accent-deep: #8f3f24;
  --sujung-mint: #6f8f85;
  --sujung-gold: #dbb365;
  --sujung-shadow: 0 20px 40px rgba(21, 33, 42, 0.08);
  --sujung-radius: 22px;
  --sujung-radius-sm: 16px;
  --sujung-max: 1180px;
}

body.bloghash-child-theme,
body.bloghash-child-theme #page {
  background:
    radial-gradient(circle at top left, rgba(219, 179, 101, 0.14), transparent 36%),
    linear-gradient(180deg, #fbf8f1 0%, #f5f8fb 48%, #f8fbfd 100%);
  color: var(--sujung-ink);
}

.sujung-shell {
  width: min(calc(100% - 32px), var(--sujung-max));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.sujung-stack {
  display: grid;
  gap: 28px;
}

.sujung-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  padding: 38px;
  border: 1px solid rgba(21, 33, 42, 0.08);
  border-radius: calc(var(--sujung-radius) + 6px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 251, 0.88)),
    linear-gradient(145deg, rgba(208, 103, 61, 0.1), rgba(111, 143, 133, 0.08));
  box-shadow: var(--sujung-shadow);
}

.sujung-hero__eyebrow,
.sujung-section__eyebrow,
.sujung-entry-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sujung-accent-deep);
}

.sujung-hero__eyebrow::before,
.sujung-section__eyebrow::before,
.sujung-entry-hero__eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.sujung-hero__title,
.sujung-entry-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sujung-hero__lead,
.sujung-entry-lead {
  max-width: 44rem;
  margin: 14px 0 0;
  color: var(--sujung-soft-ink);
  font-size: 1.04rem;
  line-height: 1.7;
}

.sujung-hero__actions,
.sujung-link-grid,
.sujung-kpi-grid,
.sujung-card-grid,
.sujung-two-column,
.sujung-related-grid,
.sujung-archive-grid {
  display: grid;
  gap: 16px;
}

.sujung-hero__actions,
.sujung-link-grid,
.sujung-kpi-grid,
.sujung-card-grid,
.sujung-related-grid,
.sujung-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sujung-link-card,
.sujung-kpi-card,
.sujung-post-card,
.sujung-panel,
.sujung-detail-card,
.sujung-callout {
  border-radius: var(--sujung-radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 33, 42, 0.08);
  box-shadow: var(--sujung-shadow);
}

.sujung-link-card {
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sujung-link-card:hover,
.sujung-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 103, 61, 0.28);
}

.sujung-link-card strong,
.sujung-post-card h3,
.sujung-section__title,
.sujung-archive-header h1 {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.sujung-link-card span,
.sujung-kpi-card span,
.sujung-post-card p,
.sujung-section__intro,
.sujung-disclosure,
.sujung-archive-header p,
.sujung-meta-note,
.sujung-editorial-note {
  color: var(--sujung-soft-ink);
  line-height: 1.65;
}

.sujung-kpi-card {
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(219, 179, 101, 0.15), transparent),
    rgba(255, 255, 255, 0.9);
}

.sujung-kpi-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sujung-section,
.sujung-entry-shell,
.sujung-archive-shell {
  display: grid;
  gap: 18px;
}

.sujung-section__header,
.sujung-archive-header {
  display: grid;
  gap: 12px;
  align-items: end;
}

.sujung-section__title,
.sujung-archive-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  line-height: 1.1;
}

.sujung-post-card {
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.sujung-post-card__media {
  aspect-ratio: 16 / 10;
  background: var(--sujung-panel-strong);
}

.sujung-post-card__media img,
.sujung-entry-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sujung-post-card__body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.sujung-post-card__label,
.sujung-entry-hero__tag,
.sujung-archive-header__tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(208, 103, 61, 0.1);
  color: var(--sujung-accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sujung-post-card__meta,
.sujung-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--sujung-soft-ink);
  font-size: 0.92rem;
}

.sujung-post-card__cta,
.sujung-inline-cta,
.sujung-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--sujung-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sujung-inline-cta--secondary,
.sujung-button--ghost {
  background: rgba(21, 33, 42, 0.06);
  color: var(--sujung-ink);
}

.sujung-post-card__cta:hover,
.sujung-inline-cta:hover,
.sujung-button:hover {
  transform: translateY(-2px);
  background: var(--sujung-accent-deep);
  color: #fff;
}

.sujung-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sujung-detail-card,
.sujung-panel {
  padding: 24px;
}

.sujung-detail-card h2,
.sujung-panel h2,
.sujung-panel h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

.sujung-detail-card ul,
.sujung-panel ul,
.sujung-entry-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.sujung-table-wrap {
  overflow-x: auto;
  border-radius: calc(var(--sujung-radius) - 6px);
  border: 1px solid rgba(21, 33, 42, 0.08);
}

.sujung-comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
}

.sujung-comparison-table th,
.sujung-comparison-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(21, 33, 42, 0.08);
}

.sujung-comparison-table th {
  background: var(--sujung-panel-strong);
  color: var(--sujung-ink);
  font-size: 0.95rem;
}

.sujung-comparison-table td {
  color: var(--sujung-soft-ink);
  line-height: 1.65;
}

.sujung-faq-list {
  display: grid;
  gap: 14px;
}

.sujung-faq-item {
  padding: 18px 20px;
  border-radius: calc(var(--sujung-radius) - 8px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 33, 42, 0.08);
}

.sujung-faq-item h3 {
  margin: 0 0 8px;
}

.sujung-faq-item p {
  margin: 0;
  color: var(--sujung-soft-ink);
  line-height: 1.7;
}

.sujung-entry-hero {
  display: grid;
  gap: 22px;
  padding: 32px;
  border-radius: calc(var(--sujung-radius) + 6px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 244, 247, 0.92)),
    linear-gradient(140deg, rgba(219, 179, 101, 0.12), rgba(111, 143, 133, 0.07));
  border: 1px solid rgba(21, 33, 42, 0.08);
  box-shadow: var(--sujung-shadow);
}

.sujung-entry-hero__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--sujung-radius) - 4px);
  background: var(--sujung-panel-strong);
}

.sujung-entry-shell {
  max-width: 920px;
  margin: 0 auto;
}

.sujung-entry-body {
  display: grid;
  gap: 20px;
  color: var(--sujung-ink);
}

.sujung-entry-body > *:first-child {
  margin-top: 0;
}

.sujung-entry-body h2,
.sujung-entry-body h3,
.sujung-entry-body h4 {
  margin-top: 1.9em;
  margin-bottom: 0.5em;
  letter-spacing: -0.03em;
}

.sujung-entry-body p {
  margin: 0;
  line-height: 1.78;
  color: var(--sujung-soft-ink);
}

.sujung-entry-body figure,
.sujung-entry-body .wp-block-image {
  margin: 0;
}

.sujung-entry-body img {
  border-radius: calc(var(--sujung-radius) - 8px);
}

.sujung-disclosure,
.sujung-editorial-note,
.sujung-archive-note {
  padding: 14px 16px;
  border-left: 4px solid var(--sujung-accent);
  background: rgba(208, 103, 61, 0.08);
  border-radius: 12px;
}

.sujung-ad-slot {
  padding: 18px;
  border: 1px dashed rgba(21, 33, 42, 0.15);
  border-radius: var(--sujung-radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.sujung-ad-slot:empty {
  display: none;
}

.sujung-ad-slot__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sujung-soft-ink);
}

.sujung-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sujung-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sujung-empty-state {
  padding: 24px;
  border-radius: var(--sujung-radius);
  border: 1px dashed rgba(21, 33, 42, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

.sujung-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sujung-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 33, 42, 0.06);
  color: var(--sujung-ink);
  text-decoration: none;
}

.sujung-pagination .page-numbers.current,
.sujung-pagination .page-numbers:hover {
  background: var(--sujung-ink);
  color: #fff;
}

.sujung-home-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 18px 22px;
  border-radius: var(--sujung-radius-sm);
  background: rgba(21, 33, 42, 0.04);
  color: var(--sujung-soft-ink);
}

.sujung-home-note strong {
  color: var(--sujung-ink);
}

.sujung-entry-meta a,
.sujung-panel a,
.sujung-entry-body a {
  color: var(--sujung-accent-deep);
}

.sujung-entry-body .quads-location,
.sujung-entry-body .code-block,
.sujung-entry-body script,
.sujung-entry-body ins.adsbygoogle,
.sujung-entry-body .sharedaddy,
.sujung-entry-body .jp-relatedposts,
.sujung-entry-body .wp-block-latest-comments {
  display: none !important;
}

@media (max-width: 960px) {
  .sujung-hero,
  .sujung-two-column,
  .sujung-hero__actions,
  .sujung-link-grid,
  .sujung-kpi-grid,
  .sujung-card-grid,
  .sujung-related-grid,
  .sujung-archive-grid {
    grid-template-columns: 1fr;
  }

  .sujung-shell {
    width: min(calc(100% - 24px), var(--sujung-max));
    padding-top: 24px;
  }

  .sujung-hero,
  .sujung-entry-hero {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sujung-hero,
  .sujung-section,
  .sujung-entry-shell {
    animation: sujung-rise 0.5s ease both;
  }

  .sujung-card-grid > *:nth-child(2),
  .sujung-related-grid > *:nth-child(2),
  .sujung-archive-grid > *:nth-child(2) {
    animation-delay: 0.05s;
  }

  .sujung-card-grid > *:nth-child(3),
  .sujung-related-grid > *:nth-child(3),
  .sujung-archive-grid > *:nth-child(3) {
    animation-delay: 0.1s;
  }
}

@keyframes sujung-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
