/* guide.html · a documentation site. Docs header with a Hiring | Working segmented toggle (crossfades the whole
   document; hiring = orange, working = teal), then three columns: the numbered part tree, one part at a time with
   breadcrumbs and a pager, and "On this page". Phones: a Parts drop-down above the document. */

.gd { --gacc: var(--orange); --gacc-s: #fff1da; --gacc-d: var(--orange-text); --rail: #fafaf8; }
.gd[data-guide="working"] { --gacc: var(--teal-m); --gacc-s: var(--teal-soft); --gacc-d: var(--teal); }

/* ═══ 1. docs header ═══ */
.gd-top { padding: 100px 0 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--gacc-s) 70%, #fff), #fff 85%); transition: background-color .4s; }
.gd-top__in { display: grid; gap: 18px; align-items: end; max-width: 1440px; margin: 0 auto; padding: 18px var(--g) 22px; }
.gd-top__h { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.gd-top__lead { margin-top: 10px; max-width: 40em; font-size: 17px; color: var(--muted); }
.gd-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(320px, 100%); min-width: min(300px, 100%); padding: 5px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -14px rgba(3, 21, 20, .4); }
.gd-seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--gacc-d); transition: transform .5s var(--spring), background-color .4s; }
.gd[data-guide="working"] .gd-seg__thumb { transform: translateX(100%); }
.gd-seg__b { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 17px; color: var(--muted); text-decoration: none; transition: color .3s; }
.gd-seg__b[aria-current="true"] { color: #fff; }
.gd-seg__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 255, 255, .0); }
.gd-seg__b[data-g="working"] .gd-seg__dot { background: var(--teal-m); }
.gd-seg__b[aria-current="true"] .gd-seg__dot { background: #fff; }
@media (min-width: 760px) { .gd-top__in { grid-template-columns: 1fr auto; } .gd-seg { width: 300px; } }

/* ═══ 2. three columns ═══ */
.gd-docs { padding: 0 0 clamp(64px, 7vw, 110px); }
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1440px; margin: 0 auto; padding: 0 var(--g); }
.gd-tree, .gd-otp { display: none; }
@media (min-width: 1000px) {
  .gd-grid { grid-template-columns: 250px minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); padding-inline-start: 0; }
  .gd-tree { display: block; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding: 22px 14px 24px var(--g); border-right: 1px solid var(--line); background: var(--rail); scrollbar-width: thin; }
  .gd-phone { display: none; }
}
@media (min-width: 1200px) {
  .gd-grid { grid-template-columns: 260px minmax(0, 1fr) 200px; }
  .gd-otp { display: block; position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-top: 30px; }
}

