/* StyleGauge: blog listing, style guides, article template, newsletter. Values mirror the prototype HTML. */

.sg-split-head--16 { gap: 16px 64px; }
.sg-lead-free.sg-lead-free { max-width: none; }
.sg-stack-8, .sg-stack-10, .sg-stack-18 { display: flex; flex-direction: column; }
.sg-stack-8 { gap: 8px; }
.sg-stack-10 { gap: 10px; }
.sg-stack-18 { gap: 18px; }
.sg-maxw-560 { max-width: 560px; }
.sg-btns--10 { gap: 10px; }
.sg-btn--sm { padding: 14px 22px; }
a.sg-chip-btn { display: inline-block; }
.sg-chip-btn[aria-current="page"] { border-color: var(--sg-ink); background: var(--sg-ink); color: var(--sg-bg); }

/* ---------- Blog listing ---------- */
.sg-blog-head { padding-top: clamp(24px, 4vw, 40px); padding-bottom: 28px; }
.sg-tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; border-top: 1px solid var(--sg-ink); border-bottom: 1px solid var(--sg-border); }
.sg-blog-featured { padding-bottom: clamp(40px, 5vw, 64px); }
.sg-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sg-featured__tags { display: flex; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; flex-wrap: wrap; color: var(--sg-muted-2); }
.sg-featured__flag { color: var(--sg-bg); background: var(--sg-ink); padding: 3px 9px; border-radius: 2px; }
.sg-featured__title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.sg-featured__dek { font-size: 17px; color: var(--sg-muted); line-height: 1.55; }
.sg-featured__meta { font-size: 14px; color: var(--sg-muted-2); }
.sg-blog-list { padding-bottom: clamp(56px, 7vw, 96px); }
.sg-blog-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--sg-border); padding-top: 28px; }
.sg-blog-list__title { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; font-weight: 600; line-height: normal; }
.sg-blog-list__count { font-size: 14px; color: var(--sg-muted-2); }
.sg-grid--blog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 20px; }
.sg-article-card--blog { gap: 14px; }
.sg-article-card--blog .sg-article-card__title { font-size: 21px; line-height: 1.22; }
.sg-article-card[hidden] { display: none; }
.sg-more-btn { align-self: center; font: inherit; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 999px; border: 1px solid var(--sg-ink); background: transparent; color: var(--sg-ink); cursor: pointer; white-space: nowrap; }
.sg-more-btn[hidden] { display: none; }
a.sg-btn-sm-outline { display: inline-block; }

