/* Brand Kit Display — public shortcode output styles. Sharp edges throughout (no border-radius). */

/* =========================================================
   Theme isolation
   [brand_kit] is embedded directly inside a normal theme page,
   so without this the active theme's global colors, font sizes,
   and element styling (headings, links, buttons, form fields)
   would bleed straight into the output. `all: initial` cuts the
   inheritance chain at the container boundary. Font-family and
   color are additionally forced with `!important` on the common
   theme-restyling targets (headings, paragraphs, links, lists,
   buttons, form fields) because inheritance alone isn't enough
   to beat a theme rule that targets those tags directly (e.g. a
   theme's own `.entry-content a { color: ... }`). Every one of
   our own intentionally-colored components further down this
   file is scoped with the `.btb-public-wrap` prefix and marked
   `!important` too, so it still wins over this baseline reset.
   ========================================================= */
.btb-public-wrap {
	all: initial;
	display: block;
	box-sizing: border-box;
	font-size: 16px;
	text-align: left;
	direction: ltr;
}
.btb-public-wrap *, .btb-public-wrap *::before, .btb-public-wrap *::after {
	box-sizing: border-box;
	font-family: inherit;
	color: inherit;
}
.btb-public-wrap h1, .btb-public-wrap h2, .btb-public-wrap h3, .btb-public-wrap h4, .btb-public-wrap h5, .btb-public-wrap h6 {
	font-family: inherit !important;
	font-weight: 700 !important;
	color: inherit !important;
}
.btb-public-wrap p { font-family: inherit !important; color: inherit !important; }
.btb-public-wrap ul, .btb-public-wrap ol { list-style: none !important; }
.btb-public-wrap a { font-family: inherit !important; color: inherit !important; text-decoration: none !important; }
.btb-public-wrap button {
	font-family: inherit !important;
	color: inherit !important;
	border-radius: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}
.btb-public-wrap input:not([type=color]), .btb-public-wrap select, .btb-public-wrap textarea {
	font-family: inherit !important;
	color: inherit !important;
	border-radius: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}
.btb-public-wrap input[type=color] { border-radius: 0 !important; }
.btb-public-wrap img { max-width: 100%; height: auto; }

.btb-public-wrap {
	--btb-ink: #14161a;
	--btb-muted: #6b7280;
	--btb-border: #e6e8eb;
	--btb-bg: #ffffff;
	--btb-bg-soft: #f8f9fb;
	--btb-accent: #2563eb;
	--btb-brand: #0099cc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	color: var(--btb-ink) !important;
	line-height: 1.6;
	max-width: 880px;
	margin: 0 auto;
}

.btb-section { background: var(--btb-bg); border: 1px solid var(--btb-border); padding: 28px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
/* Colors section is shown without the card background/border — swatches sit directly on the page. */
.btb-section.btb-section--plain { background: none; border: none; box-shadow: none; padding-left: 0; padding-right: 0; }

.btb-public-wrap .btb-section h2 { margin: 0 0 14px; font-size: .98em !important; font-weight: 600 !important; letter-spacing: .02em; text-transform: uppercase; color: var(--btb-brand) !important; }
.btb-public-wrap .btb-section h3 { font-size: .74em !important; text-transform: uppercase; letter-spacing: .05em; color: var(--btb-muted) !important; margin: 16px 0 6px; font-weight: 600 !important; }
.btb-section h3:first-of-type { margin-top: 0; }
.btb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .btb-two-col { grid-template-columns: 1fr; } }
.btb-public-wrap .btb-hint { color: var(--btb-muted) !important; font-size: .85em; margin: -6px 0 14px; }

/* ---- Hero ---- */
.btb-public-header { text-align: center; padding: 40px 16px 28px; }
.btb-hero-logo { max-height: 170px; max-width: 380px; margin-bottom: 20px; }
.btb-public-wrap .btb-public-header h1 { font-size: 2.2em; font-weight: 700 !important; margin: 0 0 6px; letter-spacing: -.02em; color: var(--btb-ink) !important; }
.btb-public-wrap .btb-tagline { color: var(--btb-muted) !important; font-size: 1.1em; }

.btb-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0; }
.btb-public-wrap .btb-chip { background: #eef2ff; color: #3730a3 !important; padding: 5px 13px; font-size: .87em; font-weight: 500 !important; }
.btb-public-wrap .btb-badge { display: inline-block; font-size: .72em; background: var(--btb-bg-soft); color: var(--btb-muted) !important; padding: 2px 9px; margin-left: 6px; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .03em; }
.btb-public-wrap .btb-sample-quote { border-left: 3px solid var(--btb-accent); padding-left: 14px; font-style: italic; color: var(--btb-ink) !important; }

/* ---- Logos ---- */
.btb-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.btb-logo-card { border: 1px solid var(--btb-border); overflow: hidden; margin: 0; transition: box-shadow .15s, transform .15s; }
.btb-logo-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,.08); transform: translateY(-2px); }
.btb-logo-preview { background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 100px; }
.btb-logo-preview img { max-width: 100%; max-height: 110px; }
.btb-logo-card figcaption { padding: 12px 14px 14px; }
.btb-public-wrap .btb-logo-card p { color: var(--btb-muted) !important; font-size: .88em; margin: 4px 0; }

