/* Shared navigation, including public, account, admin and editor pages. */
:root { --carozel-header-height: 100px; scroll-padding-top: var(--carozel-header-height); }
.carozel-header {
  position: sticky;
  top: 0;
  background: var(--page, #fff);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  isolation: isolate;
  z-index: 30;
}
.carozel-header:is(.site-header, .dashboard-header, .editor-header) > .carozel-brand-link { order: 0; flex: 0 0 auto; margin: 0; }
.carozel-header > .editor-divider, .carozel-header > .editor-heading { order: 1; }
.carozel-header .header-controls { order: 3; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.carozel-header .header-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.carozel-header .header-icon-button:hover { background: var(--panel); border-color: var(--link); }
.carozel-header .header-icon-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.header-icon-button svg { display: block; width: 21px; height: 21px; flex: none; pointer-events: none; }
.theme-toggle .theme-sun, html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.carozel-header .menu-toggle, .menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }
.carozel-header .header-menu { order: 2; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 auto; min-width: 0; }
.carozel-header:is(.site-header, .dashboard-header, .editor-header) .header-menu nav { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin: 0; padding: 0; order: 0; width: auto; overflow: visible; }
.carozel-header .header-links { display: flex; align-items: center; gap: 4px; }
.carozel-header .header-menu a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; margin: 0; font-size: .875rem; line-height: 1.4; white-space: nowrap; }
.carozel-header .header-menu nav a { padding-inline: 2px; }
.carozel-header .header-menu [aria-current="page"] { color: var(--link); }
.carozel-header .header-menu [data-projects-link] { display: inline-flex; margin: 0; }
.carozel-header > .editor-actions { order: 4; }
.home-page :is(.audience, #harga, .closing-strip) { min-width: 0; }
.home-page :is(.audience, .pricing-intro, .closing-strip) :is(h2, p, strong) { max-width: 100%; overflow-wrap: break-word; }

@media (min-width: 1200px) {
  .carozel-header.site-header { flex-wrap: nowrap; }
  .carozel-header.editor-header .header-menu { flex-grow: 0; margin-left: auto; }
  .carozel-header.editor-header .header-controls { margin-left: 0; }
}
@media (max-width: 1199px) {
  .carozel-header.site-header, .carozel-header.dashboard-header, .carozel-header.editor-header {
    padding: 16px 24px;
    gap: 12px;
    min-height: 76px;
  }
  .carozel-header:is(.site-header, .dashboard-header, .editor-header) > .carozel-brand-link { flex-basis: auto; margin: 0 auto 0 0; }
  .carozel-header .header-controls { order: 1; margin-left: auto; }
  .carozel-header.has-navigation .menu-toggle { display: inline-flex; }
  .carozel-header .header-menu {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--raised);
    color: var(--ink);
  }
  .carozel-header.has-navigation .header-menu {
    position: absolute;
    inset-inline: 24px;
    top: calc(100% - 4px);
    z-index: 10;
    max-height: max(44px, calc(100vh - var(--carozel-header-height) - 16px));
    max-height: max(44px, calc(100dvh - var(--carozel-header-height) - 16px));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 16px 40px #0f172a24;
  }
  .carozel-header:is(.site-header, .dashboard-header, .editor-header) .header-menu nav, .carozel-header .header-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .carozel-header .header-menu nav + .header-links { border-top: 1px solid var(--line); padding-top: 12px; }
  .carozel-header .header-menu a, .carozel-header .header-menu nav a {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--raised);
    font-size: .875rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    text-decoration: none;
  }
  .carozel-header .header-menu a:hover, .carozel-header .header-menu [aria-current="page"] { background: var(--panel); color: var(--link); }
  .carozel-header .header-links .header-start-link { grid-column: 1 / -1; order: 1; background: #4f46e5; border-color: #4f46e5; color: #fff; }
  .carozel-header > .editor-actions { flex: 1 0 100%; display: flex; flex-wrap: wrap; margin: 0; gap: 8px; }
  .carozel-header .editor-actions .button { flex: 1 1 auto; min-height: 44px; white-space: normal; }
  .carozel-header > .editor-divider, .carozel-header > .editor-heading { display: none; }
}

/* The desktop canvas also sticks; keep it below the navigation while scrolling. */
body.cz-editor .canvas-workspace { top: var(--carozel-header-height); }
@media (max-width: 640px) {
  .carozel-header.site-header, .carozel-header.dashboard-header, .carozel-header.editor-header { padding: 14px 20px; min-height: 72px; gap: 8px; }
  .carozel-header.has-navigation .header-menu { inset-inline: 20px; }
  /* Scale the fan itself; fixed card positions previously widened small pages. */
  .home-page .slide-fan { width: 100%; max-width: 342px; height: auto; aspect-ratio: 342 / 339; }
  .home-page .fan-card-front { width: 46%; left: 9%; top: 2%; }
  .home-page .fan-card-middle { width: 46%; left: 29%; top: 5%; }
  .home-page .fan-card-back { width: 40%; left: 47%; top: 9%; }
  .home-page .audience, .home-page .closing-strip {
    width: calc(100% - 40px);
    max-width: 100%;
    margin-inline: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
  }
  .home-page .audience h2, .home-page .pricing-intro h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
  .home-page .audience p { margin-top: 12px; font-size: .9375rem; line-height: 1.85; }
  .home-page #harga { padding-inline: 20px; }
  .home-page .pricing-intro { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
  .home-page .pricing-intro .eyebrow { font-size: .6875rem; line-height: 1.7; margin-bottom: 12px; flex-wrap: wrap; }
  .home-page .closing-strip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
  .home-page .closing-strip p { width: 100%; margin: 0; font-size: clamp(1.4rem, 6vw, 1.75rem); line-height: 1.3; text-align: center; text-wrap: balance; }
  .home-page .closing-strip .button { align-self: center; max-width: 100%; min-height: 46px; margin: 0; white-space: normal; }
  .home-page .closing-strip { margin-bottom: 32px; }
}

/* Copyright applies to every shared footer. */
.carozel-copyright{flex-basis:100%;grid-column:1 / -1;width:100%;margin:16px 0 0;padding-top:20px;border-top:1px solid var(--line,#dbe1e8);font-size:14px;line-height:1.6;color:inherit;opacity:.78;overflow-wrap:anywhere}.experience-footer{flex-wrap:wrap}@media(max-width:680px){.carozel-copyright{text-align:center}}
