/* GrL'Ca plugin shop + docs — [grlca_plugin_shop] / [grlca_plugin_docs].
   Brand: warm grey #7a7570, ink #2c2a28 (never teal). Scoped to .gps. */
.gps { --gps-brand: #7a7570; --gps-brand-d: #67625d; --gps-ink: #2c2a28; --gps-soft: #f4f2f0; --gps-line: #e2ded9; --gps-muted: #6f6a65;
	color: var(--gps-ink); max-width: none; margin: 0 auto; line-height: 1.6; }
/* Width comes from the page: grlca-theme 1.8.2+ gives pages with these shortcodes its wide 1240px column. */
.gps *, .gps *::before, .gps *::after { box-sizing: border-box; }
.gps a { color: var(--gps-ink); text-decoration-color: var(--gps-brand); text-underline-offset: 3px; }
.gps a:hover { color: var(--gps-brand-d); }
.gps-muted { color: var(--gps-muted); }
.gps-small { color: var(--gps-muted); font-size: .85rem; margin: .6rem 0 0; }

.gps-promo { background: var(--gps-ink); color: #fff; border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; }
.gps-promo a { color: #fff; font-weight: 600; text-decoration-color: #d9d5d0; }

.gps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gps-card { background: #fff; border: 1px solid var(--gps-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.gps-card:hover, .gps-card:focus-within { border-color: var(--gps-brand); box-shadow: 0 2px 10px rgba(44,42,40,.07); }
.gps-card__link { display: flex; flex-direction: column; padding: 16px; text-decoration: none; color: inherit; height: 100%; }
.gps-card__btn { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center;
	background: var(--gps-ink); color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: .92rem; transition: background .15s; }
.gps-card__text { flex: 1 0 auto; margin-bottom: 14px !important; }
.gps-card:hover .gps-card__btn, .gps-card:focus-within .gps-card__btn { background: var(--gps-brand); }

/* The theme indents lists and underlines link text; the grid and the card (one big link) opt out. */
.gps ul.gps-grid { margin: 0; padding: 0; }
.gps .gps-card__link, .gps .gps-card__link * { text-decoration: none; }
.gps .gps-card__link:hover .gps-card__name { text-decoration: underline; text-decoration-color: var(--gps-brand); }

/* Card layout: icon left, name + price right, description centred, button right. */
.gps-card__top { justify-content: space-between; align-items: flex-start; }
.gps-card__top > div { text-align: right; }
.gps-card .gps-card__text { text-align: center; }
.gps-card .gps-card__btn { align-self: flex-end; }
/* A little colour: price in the site accent, "free" in green. */
.gps-card .gps-price { color: var(--accent, #c8432f); }
.gps-card .gps-price--free { color: #2f8a4c; }
.gps-card__top { display: flex; gap: 12px; align-items: center; }
.gps-card__name { font-size: 1.02rem; margin: 0 0 2px; line-height: 1.3; }
.gps-card__text { margin: 10px 0 0; color: #4d4944; font-size: .94rem; }
.gps-icon { width: 56px; height: 56px; border-radius: 12px; flex: none; display: block; object-fit: cover; }
.gps-icon--mono { background: var(--gps-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.gps-price { color: var(--gps-brand-d); font-weight: 700; }
.gps-badge { display: inline-block; background: var(--gps-soft); border-radius: 20px; padding: 0 8px; font-size: .75rem; color: var(--gps-muted); }

.gps-back { margin: 0 0 12px; font-size: .92rem; }
.gps-banner { width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 0 18px; }
.gps-head { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; }
.gps-title { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.gps-lead { margin: 0 0 6px; font-size: 1.05rem; color: #4d4944; }
.gps-meta { margin: 0; font-size: .92rem; color: var(--gps-muted); }

.gps-get { background: var(--gps-soft); border-radius: 12px; padding: 18px; margin: 0 0 18px; }
.gps-form { margin: 0; max-width: 520px; }
.gps-inline { display: inline-block; }
.gps-label { display: block; font-weight: 600; margin: 8px 0 4px; }
.gps-input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfcac4; border-radius: 8px; background: #fff; color: inherit; }
.gps-input:focus { outline: 2px solid var(--gps-brand); outline-offset: 1px; border-color: var(--gps-brand); }
.gps-input--code { max-width: 200px; font-size: 1.4rem; letter-spacing: .35em; text-align: center; }
.gps-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: .94rem; }
.gps-check input { margin-top: .3em; flex: none; }
.gps-btn { display: inline-block; font: inherit; font-weight: 600; background: var(--gps-brand); color: #fff !important; border: 0; border-radius: 8px; padding: 10px 18px; cursor: pointer; text-decoration: none; margin-top: 8px; }
.gps-btn:hover, .gps-btn:focus-visible { background: var(--gps-brand-d); }
.gps-btn:focus-visible { outline: 2px solid var(--gps-ink); outline-offset: 2px; }
.gps-btn--ghost { background: transparent; color: var(--gps-ink) !important; border: 1px solid #cfcac4; }
.gps-btn--ghost:hover { background: #fff; }
.gps-error { background: #fbeceb; color: #8a1f1b; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.gps-notice { background: var(--gps-soft); border-left: 3px solid var(--gps-brand); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0 0 14px; }
.gps-done { background: #eef5ef; border-radius: 10px; padding: 14px; }
.gps-done p { margin: 6px 0 4px; }
.gps-ok { color: #2a6b37; font-weight: 600; margin: 0 0 8px; }

.gps-sec { border-top: 1px solid var(--gps-line); padding: 10px 0; }
.gps-sec > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 4px 0; }
.gps-prose h4 { margin: 1.1em 0 .3em; font-size: 1rem; }
.gps-prose ul { padding-left: 1.25em; }
.gps-prose code { background: var(--gps-soft); padding: 0 4px; border-radius: 4px; font-size: .9em; }
.gps-foot { margin-top: 22px; font-size: .92rem; color: var(--gps-muted); }

/* Docs */
.gps-toc ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.gps-toc a { display: inline-block; padding: 6px 12px; background: var(--gps-soft); border-radius: 20px; text-decoration: none; font-size: .92rem; }
.gps-docs section { margin: 0 0 30px; scroll-margin-top: 90px; }
.gps-docs h2 { font-size: 1.45rem; margin: 0 0 12px; }
.gps-docs h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
.gps-doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gps-doclist a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--gps-line); border-radius: 10px; text-decoration: none; }
.gps-doclist a:hover { border-color: var(--gps-brand); }
.gps-doclist .gps-icon { width: 32px; height: 32px; border-radius: 8px; font-size: .8rem; }
.gps-legal { border-top: 1px solid var(--gps-line); padding-top: 18px; }
.gps-draft { background: #fff6e0; border-radius: 8px; padding: 8px 12px; }
.gps-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 18px; }
.gps-facts dt { font-weight: 600; }
.gps-facts dd { margin: 0; }
.gps-tablewrap { overflow-x: auto; }
.gps-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gps-table th, .gps-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--gps-line); vertical-align: top; }
.gps-table th { background: var(--gps-soft); }

@media (max-width: 600px) {
	.gps-head { flex-direction: column; }
	.gps-get { padding: 14px; }
	.gps-btn { width: 100%; text-align: center; }
	.gps-inline { display: block; }
}

/* ── Browsing: categories, search, sort, tags ── */
.gps-cats { margin: 0 0 14px; }
.gps .gps-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.gps .gps-chips li { margin: 0; }
.gps .gps-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gps-line);
	background: #fff; color: var(--gps-ink); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: border-color .15s, background .15s; }
.gps .gps-chip:hover, .gps .gps-chip:focus-visible { border-color: var(--gps-brand); color: var(--gps-ink); }
.gps .gps-chip.is-active { background: var(--gps-ink); border-color: var(--gps-ink); color: #fff; }
.gps .gps-chip__n { font-weight: 500; font-size: .8rem; color: var(--gps-muted); }
.gps .gps-chip.is-active .gps-chip__n { color: #d9d5d0; }
.gps .gps-chips--sub .gps-chip { padding: 5px 12px; font-size: .86rem; background: var(--gps-soft); border-color: transparent; }
.gps .gps-chips--sub .gps-chip.is-active { background: var(--gps-brand); border-color: var(--gps-brand); color: #fff; }
.gps-crumbs { margin: 4px 0 6px; font-size: .9rem; color: var(--gps-muted); }
.gps-cat-title { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; }
.gps-cat-desc { margin: 0 0 16px; color: #4d4944; max-width: 70ch; }

.gps-tools:not([hidden]) { display: flex; gap: 12px; align-items: flex-end; margin: 0 0 12px; }
.gps-tools label { display: block; font-weight: 600; font-size: .85rem; margin: 0 0 4px; }
.gps-search { flex: 1 1 auto; }
.gps-sort { flex: 0 0 210px; }
.gps-tagbar:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.gps-tagbar__label { font-size: .85rem; color: var(--gps-muted); margin-right: 2px; }
.gps .gps-tag { font: inherit; font-size: .82rem; line-height: 1.2; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gps-line);
	background: #fff; color: var(--gps-muted); cursor: pointer; text-decoration: none; }
.gps .gps-tag:hover, .gps .gps-tag:focus-visible { border-color: var(--gps-brand); color: var(--gps-ink); }
.gps .gps-tag.is-active { background: var(--gps-brand); border-color: var(--gps-brand); color: #fff; }
.gps .gps-tag--sm { font-size: .75rem; padding: 2px 8px; }
.gps-card { display: flex; flex-direction: column; }
.gps-card[hidden] { display: none; }
.gps-card .gps-card__link { flex: 1 1 auto; }
.gps-card__tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px 14px; }
.gps-taxo { margin-top: 4px; }
.gps-taxo .gps-tag { margin: 0 2px 2px 0; }
.gps-empty { margin: 8px 0 18px; color: var(--gps-muted); }
.gps .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 700px) {
	.gps .gps-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: thin; }
	.gps-tools:not([hidden]) { flex-direction: column; align-items: stretch; }
	.gps-sort { flex: 1 1 auto; }
}
