/* Public website only. Reference: Brevet benefits + A/B/C curriculum cards.
   Loaded last; no script, data, navigation or print-template changes. */
@media screen {
  :root {
    --pc-radius: 24px;
    --pc-inner-radius: 14px;
    --pc-pad: 28px;
    --pc-gap: 20px;
    --pc-ink: #2b2e83;
    --pc-copy: #5d6963;
    --pc-border: #e4e6f0;
    --pc-surface: #fff;
    --pc-inner: #f7f8fc;
    --pc-shadow: 0 14px 36px rgba(23,25,71,.08), inset 0 1px 0 #fff;
    --pc-accent: linear-gradient(90deg, #d8a63d, #0ea672);
  }

  /* One family of content surfaces; specialised media retain their layout. */
  body :is(.layanan .card, .keunggulan-card, .materi-card, .testi-card,
    .jadwal-card, .jl-card, .kuota-group, .reg-card, .lokasi-card,
    .policy-block, .cek-card, .portal-card, .portal-access, .brevet-programs > article,
    .portal-journey > li, .ebook-card, .ebook-bundle-card,
    .ebook-guide-card, .ebook-roadmap-mini-card, .webinar-soon-card,
    .method-card) {
    position: relative;
    min-width: 0;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    padding: var(--pc-pad);
    background: var(--pc-surface);
    color: #24332e;
    box-shadow: var(--pc-shadow);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body :is(.artikel-card, .artikel-feature-story, .hero-card,
    .lokasi-map-wrap, .article-content, .article-side-card,
    .harga-table-wrap, .kalk-shell, .hero-photo-frame,
    .portal-photo, .film-frame, .ebook-product-stage) {
    min-width: 0;
    border-radius: var(--pc-radius);
    border-color: var(--pc-border);
    box-shadow: var(--pc-shadow);
  }

  /* Same depth on dark backgrounds, without recolouring semantic panels. */
  body :is(.cta-final, .kelas-cta-final, .gallery-ending .next-panel,
    .portal-directory, .kuota-live, .el-card) {
    border-radius: var(--pc-radius);
  }
  body :is(.portal-directory, .kuota-live) { padding: var(--pc-pad); }

  body :is(.grid-3, .grid-2, .keunggulan-grid, .materi-grid,
    .jadwal-cards, .brevet-programs, .portal-grid, .portal-journey, .ebook-bundle-grid,
    .ebook-guide-grid, .method-grid, .cek-grid, .lokasi-grid) {
    gap: var(--pc-gap);
    align-items: stretch;
  }
  body :is(.portal-card, .jadwal-card, .keunggulan-card, .testi-card) {
    display: flex;
    flex-direction: column;
  }
  body :is(.portal-card, .jl-card) { gap: 12px; }

  /* Compact typography stays readable and grows naturally with longer copy. */
  body :is(.layanan .card, .keunggulan-card, .materi-card, .testi-card,
    .jadwal-card, .jl-card, .lokasi-card, .policy-block, .cek-card,
    .portal-card, .portal-access, .portal-journey > li,
    .brevet-programs > article, .webinar-soon-card, .method-card) :is(h2, h3, h4) {
    color: var(--pc-ink);
    font-family: 'Outfit', sans-serif;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.25;
    text-shadow: none;
    overflow-wrap: break-word;
  }
  body :is(.layanan .card, .keunggulan-card, .jadwal-card,
    .portal-card, .portal-journey > li, .brevet-programs > article, .method-card) :is(h3, h4) {
    font-size: 19px;
    margin-bottom: 10px;
  }
  body :is(.layanan .card, .keunggulan-card, .testi-card,
    .jadwal-card, .portal-card, .portal-journey > li,
    .brevet-programs > article, .webinar-soon-card, .method-card) p {
    color: var(--pc-copy);
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    text-shadow: none;
    overflow-wrap: break-word;
  }

  /* Signature tab: quiet gold-to-emerald accent, never over the text. */
  body :is(.layanan .card, .keunggulan-card, .testi-card)::after,
  body :is(.portal-card, .portal-access, .brevet-programs > article, .policy-block,
    .reg-card, .cek-card, .jl-card, .webinar-soon-card, .method-card)::before,
  body .portal-journey > li::after {
    content: '';
    position: absolute;
    inset: 0 auto auto var(--pc-pad);
    width: 56px;
    height: 4px;
    border-radius: 0 0 99px 99px;
    background: var(--pc-accent);
    transform: none;
    box-shadow: none;
    pointer-events: none;
  }
  body .layanan .card::before,
  body .brevet-hero .keunggulan-card::before {
    position: absolute;
    inset: 20px 22px auto auto;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #2b2e8320;
    font: 800 32px/1 'Outfit', sans-serif;
    pointer-events: none;
  }
  body :is(.layanan .card, .keunggulan-card) { min-height: 154px; padding-top: 32px; }
  body :is(.layanan .card, .keunggulan-card) :is(h3, h4) { padding-right: 38px; }

  /* Preserve the reference A/B/C palette and its full-width programme rail. */
  body .brevet-features .materi-card {
    padding: var(--pc-pad);
    min-height: 340px;
    background: radial-gradient(circle at 100% 0, #2b2e830b, transparent 44%), #fff;
  }
  body .brevet-features .materi-card:nth-child(2) {
    background: radial-gradient(circle at 100% 0, #d8a63d12, transparent 44%), #fff;
  }
  body .brevet-features .materi-card:nth-child(3) {
    background: radial-gradient(circle at 100% 0, #0ea67210, transparent 44%), #fff;
  }
  body .brevet-features .materi-card h4 { font-size: 23px; }
  body .brevet-features .materi-card ul { gap: 10px; margin-top: auto; }
  body .brevet-features .materi-card li {
    min-height: 54px;
    padding: 11px 12px 11px 36px;
    background: var(--pc-inner);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-inner-radius);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: break-word;
  }
  body .brevet-features .jadwal-teaser {
    padding: var(--pc-pad);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: #fff;
    box-shadow: var(--pc-shadow);
  }

  /* Participant journey uses the same quiet corner numbers as benefits. */
  body[data-public-portal] .portal-journey > li { padding: 32px var(--pc-pad) var(--pc-pad); }
  body[data-public-portal] .portal-journey > li::before {
    inset: 20px 22px auto auto;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #2b2e8320;
    font: 800 32px/1 'Outfit', sans-serif;
    line-height: 1;
  }
  body[data-public-portal] .portal-journey > li:last-child::before { color: #0b765424; background: none; border: 0; }
  body .portal-journey h3 { padding-right: 42px; }
  body[data-public-portal] .portal-card-link { padding-bottom: 72px; }
  body .portal-card .portal-step { margin-bottom: 2px; padding-bottom: 8px; }
  body .portal-go { right: var(--pc-pad); bottom: 22px; }

  /* Forms keep their controls and validation; only surface rhythm changes. */
  body :is(.reg-card, .cek-card, .lokasi-card) { padding: var(--pc-pad); }
  body .cek-card h2 { font-size: 23px; }
  body :is(.reg-form, .cek-card, .kalk-body) :is(input[type='text'],
    input[type='email'], input[type='tel'], input[type='number'], select, textarea) {
    border-radius: var(--pc-inner-radius);
    min-height: 48px;
  }
  body :is(.hero-feature, .kuota-row, .harga-includes > div,
    .kalk-checkrow, .kalk-result-item, .cek-privacy, .article-callout, .article-disclaimer,
    .article-mobile-toc, .article-table-wrap, .cek-figure) {
    border-radius: var(--pc-inner-radius);
  }
  body .hero-card { padding: 24px; }
  body .hero-features { gap: 10px; }
  body .hero-feature { background: var(--pc-inner); border-color: var(--pc-border); }
  body .harga-includes { gap: 12px; }
  body .harga-includes > div { border: 1px solid var(--pc-border); background: #fff; padding: 16px; }
  body .harga-note { border-radius: var(--pc-inner-radius); }
  body :is(section, main) .btn:not(.btn-lg) {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.35;
  }
  body :is(.kicker, .materi-sub, .artikel-card-cat, .article-category,
    .jl-format, .jl-seat, .kuota-open-label) {
    border-radius: 999px;
  }

  /* Schedule data stays live. Status colours remain distinct and truthful. */
  body .kuota-live { gap: var(--pc-gap); }
  body .kuota-live .kuota-group { padding: 22px; }
  body .kuota-row { margin-bottom: 10px; }
  body .jl-grid { gap: var(--pc-gap); }
  body .jl-card.is-urgent::before { background: #d2493f; }
  body .jl-card.is-full::before { background: #8d9692; }
  body .jadwal-featured { border-color: #d8a63d80; }
  body .jl-actions { margin-top: auto; }

  /* Article rail sizes/snap/filter rules stay with the existing controller. */
  body.page-articles .artikel-card { padding: 0; background: #fff; }
  body.page-articles .artikel-card-body,
  body.page-articles .artikel-carousel > .artikel-card:first-child .artikel-card-body {
    padding: 22px 24px 24px;
    gap: 12px;
  }
  body .article-side-card:not(.article-side-cta) { background: #fff; padding: 24px; }
  body .article-content { padding: clamp(24px, 4vw, 46px); }
  body .article-lead { border-radius: var(--pc-inner-radius); }
  body .article-cover { transform: none; }
  body .article-sidebar { gap: var(--pc-gap); }
  /* Justified editorial paragraphs are intentionally not overridden. */

  /* Same family for media, but photos/video are never squeezed into text cards. */
  body :is(.hero-photo-frame, .portal-photo, .film-frame) { border-color: #ffffff38; }
  body .gallery-tile { border-radius: var(--pc-inner-radius); }
  body .film-frame { padding: 10px; }
  body .film-frame video { border-radius: var(--pc-inner-radius); }
  body .film-label { padding: 14px 8px 4px; }
  body .lokasi-map-wrap::before { right: auto; left: var(--pc-pad); width: 56px; height: 4px; }
  body .lokasi-card::before { right: auto; left: var(--pc-pad); width: 56px; height: 4px; }

  /* Existing accordions keep opening/closing logic and accessible semantics. */
  body .faq-page .faq-list { gap: 12px; }
  body .faq-page .faq-list details {
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: #fff;
    box-shadow: var(--pc-shadow);
  }
  body .faq-page .faq-list summary { padding: 20px 24px; font-size: 16px; }
  body .faq-page .faq-list details > p { padding: 0 24px 22px; text-shadow: none; }
  body .policy-body { gap: var(--pc-gap); }

  /* e-Book retains its covers, order, prices, carousels and availability. */
  body.page-ebook .ebook-card { padding: 16px 16px 22px; }
  body.page-ebook .ebook-bundle-card { padding: 24px; }
  body.page-ebook .ebook-bundle-card.is-featured { border: 1px solid #d8a63d80; background: #fff; }
  body.page-ebook .ebook-guide-card { padding: 24px; }
  body.page-ebook .ebook-roadmap-mini-card { padding: 16px; }
  body .ebook-guide-card::before {
    inset: 0 auto auto 24px;
    width: 56px;
    height: 4px;
    border-radius: 0 0 99px 99px;
  }

  /* White webinar/method cards follow the reference instead of heavy glass. */
  body.page-webinar .webinar-soon-card { padding: 32px; }
  body .webinar-soon-card-label { color: #806016; }
  body .webinar-soon-card-footer { color: var(--pc-copy); border-color: var(--pc-border); }
  body .webinar-soon-card-footer strong { color: var(--pc-ink); }
  body.page-tax-calculator .method-card { padding-top: 32px; }
  body.page-tax-calculator .method-card .mnum {
    position: absolute;
    inset: 20px 22px auto auto;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    background: none;
    color: #2b2e8320;
    box-shadow: none;
    font: 800 32px/1 'Outfit', sans-serif;
  }
  body .method-card h4 { padding-right: 42px; }
  body.page-tax-calculator .method-card::after { display: none; }
  body .kalk-tabs { border-radius: var(--pc-radius) var(--pc-radius) 0 0; }
  body .kalk-body { border-radius: 0 0 var(--pc-radius) var(--pc-radius); }
  body .step { border-radius: var(--pc-radius); border-color: var(--pc-border); box-shadow: var(--pc-shadow); }
  @media (min-width: 901px) {
    body :is(.layanan .grid-3, .keunggulan-grid, .portal-grid) { grid-auto-rows: 1fr; }
  }

  /* Stable positions: hover changes depth, not the layout or card alignment. */
  @media (hover: hover) and (pointer: fine) {
    body :is(.layanan .card, .keunggulan-card, .materi-card, .testi-card,
      .jadwal-card, .jl-card, .portal-card, .lokasi-card,
      .ebook-card, .ebook-bundle-card, .ebook-guide-card,
      .ebook-roadmap-mini-card, .method-card):hover {
      transform: none;
      background-color: #fff;
      border-color: #c8cedf;
      box-shadow: 0 18px 42px rgba(23,25,71,.12), inset 0 1px 0 #fff;
    }
  }
  body :is(.portal-card-link, .jl-card, .gallery-tile):focus-visible {
    outline: 3px solid #d8a63d;
    outline-offset: 4px;
  }

  @media (max-width: 900px) {
    body .brevet-features .materi-card { min-height: 0; }
    body :is(.keunggulan-grid, .portal-grid) { grid-template-columns: repeat(2, minmax(0,1fr)); }
    body .portal-grid > .portal-card:last-child:nth-child(odd) { grid-column: auto; }
    body .brevet-features .jadwal-teaser { grid-template-columns: 1fr; gap: 14px; }
    body .brevet-features .jadwal-teaser > * { grid-column: auto; grid-row: auto; }
  }
  @media (max-width: 600px) {
    :root { --pc-radius: 20px; --pc-pad: 22px; --pc-gap: 14px; }
    body :is(.keunggulan-grid, .materi-grid, .portal-grid) { grid-template-columns: minmax(0,1fr); }
    body .portal-grid > .portal-card { grid-column: auto; }
    body :is(.layanan .card, .keunggulan-card) { min-height: 0; }
    body .brevet-features .materi-card ul { grid-template-columns: minmax(0,1fr); }
    body[data-public-portal] .portal-card-link { padding-bottom: 70px; }
    body[data-public-portal] .portal-journey > li { padding-top: 30px; }
    body .kuota-live .kuota-group { padding: 18px; }
    body .article-content { padding: 24px 20px; }
    body.page-ebook .ebook-guide-card { padding: 18px; gap: 16px; }
    body.page-webinar .webinar-soon-card { padding: var(--pc-pad); }
    body .faq-page .faq-list summary { padding: 18px; font-size: 15px; }
    body .faq-page .faq-list details > p { padding: 0 18px 20px; }
    body.page-tax-calculator .kalk-body { padding: 24px 18px; }
    body :is(.portal-card, .portal-journey > li) :is(h3, h4) { font-size: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    body :is(.layanan .card, .keunggulan-card, .materi-card, .testi-card,
      .jadwal-card, .jl-card, .portal-card, .portal-journey > li,
      .ebook-card, .ebook-bundle-card, .ebook-guide-card, .method-card) {
      transition: none;
    }
  }
}
