/**
 * Content component styles. tokenomicon-native (dark), using the theme's own
 * design tokens directly. No cross-site token layer. Prefix: fc-.
 * Semantic colors: brand, neutral, info, warning, success, error.
 */

/* Component design tokens (tokenomicon-native, dark). Defined at :root so every
   component, including standalone ones like buttons, inherits them. */
:root {
	--fc-text: var(--color-brand-light, #ebe6d9);
	--fc-muted: rgba(235, 230, 217, 0.62);
	--fc-line: rgba(235, 230, 217, 0.14);
	--fc-surface: #14161c;
	--fc-surface-2: #1b1e26;
	--fc-accent: var(--color-brand-primary, #4f7cff);
	--fc-radius: 10px;
	--fc-radius-sm: 6px;
	--fc-block-margin: 1.5rem;
}
.fc-callout, .fc-badge, .fc-tabs, .fc-steps, .fc-columns, .fc-collapse,
.fc-definition, .fc-figure, .fc-video, .fc-summary, .fc-toc, .fc-accordion,
.fc-accordion-search, .fc-inline {
	box-sizing: border-box;
}
.fc-callout, .fc-tabs__panel, .fc-steps, .fc-columns, .fc-collapse,
.fc-definition, .fc-summary, .fc-toc, .fc-accordion {
	color: var(--fc-text);
}

/* ---- callout ---------------------------------------------------------- */
.fc-callout {
	margin: var(--fc-block-margin) 0; padding: 1rem 1.25rem;
	border-left: 4px solid var(--fc-accent); border-radius: var(--fc-radius);
	background: color-mix(in srgb, var(--fc-accent) 20%, var(--fc-surface));
}
.fc-callout--neutral { border-left-color: rgba(235,230,217,.3); background: var(--fc-surface-2); }
.fc-callout--info    { border-left-color: var(--color-brand-secondary, #8bb0ff); background: color-mix(in srgb, var(--color-brand-secondary, #8bb0ff) 20%, var(--fc-surface)); }
.fc-callout--warning { border-left-color: #f59e0b; background: color-mix(in srgb, #f59e0b 18%, var(--fc-surface)); }
.fc-callout--success { border-left-color: #10b981; background: color-mix(in srgb, #10b981 18%, var(--fc-surface)); }
.fc-callout--error   { border-left-color: #ef4444; background: color-mix(in srgb, #ef4444 18%, var(--fc-surface)); }
.fc-callout__badge { display: inline-block; margin-bottom: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fc-muted); }
.fc-callout__heading { margin: 0 0 .5rem; font-weight: 700; }
.fc-callout__body > :first-child { margin-top: 0; }
.fc-callout__body > :last-child { margin-bottom: 0; }
.fc-callout__btn { display: inline-block; margin-top: .75rem; font-weight: 600; text-decoration: underline; color: inherit; }

/* ---- badge ------------------------------------------------------------ */
.fc-badge {
	display: inline-block; padding: .15em .6em; border-radius: 999px;
	font-size: .75rem; font-weight: 600; line-height: 1.4;
	border: 1px solid var(--fc-accent); background: color-mix(in srgb, var(--fc-accent) 18%, var(--fc-surface)); color: var(--fc-text);
}
.fc-badge--neutral { border-color: rgba(235,230,217,.3); background: var(--fc-surface-2); }
.fc-badge--info    { border-color: var(--color-brand-secondary, #8bb0ff); background: color-mix(in srgb, var(--color-brand-secondary, #8bb0ff) 18%, var(--fc-surface)); }
.fc-badge--warning { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 18%, var(--fc-surface)); }
.fc-badge--success { border-color: #10b981; background: color-mix(in srgb, #10b981 18%, var(--fc-surface)); }
.fc-badge--error   { border-color: #ef4444; background: color-mix(in srgb, #ef4444 18%, var(--fc-surface)); }

/* ---- tabs ------------------------------------------------------------- */
.fc-tabs { margin: var(--fc-block-margin) 0; }
.fc-tabs__nav { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--fc-line); }
.fc-tabs__btn { padding: .5rem 1rem; border: 0; background: none; cursor: pointer; color: var(--fc-muted); border-bottom: 2px solid transparent; font: inherit; }
.fc-tabs__btn.is-active { color: var(--fc-text); border-bottom-color: var(--fc-accent); font-weight: 600; }
.fc-tabs__btn:focus-visible { outline: 2px solid var(--fc-accent); outline-offset: 2px; }
.fc-tabs__panel { padding-top: 1rem; }
.fc-tabs__panel[hidden] { display: none; }

/* ---- steps ------------------------------------------------------------ */
.fc-steps__line { position: relative; padding-left: 2.25rem; }
.fc-steps__line::before { content: ""; position: absolute; left: .8rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--fc-line); }
.fc-steps__item { position: relative; margin-bottom: 1.5rem; }
.fc-steps__number { position: absolute; left: -2.25rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--fc-accent); color: #0a0b0f; font-size: .8rem; font-weight: 700; }
.fc-steps__title { margin: 0 0 .25rem; font-weight: 700; }
.fc-steps__body > :first-child { margin-top: 0; }

/* ---- columns ---------------------------------------------------------- */
.fc-columns { display: grid; gap: 1rem; margin: var(--fc-block-margin) 0; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.fc-columns--2 { grid-template-columns: repeat(2, 1fr); }
	.fc-columns--3 { grid-template-columns: repeat(3, 1fr); }
	.fc-columns--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- collapse --------------------------------------------------------- */
.fc-collapse { margin: var(--fc-block-margin) 0; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); overflow: hidden; background: var(--fc-surface); }
.fc-collapse__summary { padding: .75rem 1rem; cursor: pointer; font-weight: 600; background: var(--fc-surface-2); }
.fc-collapse__body { padding: 1rem; }
.fc-collapse__body > :first-child { margin-top: 0; }

/* ---- definition ------------------------------------------------------- */
.fc-definition { margin: var(--fc-block-margin) 0; padding: .75rem 1rem; border-left: 3px solid var(--fc-accent); background: var(--fc-surface-2); border-radius: var(--fc-radius-sm); }
.fc-definition__term { margin: 0; font-weight: 700; }
.fc-definition__desc { margin: .25rem 0 0; }

/* ---- figure ----------------------------------------------------------- */
.fc-figure { margin: var(--fc-block-margin) 0; }
.fc-figure__img { display: block; max-width: 100%; height: auto; border-radius: var(--fc-radius); }
.fc-figure__caption { margin-top: .5rem; text-align: center; font-size: .85rem; color: var(--fc-muted); }

/* ---- video ------------------------------------------------------------ */
.fc-video { position: relative; margin: var(--fc-block-margin) auto; width: 100%; aspect-ratio: 16 / 9; }
.fc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--fc-radius); }

/* button: uses the theme's existing .btn component (assets/css/app.css), no
   duplicate styles here. See fc_button() in components.php. */

/* ---- summary ---------------------------------------------------------- */
.fc-summary { margin: var(--fc-block-margin) 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid #10b981; font-size: 1.05rem; }
.fc-summary__label { font-weight: 700; margin-right: .35rem; }
.fc-summary__body { display: inline; }

/* ---- inline ----------------------------------------------------------- */
.fc-inline { display: flex; gap: calc(var(--fc-inline-gap, 2) * .25rem); }
.fc-inline--align-start { align-items: flex-start; }
.fc-inline--align-center { align-items: center; }
.fc-inline--align-end { align-items: flex-end; }
.fc-inline img { flex-shrink: 0; }

/* ---- table of contents ------------------------------------------------ */
.fc-toc { margin: var(--fc-block-margin) 0; padding: 1rem 1.25rem; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: var(--fc-surface-2); }
.fc-toc.is-sticky { position: sticky; top: 1.5rem; }
.fc-toc__title { margin: 0 0 .5rem; font-size: 1.1rem; }
.fc-toc__list a { display: block; padding: .15rem 0; text-decoration: none; color: var(--fc-accent); }
.fc-toc__list a:hover { text-decoration: underline; }

/* ---- accordion (hydrated by components.js) ---------------------------- */
.fc-accordion { margin: var(--fc-block-margin) 0; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); overflow: hidden; background: var(--fc-surface); }
.fc-accordion__item { border-top: 1px solid var(--fc-line); }
.fc-accordion__item:first-child { border-top: 0; }
.fc-accordion__header { display: block; width: 100%; text-align: left; padding: .85rem 1rem; border: 0; background: var(--fc-surface-2); font: inherit; font-weight: 600; cursor: pointer; color: var(--fc-text); }
.fc-accordion__header:focus-visible { outline: 2px solid var(--fc-accent); outline-offset: -2px; }
.fc-accordion__header[aria-expanded="true"] { color: var(--fc-accent); }
.fc-accordion__panel { padding: .5rem 1rem 1rem; }
.fc-accordion__panel > :first-child { margin-top: 0; }
.fc-accordion-search__input { width: 100%; padding: .6rem .9rem; border: 1px solid var(--fc-line); border-radius: var(--fc-radius-sm); font: inherit; background: var(--fc-surface); color: var(--fc-text); }
.fc-accordion-search__empty { margin: .5rem 0 0; color: var(--fc-muted); font-size: .9rem; }
