/* Loom guides. Builds on styles.css (variables, nav, footer). */
body.guides { overflow-x: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.g-main { padding-bottom: clamp(56px, 10vh, 120px); }
.g-hero { padding-block: clamp(112px, 17vh, 180px) clamp(20px, 4vh, 44px); }
.g-crumb { color: var(--faint); font-size: .92rem; margin-bottom: 18px; }
.g-crumb a { color: var(--soft); text-decoration: none; }
.g-crumb a:hover { color: var(--accent); }
.g-tag { font: 500 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.g-title { font: 400 clamp(2.3rem, 5.4vw, 4.4rem)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 18em; }
.g-sub { margin-top: 20px; color: var(--soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 36em; }
.g-dim { color: var(--faint); font-size: .95rem; }

.g-body { padding-top: clamp(8px, 2vh, 24px); }
.g-two { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.g-col { min-width: 0; max-width: 760px; }
.g-sec { margin-top: clamp(36px, 6vh, 64px); }
.g-sec:first-child { margin-top: 0; }
.g-sec h2 { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.012em; margin-bottom: 16px; scroll-margin-top: 96px; }
.g-sec h3 { font: 500 1.2rem/1.2 var(--serif); margin: 26px 0 10px; }
.g-sec p { color: var(--soft); margin-bottom: 14px; max-width: 38em; }
.g-sec a { color: var(--accent); text-underline-offset: 3px; }
.g-sec code, .g-note code, .g-table code { font: 400 .88em/1.4 var(--mono); background: var(--code); border-radius: 6px; padding: .12em .42em; word-break: break-word; }
.g-sec strong { color: var(--ink); font-weight: 500; }

.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.g-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--soft); }
.g-steps li > div { padding-top: 3px; }
.g-n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 500 .86rem/1 var(--sans); }
.g-cost { margin-top: 20px; padding: 14px 16px; background: var(--wash); border-radius: 14px; font-size: .96rem; }
.g-list { margin: 14px 0 0; padding-left: 1.2em; color: var(--soft); display: grid; gap: 8px; max-width: 40em; }
.g-list li::marker { color: var(--accent); }
.g-note { margin: 0 0 12px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--soft); max-width: 40em; }

.g-tw { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.g-table th, .g-table td { padding: 13px 16px 13px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--soft); }
.g-table tr:last-child td { border-bottom: 1px solid var(--line); }
.g-table thead th { color: var(--faint); font-weight: 400; font-size: .84rem; white-space: nowrap; border-top: 0; }
.g-table td:first-child { color: var(--ink); min-width: 9.5em; }
.g-enter td:last-child { white-space: nowrap; }
.g-table td:nth-child(2) { min-width: 14em; }

.g-nav { margin-top: clamp(40px, 7vh, 72px); display: flex; flex-wrap: wrap; gap: 12px; }
.g-btn { display: inline-flex; align-items: center; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--surface); font-size: .96rem; transition: border-color .25s, transform .3s var(--ease); }
.g-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.g-aside { position: sticky; top: 104px; align-self: start; }
.g-aside-in { border-left: 1px solid var(--line); padding-left: 22px; }
.g-aside-h { font: 500 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.g-aside ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.g-aside a { color: var(--soft); text-decoration: none; font-size: .95rem; line-height: 1.35; display: block; }
.g-aside a:hover { color: var(--accent); }

/* index */
.g-body-wide { max-width: none; }
.g-quick .g-steps { max-width: 44em; }
.g-quick > p { margin-top: 18px; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.g-grid-3 { margin-top: 8px; }
.g-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .3s, transform .4s var(--ease), background-color .3s; min-height: 148px; }
a.g-card:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--raised); }
.g-card h3 { font: 400 1.35rem/1.2 var(--serif); margin: 0; color: var(--ink); }
.g-card p:last-child { color: var(--soft); font-size: .95rem; line-height: 1.5; margin: 0; max-width: none; }
.g-card .g-tag { margin-bottom: 6px; }
.g-card-static p a { color: var(--accent); }
.g-find { margin-top: clamp(36px, 6vh, 60px); }
.g-find input { width: 100%; max-width: 520px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 14px 22px; outline: none; transition: border-color .25s; }
.g-find input:focus { border-color: var(--accent); }
.g-find input::placeholder { color: var(--faint); }
.g-empty { margin-top: 28px; color: var(--soft); }
.g-empty a { color: var(--accent); }
[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .g-two { grid-template-columns: minmax(0, 1fr); }
  .g-aside { display: none; }
  .g-col { max-width: none; }
}
@media (max-width: 640px) {
  .g-grid { grid-template-columns: 1fr; }
  .g-card { min-height: 0; }
  .soon-label { display: none; }
  .g-enter td:last-child { white-space: normal; }
  .g-table td:first-child { min-width: 7em; }
}

.foot a { color: var(--soft); text-underline-offset: 3px; }
.foot a:hover { color: var(--accent); }

/* narrow screens: tables become stacked rows instead of scrolling sideways */
@media (max-width: 640px) {
  .g-table, .g-table tbody, .g-table tr, .g-table td { display: block; width: 100%; }
  .g-table thead { display: none; }
  .g-table tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .g-table tr:last-child { border-bottom: 1px solid var(--line); }
  .g-table td { border: 0 !important; padding: 2px 0 !important; min-width: 0 !important; }
  .g-table td:first-child { color: var(--ink); font-weight: 500; }
  .g-enter td:last-child { color: var(--faint); font-size: .86rem; }
  .g-enter td:last-child::before { content: "Needed: "; }
}