/* ---------- Newsletter band ---------- */
.sg-newsletter__title { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.sg-newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 340px; max-width: 500px; position: relative; }
.sg-newsletter__form[hidden] { display: none; }
.sg-newsletter__input { flex: 1 1 200px; font: inherit; font-size: 15px; padding: 14px 18px; border: 1px solid rgba(247, 245, 241, 0.35); border-radius: 999px; background: transparent; color: var(--sg-bg); outline: none; }
.sg-newsletter__input::placeholder { color: #c9cfdb; }
.sg-newsletter__input:focus-visible { outline: 2px solid #9fb4ee; outline-offset: 2px; }
.sg-newsletter__btn { font: inherit; font-size: 15px; font-weight: 600; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--sg-bg); color: var(--sg-ink); cursor: pointer; white-space: nowrap; }
.sg-newsletter__error { flex-basis: 100%; font-size: 13px; color: #fbe9e4; }
.sg-newsletter__error[hidden], .sg-newsletter__done[hidden] { display: none; }
.sg-newsletter__done { font-size: 15px; font-weight: 600; background: var(--sg-bg); color: var(--sg-ink); padding: 14px 20px; border-radius: 999px; }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Style Guides page ---------- */
.sg-guides-head { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(40px, 5vw, 56px); }
.sg-segmented__btn--16 { padding: 9px 16px; }
.sg-start { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.sg-two-col--32 { gap: 32px 64px; }
[data-sg-aud-panel][hidden] { display: none; }
.sg-start-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--sg-border); }
.sg-start-row__n { font-size: 13px; font-weight: 600; color: var(--sg-accent); }
.sg-start-row__t { font-size: 18px; font-weight: 600; line-height: 1.3; }
.sg-start-row__time { font-size: 13px; color: var(--sg-muted-2); white-space: nowrap; }
.sg-grid--290fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.sg-topic-card { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; }
.sg-topic-card__sw { display: flex; gap: 4px; }
.sg-topic-card__name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.sg-topic-card__desc { font-size: 14px; color: var(--sg-muted); line-height: 1.55; flex: 1; }
.sg-topic-card__count { font-size: 13px; color: var(--sg-muted-2); border-top: 1px solid #eeebe4; padding-top: 12px; }
.sg-topic-card__count[hidden] { display: none; }
.sg-guides-cta { padding-bottom: clamp(56px, 7vw, 96px); }
.sg-ink-card { background: var(--sg-ink); color: var(--sg-bg); border-radius: 8px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.sg-ink-card__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }

/* ---------- Article ---------- */
.sg-article__head { max-width: 860px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--sg-gutter) 32px; display: flex; flex-direction: column; gap: 22px; }
.sg-article__labels { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-muted-2); }
.sg-article__labels .is-accent { color: var(--sg-accent); }
.sg-article__title { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.sg-article__dek { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--sg-muted); text-wrap: pretty; }
.sg-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--sg-border); padding-top: 18px; }
.sg-byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sg-border); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.sg-byline__who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.sg-byline__name { font-size: 14px; font-weight: 600; }
.sg-byline__meta, .sg-byline__time { font-size: 13px; color: var(--sg-muted-2); }
.sg-article__hero { margin-top: 0; margin-bottom: 0; }
.sg-article__caption { font-size: 13px; color: var(--sg-muted-2); padding-top: 10px; }
.sg-article__main { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--sg-gutter); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.sg-toc { flex: 0 1 220px; min-width: 200px; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 12px; }
.sg-toc__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--sg-muted-2); }
.sg-toc a { font-size: 14px; line-height: 1.4; border-left: 2px solid var(--sg-border); padding-left: 12px; }
.sg-article-body { flex: 1 1 520px; max-width: 680px; display: flex; flex-direction: column; gap: 28px; font-size: 18px; line-height: 1.7; }
.sg-article-body > * { margin-top: 0; margin-bottom: 0; }
.sg-article-body p { text-wrap: pretty; }
.sg-article-body h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; scroll-margin-top: 96px; }
.sg-article-body a:not([class]) { color: var(--sg-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Outfit formula */
.sg-formula { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.sg-formula__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--sg-accent); margin-bottom: 10px; }
.sg-formula__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sg-formula__item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eeebe4; }
.sg-formula__swatch { width: 30px; height: 30px; border-radius: 3px; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-formula__name { font-size: 16px; font-weight: 600; flex: 1; line-height: 1.3; }
.sg-formula__role { font-size: 13px; color: var(--sg-muted-2); }
.sg-formula__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sg-formula__tags span { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--sg-bg); border: 1px solid var(--sg-border); }

/* Two detail photos (core Gallery block with the class "sg-image-pair") */
.sg-article-body .wp-block-gallery.sg-image-pair { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px !important; }
.sg-article-body .wp-block-gallery.sg-image-pair figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.sg-article-body .wp-block-gallery.sg-image-pair figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 4px; }

/* Small palettes */
.sg-mini-palettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.sg-mini-palette { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; overflow: hidden; }
.sg-mini-palette__sw { display: flex; height: 64px; }
.sg-mini-palette__sw span { flex: 1; }
.sg-mini-palette__name { padding: 12px 14px; font-size: 14px; font-weight: 600; }

/* Tool call to action */
.sg-tool-cta { background: var(--sg-ink); color: var(--sg-bg); border-radius: 6px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.sg-tool-cta__text { display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.sg-tool-cta__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: #9fb4ee; }
.sg-tool-cta__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.sg-tool-cta__sub { font-size: 15px; color: #c9cfdb; line-height: 1.5; }
.sg-btn--cta { padding: 13px 22px; }

/* FAQ accordion */
.sg-faq-block { display: flex; flex-direction: column; gap: 28px; }
.sg-faq { display: flex; flex-direction: column; border-top: 1px solid var(--sg-ink); }
.sg-faq__item { border-bottom: 1px solid var(--sg-border); }
.sg-faq__q { margin: 0; font: inherit; }
.sg-faq__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 18px 0; font: inherit; font-size: 17px; font-weight: 600; color: var(--sg-ink); text-align: left; cursor: pointer; }
.sg-faq__icon { font-size: 20px; font-weight: 400; color: var(--sg-accent); }
.sg-faq__a { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--sg-muted); }
.sg-faq__a[hidden] { display: none; }
