* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #f5f3ed;
  color: #25243c;
  font:
    16px/1.75 Arial,
    sans-serif;
}
a {
  color: inherit;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #eb682d;
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -70px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.site-header {
  background: #f5f3edf5;
  border-bottom: 1px solid #dedcd6;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(15px);
}
.header-row {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand b {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #312d66;
  color: #fff;
  font-size: 19px;
  letter-spacing: -1px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  font-weight: 600;
  line-height: 1;
}
.desktop-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.desktop-nav a {
  font-size: 14px;
  text-decoration: none;
  color: #626070;
  white-space: nowrap;
}
.desktop-nav a[aria-current] {
  color: #312d66;
  font-weight: bold;
  border-bottom: 2px solid #ee7844;
}
.top-login {
  background: #312d66;
  color: white;
  padding: 9px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.mobile-menu {
  display: none;
}
.crumb {
  font-size: 12px;
  color: #716e7b;
  margin: 25px 0;
}
.crumb a {
  text-decoration: none;
}
.editor-main {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px 70px;
}
.editor-hero {
  background: #302b62;
  color: #fff;
  position: relative;
  border-radius: 20px;
  padding: 54px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 30px;
  align-items: center;
}
.editor-hero:after {
  content: "";
  width: 320px;
  height: 320px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  position: absolute;
  right: -80px;
  top: -100px;
  pointer-events: none;
}
.editor-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f7b896;
  font-weight: bold;
}
.editor-hero h1 {
  font-size: clamp(32px, 4vw, 53px);
  line-height: 1.13;
  letter-spacing: -1.8px;
  margin: 20px 0;
}
.editor-lead {
  font-size: 16px;
  color: #e0ddec;
  max-width: 660px;
}
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 10px;
}
.editor-actions a {
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #c8c2e7;
  background: #fff;
  color: #302b62;
  font-weight: bold;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.editor-actions a.editor-primary {
  background: #f5824b;
  border-color: #f5824b;
  color: #211b32;
}
.editor-actions a:hover {
  filter: brightness(0.95);
}
.editor-caption {
  font-size: 11px;
  opacity: 0.75;
}
.hero-art {
  position: relative;
  z-index: 1;
  background: #ffffff0b;
  border: 1px solid #ffffff25;
  border-radius: 18px;
  padding: 24px;
  transform: rotate(3deg);
}
.hero-art img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.hero-art strong {
  display: block;
  font-size: 21px;
  margin-top: 18px;
}
.hero-art p {
  font-size: 12px;
  color: #d4d0e8;
  margin: 4px 0;
}
.art-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff20;
  padding-top: 14px;
  margin-top: 14px;
  font-size: 11px;
  color: #ecc4a9;
}
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dedcd6;
  border-radius: 12px;
  background: #fff;
  margin: 25px 0 40px;
}
.journey a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-decoration: none;
}
.journey a + a {
  border-left: 1px solid #e7e4df;
}
.journey b {
  font-size: 23px;
  color: #d76b36;
}
.journey strong {
  font-size: 14px;
  display: block;
}
.journey small {
  font-size: 12px;
  color: #7c7786;
}
.reading-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}
.reading-side {
  position: sticky;
  top: 112px;
}
.side-label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #8b7b6b;
}
.editor-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #d9d6cf;
}
.editor-nav a {
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid #dedcd6;
  color: #605b70;
}
.side-help {
  background: #e9e5f3;
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
}
.side-help strong {
  font-size: 16px;
}
.side-help p {
  font-size: 12px;
  color: #686078;
}
.side-help a {
  font-size: 13px;
  color: #4a3b88;
}
.editor-section {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #dcd9d2;
  scroll-margin-top: 105px;
}
.editor-step {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #bb6236;
  font-weight: bold;
  margin-bottom: 12px;
}
.editor-section h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 0 0 18px;
}
.editor-section p {
  color: #625e6b;
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
}
.editor-check {
  background: #eee9dd;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 35px;
}
.editor-check strong {
  font-size: 17px;
}
.editor-check ul {
  padding-left: 20px;
  font-size: 14px;
  color: #635d62;
}
.editor-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}
.editor-related a {
  background: white;
  border: 1px solid #dedbd5;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  font-size: 13px;
}
.site-footer {
  background: #25223d;
  color: #fff;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}
.site-footer h2 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.site-footer p {
  font-size: 13px;
  color: #b9b4cd;
  max-width: 350px;
}
.site-footer h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.site-footer a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  color: #cec8df;
  margin: 8px 0;
}
.footer-bottom {
  border-top: 1px solid #ffffff15;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 11px;
  color: #aaa5bd;
}
.mobile-actions {
  display: none;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px 0 36px;
}
.home-card {
  background: white;
  border: 1px solid #dedbd5;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}
.home-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}
.home-card div {
  padding: 18px;
}
.home-card span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #b75f31;
  font-weight: bold;
}
.home-card h2 {
  font-size: 19px;
  margin: 6px 0;
}
.home-card p {
  font-size: 12px;
  color: #746c7a;
  margin: 0;
}
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}
.home-heading h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.home-heading span {
  font-size: 12px;
  color: #81798a;
}
@media (max-width: 1000px) {
  .desktop-nav {
    gap: 13px;
  }
  .header-row {
    gap: 18px;
  }
  .reading-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
  }
  .editor-hero {
    padding: 35px;
  }
  .editor-actions a {
    padding: 10px 13px;
  }
  .top-login {
    display: none;
  }
}
@media (max-width: 760px) {
  .wrap,
  .editor-main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .header-row {
    height: 72px;
    justify-content: space-between;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .mobile-menu summary {
    cursor: pointer;
    border: 1px solid #d2cddc;
    border-radius: 7px;
    padding: 5px 12px;
    list-style: none;
    font-size: 13px;
  }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: 45px;
    width: 220px;
    padding: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 30px #0002;
  }
  .mobile-menu a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    padding: 9px;
  }
  .brand {
    font-size: 26px;
  }
  .editor-hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    border-radius: 16px;
    gap: 20px;
  }
  .editor-hero h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .hero-art {
    display: none;
  }
  .journey {
    margin: 18px 0 28px;
  }
  .journey a {
    padding: 13px 9px;
    gap: 7px;
    align-items: flex-start;
  }
  .journey b {
    font-size: 17px;
  }
  .journey strong {
    font-size: 11px;
  }
  .journey small {
    font-size: 10px;
    line-height: 1.3;
    display: block;
  }
  .reading-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .reading-side {
    position: static;
  }
  .editor-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .editor-nav a {
    font-size: 12px;
  }
  .side-help {
    display: none;
  }
  .editor-section h2 {
    font-size: 24px;
  }
  .editor-section p {
    font-size: 15px;
  }
  .editor-related {
    grid-template-columns: 1fr 1fr;
  }
  .home-cards {
    grid-template-columns: 1fr;
  }
  .home-card {
    display: grid;
    grid-template-columns: 105px 1fr;
  }
  .home-card img {
    height: 100%;
    min-height: 130px;
  }
  .home-card h2 {
    font-size: 17px;
  }
  .home-heading span {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .site-footer {
    padding-bottom: 100px;
  }
  .mobile-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 12;
  }
  .mobile-actions a {
    flex: 1;
    text-align: center;
    background: #302b62;
    color: white;
    border-radius: 7px;
    padding: 9px 5px;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
  }
  .mobile-actions a:first-child {
    background: #f5824b;
    color: #211b32;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.side-access {
  background: #302b62;
  color: white;
  padding: 22px;
  border-radius: 14px;
  margin-top: 24px;
}
.side-access span {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #f6bc9e;
}
.side-access h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 12px 0;
}
.side-access p {
  font-size: 12px;
  color: #d6d0e7;
}
.side-access a {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ffffff40;
  border-radius: 7px;
  padding: 9px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: bold;
}
.side-access a:first-of-type {
  background: #f5824b;
  border-color: #f5824b;
  color: #211b32;
}
@media (max-width: 760px) {
  .side-access {
    display: none;
  }
}

/* Shared brand image: used by the header on all twelve pages. */
.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  border-radius: 10px;
}
.brand > span {
  display: block;
}
/* Very narrow phones: stack the three guide links instead of overflowing the viewport. */
@media (max-width: 360px) {
  .journey {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey a {
    min-width: 0;
    padding: 12px 18px;
    gap: 14px;
    align-items: center;
  }
  .journey a + a {
    border-left: 0;
    border-top: 1px solid #e7e4df;
  }
  .journey strong {
    font-size: 13px;
  }
  .journey small {
    font-size: 11px;
    margin-top: 3px;
  }
}
