@font-face {
  font-family: 'Areinum Guide Serif';
  src: url('/library/_assets/guide-hub/EBGaramond-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

.guide-index-page {
  --guide-blue: #084ff0;
  --guide-ink: #090f45;
  --guide-muted: #58679c;
  --guide-line: #d9e7ff;
  background: #f9fcff;
  color: var(--guide-ink);
}
.guide-index-page .library-header,
.guide-index-page .library-footer {
  width: min(1510px, calc(100% - clamp(32px, 8vw, 128px)));
}
.guide-index-page .library-header { position: relative; z-index: 2; }
.guide-index-page .library-header nav a[href$='/guides/'] { color: var(--guide-blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 12px; }
.guide-index-page .library-header nav a:hover { color: var(--guide-blue); }
.guide-index-page main { overflow: clip; }
.guide-hub {
  position: relative;
  background: radial-gradient(ellipse at 35% 58%, #e8f4ff 0, #f9fcff 49%, #fff 86%);
  padding: 14px 0 72px;
}
.guide-hub-fieldset { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.guide-visually-hidden,
.guide-hub-radio { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.guide-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 3vw, 52px);
  width: min(1510px, calc(100% - clamp(32px, 8vw, 128px)));
  margin: 0 auto;
  align-items: start;
}
.guide-hub-left, .guide-hub-right { min-width: 0; }
.guide-hub-left { padding-top: 8px; }
.guide-hub-left h1 {
  max-width: 700px;
  margin: 0;
  color: var(--guide-ink);
  font-family: 'Areinum Guide Serif', 'Bodoni MT', Didot, Georgia, serif;
  font-size: clamp(56px, 6.8vw, 116px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.guide-hub-question { margin: 22px 0 30px; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.guide-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 225px;
  padding: 22px 24px 24px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  color: var(--guide-ink);
  box-shadow: 0 14px 30px rgba(35, 86, 157, .08), 0 2px 7px rgba(35, 86, 157, .035);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, color .24s ease, border-color .24s ease;
}
.guide-choice:hover { transform: translateY(-4px) scale(1.012); background: #f0f7ff; box-shadow: 0 19px 38px rgba(35,86,157,.15), 0 4px 12px rgba(35,86,157,.06); }
.guide-choice-art { display: block; width: 132px; height: 104px; margin-bottom: auto; }
.guide-choice-art img { width: 100%; height: 100%; object-fit: contain; object-position: left center; transform: scale(1.3); transform-origin: 40% 50%; }
.guide-choice-title { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-top: 14px; font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; hyphens: auto; }
.guide-choice-arrow { flex: none; font-size: 30px; font-weight: 400; line-height: .7; }
.guide-choice-hint { display: block; margin-top: 8px; color: var(--guide-muted); font-size: 16px; line-height: 1.35; }
.guide-choice-tick { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--guide-blue); font-size: 20px; font-weight: 700; line-height: 1; opacity: 0; }
#guide-choice-documents:checked ~ .guide-hub-layout .guide-choice--documents,
#guide-choice-approval:checked ~ .guide-hub-layout .guide-choice--approval,
#guide-choice-handover:checked ~ .guide-hub-layout .guide-choice--handover,
#guide-choice-ai:checked ~ .guide-hub-layout .guide-choice--ai { background: linear-gradient(145deg, #0865ed 0%, #0342e9 68%, #075af3 100%); border-color: #0756ef; color: #fff; box-shadow: 0 16px 35px rgba(3,79,224,.23), 0 3px 10px rgba(3,79,224,.12); }
#guide-choice-documents:checked ~ .guide-hub-layout .guide-choice--documents .guide-choice-hint,
#guide-choice-approval:checked ~ .guide-hub-layout .guide-choice--approval .guide-choice-hint,
#guide-choice-handover:checked ~ .guide-hub-layout .guide-choice--handover .guide-choice-hint,
#guide-choice-ai:checked ~ .guide-hub-layout .guide-choice--ai .guide-choice-hint { color: #eef6ff; }
#guide-choice-documents:checked ~ .guide-hub-layout .guide-choice--documents .guide-choice-tick,
#guide-choice-approval:checked ~ .guide-hub-layout .guide-choice--approval .guide-choice-tick,
#guide-choice-handover:checked ~ .guide-hub-layout .guide-choice--handover .guide-choice-tick,
#guide-choice-ai:checked ~ .guide-hub-layout .guide-choice--ai .guide-choice-tick { opacity: 1; }
#guide-choice-documents:focus-visible ~ .guide-hub-layout .guide-choice--documents,
#guide-choice-approval:focus-visible ~ .guide-hub-layout .guide-choice--approval,
#guide-choice-handover:focus-visible ~ .guide-hub-layout .guide-choice--handover,
#guide-choice-ai:focus-visible ~ .guide-hub-layout .guide-choice--ai { outline: 3px solid #0048d9; outline-offset: 4px; }
.guide-hub-right { position: relative; margin-top: -86px; }
.guide-hub-hero { width: 110%; margin-left: -3%; margin-right: -7%; }
.guide-hub-hero img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.guide-feature-stack { display: grid; margin-top: -24px; }
.guide-feature { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s; }
#guide-choice-documents:checked ~ .guide-hub-layout .guide-feature--documents,
#guide-choice-approval:checked ~ .guide-hub-layout .guide-feature--approval,
#guide-choice-handover:checked ~ .guide-hub-layout .guide-feature--handover,
#guide-choice-ai:checked ~ .guide-hub-layout .guide-feature--ai { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.guide-feature h2 { margin: 0 0 12px; color: var(--guide-ink); font-size: clamp(25px, 2.3vw, 36px); font-weight: 700; line-height: 1.1; }
.guide-feature-card { display: grid; grid-template-columns: 145px minmax(0,1fr) auto; align-items: center; gap: 20px; min-width: 0; padding: 14px 18px 14px 14px; background: rgba(255,255,255,.94); border: 1px solid var(--guide-line); border-radius: 14px; box-shadow: 0 12px 28px rgba(35,86,157,.08); }
.guide-feature-icon { display: grid; place-items: center; width: 145px; min-height: 132px; border-radius: 10px; background: #eef6ff; }
.guide-feature-icon img { width: 120px; height: 120px; object-fit: contain; transform: scale(1.16); }
.guide-feature-copy { min-width: 0; }
.guide-feature-copy h3 { margin: 0; color: var(--guide-ink); font-size: 20px; font-weight: 700; line-height: 1.18; }
.guide-feature-copy p { margin: 10px 0; color: var(--guide-muted); font-size: 15px; line-height: 1.35; }
.guide-feature-example { display: block; color: var(--guide-blue); font-size: 14px; line-height: 1.3; }
.guide-feature-link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 20px; border-radius: 10px; background: var(--guide-blue); color: #fff; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.guide-feature-link:hover { background: #003bc7; box-shadow: 0 9px 20px rgba(3,79,224,.23); transform: translateY(-2px); }
.guide-browse { display: flex; align-items: center; gap: 22px; min-height: 120px; margin-top: 14px; padding: 12px 20px; border: 1px solid var(--guide-line); border-radius: 14px; background: rgba(255,255,255,.94); color: var(--guide-ink); text-decoration: none; box-shadow: 0 12px 28px rgba(35,86,157,.08); transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease; }
.guide-browse:hover { transform: translateY(-4px) scale(1.008); background: #f0f7ff; box-shadow: 0 18px 34px rgba(35,86,157,.14); }
.guide-browse-art { display: grid; place-items: center; flex: 0 0 145px; height: 96px; }
.guide-browse-art img { width: 120px; height: 96px; object-fit: contain; transform: scale(1.16); }
.guide-browse-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.guide-browse-copy strong { font-size: 23px; line-height: 1.16; letter-spacing: -.03em; }
.guide-browse-copy > span { color: var(--guide-muted); font-size: 16px; }
.guide-browse-arrow { color: var(--guide-blue); font-size: 38px; line-height: 1; }
.guide-feature-link:focus-visible, .guide-browse:focus-visible { outline: 3px solid #0048d9; outline-offset: 4px; }
.guide-collection { padding-top: clamp(42px, 5vw, 76px); background: #fff; }
.guide-collection-intro { width: min(1320px, calc(100% - var(--gutter) * 2)); margin: 0 auto 32px; }
.guide-collection-intro h2 { color: var(--guide-ink); font-size: clamp(34px, 3vw, 48px); margin-bottom: 16px; }
.guide-collection-intro p { max-width: 58rem; color: var(--muted); font-size: 17px; }
.guide-collection .library-list { padding-bottom: 80px; }
@media (max-width: 1150px) {
  .guide-hub-right { margin-top: -42px; }
  .guide-feature-card { grid-template-columns: 110px minmax(0,1fr); }
  .guide-feature-icon { width: 110px; min-height: 108px; }
  .guide-feature-icon img { width: 90px; height: 90px; }
  .guide-feature-link { grid-column: 2; justify-self: start; }
  .guide-browse-art { flex-basis: 110px; }
}
@media (min-width: 821px) and (max-height: 1100px) {
  .guide-index-page .library-header { min-height: 72px; padding-block: 8px; }
  .guide-hub { padding: 8px 0 36px; }
  .guide-hub-left { padding-top: 0; }
  .guide-hub-left h1 { font-size: clamp(52px, 5.3vw, 82px); line-height: .9; }
  .guide-hub-question { margin: 12px 0 16px; font-size: clamp(21px, 1.9vw, 27px); }
  .guide-choice-grid { gap: 10px; }
  .guide-choice { min-height: clamp(164px, 20vh, 200px); padding: 10px 16px 14px; }
  .guide-choice-art { width: 110px; height: 76px; }
  .guide-choice-art img { transform: scale(1.42); }
  .guide-choice-title { margin-top: 8px; font-size: clamp(16px, 1.28vw, 19px); }
  .guide-choice-hint { margin-top: 5px; font-size: 14px; }
  .guide-hub-right { margin-top: -58px; }
  .guide-hub-hero { width: 100%; margin: 0; }
  .guide-hub-hero img { height: clamp(220px, 38vh, 350px); aspect-ratio: auto; }
  .guide-feature-stack { margin-top: -10px; }
  .guide-feature h2 { margin-bottom: 8px; font-size: clamp(23px, 2vw, 29px); }
  .guide-feature-card { grid-template-columns: 88px minmax(0,1fr); gap: 8px 14px; padding: 10px 14px 10px 10px; }
  .guide-feature-icon { grid-row: 1 / span 2; width: 88px; min-height: 90px; }
  .guide-feature-icon img { width: 84px; height: 84px; }
  .guide-feature-copy h3 { font-size: 18px; }
  .guide-feature-copy p { margin: 7px 0; font-size: 14px; }
  .guide-feature-link { grid-column: 2; justify-self: start; min-height: 40px; padding: 8px 16px; font-size: 15px; }
  .guide-browse { min-height: 84px; margin-top: 10px; padding: 8px 14px; }
  .guide-browse-art { flex-basis: 90px; height: 68px; }
  .guide-browse-art img { width: 86px; height: 68px; }
  .guide-browse-copy strong { font-size: 19px; }
  .guide-browse-copy > span { font-size: 14px; }
}
@media (max-width: 820px) {
  .guide-hub { padding-top: 8px; }
  .guide-hub-layout { grid-template-columns: 1fr; gap: 22px; }
  .guide-hub-left h1 { max-width: 680px; font-size: clamp(54px, 10vw, 88px); }
  .guide-hub-right { margin-top: 0; }
  .guide-hub-hero { width: min(100%, 650px); margin: -16px auto -36px; }
  .guide-choice { min-height: 200px; }
  .guide-feature-card { grid-template-columns: 100px minmax(0,1fr) auto; }
  .guide-feature-link { grid-column: auto; }
}
@media (max-width: 560px) {
  .guide-index-page .library-header,
  .guide-index-page .library-footer,
  .guide-hub-layout { width: calc(100% - 36px); }
  .guide-hub { padding-bottom: 48px; }
  .guide-hub-left h1 { font-size: clamp(48px, 12vw, 66px); line-height: .93; }
  .guide-hub-question { margin: 16px 0 22px; font-size: 23px; }
  .guide-choice-grid { gap: 10px; }
  .guide-choice { min-height: 186px; padding: 14px; border-radius: 16px; }
  .guide-choice-art { width: 84px; height: 76px; }
  .guide-choice-art img { transform: scale(1.18); }
  .guide-choice-title { margin-top: 10px; font-size: 17px; }
  .guide-choice-hint { margin-top: 6px; font-size: 14px; }
  .guide-choice-tick { top: 12px; right: 12px; width: 24px; height: 24px; font-size: 16px; }
  .guide-hub-hero { margin: -8px auto -20px; }
  .guide-feature h2 { font-size: 26px; }
  .guide-feature-card { grid-template-columns: 82px minmax(0,1fr); gap: 12px; padding: 12px; }
  .guide-feature-icon { width: 82px; min-height: 90px; }
  .guide-feature-icon img { width: 76px; height: 76px; }
  .guide-feature-copy h3 { font-size: 17px; }
  .guide-feature-copy p { font-size: 14px; }
  .guide-feature-link { grid-column: 1 / -1; width: 100%; }
  .guide-browse { gap: 14px; min-height: 96px; padding: 10px 14px; }
  .guide-browse-art { flex-basis: 78px; height: 72px; }
  .guide-browse-art img { width: 76px; height: 70px; }
  .guide-browse-copy strong { font-size: 19px; }
  .guide-browse-copy > span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-choice, .guide-feature, .guide-feature-link, .guide-browse { transition: none; }
  .guide-choice:hover, .guide-feature-link:hover, .guide-browse:hover { transform: none; }
}
