/* ==========================================================================
   NusaNexa Ghost theme — Ghost-specific styles
   Fonts, logo, skip link, editor content (.gh-content) and Koenig cards.
   All values come from the design tokens in screen.css (:root).
   ========================================================================== */

/* --------------------------------------------------------------- fonts (self-hosted, variable) */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations');
}

/* --------------------------------------------------------------- skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* --------------------------------------------------------------- logo (original) */
.logo {
  display: block;
  height: 46px;
  width: auto;
  flex: none;
}
.logo__word {
  fill: #1e1d1a;
}
.logo__tag {
  fill: #678281;
}
.logo--light .logo__word {
  fill: #fff;
}
.logo--light .logo__tag {
  fill: rgb(255 255 255 / 75%);
}
.bar__logo .logo {
  height: 42px;
}
.icon {
  flex: none;
}

/* --------------------------------------------------------------- mega menu: category summaries */
.mega__col p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------- page hero helpers */
.phero__eyebrow-link {
  color: inherit;
  text-decoration: none;
}
.phero__eyebrow-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------- editor content */
.gh-content {
  font-size: 1.08rem;
  color: var(--text);
}
.gh-content > * + * {
  margin-top: 0;
}
.gh-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2.5rem;
}
.gh-content > h2:first-child,
.gh-content > .kg-card:first-child + h2 {
  margin-top: 0;
}
.gh-content h3 {
  margin-top: 1.75rem;
}
.gh-content ul,
.gh-content ol {
  margin: 0 0 1.4em;
}
.gh-content li {
  margin-bottom: 0.45em;
}
/* Unordered lists: gold check markers (repeats the brand accent). */
.gh-content ul {
  list-style: none;
  padding-left: 0;
}
.gh-content ul > li {
  position: relative;
  padding-left: 1.9rem;
}
.gh-content ul > li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--gold-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-500) 45%, transparent);
}
/* Ordered lists: numbered process steps (same look as the Steps component). */
.gh-content ol {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}
.gh-content ol > li {
  position: relative;
  counter-increment: step;
  padding: 0.35rem 0 1.25rem 3.75rem;
  min-height: 44px;
  margin: 0;
}
.gh-content ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-weight: 800;
  font-size: 0.95rem;
}
.gh-content ol > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--navy-100);
}
.gh-content ol > li > strong:first-child {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.15rem;
}
.gh-content blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.25em;
  border-left: 3px solid var(--gold-500);
  color: var(--muted);
}
.gh-content figure {
  margin: 2rem 0;
}
.gh-content img {
  border-radius: var(--radius);
}
.gh-content figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.gh-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.gh-content th,
.gh-content td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* Koenig width classes (required by Ghost) */
.kg-width-wide {
  position: relative;
  width: min(1040px, 100vw - 2 * var(--gutter));
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.kg-width-full img {
  border-radius: 0;
}

/* Callout card → "good to know" note */
.gh-content .kg-callout-card {
  display: flex;
  gap: 0.9rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--navy-50);
  font-size: 0.95rem;
  color: var(--muted);
}
.gh-content .kg-callout-card-accent,
.gh-content .kg-callout-card-yellow {
  background: var(--gold-50);
  border-color: color-mix(in srgb, var(--gold-500) 35%, transparent);
}
.gh-content .kg-callout-emoji {
  font-size: 1.2rem;
  line-height: 1.5;
}
.gh-content .kg-callout-text p:last-child {
  margin-bottom: 0;
}

/* Button card */
.gh-content .kg-button-card {
  margin: 1.5rem 0;
}
.gh-content .kg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--white);
  font: 700 0.98rem/1.2 var(--font-sans);
  text-decoration: none;
}
.gh-content .kg-btn:hover {
  background: var(--navy-900);
  color: var(--white);
}
.gh-content .kg-btn-accent {
  background: var(--gold-500);
  color: var(--navy-950);
}
.gh-content .kg-btn-accent:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

/* Key facts box (HTML card on service pages) */
.facts-box {
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--cream);
}
.facts-box h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 0.75rem;
}
.facts-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.25rem 1.5rem;
}
.facts-box dl > div {
  padding: 0.6rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-500) 25%, transparent);
}
.facts-box dt {
  font-size: 0.82rem;
  color: var(--muted);
}
.facts-box dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* FAQ inside content (HTML card using <details>) */
.gh-content .faq {
  margin: 0 0 1.5rem;
}
.gh-content .faq h3 {
  margin: 0;
}

/* Related links list in content */
.gh-content .related-links a {
  font-weight: 600;
}

/* --------------------------------------------------------------- page layouts */
.page-body {
  padding-block: var(--section);
}
.page-body--flush {
  padding-block: 0;
}
.svc-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.svc-layout .side {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
@media (min-width: 1024px) {
  .svc-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .svc-layout .side-cta {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* Home: editor-built sections are full width; each brings its own .container */
.home-content > .section:first-child {
  margin-top: 0;
}

/* Articles */
.article-feature {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.post__img {
  width: calc(100% + 2 * clamp(1.25rem, 2.5vw, 1.75rem));
  max-width: none;
  margin: calc(-1 * clamp(1.25rem, 2.5vw, 1.75rem)) calc(-1 * clamp(1.25rem, 2.5vw, 1.75rem)) 1.25rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Error page */
.error-page {
  padding-block: clamp(4rem, 12vw, 9rem);
  text-align: center;
}
.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page .btn-row {
  justify-content: center;
}

/* Contact form status colours (AA on white) */
.cform__status[data-state='ok'] {
  color: var(--success);
}
.cform__status[data-state='error'] {
  color: var(--danger);
}

/* Windows high contrast / forced colours: keep focus and buttons visible */
@media (forced-colors: active) {
  .btn,
  .gh-content .kg-btn {
    border: 2px solid ButtonText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* Print: content only */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .side-cta,
  .wa {
    display: none !important;
  }
  .phero {
    background: none;
    color: #000;
  }
  .phero h1 {
    color: #000;
  }
}
