/* SayIt Groq 金鑰教學頁 /tools/sayIt-groq：疊在 sayit-v2.css 上，只補這頁特有的步驟、截圖、分頁 */
.sg-hero { position: relative; z-index: 2; padding-top: 3.5rem; max-width: 44rem; } /* 上方留給「← 回到 SayIt」（產品頁那一列是語言切換） */
.sg-hero h1 { font-size: clamp(2.125rem, 6vw, 4rem); line-height: 1.15; margin-block: 1rem; letter-spacing: .04em; }
.sg-hero .sv-lead { max-width: 36rem; }
.sg .sv-scape-band { margin-top: -2rem; z-index: 0; } /* 山景自成一層、壓在下面：山腳淡出那層原本會蓋掉分頁鈕的上框線 */
.sg-sec { position: relative; z-index: 2; }

/* 分頁：兩顆按鈕共用中線，選中的四邊亮框（同產品頁切換鈕的做法） */
.sg-tabs { display: flex; margin: 1rem 0 2.5rem; }
.sg-tabs[hidden] { display: none; }
.sg-tabs button { position: relative; min-height: 2.75rem; padding: .5rem 1.25rem; border: 1px solid var(--c-line); border-radius: 0; background: var(--bg); color: var(--c-note); font: inherit; cursor: pointer; }
.sg-tabs button + button { margin-left: -1px; }
.sg-tabs button:first-child { border-radius: 2px 0 0 2px; }
.sg-tabs button:last-child { border-radius: 0 2px 2px 0; }
.sg-tabs button[aria-pressed="true"] { z-index: 1; border-color: var(--c-title); color: var(--c-title); font-weight: var(--font-weight-medium); }
.sg-js .sg-route-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* 有分頁時，路線標題只留給讀屏 */
.sg-route + .sg-route { margin-top: 4rem; }
.sg-js .sg-route + .sg-route { margin-top: 0; }

/* 步驟：左邊編號與說明，右邊截圖；手機直排 */
.sg-steps { list-style: none; padding: 0; margin: 0; counter-reset: sg; max-width: 64rem; }
.sg-steps > li { counter-increment: sg; display: grid; grid-template-columns: 3rem minmax(0, 20rem) minmax(0, 1fr); column-gap: 1.5rem; row-gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--c-line); }
.sg-steps > li:first-child { border-top: 0; padding-top: 0; }
.sg-steps > li::before { content: counter(sg); grid-row: 1 / span 2; font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--c-title); }
.sg-txt h3 { font-size: var(--text-xl); margin-bottom: .5rem; }
.sg-txt p { line-height: 1.8; }
.sg-txt p + p { margin-top: .75rem; }
.sg-txt a { color: var(--c-title); }
.sg-warn { padding: .6rem .9rem; border-left: 2px solid var(--c-title); background: color-mix(in srgb, var(--c-title) 5%, transparent); color: var(--c-title); }
.sg-shot, .sg-shots { grid-column: 3; margin: 0; min-width: 0; }
.sg-shots { display: grid; gap: 1.25rem; }
.sg-shots .sg-shot { grid-column: auto; }
.sg-shot img { display: block; width: 100%; height: auto; /* 最大寬＝原圖寬，組頁時寫在每張圖上，小截圖不會被放大到糊 */ border: 1px solid var(--c-strong); border-radius: 2px; background: #111; }
.sg-shot figcaption { margin-top: .5rem; font-size: var(--text-sm); color: var(--c-note); }
.sg-phone { max-width: 17rem; }
.sg-phone img { border-radius: 1.25rem; padding: .35rem; background: var(--bg); }

/* 對照表 */
.sg-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 2rem; max-width: 52rem; margin: 0; border-top: 1px solid var(--c-strong); }
.sg-words > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--c-line); }
.sg-words dt { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95em; color: var(--c-title); }
.sg-words dd { margin: 0; color: var(--c-body); white-space: nowrap; }

.sg-tag { display: inline-block; margin-bottom: .75rem; padding: .1rem .6rem; border: 1px solid var(--c-line); border-radius: 2px; font-size: var(--text-xs); color: var(--c-note); letter-spacing: var(--tracking-wider); }
.sg-note { margin-top: 2rem; max-width: 52rem; padding: 1.25rem 1.5rem; border: 1px solid var(--c-line); border-radius: 2px; }
.sg-note h3 { font-size: var(--text-lg); margin-bottom: .5rem; }
.sg-note ul { margin: 0; padding-left: 1.2rem; line-height: 1.8; }
.sg-back { margin-top: 2.5rem; }

@media (max-width: 47.99rem) {
  .sg-steps > li { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .75rem; }
  .sg-steps > li::before { font-size: 1.6rem; grid-row: 1; }
  .sg-shot, .sg-shots { grid-column: 1 / -1; }
  .sg-phone { max-width: 15rem; margin-inline: auto; }
}
