/* ==========================================================================
   TFS Design System v3.0 — Simple. Clean. Modern.
   One font (Inter). Minimal color. Maximum clarity.
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --tfs-text: #111111;
    --tfs-text-secondary: #666666;
    --tfs-text-light: #999999;
    --tfs-bg: #FFFFFF;
    --tfs-bg-subtle: #f8f8f8;
    --tfs-border: #eeeeee;
    --tfs-link: #111111;
    --tfs-link-hover: #555555;
    --wp--style--global--content-size: 700px;
}

/* --- Global Typography --- */
.tfs-custom,
.tfs-custom body,
.tfs-custom p,
.tfs-custom li,
.tfs-custom td {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tfs-text);
}

.tfs-custom {
    font-weight: 400;
    font-size: clamp(0.95rem, 0.95rem + 0.15vw, 1.05rem);
    letter-spacing: -0.011em;
    line-height: 1.7;
}

/* --- Headings — all Inter, all clean --- */
.tfs-custom h1, .tfs-custom h2, .tfs-custom h3,
.tfs-custom h4, .tfs-custom h5, .tfs-custom h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--tfs-text);
    line-height: 1.2;
}

.tfs-custom h1 { font-weight: 700; letter-spacing: -0.04em; }
.tfs-custom h2 { font-weight: 600; letter-spacing: -0.03em; }
.tfs-custom h3 { font-weight: 600; letter-spacing: -0.02em; }
.tfs-custom h4 { font-weight: 600; letter-spacing: -0.01em; }
.tfs-custom h5, .tfs-custom h6 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* --- Links --- */
.tfs-custom a:not(.wp-element-button) {
    color: var(--tfs-link);
    text-decoration: none;
    transition: color 0.15s ease;
}
.tfs-custom a:not(.wp-element-button):hover {
    color: var(--tfs-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
}

/* --- Header — clean white, not navy --- */
.tfs-custom header.wp-block-template-part,
.tfs-custom header .wp-block-group {
    background-color: var(--tfs-bg) !important;
    border-bottom: 1px solid var(--tfs-border);
}

.tfs-custom header.wp-block-template-part *:not(img),
.tfs-custom header .wp-block-group *:not(img) {
    color: var(--tfs-text);
}

.tfs-custom header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 100;
}

.tfs-custom header .wp-block-site-title a {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    text-decoration: none !important;
    color: var(--tfs-text) !important;
}

.tfs-custom header .wp-block-navigation a,
.tfs-custom header .wp-block-navigation-item a {
    font-family: "Inter", sans-serif;
    font-weight: 450;
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none !important;
    color: var(--tfs-text-secondary) !important;
    transition: color 0.15s ease;
    border-bottom: none;
    padding-bottom: 0;
}

.tfs-custom header .wp-block-navigation a:hover,
.tfs-custom header .wp-block-navigation-item a:hover {
    color: var(--tfs-text) !important;
}

.tfs-custom header .wp-block-site-logo img {
    filter: none;
}

/* --- Single Post --- */
.tfs-custom .wp-block-post-title,
.tfs-custom h1.wp-block-post-title {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.8rem, 1.8rem + 1vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--tfs-text);
    margin-bottom: 0.5rem;
}

.tfs-custom .wp-block-post-date,
.tfs-custom .wp-block-post-terms {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: var(--tfs-text-light);
}

.tfs-custom .wp-block-post-featured-image img {
    max-height: 480px;
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
}

