/*
Theme Name: dds_holistctm.com
Theme URI: https://holistctm.com/
Author: Michael Torres
Description: Corporate premium theme for HolistCTM, an information site about commercial real estate and business space management. Dark graphite-blue palette with copper accents, Swiss grid structure and a drafting-line background.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hctm
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
    --c-bg: #0F172A;
    --c-bg-alt: #1E293B;
    --c-bg-deep: #0B1120;
    --c-text: #E2E8F0;
    --c-text-soft: #CBD5E1;
    --c-muted: #94A3B8;
    --c-copper: #C87941;
    --c-copper-light: #DA925B;
    --c-teal: #2DD4BF;
    --c-line: #334155;
    --f-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --f-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
    --shell-w: 92%;
    --radius: 6px;
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 16px 34px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%23C87941' stroke-opacity='0.08' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M0 300V222h42v-58h48v36h30v-92h46V60h16V38h12v22h16v52h32v70h36v-52h52V92h48v58h34v48h38v-78h54v52h40v44h42v84'/%3E%3Cpath d='M136 150h20M136 180h20M136 210h20M188 90v190M300 120h30M300 150h30M300 180h30M462 150h30M462 180h30M462 210h30M58 200v80M348 110v170'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(30, 41, 59, 0.15) 0 1px, transparent 1px 20px);
    background-repeat: no-repeat, repeat;
    background-position: right bottom, 0 0;
    background-size: 620px auto, auto;
    background-attachment: fixed, scroll;
    overflow-wrap: break-word;
}

body.home {
    --shell-w: 85%;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-text);
    margin: 1.6em 0 0.6em;
    hyphens: auto;
    overflow-wrap: break-word;
}

h1 { font-size: 2.3rem; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1.1em;
    hyphens: auto;
}

a {
    color: var(--c-teal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

a:hover {
    color: var(--c-copper);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--c-teal);
    outline-offset: 3px;
}

hr {
    border: 0;
    border-top: 1px solid var(--c-line);
    margin: 2.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    border: 1px solid var(--c-line);
    font-size: 0.97rem;
}

th,
td {
    border: 1px solid var(--c-line);
    padding: 0.6em 0.85em;
    text-align: start;
    vertical-align: top;
}

th {
    background: var(--c-bg-alt);
    font-family: var(--f-head);
    font-weight: 600;
}

code,
kbd,
pre {
    font-family: var(--f-mono);
    font-size: 0.92em;
}

code {
    background: rgba(148, 163, 184, 0.14);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

pre {
    background: var(--c-bg-deep);
    border: 1px solid var(--c-line);
    padding: 1.1em 1.3em;
    overflow-x: auto;
    border-radius: 4px;
}

pre code {
    background: none;
    padding: 0;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.2em 1.5em;
    background: var(--c-bg-alt);
    border-left: 3px solid var(--c-copper);
    border-radius: 0 4px 4px 0;
    color: var(--c-text-soft);
    font-size: 1.1rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.hc-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--c-copper);
    color: var(--c-bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.hc-skip:focus {
    top: 12px;
    color: var(--c-bg);
}

/* ==========================================================================
   Container & layouts
   ========================================================================== */
.shell {
    width: min(var(--shell-w), 1180px);
    margin-inline: auto;
}

.hc-main {
    display: block;
    min-height: 50vh;
}

.layout-with-sidebar,
.layout-single {
    padding: 1.5rem 0 5rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
}

.layout-single {
    display: block;
}

.content-area,
.sidebar {
    min-width: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--f-head);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-btn--primary {
    background: var(--c-copper);
    color: var(--c-bg);
    border-color: var(--c-copper);
}

.hc-btn--primary:hover {
    background: var(--c-copper-light);
    border-color: var(--c-copper-light);
    color: var(--c-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(200, 121, 65, 0.35);
    text-decoration: none;
}

.hc-btn--ghost {
    background: transparent;
    color: var(--c-teal);
    border-color: var(--c-teal);
}

.hc-btn--ghost:hover {
    background: rgba(45, 212, 191, 0.12);
    color: #5EEAD4;
    border-color: #5EEAD4;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(45, 212, 191, 0.22);
    text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.hc-header {
    background: var(--c-bg-deep);
    border-bottom: 1px solid var(--c-bg-alt);
    position: relative;
    z-index: 20;
}

.hc-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}

.hc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 0;
    min-width: 0;
}

