/*
Theme Name: Crypto Country Guide
Description: Child theme of Twenty Twenty-Five for cryptocountryguide.com: paper and ink with a purple accent. Managed in /opt/webstack/themes/cryptocountry.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: cryptocountry
*/

/* Colours: white text on the purple accent only (7.1:1). Never dark text on purple. */

/* Header */
.ccg-header { border-bottom: 1px solid var(--wp--preset--color--accent-4); background: var(--wp--preset--color--base); }
.ccg-header p { margin: 0; }
.ccg-header .alignwide { gap: 0.8rem 1.6rem; align-items: center; }
.ccg-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--wp--preset--color--contrast); text-decoration: none; }
.ccg-brand img { width: 34px; height: 34px; flex: none; }
.ccg-brand-name { font-family: var(--wp--preset--font-family--literata); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.ccg-brand-name small { display: block; font-family: var(--wp--preset--font-family--manrope); font-weight: 400; font-size: 0.78rem; color: var(--wp--preset--color--accent-3); }
.ccg-brand:hover .ccg-brand-name { color: var(--wp--preset--color--accent-1); }

/* Language switcher (Polylang): flag + language name */
.ccg-langs ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.ccg-langs a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--wp--preset--color--contrast); text-decoration: none; }
.ccg-langs a:hover { color: var(--wp--preset--color--accent-1); text-decoration: underline; }
.ccg-langs .current-lang a { font-weight: 600; }
.ccg-langs img { width: 16px; height: 11px; }

/* Breadcrumb */
.ccg-crumbs { font-size: 0.85rem; color: var(--wp--preset--color--accent-3); }
.ccg-crumbs a { color: var(--wp--preset--color--accent-3); }
.ccg-crumbs .sep { margin: 0 0.45rem; }

/* "Last reviewed" line from the Site MCP plugin, under the title */
.site-mcp-reviewed { margin-top: 0.4rem; font-size: 0.85rem; color: var(--wp--preset--color--accent-3); }

/* Boxes */
.ccg-tldr, .ccg-note, .ccg-warning { padding: 1rem 1.25rem; border-radius: 6px; border: 1px solid var(--wp--preset--color--accent-4); }
.ccg-tldr { background: var(--wp--preset--color--accent-2); border-color: #ddd0f5; border-left: 4px solid var(--wp--preset--color--accent-1); }
.ccg-note { background: var(--wp--preset--color--accent-5); }
.ccg-warning { background: var(--wp--preset--color--accent-6); border-left: 4px solid #a45a12; }
.ccg-tldr > :first-child, .ccg-note > :first-child, .ccg-warning > :first-child { margin-top: 0; }
.ccg-tldr > :last-child, .ccg-note > :last-child, .ccg-warning > :last-child { margin-bottom: 0; }

/* Sources list with "last checked" dates */
.ccg-sources { font-size: 0.92rem; }
.ccg-sources li { margin-bottom: 0.35rem; }

/* Tables (country facts, comparison) */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--accent-4); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--wp--preset--color--accent-1); color: #fff; font-weight: 600; }
.wp-block-table tbody tr:nth-child(even) { background: var(--wp--preset--color--accent-5); }

/* Child-page cards ([ccg_children]) */
.ccg-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ccg-card { display: block; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 6px; background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--contrast); text-decoration: none; }
.ccg-card:hover { border-color: var(--wp--preset--color--accent-1); }
.ccg-card-title { display: block; font-weight: 600; color: var(--wp--preset--color--accent-1); }
.ccg-card-text { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: var(--wp--preset--color--accent-3); }

/* Footer */
.ccg-footer { border-top: 1px solid var(--wp--preset--color--accent-4); font-size: 0.9rem; color: var(--wp--preset--color--accent-3); }
.ccg-footer p { margin: 0 0 0.5rem; }
.ccg-footer a { color: var(--wp--preset--color--accent-3); }

@media print {
	.ccg-header, .ccg-footer, .ccg-langs { display: none; }
}