.tfs-custom .wp-block-post-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.tfs-custom .wp-block-post-content h2 {
    font-size: clamp(1.35rem, 1.35rem + 0.3vw, 1.6rem);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.tfs-custom .wp-block-post-content a {
    color: var(--tfs-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: #cccccc;
}

.tfs-custom .wp-block-post-content a:hover {
    text-decoration-color: var(--tfs-text);
}

.tfs-custom .wp-block-post-content strong {
    font-weight: 600;
}

.tfs-custom .wp-block-post-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.tfs-custom .wp-block-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Blockquote — simple left border */
.tfs-custom .wp-block-post-content blockquote,
.tfs-custom .wp-block-post-content .wp-block-quote {
    border-left: 2px solid #dddddd;
    background: transparent;
    padding: 0 0 0 1.5rem;
    margin: 2rem 0;
    border-radius: 0;
}

.tfs-custom .wp-block-post-content blockquote p,
.tfs-custom .wp-block-post-content .wp-block-quote p {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-style: normal;
    line-height: 1.7;
    color: var(--tfs-text-secondary);
}

/* --- Key Takeaways --- */
.tfs-custom .tfs-takeaways {
    background: var(--tfs-bg-subtle);
    border-left: 2px solid #cccccc;
    border-radius: 0;
    padding: 1.5rem 1.5rem 1rem;
    margin: 2rem 0;
}

.tfs-custom .tfs-takeaways h2 {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    color: var(--tfs-text-secondary);
}

.tfs-custom .tfs-takeaways ul { list-style: none; padding-left: 0; }

.tfs-custom .tfs-takeaways li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.tfs-custom .tfs-takeaways li::before {
    content: "4";
    position: absolute;
    left: 0;
    color: var(--tfs-text-light);
}

/* --- Further Reading --- */
.tfs-custom .tfs-reading {
    background: transparent;
    border-left: 2px solid #dddddd;
    border-radius: 0;
    padding: 1.5rem 1.5rem 1rem;
    margin: 2rem 0;
}

.tfs-custom .tfs-reading h2 {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    color: var(--tfs-text-secondary);
}

.tfs-custom .tfs-reading ul { list-style: none; padding-left: 0; }
.tfs-custom .tfs-reading li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}
.tfs-custom .tfs-reading li::before {
    content: "92";
    position: absolute;
    left: 0;
    color: var(--tfs-text-light);
}

/* --- Blog Index Cards — flat, no borders, no shadows --- */
.tfs-custom .wp-block-post-template {
    gap: 2rem !important;
}

.tfs-custom .wp-block-post-template > li,
.tfs-custom .wp-block-post-template .wp-block-post {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.tfs-custom .wp-block-post-template > li:hover,
.tfs-custom .wp-block-post-template .wp-block-post:hover {
    box-shadow: none;
    transform: none;
}

.tfs-custom .wp-block-post-template .wp-block-post-featured-image {
    margin-bottom: 0;
}

.tfs-custom .wp-block-post-template .wp-block-post-featured-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
}

.tfs-custom .wp-block-post-template .wp-block-post-title {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    padding: 0;
    margin-top: 0.75rem;
}

.tfs-custom .wp-block-post-template .wp-block-post-title a {
    color: var(--tfs-text);
    text-decoration: none;
}
.tfs-custom .wp-block-post-template .wp-block-post-title a:hover {
    color: var(--tfs-link-hover);
}

.tfs-custom .wp-block-post-template .wp-block-post-excerpt,
.tfs-custom .wp-block-post-template .wp-block-post-content {
    padding: 0;
    font-size: 0.85rem;
    color: var(--tfs-text-light);
    line-height: 1.55;
}

.tfs-custom .wp-block-post-template .wp-block-post-date {
    padding: 0;
    font-size: 0.72rem;
    color: #bbbbbb;
}

.tfs-custom .wp-block-post-template .wp-block-post-terms {
    padding: 0;
    margin-top: 0;
}

/* Category labels — simple text, no badges */
.tfs-custom .wp-block-post-terms a {
    display: inline;
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0;
    border-radius: 0;
    background: none !important;
    color: var(--tfs-text-light) !important;
    text-decoration: none !important;
}

.tfs-custom .wp-block-post-terms a:hover {
    color: var(--tfs-text) !important;
    opacity: 1;
}

/* --- Buttons --- */
.tfs-custom .wp-block-button__link {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 3px;
    padding: 0.7rem 1.8rem;
    transition: background-color 0.15s ease;
}

.tfs-custom .wp-block-button__link:hover {
    transform: none;
}

/* --- Homepage --- */
.tfs-custom .wp-block-cover {
    min-height: 400px;
}

.tfs-custom .wp-block-cover h1,
.tfs-custom .wp-block-cover h2,
.tfs-custom .wp-block-cover .wp-block-heading {
    font-family: "Inter", sans-serif;
}

.tfs-custom .wp-block-columns .wp-block-column {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

/* --- Footer — simple dark --- */
.tfs-custom footer.wp-block-template-part,
.tfs-custom footer .wp-block-group {
    background-color: #111111 !important;
}

.tfs-custom footer.wp-block-template-part *,
.tfs-custom footer .wp-block-group * {
    color: rgba(255,255,255,0.5);
}

.tfs-custom footer a {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
}
.tfs-custom footer a:hover {
    color: #FFFFFF !important;
}

.tfs-custom footer .wp-block-site-logo img {
    filter: brightness(10);
    opacity: 0.5;
}

/* --- About Page --- */
.tfs-custom .wp-block-image img {
    border-radius: 4px;
}

.tfs-custom .wp-block-separator {
    border-color: var(--tfs-border);
    max-width: 60px;
    margin: 2rem auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tfs-custom .wp-block-post-title,
    .tfs-custom h1.wp-block-post-title {
        font-size: 1.6rem;
    }
    .tfs-custom .wp-block-post-content p {
        font-size: 1rem;
    }
    .tfs-custom .wp-block-post-content h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
    .tfs-custom .tfs-takeaways,
    .tfs-custom .tfs-reading {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    .tfs-custom .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .tfs-custom .wp-block-post-title,
    .tfs-custom h1.wp-block-post-title {
        font-size: 1.4rem;
    }
    .tfs-custom header .wp-block-navigation a {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   TFS v3.1 Additions: Cookie Consent + Legal Footer
   ========================================================================== */

/* --- Cookie Consent Banner --- */
.tfs-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #111111;
    color: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.tfs-cookie-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.tfs-cookie-text {
    flex: 1;
    min-width: 240px;
    margin: 0;
    color: #ffffff;
}

.tfs-cookie-text a {
    color: #ffffff;
    text-decoration: underline;
}

.tfs-cookie-text a:hover {
    opacity: 0.8;
}

.tfs-cookie-actions {
    display: flex;
    gap: 12px;
}

.tfs-cookie-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.tfs-cookie-reject {
    background: transparent;
    color: #ffffff;
}

.tfs-cookie-reject:hover {
    background: rgba(255,255,255,0.12);
}

.tfs-cookie-accept {
    background: #ffffff;
    color: #111111;
}

.tfs-cookie-accept:hover {
    background: #eeeeee;
}

@media (max-width: 600px) {
    .tfs-cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .tfs-cookie-actions {
        justify-content: flex-end;
    }
}

/* --- Legal Footer --- */
.tfs-legal-footer {
    padding: 30px 20px 40px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid var(--tfs-border);
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 13px;
}

.tfs-legal-footer nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tfs-legal-footer a {
    color: var(--tfs-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.tfs-legal-footer a:hover {
    color: var(--tfs-text);
    text-decoration: underline;
}

.tfs-legal-footer span {
    color: var(--tfs-text-light);
}

.tfs-legal-copyright {
    margin: 0;
    color: var(--tfs-text-light);
    font-size: 12px;
}
