/* Documentation hub (html/com_content/category/docs.php).
   Same frame and measures as the support forum (html/com_easydiscuss/css/forum.css): header, 260px sidebar, list.
   Product icons: Font Awesome light, same names as the Products mega menu. (.docs-list is taken by DOCman.) */
.tp-docs { --d-ink: #050038; --d-green-dark: #1f9e45; padding-bottom: 72px; }

/* Header */
.tp-docs .docs-head { margin: 0 0 40px; padding: 40px 0 36px; border-bottom: 1px solid #eceff3; }
.tp-docs .docs-eyebrow { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-green); }
.tp-docs .docs-eyebrow::before { content: ""; width: 8px; height: 8px; margin-right: 32px; border-radius: 2px; background: var(--tp-green); box-shadow: 12px 0 0 rgba(52,199,89,.45), 24px 0 0 rgba(52,199,89,.2); }
.tp-docs .docs-head h1 { margin: 12px 0 0; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; color: var(--d-ink); text-wrap: balance; }
.tp-docs .docs-px { display: inline-block; width: .18em; height: .18em; margin-left: .05em; border-radius: .035em; background: var(--tp-green); }
.tp-docs .docs-head p { margin: 12px 0 0; color: var(--tp-muted); font-size: 1.04rem; max-width: 620px; }

/* Layout: nav + help card on the left, list on the right */
.tp-docs .docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "nav main" "side main"; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
.tp-docs .docs-nav { grid-area: nav; display: flex; flex-direction: column; gap: 2px; }
.tp-docs .docs-main { grid-area: main; }
.tp-docs .docs-side { grid-area: side; display: flex; flex-direction: column; gap: 2px; }

.tp-docs .docs-nav__label { margin: 0 0 8px; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-faint); }
.tp-docs .docs-side .docs-nav__label { margin-top: 28px; }
.tp-docs .docs-nav__a { display: flex; align-items: center; gap: 10px; width: calc(100% + 24px); padding: 9px 12px; margin: 0 -12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .95rem; line-height: 1.3; text-align: left; color: var(--tp-muted); cursor: pointer; transition: background .2s, color .2s; }
.tp-docs .docs-nav__a span { flex: 1; min-width: 0; }
.tp-docs .docs-nav__a small { font-size: .78rem; font-weight: 500; color: var(--tp-faint); font-variant-numeric: tabular-nums; }
.tp-docs .docs-nav__a:hover { background: var(--tp-soft); color: var(--tp-text); }
.tp-docs .docs-nav__a.is-active { color: var(--d-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--tp-green); border-radius: 0 9px 9px 0; }

/* Help card: quiet, like the forum's "Talk to the developers" */
.tp-docs .docs-help { margin-top: 28px; padding: 20px; border: 1px solid var(--tp-line); border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tp-docs .docs-help__mark { display: flex; gap: 4px; margin-bottom: 4px; }
.tp-docs .docs-help__mark i { width: 8px; height: 8px; border-radius: 2px; background: var(--tp-green); }
.tp-docs .docs-help__mark i:nth-child(2) { opacity: .45; }
.tp-docs .docs-help__mark i:nth-child(3) { opacity: .2; }
.tp-docs .docs-help b { color: var(--d-ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tp-docs .docs-help p { margin: 0 0 6px; font-size: .9rem; line-height: 1.5; color: var(--tp-muted); }
.tp-docs .docs-link { color: var(--d-green-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.tp-docs .docs-link:hover { color: var(--d-ink); }
.tp-docs .docs-side__a { display: block; padding: 7px 0; font-size: .93rem; color: var(--tp-muted); text-decoration: none; }
.tp-docs .docs-side__a:hover { color: var(--d-ink); }

/* List */
.tp-docs .docs-group[hidden] { display: none; }
.tp-docs .docs-group + .docs-group { margin-top: 56px; }
.tp-docs .docs-group__label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; color: var(--d-ink); }
.tp-docs .docs-group__label small { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--tp-faint); }
.tp-docs .docs-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
.tp-docs .docs-row + .docs-row { border-top: 1px solid var(--tp-line); }
.tp-docs .docs-icon { padding-top: 3px; font-size: 1.25rem; line-height: 1; color: var(--tp-faint); text-align: center; }
.tp-docs .docs-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.tp-docs .docs-row h3 { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 700; margin: 0; }
.tp-docs .docs-row h3 a { color: var(--d-ink); text-decoration: none; }
.tp-docs .docs-row h3 a:hover { color: var(--d-green-dark); }
.tp-docs .docs-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--tp-soft); font-size: 12px; font-weight: 600; color: var(--tp-muted); white-space: nowrap; }
.tp-docs .docs-row-main > p { margin: 6px 0 0; color: var(--tp-muted); font-size: .95rem; line-height: 1.5; }
.tp-docs .docs-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.tp-docs .docs-links a { font-size: .9rem; color: var(--tp-muted); text-decoration: none; }
.tp-docs .docs-links a:hover { color: var(--d-green-dark); }
.tp-docs .docs-row-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.tp-docs .docs-go { color: var(--d-green-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.tp-docs .docs-go:hover { color: var(--d-ink); }
.tp-docs .docs-row-foot small { font-size: .8rem; color: var(--tp-faint); }
.tp-docs .docs-empty { color: var(--tp-muted); }

@media (max-width: 991.98px) {
	.tp-docs .docs-layout { grid-template-columns: 1fr; grid-template-areas: "nav" "main" "side"; }
	.tp-docs .docs-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
	.tp-docs .docs-nav .docs-nav__label { display: none; }
	.tp-docs .docs-nav__a { width: auto; margin: 0; padding: 7px 14px; border: 1px solid var(--tp-line); border-radius: 999px; }
	.tp-docs .docs-nav__a.is-active { box-shadow: none; border-color: var(--d-ink); border-radius: 999px; }
	.tp-docs .docs-side { margin-top: 32px; }
	.tp-docs .docs-help { margin-top: 0; }
}
@media (max-width: 575.98px) {
	.tp-docs .docs-head { padding: 24px 0 28px; margin-bottom: 28px; }
	.tp-docs .docs-row { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
	.tp-docs .docs-icon { font-size: 1.1rem; }
}