.hc-brand__mark {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.hc-brand__text {
    min-width: 0;
    max-width: 620px;
}

.hc-brand__name {
    margin: 0;
    font-family: var(--f-head);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.hc-brand__name a {
    color: var(--c-text);
    text-decoration: none;
}

.hc-brand__name a:hover {
    color: var(--c-copper);
}

.hc-brand__tagline {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--c-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.55em 0.9em;
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 4px;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.hc-nav-toggle:hover {
    border-color: var(--c-teal);
    color: var(--c-teal);
}

.hc-nav-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.hc-nav-toggle__bars span {
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hc-nav-toggle[aria-expanded="true"] .hc-nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hc-nav-toggle[aria-expanded="true"] .hc-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.hc-nav-toggle[aria-expanded="true"] .hc-nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hc-nav {
    display: none;
    flex: 1 0 100%;
}

.hc-nav.is-open {
    display: block;
}

.hc-nav__list,
.hc-nav__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc-nav__list {
    border-top: 1px solid var(--c-bg-alt);
}

.hc-nav__list a {
    display: block;
    padding: 0.8rem 0.2rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px solid var(--c-bg-alt);
}

.hc-nav__list a:hover {
    color: var(--c-teal);
}

.hc-nav__list .current-menu-item > a,
.hc-nav__list .current_page_item > a {
    color: var(--c-copper);
}

.hc-nav__list ul a {
    padding-left: 1.2rem;
    font-weight: 500;
}

/* ==========================================================================
   Breadcrumbs & page heads
   ========================================================================== */
.breadcrumbs {
    padding: 1.6rem 0 0.2rem;
    font-size: 0.9rem;
    color: var(--c-muted);
}

.breadcrumbs a {
    color: var(--c-text-soft);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--c-teal);
    text-decoration: underline;
}

.breadcrumbs__sep {
    color: var(--c-copper);
    margin: 0 0.35em;
}

.page-head {
    margin-bottom: 2.2rem;
}

.page-title {
    margin: 0.4em 0 0.3em;
}

.page-lead {
    color: var(--c-muted);
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0;
}

.hc-empty {
    padding: 1.4rem 1.6rem;
    background: var(--c-bg-alt);
    border-left: 3px solid var(--c-teal);
    border-radius: 0 4px 4px 0;
    color: var(--c-text-soft);
}

/* ==========================================================================
   Section titles
   ========================================================================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 0.8rem;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
    letter-spacing: -0.02em;
}

.section-title::before {
    content: "";
    flex: 0 0 60px;
    height: 4px;
    background: var(--c-copper);
}

.section-lead {
    color: var(--c-muted);
    font-size: 1.08rem;
    max-width: 62ch;
    margin: 0 0 2.6rem 76px;
}

/* Copper vertical bar for content headings */
.entry-content h2,
.entry-content h3,
.zz-text h3,
.hc-widget__title,
.comments__title,
.comment-reply-title,
.card-title {
    border-left: 3px solid var(--c-copper);
    padding-left: 12px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--c-copper);
}

.card-thumb {
    position: relative;
    display: block;
    text-decoration: none;
}

.card-thumb::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    box-shadow: inset 0 0 48px 6px rgba(11, 17, 32, 0.72);
    pointer-events: none;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb__placeholder {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(45deg, rgba(200, 121, 65, 0.12) 0 1px, transparent 1px 16px),
        linear-gradient(135deg, #243247 0%, #111b2e 100%);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}

.card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 0;
}

.card-tag,
.card-pin {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 2px;
    font-family: var(--f-head);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.5;
}

.card-tag:hover {
    text-decoration: none;
    filter: brightness(1.15);
}

.card-tag--copper { background: rgba(200, 121, 65, 0.2);  color: #E6A676; }
.card-tag--teal   { background: rgba(45, 212, 191, 0.16); color: #5EEAD4; }
.card-tag--slate  { background: rgba(148, 163, 184, 0.2); color: #CBD5E1; }
.card-tag--olive  { background: rgba(132, 145, 72, 0.26); color: #C3CC86; }

.card-pin {
    background: var(--c-copper);
    color: var(--c-bg);
}

.card-title {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.18rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--c-text);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--c-teal);
}

.card-meta {
    margin: 0 0 0.7rem;
    font-size: 0.85rem;
    color: var(--c-muted);
}

.card-excerpt {
    color: var(--c-text-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin-top: auto;
    padding-top: 0.6rem;
    align-self: flex-start;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 0.92rem;
}

.sticky.card {
    border-top: 3px solid var(--c-copper);
}

/* ==========================================================================
   Front page
   ========================================================================== */
.fp-section {
    padding: 80px 0;
}

.fp-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    overflow: hidden;
    background: var(--c-bg-deep);
}

.fp-hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        repeating-linear-gradient(45deg, rgba(30, 41, 59, 0.08) 0 1px, transparent 1px 20px),
        linear-gradient(90deg, rgba(11, 17, 32, 0.94) 0%, rgba(11, 17, 32, 0.78) 48%, rgba(11, 17, 32, 0.35) 100%);
}

.fp-hero__inner {
    position: relative;
    z-index: 2;
    padding: 96px 0;
}

.fp-hero__content {
    max-width: 720px;
}

.fp-hero__title {
    margin: 0;
    font-size: clamp(2.3rem, 1.4rem + 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
}

.fp-hero__rule {
    display: block;
    width: 96px;
    height: 3px;
    margin: 1.6rem 0;
    background: var(--c-copper);
}

.fp-hero__lead {
    color: var(--c-text-soft);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 0 2.2rem;
}

.fp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Stats — accent section */
.fp-stats {
    background:
        repeating-linear-gradient(45deg, rgba(30, 41, 59, 0.08) 0 1px, transparent 1px 20px),
        linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
}

.fp-stats__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

.fp-stats__item {
    min-width: 0;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(45, 212, 191, 0.3);
}

.fp-stats__item:first-child {
    border-top: 0;
}

.fp-stats__num {
    font-family: var(--f-head);
    font-size: clamp(2.8rem, 2rem + 3vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--c-copper);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.fp-stats__label {
    margin: 0.7rem 0 0;
    color: var(--c-muted);
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 30ch;
}

/* Latest posts */
.fp-latest__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.4rem;
}

.fp-latest__head .section-title {
    margin: 0;
}

.post-grid--three {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* Zigzag */
.fp-zigzag {
    background: var(--c-bg-alt);
}

.fp-zigzag .section-title {
    margin-bottom: 2.8rem;
}

.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.zz-row + .zz-row {
    margin-top: 4rem;
}

.zz-media {
    margin: 0;
    min-width: 0;
}

.zz-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--c-copper);
    border-radius: 2px;
}

.zz-text {
    min-width: 0;
}

.zz-text h3 {
    margin: 0 0 1rem;
    font-size: 1.55rem;
}

.zz-text p {
    color: var(--c-text-soft);
}

.zz-text p:last-child {
    margin-bottom: 0;
}

/* FAQ */
.faq-list {
    max-width: 880px;
    border-top: 1px solid var(--c-line);
    margin-top: 2.4rem;
}

.faq-item {
    border-bottom: 1px solid var(--c-line);
}

.faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1.25rem 0.2rem;
    font-family: var(--f-head);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-text);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 0.55em;
    background: var(--c-copper);
}

.faq-item summary::after {
    content: "+";
    margin-left: auto;
    padding-left: 1rem;
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--c-teal);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--c-teal);
}

