/* Page-owned editorial taxonomy styling; all local media comes from the resolved asset packet. */
body[data-helper-page] > header[data-homepage-region="01-homepage-header-and-hero"] { background-color: #13237b; }
body[data-helper-page] > main {
  display: block;
  color: #171329;
  background: #f7f5fc;
  font-family: Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body[data-helper-page] > main * { box-sizing: border-box; }
body[data-helper-page] > main h1,
body[data-helper-page] > main h2,
body[data-helper-page] > main p,
body[data-helper-page] > main figure { margin-top: 0; }
body[data-helper-page] > main h1,
body[data-helper-page] > main h2 { font-family: Poppins, Inter, Helvetica, Arial, sans-serif; letter-spacing: -.035em; }
body[data-helper-page] > main h1 { margin-bottom: 22px; font-size: clamp(44px, 5.8vw, 78px); line-height: 1.02; }
body[data-helper-page] > main h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; }
body[data-helper-page] > main p { color: #514c64; }

.category-wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.category-intro { min-height: 500px; padding: 86px 0 92px; background: linear-gradient(115deg, #f4efff 0%, #fff 62%, #ebe5ff 100%); }
.category-intro-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
.category-intro-copy { max-width: 650px; }
.category-kicker { margin: 0 0 14px; color: #6332a2 !important; font-size: 13px; font-weight: 800; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.category-lead { max-width: 600px; margin-bottom: 30px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.category-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 22px; padding: 12px 20px; border: 0; border-radius: 9px; background-color: #542090; color: #fff; font-weight: 750; text-decoration: none; box-shadow: 0 10px 24px rgba(67, 25, 121, .18); transition: transform .2s ease, background-color .2s ease; }
.category-button:hover, .category-button:focus-visible { background-color: #3f1674; transform: translateY(-2px); }
.category-button:focus-visible, .category-pills a:focus-visible { outline: 3px solid #f0a833; outline-offset: 3px; }
.category-intro-art { min-height: 340px; align-items: center; justify-content: center; padding: 20px; border-radius: 26px; background: #1b1550; box-shadow: 0 24px 70px rgba(41, 22, 89, .2); }
.category-intro-art img { display: block; width: 100%; height: 330px; border-radius: 18px; object-fit: cover; }
.art-note { position: absolute; right: 4px; bottom: -20px; max-width: 270px; padding: 14px 18px; border: 1px solid #d8c6fa; border-radius: 12px; background: #fff; color: #35224d; font-size: 14px; font-weight: 650; line-height: 1.4; box-shadow: 0 12px 34px rgba(31, 20, 58, .15); }

.category-index { padding: 78px 0 82px; background: #fff; }
.section-heading { max-width: 740px; margin: 0 auto 34px; text-align: center; }
.section-heading > p:last-child { margin: 0; font-size: 17px; }
.category-search { max-width: 720px; margin: 0 auto 26px; padding: 20px; border: 1px solid #e1d9ee; border-radius: 15px; background: #fbfaff; }
.category-search label { display: block; margin-bottom: 9px; color: #211b35; font-size: 14px; font-weight: 750; }
.search-row { display: flex; gap: 10px; }
.search-row input { min-width: 0; flex: 1; min-height: 50px; padding: 11px 14px; border: 1px solid #c8bfd8; border-radius: 8px; background: #fff; color: #171329; font: inherit; }
.search-row input:focus-visible { outline: 3px solid rgba(104, 61, 163, .25); border-color: #683da3; }
.search-row button { min-height: 50px; padding: 10px 20px; border: 0; border-radius: 8px; background-color: #542090; color: #fff; font: 700 15px/1.2 Inter, Helvetica, Arial, sans-serif; cursor: pointer; }
.search-row button:hover, .search-row button:focus-visible { background-color: #3f1674; }
.search-error { min-height: 0; margin: 7px 0 0; color: #a6201a !important; font-size: 14px; font-weight: 650; }
.search-status { min-height: 0; margin: 6px 0 0; color: #3d2861 !important; font-size: 14px; }
.category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.category-pills a { padding: 9px 14px; border: 1px solid #d9c9f1; border-radius: 999px; background: #f7f2ff; color: #4a207c; font-size: 14px; font-weight: 700; text-decoration: none; }
.category-pills a:hover { background: #eae0fb; }

.category-panel { padding: 92px 0; }
.category-panel-lavender { background: #eee8fa; }
.category-panel-ink { background: #211947; color: #fff; }
.category-panel-peach { background: #fff0e7; }
.category-panel-sky { background: #e7f2ff; }
.category-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .88fr); align-items: center; gap: clamp(42px, 8vw, 112px); }
.category-panel-reverse { grid-template-columns: minmax(340px, .88fr) minmax(0, 1fr); }
.category-panel-copy { max-width: 560px; }
.category-panel-copy h2 { margin-bottom: 22px !important; }
.category-panel-copy > p:not(.category-number) { margin-bottom: 24px; font-size: 17px; line-height: 1.75; }
.category-panel-ink .category-panel-copy > p:not(.category-number) { color: #e1d9f4; }
.category-number { margin-bottom: 12px; color: #6537a1 !important; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.category-panel-ink .category-number { color: #d0aeff !important; }
.category-panel-ink h2 { color: #fff; }
.category-cues { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.category-cues li { position: relative; padding-left: 27px; color: #322a47; font-size: 15px; font-weight: 600; }
.category-cues li::before { position: absolute; top: .12em; left: 0; width: 17px; height: 17px; border-radius: 50%; background: #7240ad; content: "✓"; color: #fff; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; }
.category-panel-ink .category-cues li { color: #f2edfb; }
.category-panel-ink .category-cues li::before { background: #c69aff; color: #211947; }
.category-image { margin-bottom: 0; padding: 12px; border: 1px solid rgba(76, 48, 117, .12); border-radius: 22px; background: rgba(255, 255, 255, .75); box-shadow: 0 20px 54px rgba(41, 28, 66, .12); }
.category-image img { display: block; width: 100%; height: 320px; border-radius: 14px; object-fit: cover; }
.category-image figcaption { padding: 12px 8px 4px; color: #625a70; font-size: 13px; line-height: 1.45; }
.category-panel-ink .category-image { border-color: rgba(255,255,255,.17); background: #30255a; }
.category-panel-ink .category-image figcaption { color: #e1d9f4; }

.category-howto { padding: 94px 0; background: #fff; }
.howto-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); align-items: start; gap: clamp(50px, 8vw, 120px); }
.howto-grid > div:first-child { max-width: 480px; }
.browse-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.browse-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 19px; border: 1px solid #e5deef; border-radius: 13px; background: #fbfaff; }
.browse-steps li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #e9ddfb; color: #542090; font-size: 13px; font-weight: 800; }
.browse-steps strong { display: block; margin: 0 0 4px; color: #211b35; font-size: 16px; }
.browse-steps p { margin: 0; font-size: 14px; }

.category-continue { padding: 0 0 96px; background: #fff; }
.continue-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(30px, 5vw, 60px); border-radius: 24px; background: linear-gradient(120deg, #2a1b62, #542090 62%, #6e39aa); color: #fff; box-shadow: 0 25px 60px rgba(53, 29, 105, .2); }
.continue-card .category-kicker { color: #dcc5ff !important; }
.continue-card h2 { margin-bottom: 12px !important; color: #fff; }
.continue-card p:not(.category-kicker) { max-width: 650px; margin-bottom: 0; color: #eee7fa; }
.category-button-light { flex: 0 0 auto; background-color: #fff; color: #35145e; box-shadow: none; }
.category-button-light:hover, .category-button-light:focus-visible { background-color: #eee4fc; }

main [data-reveal] { opacity: 1; transform: none; }
main [data-reveal].reveal-pending { opacity: 0; transform: translateY(18px); }
main [data-reveal].reveal-settled { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .55s ease; }

@media (prefers-reduced-motion: reduce) {
  main [data-reveal], main [data-reveal].reveal-pending, main [data-reveal].reveal-settled { opacity: 1; transform: none; transition: none; }
  .category-button { transition: none; }
}

@media (max-width: 800px) {
  .category-wrap { width: min(100% - 44px, 620px); }
  .category-intro { padding: 58px 0 74px; }
  .category-intro-grid, .category-panel-grid, .category-panel-reverse, .howto-grid { grid-template-columns: minmax(0, 1fr); }
  .category-intro-grid { gap: 38px; }
  .category-intro-art { min-height: 0; margin: 0 0 10px; }
  .category-intro-art img { height: clamp(230px, 58vw, 360px); }
  .category-panel, .category-howto { padding: 66px 0; }
  .category-panel-reverse .category-image { order: 2; }
  .category-panel-reverse .category-panel-copy { order: 1; }
  .category-image img { height: clamp(220px, 54vw, 340px); }
  .howto-grid { gap: 30px; }
  .continue-card { align-items: flex-start; flex-direction: column; }
  .category-continue { padding-bottom: 68px; }
}

@media (max-width: 520px) {
  body[data-helper-page] > main h1 { font-size: clamp(40px, 12vw, 58px); }
  body[data-helper-page] > main h2 { font-size: clamp(29px, 8vw, 38px); }
  .category-wrap { width: calc(100% - 36px); }
  .category-intro { padding: 42px 0 56px; }
  .category-lead { font-size: 16px; }
  .category-intro-art { padding: 12px; border-radius: 18px; }
  .category-intro-art img { height: 230px; border-radius: 12px; }
  .art-note { right: 0; bottom: -24px; max-width: 230px; font-size: 12px; }
  .category-index { padding: 58px 0; }
  .category-search { padding: 15px; }
  .search-row { align-items: stretch; flex-direction: column; }
  .search-row button { width: 100%; }
  .category-pills { justify-content: flex-start; }
  .category-panel, .category-howto { padding: 55px 0; }
  .category-panel-grid { gap: 30px; }
  .category-image { padding: 8px; border-radius: 16px; }
  .category-image img { height: 220px; border-radius: 10px; }
  .browse-steps li { grid-template-columns: 38px 1fr; gap: 12px; padding: 15px; }
  .browse-steps li > span { width: 36px; height: 36px; }
  .continue-card { padding: 25px 22px; border-radius: 18px; }
  .category-continue { padding-bottom: 54px; }
}
