/* Info pages */
.crumbs { padding-block: 18px 6px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.crumbs a:hover { color: var(--brown); }
.crumbs [aria-current] { color: var(--ink); }

.doc { padding-bottom: 72px; }
.doc__head { display: grid; gap: 8px; max-width: 760px; margin: 18px 0 30px; }
.doc__title { font: 600 clamp(32px, 3.6vw, 46px)/1.1 var(--serif); color: var(--ink); }
.doc__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.doc__layout > * { min-width: 0; }

/* Prose */
.doc__body { padding: 32px 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: 15px; line-height: 1.8; color: var(--text); overflow-wrap: anywhere; }
.doc__body > * + * { margin-top: 14px; }
.doc__body h2,
.doc__body h3 { margin-top: 30px; padding-top: 4px; font: 600 24px/1.25 var(--serif); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 70px); }
.doc__body > h2:first-child,
.doc__body > h3:first-child { margin-top: 0; }
.doc__body h4 { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--ink); }
.doc__body ul,
.doc__body ol { padding-left: 22px; }
.doc__body ul { list-style: disc; }
.doc__body ol { list-style: decimal; }
.doc__body li + li { margin-top: 6px; }
.doc__body li::marker { color: var(--gold); }
.doc__body strong { font-weight: 600; color: var(--ink); }
.doc__body a { color: var(--wine); border-bottom: 1px solid rgba(107, 26, 39, .3); }
.doc__body a:hover { border-color: var(--wine); }

.doc__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.doc__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.doc__table th,
.doc__table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__table th { background: var(--cream); font-weight: 600; color: var(--ink); }
.doc__table tr:last-child td { border-bottom: 0; }

/* Sidebar */
.doc__side { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 16px; }
.doc-box { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.doc-box__title { margin-bottom: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.doc-box__text { margin-bottom: 10px; font-size: 13.5px; color: var(--text); }
.doc-toc { display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.doc-toc a { display: block; padding: 5px 0; font-size: 13px; line-height: 1.4; color: var(--text); }
.doc-toc a:hover { color: var(--brown); }
.doc-links { display: grid; gap: 2px; }
.doc-links a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--text); }
.doc-links a:hover { color: var(--brown); }
.doc-links [aria-current] { font-weight: 500; color: var(--wine); }

/* FAQs */
.faqs { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: rgba(184, 138, 74, .45); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); font-size: 18px; line-height: 1; color: var(--brown); transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.faqs__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 22px; border-radius: 16px; background: var(--cream); font-size: 14px; color: var(--text); }
.faqs__cta p { flex: 1 1 320px; }
.faqs__cta strong { color: var(--ink); font-weight: 600; }

/* About */
.ab { padding-bottom: 80px; }
.ab-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 18px; }
.ab-story__media { margin: 0; overflow: hidden; border-radius: 22px; background: var(--cream); box-shadow: var(--shadow); }
.ab-story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ab-story__text { display: grid; gap: 14px; font-size: 15.5px; line-height: 1.8; color: var(--text); }
.ab-story__title { font: 600 clamp(30px, 3.4vw, 44px)/1.15 var(--serif); color: var(--ink); }
.ab-story__sign { margin-top: 4px; font-size: 38px; line-height: 1; color: var(--gold); }

.ab-team { margin-top: clamp(56px, 7vw, 96px); }
.ab-team__head { display: grid; justify-items: center; gap: 8px; margin-bottom: 28px; text-align: center; }
.ab-team__title { font: 600 clamp(28px, 3vw, 38px)/1.2 var(--serif); color: var(--ink); }
.ab-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin-inline: auto; }
.ab-team__grid li { overflow: hidden; border-radius: 18px; background: var(--cream); }
.ab-team__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.ab-team__grid li:hover img { transform: scale(1.04); }

@media (max-width: 960px) {
  .doc__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc__side { position: static; }
  .doc-box--toc { display: none; }
  .ab-story { grid-template-columns: 1fr; }
  .ab-story__media { max-width: 520px; }
}
@media (max-width: 767px) {
  .doc { padding-bottom: 48px; }
  .doc__head { margin: 10px 0 20px; }
  .doc__body { padding: 20px 16px; border-radius: 14px; font-size: 14.5px; }
  .doc__body h2,
  .doc__body h3 { font-size: 21px; }
  .faq summary { padding: 16px; font-size: 14.5px; }
  .faq p { padding: 0 16px 16px; }
  .faqs__cta .btn { width: 100%; }
  .ab { padding-bottom: 56px; }
  .ab-team__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ab-team__grid li { border-radius: 12px; }
  .ab-team__grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ab-team__grid li:last-child:nth-child(odd) img { aspect-ratio: 16 / 10; }
}