.faq-answer {
    margin: 0 0 1.4rem 24px;
    padding: 1.1rem 1.4rem;
    background: var(--c-bg-alt);
    border-left: 2px solid var(--c-teal);
    color: var(--c-text-soft);
}

.faq-item[open] .faq-answer {
    animation: hc-faq-in 0.3s ease;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@keyframes hc-faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Single / page
   ========================================================================== */
.entry-head {
    margin-bottom: 1.8rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin: 0;
    color: var(--c-muted);
    font-size: 0.92rem;
}

.entry-thumb {
    margin: 0 0 2rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.entry-content {
    font-size: 1.08rem;
    line-height: 1.75;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.32rem; }

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
    margin: 0 0 1.2em;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content ul li::marker {
    color: var(--c-copper);
}

.entry-content figure {
    margin: 1.8em 0;
}

.entry-content figcaption,
.wp-caption-text {
    color: var(--c-muted);
    font-size: 0.88rem;
    margin-top: 0.5em;
}

.entry-content img {
    border-radius: 4px;
}

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.bypostauthor .hc-comment__author::after { content: " ✦"; color: var(--c-copper); }

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2rem;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2.2rem 0 0;
}

.entry-tags a {
    display: inline-block;
    padding: 0.25em 0.7em;
    background: var(--c-bg-alt);
    border-radius: 2px;
    font-size: 0.88rem;
    color: var(--c-text-soft);
    text-decoration: none;
}

.entry-tags a:hover {
    color: var(--c-teal);
}

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 3rem 0 0;
}

