:root {
  color-scheme: light;
  --ink: #241b33;
  --paper: #f8f5fb;
  --purple: #7357c8;
  --deep: #573a9f;
  --lavender: #efe9f6;
  --muted: #635a70;
  --line: #e1d9eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--deep); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
svg { display: block; width: 24px; height: 24px; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: calc(100% - 64px); max-width: 1200px; margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 12px 16px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  background: white;
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fdfbff; border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 23px;
  font-style: italic;
  letter-spacing: 0;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f2edf7;
}
.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.tabs a[aria-current="page"] { background: white; color: var(--deep); box-shadow: 0 2px 6px #241b330b; }
.site-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 15px; font-weight: 650; text-decoration: none; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 28px 0 36px; }
.eyebrow { display: inline-block; color: var(--deep); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 16px 0 22px; font-size: clamp(40px, 4.8vw, 64px); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }
h1 em { color: var(--purple); font-style: normal; }
.lead { max-width: 570px; margin-bottom: 22px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: 14px; }
.tag { padding: 5px 12px; border: 1px solid var(--line); border-radius: 24px; background: white; color: var(--ink); font-weight: 650; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 18px; padding: 30px; border: 1px solid #e0d5ef; border-radius: 26px; background: var(--lavender); }
.hero-art::before { content: ""; position: absolute; z-index: -1; top: -75px; right: -90px; width: 330px; height: 330px; border: 1px solid #d6c8e9; border-radius: 50%; }
.connection-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fffdff; box-shadow: 0 16px 40px #4b2c8210; }
.connection-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.calendar-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--lavender); color: var(--deep); }
.connection-top b { display: block; font-size: 16px; line-height: 1.4; }
.connection-top small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.connection-card hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.permission-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tick { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%; background: #e3f1eb; color: #216457; font-size: 13px; font-weight: 800; }
.floating-seal { justify-self: end; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: white; font-size: 14px; line-height: 1.5; }
.floating-seal svg { flex: 0 0 19px; width: 19px; height: 19px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.summary-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.summary-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--lavender); color: var(--deep); font-size: 14px; font-weight: 800; }
.summary-item b { display: block; margin-bottom: 6px; font-size: 16px; line-height: 1.45; }
.summary-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.document-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 56px; padding: 42px 0 72px; }
.contents { position: sticky; top: 24px; }
.contents-label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.contents nav { display: grid; gap: 4px; }
.contents nav a { display: flex; align-items: center; min-height: 46px; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; text-decoration: none; }
.contents nav a:hover, .contents nav a.featured { background: #ede6f7; color: var(--deep); }
.contents nav a.featured { font-weight: 650; }
.contents nav a span { flex: 0 0 22px; color: var(--deep); font-size: 13px; }
.aside-note { margin-top: 24px; padding: 20px; border-radius: 14px; background: var(--lavender); color: var(--muted); font-size: 15px; }
.aside-note b { display: block; margin-bottom: 8px; color: var(--ink); }
.aside-note a { display: inline-flex; align-items: center; min-height: 44px; }
.document { min-width: 0; }
.document section { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 18px; }
.section-heading > span { flex: 0 0 22px; color: var(--purple); font-size: 14px; font-weight: 800; }
h2 { margin: 0; font-size: 26px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
h3 { margin: 25px 0 10px; font-size: 19px; line-height: 1.45; letter-spacing: -.01em; }
.document p, .document li, .document dd { color: var(--muted); font-size: 16px; line-height: 1.85; }
.document p { margin-bottom: 16px; }
.document strong { color: var(--ink); font-weight: 650; }
.document ul, .document ol { padding-left: 23px; }
.document li { padding-left: 4px; margin: 10px 0; }
.identity { margin: 20px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.identity p { margin: 0; }
.identity p + p { margin-top: 6px; }
.spotlight { padding: 28px !important; border: 1px solid #ded3ef !important; border-radius: 18px; background: #f0ebf8; }
.small-eyebrow { display: block; margin-bottom: 14px; color: var(--deep); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.permission-list { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); margin: 22px 0; border: 1px solid #ddd3e9; border-radius: 12px; background: #fffdff; }
.permission-list dt, .permission-list dd { padding: 18px; }
.permission-list dt:nth-of-type(n + 2), .permission-list dd:nth-of-type(n + 2) { border-top: 1px solid var(--line); }
.permission-list dt { color: var(--ink); font-weight: 650; line-height: 1.6; }
.permission-list dd { margin: 0; }
code { font-size: .9em; overflow-wrap: anywhere; }
.callout { padding: 18px 20px; border-left: 3px solid var(--purple); border-radius: 0 10px 10px 0; background: white; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 19px; background: var(--ink); color: white; }
.contact-panel h2 { font-size: 25px; }
.contact-panel p { margin: 9px 0 0; color: #ded4ea; }
.button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 48px; padding: 12px 18px; border: 1px solid #c8b6ee; border-radius: 10px; background: #c8b6ee; color: #302047; font-size: 16px; font-weight: 750; line-height: 1.5; text-align: center; text-decoration: none; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fdfbff; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; }
.footer-bottom { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom a { color: inherit; }

@media (max-width: 1060px) {
  .site-link { display: none; }
  .hero { gap: 30px; }
  .hero-art { padding: 22px; }
  .connection-card { padding: 20px; }
  .document-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 32px; }
  .summary-item { padding: 17px; gap: 10px; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-direction: column; justify-content: center; gap: 14px; padding-block: 16px; }
  .tabs { width: 100%; max-width: 440px; }
  .tabs a { flex: 1; padding-inline: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 22px 0 28px; }
  h1 { font-size: clamp(38px, 9vw, 56px); }
  .lead { font-size: 17px; }
  .hero-art { width: 100%; max-width: 480px; margin-inline: auto; padding: 24px; }
  .summary-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 28px; }
  .summary-item { gap: 14px; padding: 18px; }
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .contents { position: static; }
  .contents nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .contents nav a { height: 100%; font-size: 15px; }
  .aside-note { display: none; }
  .section-heading { gap: 10px; }
  h2 { font-size: 24px; }
  .spotlight { padding: 22px !important; }
  .permission-list { grid-template-columns: minmax(0, 1fr); }
  .permission-list dt { padding-bottom: 6px; }
  .permission-list dd { padding-top: 0; }
  .permission-list dd:nth-of-type(n + 2) { border-top: 0; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .tabs a { font-size: 14px; padding-inline: 8px; }
  .hero-art { padding: 18px; }
  .connection-card { padding: 17px; }
  .connection-top { align-items: flex-start; gap: 10px; }
  .calendar-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .contents nav { grid-template-columns: minmax(0, 1fr); }
  .spotlight { padding: 18px !important; }
  .identity { padding: 18px; }
  .contact-panel { padding: 22px; }
  .contact-panel .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; }
  .wrap { width: 100%; max-width: none; }
  .skip-link, .tabs, .site-link, .breadcrumbs, .hero-art, .summary-grid, .contents, .footer, .contact-panel { display: none; }
  .header-inner { min-height: 60px; padding: 0; align-items: flex-start; }
  .hero, .document-layout { display: block; padding: 20px 0; }
  h1 { font-size: 32pt; }
  h2 { font-size: 18pt; break-after: avoid; }
  h3 { break-after: avoid; }
  .document p, .document li, .document dd { color: black; font-size: 11pt; }
  .spotlight, .identity, .callout, .permission-list { background: white; }
  a { color: inherit; }
}
