* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.75; color: #222; font-size: 16px; overflow-x: visible; }
html, body { max-width: 100%; }
.sg-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
header { background: #ffffff; color: #111; position: relative; }
.sg-header__top { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 1.25rem 0 0.75rem 0; }
.sg-site-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 0.2px; text-decoration: none; color: inherit; }
.sg-menu-btn { appearance:none; border:none; background:transparent; padding:0.25rem; cursor:pointer; line-height:0; }
.sg-menu-btn--header { position:fixed; left: 12px; top: 12px; z-index: 45; background: rgba(255,255,255,0.95); border-radius: 6px; padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
@media (max-width: 640px) { .sg-menu-btn--header { left: 0; top: 8px; padding: 4px 6px; border-radius: 0 4px 4px 0; } .sg-menu-btn--header .sg-menu-icon { width: 14px; height: 9px; } }
.sg-back-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; background: var(--sg-primary); color: var(--sg-primary-contrast); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; z-index: 40; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.sg-back-top.visible { opacity: 1; visibility: visible; }
.sg-back-top:hover { transform: scale(1.1); }
.sg-back-top svg { width: 20px; height: 20px; }
.sg-langdd { position: relative; display: inline-flex; align-items: center; justify-content: center; padding-bottom: 6px; }
.sg-langdd__btn { appearance:none; border:none; background:transparent; padding: 0; cursor:pointer; line-height: 0; }
.sg-langdd__menu { position:absolute; left: 50%; transform: translateX(-50%); top: 100%; background:#fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 4px; display:none; z-index: 40; width: max-content; max-height: 70vh; overflow-y: auto; overflow-x: hidden; }
.sg-langdd--open .sg-langdd__menu { display:block; }
.sg-langdd__item { display:flex; align-items:center; justify-content:center; padding: 4px 5px; border-radius: 8px; text-decoration:none; color:#111; }
.sg-langdd__item:hover { background: #f3f4f6; }
.sg-langdd__item svg { width: 22px; height: 16px; }
.sg-menu-btn:hover .sg-menu-icon span { background: var(--sg-primary); }
.sg-menu-icon { width: 18px; height: 12px; display:inline-flex; flex-direction:column; justify-content:space-between; }
.sg-menu-icon span { display:block; height:2px; background:#111; border-radius: 2px; }
.sg-header__divider { height: 5px; background: var(--sg-primary); width: 100%; }
.sg-breadcrumbs { padding: 0.4rem 0 0.85rem 0; font-size: 13px; color:#6b7280; }
.sg-breadcrumbs a { color: inherit; text-decoration:none; }
.sg-breadcrumbs a:hover { color: var(--sg-primary); text-decoration: underline; }
.sg-breadcrumbs__sep { padding: 0 0.4rem; }
.sg-drawer-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.55); opacity:0; pointer-events:none; transition:opacity 0.2s; z-index: 50; }
.sg-drawer { position:fixed; top:0; left:0; height:100vh; width: 360px; max-width: 90vw; background:#fafafa; color:#111; transform: translateX(-100%); transition: transform 0.25s; z-index: 60; border-right: 1px solid #e5e7eb; display:flex; flex-direction:column; }
.sg-drawer__header { display:flex; align-items:center; justify-content:space-between; padding: 1rem 1rem; border-bottom:1px solid #e5e7eb; }
.sg-drawer__title { font-weight:800; letter-spacing:0.06em; font-size: 12px; text-transform: uppercase; color:#6b7280; }
.sg-drawer__close { appearance:none; border:none; background:transparent; font-size: 22px; line-height: 1; cursor:pointer; color:#111; padding:0.25rem 0.5rem; }
.sg-drawer__content { overflow:auto; padding: 0.5rem 0; }
.sg-drawer a { color: inherit; text-decoration: none; }
.sg-drawer__item { width:100%; display:flex; align-items:center; justify-content:space-between; gap: 0.5rem; padding: 0.9rem 1.1rem; border-bottom:1px solid #eee; font-weight:700; letter-spacing:0.01em; text-transform: uppercase; font-size: 14px; font-family: inherit; line-height: 1.2; background: #ffffff; cursor:pointer; }
a.sg-drawer__item { display:flex; }
button.sg-drawer__item { appearance:none; border:none; text-align:left; }
.sg-drawer__item:hover { background: var(--sg-primary); color: var(--sg-primary-contrast); }
.sg-drawer__item:focus { outline: 2px solid var(--sg-primary); outline-offset: 2px; }
.sg-drawer__divider { height: 1px; background:#e5e7eb; margin: 0.75rem 0; }
.sg-drawer__sub { padding: 0.25rem 0 0.5rem 0; background:#fff; }
.sg-drawer__sub .sg-drawer__item { padding: 0.65rem 1.1rem 0.65rem 1.9rem; font-size: 13px; line-height: 1.25; font-weight: 500; letter-spacing:0.01em; color:#111; border-bottom: 1px solid #f3f4f6; background:#ffffff; }
.sg-drawer__sub .sg-drawer__item:hover { background: var(--sg-primary); color: var(--sg-primary-contrast); }
.sg-drawer__caret { font-size: 14px; opacity: 0.8; }
body.sg-drawer-open { overflow:hidden; }
body.sg-drawer-open .sg-drawer-backdrop { opacity: 1; pointer-events:auto; }
body.sg-drawer-open .sg-drawer { transform: translateX(0); }
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 2.5rem 1.5rem; }
@media (max-width: 640px) {
  .sg-container { padding: 0 1rem; }
  .sg-header__top { padding-left: 28px; }
  .sg-site-title { font-size: 16px; }
  main { padding: 1rem 1rem 2rem 1rem; }
  .sg-section { grid-template-columns: 1fr !important; }
}
main h1 { font-size: 34px; margin: 0 0 0.75rem 0; line-height: 1.25; }
main h2 { font-size: 24px; margin-top: 0.75rem; margin-bottom: 0.5rem; line-height: 1.25; }
main h3 { font-size: 20px; margin-top: 0.5rem; margin-bottom: 0.35rem; line-height: 1.25; }
main p { margin: 0.5rem 0; }
.sg-divider + .sg-section { margin-top: 0.75rem; }
main img { max-width: 100%; height: auto; border-radius: 4px; margin: 0; display: block; }
main .sg-section--layout-2 img, main .sg-section--layout-3 img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
@media (max-width: 640px) { main .sg-section--layout-2 img, main .sg-section--layout-3 img { aspect-ratio: auto; height: auto; object-fit: contain; } }
main figure { margin: 1rem 0; }
main iframe { max-width: 100%; }
main .sg-embed { text-align: center; }
main .sg-embed iframe { display: block; margin: 0 auto; }
main a { color: var(--sg-secondary); text-decoration: none; }
main a:hover { text-decoration: underline; }
:where(.sg-checklist) input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--sg-secondary); background: transparent; opacity: 1; filter: none; vertical-align: middle; }
:where(.sg-checklist) input[type="checkbox"][checked],
:where(.sg-checklist) input[type="checkbox"]:checked { background: var(--sg-secondary); border-color: var(--sg-secondary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M7.6 14.6 3.7 10.7l1.4-1.4 2.5 2.5 7.4-7.4 1.4 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 14px 14px; }
:where(.sg-checklist) input[type="checkbox"][disabled] { opacity: 1; }
.sg-col { min-width: 0; overflow-wrap: anywhere; }
.sg-col ul, .sg-col ol { display: block; text-align: left; padding-left: 1.25rem; margin: 1rem 0; }
.sg-col li { margin: 0.15rem 0; }
:where(figure) figcaption { margin-top: 0.25rem; font-size: 14px; color: #6b7280; font-weight: 300; font-style: italic; }
:root { --sg-primary: #873bce; --sg-secondary: #41acd2; --sg-tertiary: #fafafa; --sg-primary-contrast: #ffffff; --sg-btn-radius: 6px; --sg-btn-border: 3px; --sg-btn-gap: 10px; --sg-table-head-bg: #f3f4f6; --sg-table-head-text: #111827; --sg-table-head-weight: 700; --sg-table-zebra-odd: #ffffff; --sg-table-zebra-even: #f9fafb; --sg-table-border: #e5e7eb; }
.sg-btn-group { display: grid; gap: var(--sg-btn-gap); margin: 1.25rem 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-btn-group[data-count="1"] { grid-template-columns: 1fr; }
.sg-btn-group[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-btn-group[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sg-btn-group[data-count="5"] > :nth-child(1),
.sg-btn-group[data-count="5"] > :nth-child(2),
.sg-btn-group[data-count="5"] > :nth-child(3) { grid-column: span 2; }
.sg-btn-group[data-count="5"] > :nth-child(4),
.sg-btn-group[data-count="5"] > :nth-child(5) { grid-column: span 3; }
.sg-btn-group[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 0.4rem 1rem; border-radius: var(--sg-btn-radius); border: var(--sg-btn-border) solid var(--sg-primary); background: transparent; color: var(--sg-primary); text-decoration: none; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.sg-btn:hover { background: var(--sg-primary); color: var(--sg-primary-contrast); text-decoration: none; }
.sg-btn:active { transform: translateY(1px); }
.sg-btn { max-width: 100%; width: 100%; }
@media (max-width: 640px) { .sg-btn-group { grid-template-columns: 1fr !important; margin: 0.9rem 0; } .sg-btn-group > * { grid-column: auto !important; } }
.sg-footerbtns .sg-btn-group { margin: 0.8rem 0 0.4rem 0; }
.sg-footerbtns + .sg-footer { margin-top: 1rem; }
.sg-divider { height: 1px; background: #e5e7eb; margin: 1.5rem 0; }
.sg-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
main table:not(.sg-table) { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sg-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.sg-table td { border: 1px solid var(--sg-table-border); padding: 8px; vertical-align: top; background: #ffffff; }
.sg-table tr:first-child td { background: var(--sg-table-head-bg); color: var(--sg-table-head-text); font-weight: var(--sg-table-head-weight); }
.sg-table tr:not(:first-child):nth-child(odd) td { background: var(--sg-table-zebra-odd); }
.sg-table tr:not(:first-child):nth-child(even) td { background: var(--sg-table-zebra-even); }
.sg-toc { border: 1px solid var(--sg-primary); padding: 0; margin: 1rem 0; border-radius: 6px; background: #fafafa; }
.sg-toc__toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 18px; color: var(--sg-secondary); padding: 0.75rem 1rem; line-height: 1.4; }
.sg-toc__toggle::after { content: '▼'; font-size: 10px; transition: transform 0.2s; color: var(--sg-secondary); }
.sg-toc__list { margin: 0; padding: 0 1rem; list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.sg-toc--open .sg-toc__list { max-height: 1000px; padding: 0 1rem 0.75rem 1rem; }
.sg-toc--open .sg-toc__toggle::after { transform: rotate(180deg); }
.sg-toc__item { margin: 0.25rem 0; }
.sg-toc__item--h3 { margin-left: 1rem; }
.sg-toc a { color: var(--sg-secondary); text-decoration: none; font-size: 14px; }
.sg-toc a:hover { text-decoration: underline; }
.sg-footerbtns + .sg-footer { margin-top: 1rem; }
.sg-ratingbox { background: #f5f5f5; border: 1px solid #e5e7eb; border-radius: 5px; padding: 0.9rem 1rem; margin: 1.25rem 0; }
.sg-ratingbox__stars { color: #6b7280; font-size: 18px; letter-spacing: 1px; line-height: 1; }
.sg-ratingbox__label { font-size: 12px; color: #6b7280; margin-top: 0.35rem; }
.sg-ratingbox__meta { font-size: 15px; color: #111827; margin-top: 0.1rem; }
.sg-ratingbox__date { font-size: 12px; color: #6b7280; margin-top: 0.25rem; }
.sg-ratingbox__review { font-size: 14px; color: #111827; margin-top: 0.25rem; }
footer { background: #f5f5f5; padding: 2rem; text-align: center; margin-top: 4rem; border-top: 1px solid #ddd; }
footer a { color: var(--sg-secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.sg-footer__line { display: inline; }
.sg-footer__line--sub { font-size: 13px; line-height: 1.5; display: inline-block; }