.post-nav__link {
    display: block;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: var(--c-bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-nav__link:hover {
    border-color: var(--c-copper);
    transform: translateY(-2px);
}

.post-nav__link--next {
    text-align: end;
}

.post-nav__label {
    display: block;
    font-size: 0.82rem;
    color: var(--c-muted);
    margin-bottom: 0.3rem;
}

.post-nav__title {
    display: block;
    color: var(--c-text);
    font-family: var(--f-head);
    font-weight: 700;
}

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.sidebar {
    align-self: start;
    background: var(--c-bg-alt);
    color: var(--c-text-soft);
    padding: 1.8rem 1.6rem;
    border-radius: var(--radius);
}

.hc-widget + .hc-widget {
    margin-top: 2.2rem;
}

.hc-widget__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.sidebar .hc-widget__title {
    color: var(--c-text);
}

.sidebar a {
    color: var(--c-text-soft);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--c-teal);
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--c-line);
    line-height: 1.45;
}

.sidebar li:last-child {
    border-bottom: 0;
}

.sidebar .post-date,
.hc-footer .post-date {
    display: block;
    color: var(--c-muted);
    font-size: 0.82rem;
}

.sidebar .search-form__field {
    background: var(--c-bg);
}

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 560px;
}

.search-form__field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75em 1em;
    background: var(--c-bg-deep);
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 4px;
    font: inherit;
}

.search-form__field::placeholder {
    color: var(--c-muted);
}

