/* Styling for the Wawasan (articles) pages: listing grid, homepage
   preview grid, and article detail page. Kept as a separate file
   (rather than merged into style.css) so it can also be loaded into
   the Decap CMS preview pane via registerPreviewStyle — see
   admin/preview-templates.js. */

.wawasan-page { min-height: calc(100vh - 77px); padding: calc(77px + 48px) 0 96px; }
.article-page { min-height: calc(100vh - 77px); padding: 48px 0 96px; }
.article-page--no-hero { padding-top: calc(77px + 48px); }
.wawasan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 48px;
}
.wawasan-card { display: block; color: inherit; }
.wawasan-card__image {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
  margin-bottom: 16px;
}
.wawasan-card__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
  transform: scale(var(--cf-zoom, 1)) translate(var(--cf-x, 0%), var(--cf-y, 0%));
}
.wawasan-card:hover .wawasan-card__image img { transform: scale(calc(var(--cf-zoom, 1) * 1.04)) translate(var(--cf-x, 0%), var(--cf-y, 0%)); }
.wawasan-card__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 8px; }
.wawasan-card__title { font-size: 1.15rem; line-height: 1.4; transition: color 0.2s ease; }
.wawasan-card:hover .wawasan-card__title { color: var(--brass-dark); }
@media (max-width: 980px) { .wawasan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wawasan-grid { grid-template-columns: 1fr; } }
.article-hero {
  margin-top: 77px;
  width: 100%;
  height: 44vh;
  min-height: 280px;
  max-height: 480px;
  overflow: hidden;
  background: #f5f5f5;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-page .section-title { margin-top: 24px; max-width: 820px; }

.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 32px;
}
.article-sidebar { display: flex; flex-direction: column; gap: 24px; }
.article-meta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass-dark);
  display: flex; align-items: center; gap: 8px;
}
.article-meta__dot { opacity: 0.5; }
.article-category {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-navy); border: 1px solid var(--ink-navy-40); padding: 5px 10px;
}
.article-authors__label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.article-author { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.article-author:last-child { margin-bottom: 0; }
.article-author__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--ink-navy); }
.article-author__name { font-size: 0.88rem; font-weight: 700; color: var(--ink-navy); }
.article-author__role { font-size: 0.76rem; color: var(--text-muted); }

.article-share { margin-bottom: 32px; }
.article-share__label {
  display: block;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.article-share__rule { height: 1px; background: var(--ink-navy-10); margin-bottom: 16px; }
.article-share__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-share__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--ink-navy); border: none; background: none; padding: 0;
  cursor: pointer; transition: color 0.2s ease;
  flex-shrink: 0;
}
.article-share__icon:hover { color: var(--brass-dark); }
.article-share__icon svg { width: 28px; height: 28px; }
.article-share__pdf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 4px 10px;
  color: var(--ink-navy); border: 1px solid var(--ink-navy-40); background: none;
  border-radius: 3px; cursor: pointer; transition: all 0.2s ease;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  flex-shrink: 0;
}
.article-share__pdf-btn:hover { color: var(--brass-dark); border-color: var(--brass-dark); }

.article-body { max-width: 720px; font-size: 1.05rem; line-height: 1.75; color: var(--ink-navy); text-align: justify; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { margin-top: 40px; margin-bottom: 16px; }

.article-translate__label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
/* Google's widget renders its own <select> inside #google_translate_element
   — can't restyle across the iframe boundary, just keep the container from
   overflowing the narrow sidebar. */
#google_translate_element { font-size: 0.85rem; max-width: 100%; }
/* Google injects a fixed banner iframe (.goog-te-banner-frame) at the top
   of <body> when a translation is active, which pushes content down via
   body.top — harmless, left as-is rather than fighting Google's own UI. */

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media print {
  .site-header, .site-footer, .no-print,
  .goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
  body { padding-top: 0 !important; }
  .article-page, .article-page--no-hero { padding-top: 24px !important; min-height: 0; }
  .article-hero { margin-top: 0; max-height: 280px; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .article-body, .article-body * { color: #000 !important; }
  .article-body h2 { break-after: avoid; }
  .article-body p { orphans: 3; widows: 3; }
  a[href]::after { content: none !important; }
}
