/* OranCraft v1.0 production design system — loaded after legacy component styles. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --motion-fast: 150ms;
  --motion-normal: 240ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container-width: 1180px;
  --focus: #ffb83f;
}
html {
  overflow-x: hidden;
  scroll-padding-top: 100px;
}
body {
  min-width: 320px;
  overflow-wrap: anywhere;
}
main {
  min-width: 0;
}
img {
  max-width: 100%;
  height: auto;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:active,
.btn:active {
  transform: translateY(1px);
}
[hidden],
.hidden {
  display: none !important;
}
.wrap {
  width: min(
    calc(100% - clamp(24px, 4vw, 44px)),
    var(--container-width)
  ) !important;
}
.section {
  padding-block: clamp(52px, 7vw, 88px);
}
.section-head h2,
.story-text h2 {
  max-width: 22ch;
  text-wrap: balance;
}
.section-head p,
.story-text p {
  max-width: 68ch;
}
.feature-card,
.announcement-mini-card,
.supporter-card,
.portal-card,
.announcement-index-card {
  transition:
    transform var(--motion-normal) var(--ease-out),
    box-shadow var(--motion-normal) var(--ease-out),
    border-color var(--motion-normal) var(--ease-out);
}
.feature-cover,
.announcement-mini-cover,
.story-image {
  contain: layout paint;
}
.feature-cover img,
.announcement-mini-cover img,
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oran-brand-hero.oran-depth-hero {
  min-height: clamp(680px, calc(100svh - 88px), 820px) !important;
  border: 0 !important;
  outline: 0 !important;
}
.oran-brand-hero.oran-depth-hero::before {
  inset: -2px !important;
  transform: translate(var(--hero-x, 0), var(--hero-y, 0)) scale(1.022) !important;
  mask-image: linear-gradient(#000 0 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0 86%, transparent 100%);
}
.oran-depth-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 420px) !important;
  gap: clamp(30px, 4vw, 58px) !important;
  padding-top: clamp(96px, 14vh, 132px) !important;
  padding-bottom: 150px !important;
}
.hero-brand-stage {
  min-width: 0;
}
.hero-brand-logo {
  width: min(540px, 44vw) !important;
}
.depth-paper-card {
  width: 100%;
  max-width: 420px;
  max-height: none;
}
.depth-paper-card h1 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.depth-hud {
  left: 50% !important;
  right: auto !important;
  width: min(860px, calc(100% - 40px)) !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(
      130px,
      0.72fr
    ) auto !important;
}
.depth-hud > div {
  overflow: hidden;
}
.depth-hud .copy-mini {
  min-width: 116px !important;
}
.oran-site-header {
  isolation: isolate;
}
.oran-site-header .oran-nav {
  position: relative;
  z-index: 2;
}
.oran-menu-toggle {
  transition:
    background-color var(--motion-fast),
    border-color var(--motion-fast);
}
.oran-site-header::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 20, 0.66);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-normal);
  z-index: 0;
}
.oran-site-header.menu-open::after {
  opacity: 1;
  pointer-events: auto;
}
.oran-site-header.menu-open .oran-navlinks {
  z-index: 3;
}
.oran-navlinks a,
.oran-navlinks button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.global-toast {
  min-height: 48px;
}
.modal-card {
  max-height: min(86svh, 900px);
}
.empty-state,
.ornament-empty {
  min-height: 180px;
}
.skeleton {
  contain: layout paint;
}
.footer-links,
.oran-footer-links {
  flex-wrap: wrap;
}
.oran-footer-main {
  align-items: start;
}
.notification-drawer {
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(78svh, 720px);
  overflow: auto;
}
.notification-item {
  min-width: 0;
}
.notification-item p {
  overflow-wrap: anywhere;
}
.error-code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
@media (max-width: 1100px) {
  .oran-depth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px) !important;
  }
  .hero-brand-logo {
    width: min(500px, 46vw) !important;
  }
  .depth-hud {
    width: min(820px, calc(100% - 32px)) !important;
  }
}
@media (max-width: 960px) {
  .oran-brand-hero.oran-depth-hero {
    min-height: 920px !important;
  }
  .oran-depth-layout {
    grid-template-columns: 1fr !important;
    padding-top: 110px !important;
    padding-bottom: 190px !important;
  }
  .hero-brand-logo {
    width: min(560px, 78vw) !important;
  }
  .depth-paper-card {
    max-width: 540px;
  }
  .depth-hud {
    grid-template-columns: 1fr 1fr auto !important;
  }
  .depth-hud > div:nth-child(3) {
    display: none !important;
  }
}
@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }
  .oran-navlinks {
    max-height: calc(100svh - 92px);
    overflow: auto;
  }
  .oran-site-header.menu-open .oran-navlinks {
    display: flex;
  }
  .oran-site-header.menu-open::after {
    top: 0;
  }
  .oran-menu-toggle {
    z-index: 4;
  }
}
@media (max-width: 700px) {
  .oran-brand-hero.oran-depth-hero {
    min-height: 880px !important;
  }
  .oran-depth-layout {
    padding-top: 104px !important;
    padding-bottom: 188px !important;
  }
  .hero-brand-logo {
    width: min(500px, 90vw) !important;
  }
  .depth-paper-card {
    max-width: 100%;
    transform: none !important;
  }
  .depth-hud {
    width: calc(100% - 24px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .depth-hud > div:nth-child(2),
  .depth-hud > div:nth-child(3) {
    display: none !important;
  }
  .hero-tagline-plaque {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-hero h1 {
    font-size: clamp(36px, 12vw, 52px) !important;
  }
  .notification-drawer {
    left: 12px;
    right: 12px;
    width: auto;
  }
}
@media (max-width: 420px) {
  .oran-brand-hero.oran-depth-hero {
    min-height: 850px !important;
  }
  .oran-depth-layout {
    padding-top: 94px !important;
    padding-bottom: 180px !important;
  }
  .depth-paper-card {
    padding: 22px 17px 25px !important;
  }
  .depth-paper-card h1 {
    font-size: clamp(23px, 8vw, 30px) !important;
  }
  .hero-brand-copy {
    display: none;
  }
  .hero-tagline-plaque {
    font-size: 9px;
  }
  .oran-copy-ip {
    white-space: normal;
  }
  .global-toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .oran-brand-hero.oran-depth-hero::before {
    transform: scale(1.01) !important;
  }
  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
  .skeleton::after {
    animation: none !important;
  }
  .pixel-btn::after {
    display: none !important;
  }
}

/* Sponsor checkout layout correction — the form uses the document scroll. */
.sponsor-page-section {
  overflow-x: clip;
}
.sponsor-layout {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px) !important;
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}
.sponsor-layout > *,
.sponsor-plan-grid,
.sponsor-checkout-card,
#sponsorForm {
  min-width: 0;
}
.sponsor-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sponsor-plan-card {
  width: 100%;
  min-width: 0;
}
.sponsor-plan-card strong,
.sponsor-plan-card p {
  overflow-wrap: anywhere;
}
.sponsor-checkout-card {
  position: relative !important;
  top: auto !important;
  width: 100%;
  max-height: none !important;
  height: auto;
  overflow: visible;
}
.field-public input,
.field-public textarea,
.field-public select,
.money-input,
.discount-box {
  min-width: 0;
  max-width: 100%;
}
.discount-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.privacy-box,
.public-check,
.public-check span,
.checkout-summary > div {
  min-width: 0;
}
.public-check span {
  overflow-wrap: anywhere;
}
.checkout-summary > div {
  align-items: flex-start;
}
.checkout-summary strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .sponsor-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .sponsor-checkout-card {
    width: min(100%, 760px);
    margin-inline: auto;
  }
}
@media (max-width: 680px) {
  .sponsor-plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sponsor-checkout-card {
    padding: clamp(16px, 5vw, 20px) !important;
    border-radius: 16px;
  }
  .discount-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .discount-row .btn {
    width: 100%;
  }
  .checkout-summary > div {
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .sponsor-page-section {
    padding-top: 38px !important;
  }
  .sponsor-checkout-card {
    padding: 15px !important;
  }
  .public-check {
    padding: 11px 10px;
  }
  .checkout-summary {
    padding-inline: 8px;
  }
}
