/* Help centre layout, isolated from the installation page and Excel runtime. */
.guide-page { background: #fff; }
.guide-hero { padding: 55px 0 38px; border-bottom: 1px solid var(--line); }
.guide-hero .overline { color: #8b6842; margin-bottom: 17px; }
.guide-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 650; letter-spacing: -1.5px; }
.guide-hero > p:not(.overline) { margin: 17px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.guide-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.guide-quick-links a { display: flex; align-items: center; gap: 24px; border: 1px solid #dce5ed; border-radius: 6px; padding: 11px 15px; font-size: 12px; text-decoration: none; background: #fbfcfe; }
.guide-quick-links a:hover { background: #f0f5f9; border-color: #9fb7cb; }
.guide-quick-links span { color: #7c94a7; }
.guide-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 58px; padding: 40px 0 48px; align-items: start; }
.guide-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 3px 0; }
.guide-nav .overline { font-size: 9px; margin-bottom: 14px; }
.guide-nav-links { display: flex; flex-direction: column; gap: 3px; }
.guide-nav-links a { display: flex; gap: 11px; align-items: baseline; padding: 9px 9px 9px 0; color: #536d82; font-size: 12px; text-decoration: none; line-height: 1.5; }
.guide-nav-links a span { color: #9aaab7; font-size: 9px; }
.guide-nav-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.sidebar-support { border-top: 1px solid var(--line); margin: 23px 12px 0 0; padding-top: 24px; }
.support-mark { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid #dce5ed; border-radius: 50%; color: #6b879e; margin-bottom: 11px; font-size: 12px; }
.sidebar-support strong { display: block; font-size: 12px; font-weight: 600; color: var(--navy); }
.sidebar-support p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 8px 0 11px; }
.sidebar-support a { font-size: 11px; text-decoration: none; }
.sidebar-support a span { padding-left: 5px; }
.guide-content { min-width: 0; }
.guide-section { scroll-margin-top: 26px; padding: 35px 0 38px; border-bottom: 1px solid var(--line); }
.guide-section:first-child { padding-top: 0; }
.guide-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.guide-section-number { display: flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 28px; height: 28px; font-size: 10px; border-radius: 5px; background: #edf3f8; color: #66849c; }
.guide-section h2 { font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -.55px; }
.guide-section p, .guide-section li, .guide-section dd { color: var(--muted); font-size: 14px; line-height: 1.85; }
.guide-section > p { margin: 12px 0 18px; max-width: 720px; }
.guide-section strong { color: #36536b; font-weight: 600; }
.guide-section code { background: #eef3f7; color: #2e536e; padding: 2px 4px; border-radius: 3px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; overflow-wrap: anywhere; }
.platform-guides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 24px 0 18px; }
.platform-guide { min-width: 0; scroll-margin-top: 24px; background: #f8fafc; border: 1px solid #e1e8ee; border-radius: 9px; padding: 22px 20px 17px; }
.platform-guide-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--navy); }
.platform-guide-title svg { width: 22px; height: 22px; flex-shrink: 0; }
.platform-guide-title h3 { font-size: 17px; font-weight: 600; margin: 0; }
.instruction-list { margin: 15px 0 18px; padding-left: 20px; }
.instruction-list li { padding-left: 5px; margin-bottom: 10px; }
.instruction-list li::marker { font-size: 11px; font-weight: 600; color: #6c879c; }
.platform-guide .instruction-list { padding-left: 17px; margin-bottom: 20px; }
.platform-guide li { font-size: 13px; line-height: 1.85; margin-bottom: 13px; }
.platform-guide .platform-footnote { margin: 0; padding-top: 12px; border-top: 1px solid #e0e7ee; font-size: 10px; color: #73899b; line-height: 1.7; }
.guide-disclosure { border-bottom: 1px solid #e1e8ef; }
.guide-disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 2px; font-size: 12px; color: #294d6a; font-weight: 600; list-style: none; line-height: 1.6; }
.guide-disclosure summary::-webkit-details-marker { display: none; }
.guide-disclosure summary > span { font-size: 19px; font-weight: 400; line-height: 1; color: #7d95a9; flex-shrink: 0; }
.guide-disclosure[open] summary > span { transform: rotate(45deg); }
.guide-disclosure > div { padding: 0 20px 17px 2px; }
.guide-disclosure > div p { margin: 0 0 12px; }
.guide-disclosure > div p:last-child { margin-bottom: 0; }
.guide-note { padding: 15px 18px; border-left: 3px solid #93adc3; background: #f1f6fa; border-radius: 0 6px 6px 0; margin: 21px 0; }
.guide-note > strong { display: block; font-size: 12px; color: #3d5e78; }
.guide-note p { margin: 5px 0 0; font-size: 12px; }
.guide-note-warning { background: #fcf8f0; border-left-color: #d5b179; }
.guide-note-warning > strong { color: #866638; }
.guide-note-warning p { color: #79674a; }
.formula-guide { border: 1px solid #e0e8ef; border-radius: 9px; padding: 22px; margin-top: 20px; scroll-margin-top: 24px; }
.formula-guide-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 17px; }
.function-badge { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .08em; padding: 5px 8px; background: #edf4ef; color: #47745a; border-radius: 4px; }
.formula-guide h3 { font-size: 16px; font-weight: 600; margin: 0; }
.formula-guide p { font-size: 13px; margin: 12px 0; }
.guide-code, .guide-path { display: block; max-width: 100%; overflow-x: auto; margin: 14px 0; border-radius: 6px; padding: 15px 16px; font-size: 11px; line-height: 1.8; }
.guide-code { color: #e5f0f7; background: #123b60; border-left: 3px solid #7aa68c; }
.guide-code code { color: inherit; background: transparent; padding: 0; white-space: pre; user-select: all; }
.guide-path { background: #f0f4f7; border: 1px solid #e1e8ef; }
.guide-path code { background: transparent; padding: 0; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.formula-guide .guide-note { margin-bottom: 0; }
.refresh-options { margin: 22px 0 20px; }
.refresh-options > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid #e5ebf0; }
.refresh-options dt { font-size: 12px; font-weight: 600; color: #31546f; line-height: 1.85; }
.refresh-options dd { margin: 0; font-size: 12px; }
.guide-section .guide-small { font-size: 11px; color: #728799; }
.guide-list { padding-left: 20px; }
.guide-list li { margin-bottom: 6px; }
.data-facts { margin: 22px 0 16px; }
.data-facts > div { padding-left: 17px; border-left: 2px solid #dbe6ed; margin-bottom: 22px; }
.data-facts h3 { font-size: 13px; font-weight: 600; margin: 0 0 7px; }
.data-facts p { font-size: 12px; margin: 0; }
.guide-contact { display: flex; justify-content: space-between; align-items: center; gap: 25px; background: #f2f6fa; border: 1px solid #e0e8ef; border-radius: 10px; padding: 27px; margin-top: 32px; }
.guide-contact h2 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.guide-contact p:not(.overline) { max-width: 420px; font-size: 12px; line-height: 1.8; color: var(--muted); margin: 10px 0 0; }
.guide-contact > a { flex-shrink: 0; display: block; padding: 12px 17px; font-size: 12px; font-weight: 600; color: #fff; background: var(--navy); border-radius: 6px; text-decoration: none; }
.guide-contact > a:hover { background: #1b4e79; }
.guide-contact > a span { padding-left: 10px; }

@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 158px minmax(0, 1fr); gap: 30px; }
  .platform-guides { grid-template-columns: 1fr; }
  .guide-section h2 { font-size: 21px; }
  .refresh-options > div { grid-template-columns: 1fr; gap: 4px; }
  .guide-contact { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 740px) {
  .guide-hero { padding: 35px 0 26px; }
  .guide-hero h1 { font-size: 36px; letter-spacing: -1.1px; }
  .guide-hero > p:not(.overline) { font-size: 14px; }
  .guide-quick-links { gap: 8px; margin-top: 20px; }
  .guide-quick-links a { font-size: 11px; padding: 10px 12px; gap: 16px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 24px; }
  .guide-sidebar { position: static; overflow: visible; max-height: none; min-width: 0; }
  .guide-nav .overline { margin-bottom: 9px; }
  .guide-nav-links { flex-direction: row; gap: 8px; overflow-x: auto; padding: 0 0 9px; scrollbar-width: thin; }
  .guide-nav-links a { flex-shrink: 0; border: 1px solid #e0e8ef; border-radius: 5px; padding: 8px 10px; font-size: 10px; gap: 7px; }
  .guide-nav-links a span { font-size: 8px; }
  .sidebar-support { display: none; }
  .platform-guides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guide-section { padding: 29px 0 32px; }
  .guide-section-heading { gap: 10px; }
  .guide-section h2 { font-size: 21px; }
  .guide-contact { padding: 24px; }
}
@media (max-width: 540px) {
  .desktop-break { display: none; }
  .platform-guides { grid-template-columns: minmax(0, 1fr); }
  .guide-hero h1 { font-size: 32px; }
  .guide-hero .overline { font-size: 9px; letter-spacing: .1em; }
  .guide-section h2 { font-size: 20px; }
  .guide-section-number { min-width: 25px; height: 25px; font-size: 9px; }
  .guide-section p, .guide-section li { font-size: 13px; }
  .formula-guide { padding: 18px 15px; }
  .formula-guide-heading h3 { font-size: 15px; }
  .guide-code { padding: 13px 10px; }
  .guide-code code { font-size: 10px; }
  .guide-note { padding: 13px 14px; }
  .guide-disclosure > div { padding-right: 4px; }
  .guide-contact { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-page { scroll-behavior: auto; }
}
@media print {
  .guide-sidebar, .site-header, .guide-quick-links, .guide-contact, .skip-link { display: none; }
  .guide-layout { display: block; }
  .site-shell { max-width: none; padding: 0; }
  .guide-section { break-inside: avoid; }
  .guide-code { color: #17334c; background: #f0f3f5; }
}
