/*
 * The single gradient page.
 *
 * This used to be two stylesheets stacked on each other: a "Single gradient
 * page" section in the child theme's style.css, and a <style> block inside
 * single-gradient.php that redeclared 23 of the same selectors with different
 * values. The inline block came later in the document and won almost every one,
 * so half the style.css section had not rendered in a long time — and anyone
 * editing it was editing dead code.
 *
 * Resolved to one declaration per property. Where the two disagreed, the value
 * the browser was actually using is the one kept, !important included where the
 * losing side had needed it to win. Rendering is unchanged — verified pixel for
 * pixel at 1400px and 600px — but there is now one place to change any of it.
 *
 * Base rules first, media queries last, which is the order the cascade wants:
 * an earlier draft of this file grouped by "last appearance" instead and put the
 * media blocks near the top, where every base rule below them silently won.
 *
 * Loaded on single gradients only, after core.css.
 */

.gs-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6E6E78; margin-bottom: 20px }
.gs-breadcrumb a { color: #6E6E78; text-decoration: none; transition: color 0.12s }
.gs-breadcrumb a:hover { color: #111 }
.gs-breadcrumb span { color: #DDD }
.gs-contrast { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap }
.gs-contrast-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #6E6E78 }
.gs-contrast-badges { display: flex; gap: 6px; flex-wrap: wrap }
.gs-contrast-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600 }
.gs-contrast-badge.pass { background: #F0FDF4; color: #166534 }
.gs-contrast-badge.fail { background: #FFF1F2; color: #BE123C }
.gs-contrast-badge.borderline { background: #FFFBEB; color: #B45309 }
.gs-contrast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.gs-contrast-dot.pass { background: #22C55E }
.gs-contrast-dot.fail { background: #F43F5E }
.gs-contrast-dot.borderline { background: #F59E0B }
.gs-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px }
.gs-wrap { max-width: 820px; margin: 0 auto; padding: 40px 24px 100px }
.gs-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #666; text-decoration: none; margin-bottom: 24px; transition: color .15s; font-weight: 500 }
.gs-back:hover { color: #111 }
.gs-hero { width: 100%; height: 300px; border-radius: 28px; margin-bottom: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.08) }
.gs-header { margin-bottom: 28px }
.gs-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px }
.gs-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 14px; border: 1px solid #eee; padding: 4px; background: #fff }
.gs-brand-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6E6E78; font-weight: 600; display: block; margin-bottom: 2px }
.gs-brand-label a { color: inherit; text-decoration: none; transition: color 0.12s }
.gs-brand-label a:hover { color: #111 }
.gs-title { font-size: 26px !important; font-weight: 800 !important; margin: 0 !important; color: #0A0A0A !important; letter-spacing: -0.02em !important }
.gs-swatches { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 }
.gs-swatch-item { display: flex; align-items: center; gap: 8px }
.gs-swatch-circle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 0 0 1px rgba(0,0,0,0.1); flex-shrink: 0 }
.gs-swatch-item code { font-size: 13px; color: #555; font-family: monospace; background: #f5f5f5; padding: 3px 8px; border-radius: 999px}
.gs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px }
.gs-tag { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em }
.gs-tag-cat { background: #f0eeff; color: #5b4fcf }
.gs-tag-mood { background: #fff4e5; color: #b45309 }
.gs-tag-ind { background: #e6f4ea; color: #1a6b35 }
.gs-codes { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; margin: 28px 0 }
.gs-code-block { background: #F7F7FA; border: 1px solid #EFEFF4; border-radius: 20px; padding: 16px 18px 18px; position: relative }
.gs-code-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6E6E78; margin-bottom: 8px }
.gs-code-block pre {
	/* The theme draws every <pre> as a grey box; inside this card that was a
	   box in a box. break-all also split hex codes mid-code (#DD2A / 7B). */
	margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; font-size: 13px; line-height: 1.6; color: #1A1A22;
	white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere;
}
.gs-code-block .gs-code-label { margin-bottom: 10px; padding-right: 64px; }
.gs-copy-btn { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid #ddd; background: #fff; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; color: #333 }
.gs-copy-btn:hover { background: #111; color: #fff; border-color: #111 }
.gs-copy-btn.ok { background: #e6f4ea; border-color: #a8d5b5; color: #2d7a4f }
.gs-related { margin-top: 52px }
.gs-related h2 { font-size: 15px !important; font-weight: 600 !important; margin: 0 0 20px !important; color: #111 !important; padding-bottom: 16px !important; border-bottom: 1px solid #F0F0F0 !important }
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 18px }
.gc { border-radius: 22px; overflow: hidden; border: 1px solid rgba(0,0,0,.07); background: #fff; transition: transform .2s,box-shadow .2s }
.gc:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.10) }
.gc-preview { display: block; height: 130px; width: 100% }
.gc-body { padding: 12px 14px }
.gc-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6E6E78; font-weight: 600; display: block; margin-bottom: 4px }
.gc-copy { width: 100%; padding: 7px; border-radius: 999px; border: 1px solid #e8e8e8; background: #f5f5f5; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s; color: #333 }
.gc-copy:hover { background: #e8e8e8 }
.gc-copy.ok { background: #e6f4ea; border-color: #a8d5b5; color: #2d7a4f }

/* ── Grain control under the hero ── */
.gs-hero + .tg-grain { margin: -18px 0 28px }

/* ── Export formats ── */
.gs-fmt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gs-fmt-tabs [role="tab"] { padding: 7px 14px; border-radius: 999px; border: 1px solid #E8E8EE; background: #fff; font-size: 13px; font-weight: 600; color: #45454F; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.gs-fmt-tabs [role="tab"]:hover { border-color: #C9C9D3; color: #111; }
.gs-fmt-tabs [role="tab"][aria-selected="true"] { background: #111; border-color: #111; color: #fff; }
.gs-fmt-tabs [role="tab"]:focus-visible { outline: 2px solid #5b4fcf; outline-offset: 2px; }
.gs-fmt-panel { position: relative; background: #0F0F14; border-radius: 20px; padding: 18px 20px; }
.gs-fmt-panel pre { margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; color: #E6E6EC !important; font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; font-size: 13px; line-height: 1.65; white-space: pre; overflow-x: auto; padding: 0 64px 0 0 !important; }  /* the theme styles every <pre> as a light grey box */
.gs-fmt-panel .gs-copy-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.gs-fmt-panel .gs-copy-btn:hover { background: #fff; color: #111; }

/* ── Generated sections (includes/single-extras.php) ── */
.gs-intro { font-size: 16px; line-height: 1.7; color: #333; margin: 0 0 8px }
.gs-intro code, .gs-faq code { font-size: 13px; background: #f5f5f5; padding: 1px 6px; border-radius: 5px; color: #222 }
.gs-brand-notice { font-size: 12px; line-height: 1.6; color: #6E6E78; margin: 10px 0 0; padding: 10px 14px; background: #fafafa; border-radius: 16px}
.gs-brand-notice a { color: #666 }
.gs-section { margin-top: 48px }
.gs-section h2 { font-size: 18px !important; font-weight: 700 !important; margin: 0 0 16px !important; color: #111 !important; letter-spacing: -0.01em }
.gs-note { font-size: 14px; color: #666; margin: -6px 0 14px }

.gs-table-wrap { overflow-x: auto; border: 1px solid #F0F0F0; border-radius: 20px}
.gs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 }
.gs-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6E6E78; background: #fafafa; padding: 10px 14px; border: 0 }
.gs-table td { padding: 10px 14px; border: 0; border-top: 1px solid #F0F0F0; white-space: nowrap; color: #333 }
.gs-table code { font-family: monospace; font-size: 13px; color: #222 }
.gs-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1) }

.gs-previews { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px }
.gs-pv-hero { border-radius: 28px; padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 220px }
.gs-pv-hero strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15 }
.gs-pv-hero span { font-size: 14px; opacity: .85 }
.gs-pv-hero .gs-pv-cta { align-self: flex-start; margin-top: 8px; padding: 8px 16px; border: 1.5px solid; border-radius: 50px; font-weight: 600; opacity: 1 }
.gs-pv-side { display: flex; flex-direction: column; gap: 14px }
.gs-pv-btn { display: block; text-align: center; padding: 14px; border-radius: 999px; font-weight: 700; font-size: 15px }
.gs-pv-card { border: 1px solid #F0F0F0; border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #666 }
.gs-pv-card strong { color: #111; font-size: 14px }
.gs-pv-bar { display: block; height: 6px; border-radius: 6px; margin-bottom: 8px }
.gs-pv-text { align-self: flex-start; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; -webkit-background-clip: text; background-clip: text; color: transparent }

.gs-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px }
.gs-var { border: 1px solid rgba(0,0,0,.07); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column }
.gs-var-preview { display: block; height: 90px }
.gs-var-label { font-size: 13px; font-weight: 600; color: #222; padding: 10px 12px 8px }
.gs-var .gc-copy { width: auto !important; align-self: stretch; margin: auto 12px 12px }  /* core.css sets 100%, which overflowed the margins */

.gs-download { display: flex; flex-wrap: wrap; gap: 8px }
.gs-download button { padding: 9px 16px; border-radius: 999px; border: 1px solid #e3e3e3; background: #fff; font-size: 13px; font-weight: 600; color: #222; cursor: pointer; transition: all .15s }
.gs-download button:hover { background: #111; color: #fff; border-color: #111 }

.gs-faq details { border-bottom: 1px solid #F0F0F0; padding: 14px 0 }
.gs-faq summary { font-weight: 600; font-size: 15px; color: #111; cursor: pointer; list-style-position: outside }
.gs-faq p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: #444 }

@media (max-width: 768px) {
	.gs-previews { grid-template-columns: 1fr }
	.gs-pv-hero { min-height: 180px }
}

@media(max-width:600px) {
	.gs-hero { height: 200px }
	.gs-title { font-size: 22px }
	.gs-codes { grid-template-columns: 1fr }
}

@media (max-width: 768px) {
	.gs-hero { height: 200px }
	.gs-title { font-size: 22px }
	.gs-codes { grid-template-columns: 1fr }
}

@media (max-width: 600px) {
	.gs-colors { grid-template-columns: 1fr 1fr }
	.gs-row { grid-template-columns: 1fr }
}
.gs-wp-link { margin-top: 12px !important; } .gs-wp-link a { font-weight: 600; color: #4B3CC9; }