.search-form__field:focus {
    border-color: var(--c-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.search-form__submit {
    padding: 0.75em 1.3em;
    background: var(--c-copper);
    color: var(--c-bg);
    border: 0;
    border-radius: 4px;
    font-family: var(--f-head);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-form__submit:hover {
    background: var(--c-copper-light);
    transform: translateY(-2px);
}

.search-inline {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.hc-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.hc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--c-line);
    border-radius: 4px;
    background: transparent;
    color: var(--c-text);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.hc-pagination a.page-numbers:hover {
    border-color: var(--c-teal);
    color: var(--c-teal);
}

.hc-pagination .page-numbers.current {
    background: var(--c-copper);
    border-color: var(--c-copper);
    color: var(--c-bg);
}

.hc-pagination .page-numbers.dots {
    border-color: transparent;
    min-width: 0;
    padding: 0 0.3rem;
    color: var(--c-muted);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--c-line);
}

.comments__title {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--c-line);
}

.hc-comment__body {
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

.hc-comment__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.7rem;
}

.hc-comment__avatar {
    display: block;
    border-radius: 50%;
}

.hc-comment__author {
    display: block;
    font-family: var(--f-head);
    font-weight: 700;
    color: var(--c-text);
}

.hc-comment__date {
    font-size: 0.82rem;
    color: var(--c-muted);
}

.hc-comment__pending {
    font-size: 0.9rem;
    color: var(--c-copper);
}

.hc-comment__text {
    color: var(--c-text-soft);
}

.hc-comment__text p:last-child {
    margin-bottom: 0;
}

.hc-comment__reply {
    margin-top: 0.6rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.9rem;
}

.comments__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.comments__closed {
    color: var(--c-muted);
}

.comment-respond {
    margin-top: 2rem;
    padding: 1.6rem 1.6rem 1.8rem;
    background: var(--c-bg-alt);
    border-radius: var(--radius);
}

.comment-reply-title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.comment-reply-title small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.comment-notes,
.logged-in-as,
.must-log-in {
    color: var(--c-muted);
    font-size: 0.92rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.92rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 4px;
    font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--c-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.comment-form-cookies-consent label {
    display: inline;
    font-family: var(--f-body);
    font-weight: 400;
    color: var(--c-text-soft);
}

.comment-form .required {
    color: var(--c-copper);
}

/* ==========================================================================
   404
   ========================================================================== */
.nf-box {
    padding: 2.5rem 2.2rem;
    margin: 1rem 0 0;
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    border-left: 3px solid var(--c-copper);
}

.nf-box__code {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--c-copper);
    letter-spacing: -0.04em;
}

.nf-box .search-form {
    margin: 1.5rem 0;
}

.nf-box__actions {
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hc-footer {
    background: var(--c-bg-deep);
    color: var(--c-text-soft);
    border-top: 1px solid var(--c-bg-alt);
}

.hc-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: 4rem 0 3rem;
}

.hc-footer__col {
    min-width: 0;
}

.hc-footer .hc-widget__title {
    color: var(--c-text);
}

.hc-footer .hc-widget,
.hc-footer .hc-widget p,
.hc-footer .textwidget {
    color: var(--c-text-soft);
    font-size: 0.97rem;
}

.hc-footer a {
    color: var(--c-text-soft);
    text-decoration: none;
}

.hc-footer a:hover {
    color: var(--c-teal);
    text-decoration: underline;
}

.hc-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc-footer li {
    padding: 0.35rem 0;
}

.hc-footer__bottom {
    border-top: 1px solid var(--c-bg-alt);
    padding: 1.3rem 0;
}

.hc-footer__copy {
    margin: 0;
    font-size: 0.88rem;
    color: var(--c-muted);
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    max-width: 760px;
    padding: 1.2rem 1.4rem;
    background: var(--c-bg-alt);
    color: var(--c-text-soft);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-copper);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner__text {
    flex: 1 1 280px;
    min-width: 0;
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.5;
}

.cookie-banner__accept {
    flex: 0 0 auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 600px) {
    h1 { font-size: 2.9rem; }

    .fp-stats__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-stats__item {
        padding: 1.6rem 1.8rem;
        border-top: 0;
    }

    .fp-stats__item:nth-child(even) {
        border-left: 1px solid rgba(45, 212, 191, 0.3);
    }

    .fp-stats__item:nth-child(n+3) {
        border-top: 1px solid rgba(45, 212, 191, 0.3);
    }

    .post-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-nav__link--next:only-child {
        grid-column: 2;
    }

    .hc-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    h1 { font-size: 3.5rem; }

    .hc-header__inner {
        flex-wrap: nowrap;
    }

    .hc-nav-toggle {
        display: none;
    }

    .hc-nav {
        display: block;
        flex: 0 0 auto;
    }

    .hc-nav__list {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        border-top: 0;
    }

    .hc-nav__list > li {
        position: relative;
    }

    .hc-nav__list a {
        padding: 0.5rem 0.8rem;
        border-bottom: 0;
        border-radius: 4px;
        white-space: nowrap;
    }

    .hc-nav__list > .current-menu-item > a,
    .hc-nav__list > .current_page_item > a {
        box-shadow: inset 0 -2px 0 var(--c-copper);
        border-radius: 0;
    }

    .hc-nav__list ul {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 220px;
        padding: 0.5rem;
        background: var(--c-bg-deep);
        border: 1px solid var(--c-line);
        border-radius: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .hc-nav__list li:hover > ul,
    .hc-nav__list li:focus-within > ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hc-nav__list ul a {
        padding: 0.5rem 0.7rem;
        white-space: normal;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        gap: 0;
    }

    .layout-single .content-area {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .fp-hero {
        min-height: 640px;
    }

    .fp-stats__row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fp-stats__item,
    .fp-stats__item:nth-child(n+3) {
        border-top: 0;
        padding: 0.4rem 1.8rem;
    }

    .fp-stats__item:first-child {
        padding-left: 0;
    }

    .fp-stats__item + .fp-stats__item {
        border-left: 1px solid rgba(45, 212, 191, 0.3);
    }

    .zz-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4rem;
    }

    .zz-row--flip .zz-media {
        order: 2;
    }

    .hc-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3rem;
    }
}

@media (max-width: 599px) {
    body {
        background-size: 320px auto, auto;
    }

    .fp-section {
        padding: 56px 0;
    }

    .fp-hero__inner {
        padding: 72px 0;
    }

    .section-lead {
        margin-left: 0;
    }

    .section-title::before {
        flex-basis: 36px;
    }

    .faq-answer {
        margin-left: 0;
        padding: 1rem 1.1rem;
    }

    .nf-box {
        padding: 1.8rem 1.4rem;
    }

    .sidebar {
        padding: 1.5rem 1.3rem;
    }

    .comment-respond {
        padding: 1.3rem 1.2rem 1.5rem;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 1rem 1.1rem;
    }

    .hc-brand__tagline {
        display: none;
    }

    .hc-brand__name {
        font-size: 0.86rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .hc-nav-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