/* the part tree */
.gd-tree__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 12px; font-weight: 700; font-size: 15px; color: var(--ink); }
.gd-tree__c { font-weight: 300; font-size: 13px; color: var(--faint); }
.gd-tree__l { display: grid; gap: 1px; }
.gd-tree__a { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; align-items: baseline; min-height: 40px; padding: 8px 8px 8px 6px; border-radius: 10px; font-size: 14.5px; line-height: 1.3; color: var(--text); text-decoration: none; transition: background-color .2s, color .2s; }
.gd-tree__a:hover { background: rgba(3, 21, 20, .045); color: var(--ink); }
.gd-tree__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display); font-size: 12.5px; color: var(--muted); transform: translateY(-1px); transition: background-color .3s, color .3s; }
.gd-tree__t { grid-column: 2; }
.gd-tree__s { grid-column: 2; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.gd-tree__a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(3, 21, 20, .06), 0 6px 16px -10px rgba(3, 21, 20, .35); }
.gd-tree__a[aria-current="page"] .gd-tree__n { background: var(--gacc-d); color: #fff; box-shadow: none; }
.gd-tree__sub { position: relative; display: grid; margin: 2px 0 8px 18px; padding-left: 14px; }
.gd-tree__sub:empty { display: none; }
.gd-tree__sub::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: var(--line-2); }
.gd-tree__sub a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.3; color: var(--muted); text-decoration: none; }
.gd-tree__sub a:hover { color: var(--ink); background: rgba(3, 21, 20, .04); }
.gd-tree__sub li { opacity: 0; transform: translateX(-6px); animation: gd-in .4s var(--spring) forwards; animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes gd-in { to { opacity: 1; transform: none; } }

/* the document */
.gd-doc { min-width: 0; max-width: 760px; padding-top: 26px; }
.gd-crumbs { margin-bottom: 18px; }
.gd-fade { transition: opacity .22s ease, transform .3s var(--spring); }
.gd-fade.is-out { opacity: 0; transform: translateY(8px); }
.gd-part__k { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: var(--gacc-s); color: var(--gacc-d); font-weight: 700; font-size: 13.5px; }
.gd-part__t { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.gd-part__intro { margin-top: 14px; font-size: 19.5px; line-height: 1.55; color: var(--ink); }
.gd-part.is-enter .gd-part__t, .gd-part.is-enter .gd-part__intro { animation: gd-rise .55s var(--spring) both; }
.gd-part.is-enter .gd-part__intro { animation-delay: .06s; }
@keyframes gd-rise { from { opacity: 0; transform: translateY(10px); } }
.gd-step { padding-top: 34px; scroll-margin-top: 4px; }
.gd-step h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
.gd-step__n { flex: none; font-size: .72em; color: var(--gacc-d); font-variant-numeric: tabular-nums; }
.gd-step p, .gd-part p { font-size: 17.5px; line-height: 1.65; }
.gd-step > p { margin-bottom: 14px; color: var(--text); }
.gd-ul { margin: 0 0 16px; padding-left: 1.2em; list-style: disc; font-size: 17.5px; line-height: 1.6; }
.gd-ul li { margin-bottom: 6px; }
.gd-ul li::marker { color: var(--gacc); }

/* steps */
.gd-steps { position: relative; display: grid; gap: 10px; margin: 6px 0 18px; }
.gd-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--gacc-s); }
.gd-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 17px; line-height: 1.5; }
.gd-steps__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--gacc); font-family: var(--display); font-size: 14px; color: var(--gacc-d); }
.gd-steps li > span:last-child { padding-top: 4px; }
.gd-part.is-enter .gd-steps li { animation: gd-rise .5s var(--spring) both; animation-delay: calc(.15s + var(--k, 0) * 70ms); }

