/* Campaign design for the 2027 Dokkeut revision. */
#main {
  --gold-leaf: #e6bb71;
  --campaign-ink: #171519;
  --campaign-paper: #faf7f0;
  --campaign-rule: #ded3c2;
}

#main .campaign-hero {
  position: relative;
  isolation: isolate;
  background: #16151a;
  color: #fff9ed;
  overflow: hidden;
}
#main .campaign-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 74% 59%, #5c4230 0%, transparent 41%),
    linear-gradient(112deg, #111116 34%, #282127 100%);
}
#main .campaign-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bc8d50, transparent);
}
.campaign-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  align-items: center;
  min-height: 625px;
  padding-block: 58px 61px;
}
.campaign-hero__content { position: relative; z-index: 1; }
.campaign-edition {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px !important;
  color: #e9c486;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.campaign-edition::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}
#main .campaign-title {
  margin: 0;
  color: #fff9ed;
  font-size: clamp(39px, 5.1vw, 69px);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -.072em;
}
.campaign-title span { display: block; color: #eac58b; }
.campaign-title strong { display: block; color: #fff9ed; font-size: .81em; font-weight: inherit; }
.campaign-intro {
  margin-top: 25px !important;
  color: #e3d8cb;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}
#main #top .hero-sample-link {
  margin-top: 30px;
  min-height: 57px;
  padding: 10px 20px;
  border: 1px solid #f0d3a3;
  border-radius: 7px;
  background: #efd2a0;
  color: #20160d;
  box-shadow: 0 10px 26px #0004;
}
#main #top .hero-sample-link:hover { background: #ffe6bd; }
#main #top .hero-sample-link:focus-visible { outline: 2px solid #211609; outline-offset: -6px; }
.campaign-hero__visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}
.campaign-hero__visual::before,
.campaign-hero__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 4% 12% 12%;
  border: 1px solid #c99d6545;
  border-radius: 48% 48% 2px 2px;
}
.campaign-hero__visual::after { inset: 6% 0% 9% 8%; border-color: #c99d6524; }
.campaign-hero__visual .ncs-stage-book { margin: 0; }
.campaign-hero__visual .ncs-editorial-book {
  display: block;
  width: 106%;
  max-width: none;
  height: auto;
  margin-left: -3%;
  filter: drop-shadow(6px 21px 23px #0009);
}

.campaign-index { background: #fffaf1; border-bottom: 1px solid var(--campaign-rule); }
.campaign-index .shell { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.campaign-index a {
  display: grid;
  place-items: center;
  min-height: 57px;
  padding: 8px 6px;
  color: #392c21;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
.campaign-index a + a { border-left: 1px solid var(--campaign-rule); }
.campaign-index a:hover { background: #f3e6d1; }
#main .campaign-index a:focus-visible { outline-offset: -4px; }

#reform.campaign-reform { background: var(--campaign-paper); }
.campaign-heading { margin-bottom: clamp(26px, 4vw, 42px); }
#main .campaign-heading h2 { font-size: clamp(30px, 4.5vw, 54px); }
.campaign-heading p { margin-top: 10px; color: #685644; font-size: 16px; }
.campaign-reform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.campaign-reform__grid #reform-intro { grid-area: auto; max-width: none; }
.campaign-reform__grid > * { min-width: 0; }
.campaign-reform__grid h3 {
  margin: 0 0 12px;
  color: #2b2117;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.4;
  letter-spacing: -.03em;
}
.campaign-guide { scroll-margin-top: 20px; }
.campaign-guide-topics {
  display: grid;
  gap: 6px;
  margin: 13px 0 10px;
  padding-left: 19px;
  color: #443628;
  font-size: 15px;
}
#reform .reform-deck { margin-top: clamp(22px, 3vw, 32px); }
#reform-intro .compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--campaign-rule);
  border-radius: 13px;
  background: #fffdfa;
  color: #35281c;
}
#reform-intro .compare__item {
  min-width: 0;
  padding: 14px 9px;
}
#reform-intro .compare__item--new {
  padding: 14px 9px;
  border-radius: 9px;
  background: #f0dfc5;
}
#reform-intro .compare__arrow { padding-inline: 5px; color: #805b31; }
#reform-intro .compare__label { font-size: 13px; }
#reform-intro .compare__count { font-size: clamp(40px, 6vw, 65px); }
#reform-intro .hero__notice { color: #635442; }
.campaign-source { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 17px !important; font-size: 13px; }
.campaign-source a { color: #6b4927; }
.reform-deck {
  position: relative;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid #d9c9b3;
  border-radius: 15px;
  background: #fffdfa;
  box-shadow: 0 12px 26px #4930130a;
}
.reform-deck__header { margin-bottom: 17px; }
.reform-deck__header h3 { color: #211722; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.25; }
.reform-deck__view { min-height: 123px; }
.reform-deck__panel:not([hidden]) { animation: campaign-card-in 370ms ease-out both; }
@keyframes campaign-card-in { from { opacity: .4; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
.reform-pair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px; align-items: center; }
.reform-pair div { padding: 10px 12px; border-radius: 8px; background: #f3eee5; }
.reform-pair div:last-child { background: #ead7ba; }
.reform-pair small { display: block; color: #68513a; font-size: 12px; }
.reform-pair strong { display: block; font-size: clamp(16px, 2.15vw, 22px); color: #251a10; line-height: 1.28; }
.reform-pair > span { color: #835825; }
.reform-deck__panel p { margin: 10px 0 0 !important; color: #53463a; font-size: 15px; }
.reform-deck__panel a { display: inline-block; margin-top: 8px; color: #724a24; font-size: 14px; font-weight: 750; }
.reform-deck__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-top: 12px; }
#reform .reform-deck__controls button { min-width: 44px; min-height: 44px; border: 1px solid #cbb79b; border-radius: 6px; color: #4d3521; font-weight: 750; }
#reform .reform-deck__controls button:hover { background: #f1e4d1; }
.reform-deck__controls .reform-deck__count { min-width: 42px; text-align: center; color: #5e4935; font-size: 13px; }
.reform-deck__controls .ncs-rotation-toggle { margin-left: auto; }

#main .campaign-samples { background: #f0e5d6; }
#main .campaign-samples .head { border-top-color: #a67d49; border-top-width: 1px; }
#main .campaign-samples .preview-grid { align-items: stretch; gap: 23px; }
#main .campaign-samples .preview-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
  padding: 0;
  background: #fffcf6;
  border: 1px solid #d9c9b6;
  border-radius: 13px;
  box-shadow: 0 13px 32px #442b120d;
  overflow: hidden;
}
.sample-image {
  display: grid;
  place-items: end center;
  height: clamp(165px, 23vw, 236px);
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, #61504e, #29242c 69%);
}
.sample-image--module { background: radial-gradient(ellipse at bottom, #7e573e, #302625 72%); }
.sample-image img {
  display: block;
  width: 49%;
  min-width: 142px;
  max-width: 202px;
  height: auto;
  margin-top: 26px;
  border: 1px solid #ffffff55;
  border-radius: 3px;
  rotate: -6deg;
  box-shadow: 12px 8px 24px #0006;
}
.sample-image--module img { rotate: 6deg; }
.sample-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 29px);
}
#main .campaign-samples .preview-label {
  width: 100%;
  border-bottom: none;
  color: #603d20;
}
#main .campaign-samples .sample-benefits { width: 100%; margin-bottom: 18px; }
#main .campaign-samples .sample-pdf-link {
  margin-top: auto;
  border-radius: 6px;
  background: #211c23;
}
#main .campaign-samples .sample-pdf-link:hover { background: #80562d; color: white; }

@media (max-width: 700px) {
  .campaign-hero__grid { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 25px; padding-block: 38px 28px; }
  .campaign-edition { margin-bottom: 18px !important; font-size: 13px; }
  #main .campaign-title { font-size: clamp(34px, 8.75vw, 53px); }
  .campaign-title strong { font-size: 1em; }
  .campaign-intro { margin-top: 17px !important; }
  #main #top .hero-sample-link { margin-top: 23px; }
  .campaign-hero__visual { max-width: 300px; }
  .campaign-hero__visual .ncs-editorial-book { width: 100%; margin-left: 0; }
  .campaign-reform__grid { grid-template-columns: minmax(0,1fr); }
  .reform-deck__view { min-height: 135px; }
  .campaign-index a { font-size: 12px; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .reform-deck__panel:not([hidden]) { animation: none; }
}

/* Restart motion each time the content enters the viewport. */
@media (prefers-reduced-motion: no-preference) {
  #top .campaign-enter :is(.campaign-edition, .campaign-title span, .campaign-title strong,
    .campaign-intro, .hero-sample-link, .campaign-hero__visual) {
    animation: campaign-hero-enter 620ms cubic-bezier(.2, .72, .26, 1) both;
  }

  #top .campaign-enter .campaign-title span { animation-delay: 90ms; }
  #top .campaign-enter .campaign-title strong { animation-delay: 175ms; }
  #top .campaign-enter .campaign-intro { animation-delay: 245ms; }
  #top .campaign-enter .hero-sample-link { animation-delay: 315ms; }
  #top .campaign-enter .campaign-hero__visual { animation-delay: 180ms; }

  #top .hero-sample-link:focus-visible { opacity: 1 !important; translate: none !important; }

  /* Animate the contents so the observer target keeps a stable position. */
  .campaign-enter:not(.campaign-hero__grid) > * {
    animation: campaign-section-enter 560ms cubic-bezier(.2, .72, .26, 1) both;
  }
}

@keyframes campaign-hero-enter {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes campaign-section-enter {
  from { opacity: .28; translate: 0 17px; }
  to { opacity: 1; translate: 0 0; }
}

/* Render the player at a native 16:9 aspect ratio with room for HD playback. */
#guide .video-media {
  overflow: hidden;
  border-radius: 12px;
  background: #0f0f0f;
  box-shadow: 0 9px 22px #38281028;
}

#guide .video-media iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 0;
}

#guide .video-media iframe[hidden] { display: none; }


#main .ncs-rotation-toggle.has-rotation-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.rotation-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 16px;
}

.rotation-icon::before,
.rotation-icon::after {
  position: absolute;
  top: 1px;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.rotation-icon::before { left: 2px; }
.rotation-icon::after { right: 2px; }

[data-paused="true"] .rotation-icon::before {
  left: 4px;
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 7px 0 7px 11px;
  border-left-color: currentColor;
  border-radius: 0;
  background: transparent;
}

[data-paused="true"] .rotation-icon::after { display: none; }

#guide .guide-watch-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 15px;
  color: #f7dfb8;
  text-underline-offset: 3px;
}