/* ---- Colors ---- */
.btb-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 8px; }
.btb-color-card { border: 1px solid var(--btb-border); overflow: hidden; background: #fff; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; display: block; width: 100%; transition: box-shadow .15s, transform .15s; }
.btb-color-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,.08); transform: translateY(-2px); }
.btb-color-card.is-copied { box-shadow: 0 0 0 2px var(--btb-brand); }
.btb-swatch { display: block; height: 68px; width: 100%; }
.btb-color-meta { display: block; padding: 9px 11px; }
.btb-public-wrap .btb-color-meta strong { display: block; color: var(--btb-ink) !important; }
.btb-public-wrap .btb-color-meta code { display: block; color: var(--btb-muted) !important; font-size: .82em; margin-top: 2px; }
.btb-public-wrap .btb-color-desc { display: block; font-size: .8em; color: var(--btb-muted) !important; margin-top: 4px; }
.btb-color-copied-flag { color: var(--btb-brand) !important; font-weight: 600; }

/* ---- Fonts ---- */
.btb-font-card { border: 1px solid var(--btb-border); padding: 18px; margin-bottom: 12px; }
.btb-font-preview { font-size: 1.9em; margin: 0 0 8px; }
.btb-public-wrap .btb-font-meta p { color: var(--btb-muted) !important; font-size: .88em; margin: 4px 0; }
.btb-public-wrap .btb-download { display: inline-block; margin-top: 6px; font-size: .85em; color: var(--btb-accent) !important; font-weight: 600 !important; }
.btb-public-wrap .btb-download:hover { text-decoration: underline !important; }

/* ---- Guideline examples ---- */
.btb-example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.btb-example-card { border: 1px solid var(--btb-border); overflow: hidden; margin: 0; }
.btb-example-card img { width: 100%; display: block; max-height: 160px; object-fit: cover; }
.btb-example-card figcaption { padding: 10px 12px; }
.btb-public-wrap .btb-example-card figcaption p { color: var(--btb-muted) !important; font-size: .85em; margin: 4px 0 0; }
.btb-public-wrap .btb-kind-do .btb-kind-badge { background: #dcfce7; color: #166534 !important; }
.btb-public-wrap .btb-kind-dont .btb-kind-badge { background: #fee2e2; color: #991b1b !important; }
.btb-public-wrap .btb-kind-reference .btb-kind-badge { background: var(--btb-bg-soft); color: var(--btb-muted) !important; }

/* ---- Contact ---- */
.btb-contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.btb-contact-tile { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--btb-border); background: var(--btb-bg-soft); transition: background .15s, border-color .15s, transform .1s; }
.btb-public-wrap .btb-contact-tile { color: var(--btb-ink) !important; }
.btb-contact-tile:hover { background: var(--btb-brand); border-color: var(--btb-brand); transform: translateY(-2px); }
.btb-public-wrap .btb-contact-tile:hover { color: #fff !important; }
.btb-contact-tile .btb-contact-icon { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--btb-border); }
.btb-public-wrap .btb-contact-tile .btb-contact-icon { color: var(--btb-brand) !important; }
.btb-public-wrap .btb-contact-tile:hover .btb-contact-icon { color: var(--btb-brand) !important; }
.btb-contact-tile .btb-contact-text { min-width: 0; flex: 1; }
/* Long URLs/emails wrap onto a second line instead of overflowing the tile or being clipped. */
.btb-public-wrap .btb-contact-tile strong {
	display: block; font-size: .9em; font-weight: 700 !important;
	overflow-wrap: anywhere; word-break: break-word; white-space: normal; overflow: visible; text-overflow: clip;
}
.btb-public-wrap .btb-contact-tile span.btb-contact-sub {
	display: block; font-size: .76em; opacity: .8;
	overflow-wrap: anywhere; word-break: break-word; white-space: normal; overflow: visible; text-overflow: clip;
}

/* ---- Design Templates ---- */
.btb-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.btb-template-card { border: 1px solid var(--btb-border); overflow: hidden; }
.btb-template-preview { background: var(--btb-bg-soft); display: flex; align-items: center; justify-content: center; min-height: 110px; }
.btb-template-preview img { width: 100%; height: 130px; object-fit: cover; display: block; }
.btb-public-wrap .btb-template-file-icon { color: var(--btb-muted) !important; padding: 30px; }
.btb-template-meta { padding: 12px 14px 14px; }
.btb-public-wrap .btb-template-meta p { color: var(--btb-muted) !important; font-size: .85em; margin: 4px 0; }

/* ---- Toast (copy confirmation) ---- */
.btb-public-wrap .btb-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
	background: var(--btb-ink) !important; color: #fff !important; padding: 11px 20px;
	font-size: .9em !important; font-weight: 600; opacity: 0; pointer-events: none;
	transition: opacity .2s, transform .2s; z-index: 999999; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btb-public-wrap .btb-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---- Mobile ---- */
@media (max-width: 640px) {
	.btb-public-wrap { padding: 0 4px; }
	.btb-section { padding: 18px; margin-bottom: 14px; }
	.btb-public-header { padding: 24px 8px 18px; }
	.btb-hero-logo { max-height: 100px; max-width: 240px; margin-bottom: 14px; }
	.btb-public-wrap .btb-public-header h1 { font-size: 1.6em; }
	.btb-public-wrap .btb-tagline { font-size: 1em; }
	.btb-two-col { gap: 12px; }
	.btb-logo-grid, .btb-color-grid, .btb-example-grid, .btb-template-grid, .btb-contact-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
	.btb-font-preview { font-size: 1.4em; }
	.btb-contact-tile { padding: 12px; }
}