/* callouts */
.gd-call { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 8px 0 18px; padding: 16px 18px; border-radius: 14px; border-left: 4px solid var(--cl); background: var(--cs); }
.gd-call svg { width: 20px; height: 20px; margin-top: 3px; color: var(--cl); }
.gd-call p { font-size: 16.5px; line-height: 1.55; color: var(--text); }
.gd-call .gd-call__t { margin-bottom: 4px; font-weight: 700; color: var(--ink); }
.gd-call--note { --cl: var(--cat-translation); --cs: #f1f2fd; }
.gd-call--warn { --cl: var(--cat-content); --cs: #fdf1f0; }
.gd-call--money { --cl: var(--cat-admin-d); --cs: #ecf8f2; }

/* tables */
.gd-tbl { margin: 8px 0 18px; }
.gd-tbl .tbl { font-size: 16px; }
.gd-tbl th[scope="row"] { font-weight: 300; }
.gd-tbl tr.is-total th, .gd-tbl tr.is-total td { font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--gacc-s) 55%, #fff); }

/* screenshot */
.gd-shot { display: grid; gap: 12px; justify-items: center; margin: 10px 0 22px; padding: 22px 18px 16px; border-radius: 20px; background: var(--paper); }
.gd-shot__ph { width: min(240px, 62vw); padding: 6px; border-radius: 30px; background: #0d1414; box-shadow: 0 30px 50px -28px rgba(3, 21, 20, .55); }
.gd-shot__ph img { width: 100%; height: auto; border-radius: 25px; }
.gd-shot figcaption { max-width: 34em; font-size: 14.5px; color: var(--muted); text-align: center; }

/* summary parts */
.gd-short { margin-top: 26px; padding: 20px 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.gd-short__k { font-weight: 700; font-size: 15px; color: var(--ink); }
.gd-short__l { display: grid; gap: 4px; margin: 10px 0 12px; padding-left: 1.4em; list-style: decimal; font-size: 16.5px; }
.gd-short__l li::marker { color: var(--gacc-d); font-weight: 700; }
.gd-short__n { font-size: 14.5px !important; color: var(--muted); }

/* was this part clear? */
.gd-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 38px; padding: 16px 18px; border-radius: 16px; background: var(--rail); box-shadow: inset 0 0 0 1px var(--line); }
.gd-fb__q { font-weight: 700; font-size: 16px !important; color: var(--ink); }
.gd-fb__b { display: flex; gap: 8px; }
.gd-fb__btn { min-width: 72px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .3s var(--spring), background-color .2s, box-shadow .2s; }
.gd-fb__btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.gd-fb__btn:active { transform: scale(.94); }
.gd-fb__btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.gd-fb__thx { display: flex; align-items: center; gap: 12px; flex-basis: 100%; }
.gd-fb__thx p { font-size: 15.5px !important; color: var(--text); }
.gd-fb__stamp { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gacc-d); }
.gd-fb__stamp svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.gd-fb.is-done .gd-fb__stamp { animation: gd-stamp .5s cubic-bezier(.3, .7, .2, 1.3) both; }
.gd-fb.is-done .gd-fb__stamp svg { animation: gd-draw .45s ease .25s forwards; }
.gd-fb.is-done .gd-fb__thx p { animation: gd-rise .5s var(--spring) .1s both; }
.gd-fb[data-v="no"] .gd-fb__stamp { background: var(--cat-translation-d); }
@keyframes gd-stamp { 0% { transform: scale(1.8) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes gd-draw { to { stroke-dashoffset: 0; } }

/* pager */
.gd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.gd-pager__a { display: grid; gap: 4px; min-height: 72px; padding: 14px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .35s var(--spring); }
.gd-pager__a:hover { box-shadow: inset 0 0 0 1.5px var(--gacc-d); transform: translateY(-2px); }
.gd-pager__a--next { text-align: right; grid-column: 2; }
.gd-pager__a[hidden] { display: none; }
.gd-pager__k { font-size: 13px; color: var(--muted); }
.gd-pager__t { font-weight: 700; font-size: 15.5px; line-height: 1.3; }

/* on this page */
.gd-otp__h { margin-bottom: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.gd-otp__l { position: relative; display: grid; border-left: 1.5px solid var(--line); }
.gd-otp__l a { position: relative; display: block; padding: 6px 0 6px 14px; font-size: 13.5px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s; }
.gd-otp__l a::before { content: ""; position: absolute; left: -1.5px; top: 6px; bottom: 6px; width: 2.5px; border-radius: 2px; background: var(--gacc-d); transform: scaleY(0); transition: transform .35s var(--spring); }
.gd-otp__l a:hover { color: var(--ink); }
.gd-otp__l a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.gd-otp__l a[aria-current="true"]::before { transform: scaleY(1); }
.gd-otp__up { display: inline-flex; align-items: center; min-height: 40px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--gacc-d); text-decoration: none; }

/* phones: parts drop-down */
.gd-phone { position: relative; margin-bottom: 14px; border-radius: 14px; background: var(--rail); box-shadow: inset 0 0 0 1px var(--line); }
.gd-phone summary { display: grid; gap: 2px; min-height: 56px; padding: 10px 44px 10px 14px; list-style: none; cursor: pointer; }
.gd-phone summary::-webkit-details-marker { display: none; }
.gd-phone summary::after { content: ""; position: absolute; right: 18px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--spring); }
.gd-phone[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.gd-phone__k { font-size: 12.5px; color: var(--muted); }
.gd-phone__now { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.gd-phone__l { display: grid; padding: 0 8px 10px; }
.gd-phone__l a { display: flex; gap: 10px; min-height: 44px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 15px; color: var(--text); text-decoration: none; }
.gd-phone__l a[aria-current="page"] { background: #fff; font-weight: 700; color: var(--ink); }
.gd-phone__l b { min-width: 1.6em; font-family: var(--display); font-size: 13px; color: var(--gacc-d); }

@media (max-width: 759px) {
  .gd-top { padding-top: 88px; }
  .gd-pager { grid-template-columns: 1fr; }
  .gd-pager__a--next { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gd-fade.is-out { opacity: 1; transform: none; }
  .gd-tree__sub li { opacity: 1; transform: none; animation: none; }
  .gd-fb__stamp svg { stroke-dashoffset: 0; }
}
