/* =========================================================
   Editorial Content Styling
   File     : editorial.css
   Purpose  : Isolate editorial HTML from template CSS
   Usage    : .article-content + modifier class
              - editorial-compact
              - editorial-standard (recommended default)
              - editorial-cozy
   ========================================================= */


/* =========================================================
   BASE STYLES (SHARED)
   ========================================================= */

.article-content {
  font-family: var(--tc-body-font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tc-neutral-800);
}

/* Links */
.article-content a {
  color: var(--tc-neutral-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--tc-neutral-600);
}

/* Images */
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Lists */
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content li {
  line-height: 1.6;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid var(--tc-neutral-200);
  padding: 0.75rem;
  text-align: left;
}

.article-content th {
  background-color: var(--tc-neutral-100);
  font-weight: 600;
}

/* Code */
.article-content pre {
  background-color: var(--tc-neutral-100);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.article-content code {
  background-color: var(--tc-neutral-100);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Horizontal Rule */
.article-content hr {
  border: none;
  border-top: 1px solid var(--tc-neutral-200);
}


/* =========================================================
   COMPACT MODE
   Gmail-style: Compact
   Best for   : Regulasi, Harga Acuan, Artikel teknis
   ========================================================= */

.editorial-compact p {
  margin-bottom: 0.75rem;
}

.editorial-compact h1 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.9rem;
}

.editorial-compact h2 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.6rem;
}

.editorial-compact h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.35rem;
}

.editorial-compact h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
}

.editorial-compact ul,
.editorial-compact ol {
  margin: 0.75rem 0;
}

.editorial-compact li {
  margin-bottom: 0.25rem;
}

.editorial-compact img {
  margin: 1.25rem auto;
}

.editorial-compact blockquote {
  margin: 1.5rem 0;
  padding: 20px 24px 20px 52px;
  background-color: var(--tc-neutral-100);
  border-radius: 8px;
  position: relative;
  font-style: italic;
}

.editorial-compact blockquote::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 20px;
  height: 20px;
  background-image: url("../imgs/template/icons/quote.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
}


/* =========================================================
   STANDARD MODE (RECOMMENDED DEFAULT)
   Medium / Substack feel
   ========================================================= */

.editorial-standard p {
  margin-bottom: 1rem;
}

.editorial-standard h1 {
  margin: 2.25rem 0 1rem;
  font-size: 2rem;
}

.editorial-standard h2 {
  margin: 2rem 0 0.9rem;
  font-size: 1.75rem;
}

.editorial-standard h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.5rem;
}

.editorial-standard h4 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.25rem;
}

.editorial-standard ul,
.editorial-standard ol {
  margin: 1.25rem 0;
}

.editorial-standard li {
  margin-bottom: 0.4rem;
}

.editorial-standard img {
  margin: 1.75rem auto;
}

.editorial-standard blockquote {
  margin: 2rem 0;
  padding: 28px 32px 28px 68px;
  background-color: var(--tc-neutral-100);
  border-radius: 8px;
  position: relative;
  font-style: italic;
}

.editorial-standard blockquote::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 28px;
  height: 28px;
  background-image: url("../imgs/template/icons/quote.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
}


/* =========================================================
   COZY MODE
   Majalah / Feature / Opini
   ========================================================= */

.editorial-cozy p {
  margin-bottom: 1.35rem;
}

.editorial-cozy h1 {
  margin: 2.75rem 0 1.25rem;
  font-size: 2.1rem;
}

.editorial-cozy h2 {
  margin: 2.5rem 0 1.1rem;
  font-size: 1.85rem;
}

.editorial-cozy h3 {
  margin: 2.25rem 0 1rem;
  font-size: 1.6rem;
}

.editorial-cozy h4 {
  margin: 2rem 0 0.85rem;
  font-size: 1.3rem;
}

.editorial-cozy ul,
.editorial-cozy ol {
  margin: 1.75rem 0;
}

.editorial-cozy li {
  margin-bottom: 0.6rem;
}

.editorial-cozy img {
  margin: 2.25rem auto;
}

.editorial-cozy blockquote {
  margin: 2.75rem 0;
  padding: 36px 40px 36px 80px;
  background-color: var(--tc-neutral-100);
  border-radius: 8px;
  position: relative;
  font-style: italic;
}

.editorial-cozy blockquote::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 32px;
  width: 32px;
  height: 32px;
  background-image: url("../imgs/template/icons/quote.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.65;
}


/* =========================================================
   MOBILE REFINEMENT
   ========================================================= */

@media (max-width: 767px) {
  .article-content {
    font-size: 15px;
    line-height: 1.65;
  }

  .editorial-cozy h1,
  .editorial-standard h1,
  .editorial-compact h1 {
    font-size: 1.6rem;
  }
}