/* =========================================================================
   Central Perth Skin Clinic — theme styles
   ========================================================================= */

:root {
    --cpsc-cream: #fbfaf4;
    --cpsc-brown: #8e5135;
    --cpsc-copper: #b06a49;
    --cpsc-border: #f7dec2;
    --cpsc-orange: #f89a2d;
    --cpsc-orange-dark: #e88a1d;
    --cpsc-muted: #a9826d;

    --cpsc-heading: var(--cpsc-setting-heading-color, var(--cpsc-copper));
    --cpsc-text: var(--cpsc-setting-text-color, var(--cpsc-brown));
    --cpsc-link: var(--cpsc-setting-content-link-color, var(--cpsc-orange));
    --cpsc-link-hover: var(--cpsc-setting-content-link-hover-color, var(--cpsc-copper));
    --cpsc-site-bg: var(--cpsc-setting-site-background, var(--cpsc-cream));
    --cpsc-content-bg: var(--cpsc-setting-content-background, var(--cpsc-cream));
    --cpsc-line: var(--cpsc-setting-border-color, var(--cpsc-border));
    --cpsc-header-bg: var(--cpsc-setting-header-background, var(--cpsc-cream));
    --cpsc-footer-bg: var(--cpsc-setting-footer-background, var(--cpsc-cream));
    --cpsc-button-bg: var(--cpsc-setting-button-background, var(--cpsc-orange));
    --cpsc-button-text: var(--cpsc-setting-button-text-color, var(--cpsc-cream));

    --cpsc-font-body: Marcellus, serif;
    --cpsc-font-heading: Marcellus, serif;
    --cpsc-font-label: "Oswald", "Arial Narrow", Arial, sans-serif;

    --cpsc-body-size: var(--cpsc-setting-font-size-base, 15px);
    --cpsc-container: var(--cpsc-setting-container-width, 1240px);
    --cpsc-pad: var(--cpsc-setting-container-padding, 24px);
    --cpsc-radius: var(--cpsc-setting-border-radius, 0px);
    --cpsc-image-radius: var(--cpsc-setting-image-border-radius, 0px);
    --cpsc-logo-width: var(--cpsc-setting-logo-width, 270px);
}

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

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

body {
    margin: 0;
    background: var(--cpsc-site-bg);
    color: var(--cpsc-text);
    font-family: var(--cpsc-font-body);
    font-size: var(--cpsc-body-size);
    font-weight: var(--cpsc-setting-font-weight-base, 300);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

figure {
    margin: 0 0 1.75rem;
}

a {
    color: var(--cpsc-link);
    text-decoration: none;
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

a:hover,
a:focus-visible {
    color: var(--cpsc-link-hover);
}

p {
    margin: 0 0 1.35rem;
    font-family: var(--cpsc-font-body);
    font-weight: 300;
    color: var(--cpsc-text);
}

strong,
b {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.7em;
    color: var(--cpsc-heading);
    font-family: var(--cpsc-font-heading);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

h1 { font-size: var(--cpsc-setting-h1-size, 86px); }
h2 { font-size: var(--cpsc-setting-h2-size, 60px); }
h3 { font-size: var(--cpsc-setting-h3-size, 40px); }
h4 { font-size: var(--cpsc-setting-h4-size, 26px); }
h5 { font-size: var(--cpsc-setting-h5-size, 24px); }
h6 { font-size: var(--cpsc-setting-h6-size, 24px); }

ul,
ol {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
}

li {
    margin-bottom: 0.35rem;
}

li::marker {
    color: var(--cpsc-copper);
}

blockquote {
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 2rem;
    border-left: 3px solid var(--cpsc-copper);
    color: var(--cpsc-copper);
    font-size: 1.2em;
    line-height: 1.7;
}

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

hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--cpsc-line);
}
.slicky-dots li button{display:none;}

/* Full-width bordered content tables (product detail style) */
table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.95em;
    table-layout: auto;
}

th,
td {
    padding: 0.85rem 1rem;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
    background: #fff;
    color: inherit;
    word-break: break-word;
}

th {
    font-weight: 700;
    background: #fff;
    color: inherit;
}

/* Label column (e.g. Brand / Product Name / Price) */
td:first-child,
th:first-child {
    font-weight: 700;
    width: 32%;
}

.wp-block-table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem;
    overflow-x: auto;
}

.wp-block-table table {
    margin-bottom: 0;
    width: 100%;
}

.wp-block-table figcaption {
    margin-top: 0.5rem;
}

pre,
code {
    font-family: Consolas, Monaco, "Andale Mono", monospace;
}

pre {
    overflow: auto;
    padding: 1rem;
    background: rgba(176, 106, 73, 0.06);
    border: 1px solid var(--cpsc-line);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--cpsc-border);
    border-radius: var(--cpsc-radius);
    background: var(--cpsc-cream);
    color: var(--cpsc-brown);
    font-family: var(--cpsc-font-body);
    font-size: 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(248, 154, 45, 0.35);
    outline-offset: 1px;
    border-color: var(--cpsc-orange);
}

input[type="submit"],
button,
.button,
.cp-button,
.post-link,
.cpsc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.82rem 1.55rem;
    border: 1px solid var(--cpsc-button-bg);
    border-radius: var(--cpsc-radius);
    background: var(--cpsc-button-bg);
    color: var(--cpsc-button-text);
    font-family: var(--cpsc-font-label);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover,
.button:hover,
.cp-button:hover,
.post-link:hover,
.cpsc-button:hover {
    background: var(--cpsc-setting-button-hover-background, var(--cpsc-orange-dark));
    border-color: var(--cpsc-setting-button-hover-background, var(--cpsc-orange-dark));
    color: var(--cpsc-setting-button-hover-text-color, var(--cpsc-cream));
}

.screen-reader-text,
.cpsc-skip-link {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cpsc-skip-link:focus {
    top: 12px;
    left: 12px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 0.7rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--cpsc-copper);
    color: var(--cpsc-cream);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    background: var(--cpsc-header-bg);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(142, 81, 53, 0.08);
    border-bottom-color: var(--cpsc-line);
}

/* Homepage only: fixed full-width transparent header → white on scroll */
body.home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    border-bottom-color: #ffffff;
    box-shadow: none;
}

body.home .site-header .inner-header {
    border-bottom-color: transparent;
}

body.home .site-header.is-scrolled {
    background: #ffffff;
    border-bottom-color: var(--cpsc-line);
    box-shadow: 0 4px 24px rgba(142, 81, 53, 0.08);
}

body.home .site-header.is-scrolled .inner-header {
    border-bottom-color: var(--cpsc-line);
}

body.home .page-content-wrapper {
    padding-top: 0;
}

.navigation-header {
    width: 100%;
    height: 76px;
    padding: 0 40px;
}

.inner-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--cpsc-line);
    transition: border-color 0.25s ease;
}

.site-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    line-height: 0;
}

.site-logo a {
    display: inline-block;
    line-height: 0;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: var(--cpsc-logo-width);
    max-height: var(--cpsc-setting-logo-max-height, 76px);
    height: auto;
}

.logo-hero {
    display: none;
}

.main-navigation {
    min-width: 0;
}

.nav-left {
    margin-right: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-right {
    margin-left: 0;
}

.nav-right .menu > li:last-child {
    margin-right: 0;
}

.main-navigation .menu,
.footer-menu,
.mobile-navigation .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation .menu {
    justify-content: flex-start;
}

.nav-right .menu {
    justify-content: flex-end;
}

.main-navigation li {
    position: relative;
    margin: 0 20px 0 0;
}

.main-navigation li:last-child {
    margin-right: 0;
}

.main-navigation a {
    display: inline-block;
    padding: 0;
    color: var(--cpsc-setting-header-nav-color, var(--cpsc-copper));
    font-family: var(--cpsc-font-body);
    font-size: 0.875em;
    font-weight: 200;
    letter-spacing: normal;
    line-height: 1.14em;
    text-transform: none;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--cpsc-setting-header-nav-hover-color, var(--cpsc-brown));
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 220px;
    padding: 0.5rem 0;
    background: var(--cpsc-setting-header-dropdown-bg, var(--cpsc-cream));
    border: 1px solid var(--cpsc-setting-header-dropdown-border, var(--cpsc-line));
    box-shadow: 0 16px 40px rgba(142, 81, 53, 0.12);
    list-style: none;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--cpsc-setting-header-dropdown-text, var(--cpsc-brown));
    white-space: normal;
    text-transform: none;
    letter-spacing: 0.02em;
}

.main-navigation .sub-menu a:hover {
    background: var(--cpsc-setting-header-dropdown-hover-bg, var(--cpsc-line));
    color: var(--cpsc-setting-header-dropdown-hover-text, var(--cpsc-copper));
}

/* Constant Book Online CTA — always last in header-right, left of burger */
.header-book-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: -10px;
    padding: 10px 15px;
    border-radius: 9999px;
    background: var(--cpsc-orange);
    color: var(--cpsc-cream);
    font-family: var(--cpsc-font-body);
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1.14em;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

.header-book-online:hover,
.header-book-online:focus {
    background: var(--cpsc-orange-dark, #e88a1d);
    color: var(--cpsc-cream);
}

.burger-menu {
    display: none;
}

.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger-box {
    position: relative;
    display: block;
    width: 26px;
    height: 18px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    left: 0;
    display: block;
    width: 26px;
    height: 2px;
    background: var(--cpsc-copper);
    content: "";
    transition: transform 0.25s ease, top 0.25s ease;
}

.hamburger-inner {
    top: 8px;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Right-side vertical Book Online pill removed */
#menu-book-pill,
.pill-btn {
    display: none !important;
}

/* Mobile menu */
#menu-side-resp {
    position: fixed;
    inset: 0;
    z-index: 900;
    visibility: hidden;
    opacity: 0;
    background: rgba(142, 81, 53, 0.28);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#menu-side-resp.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, 100%);
    height: 100%;
    background: var(--cpsc-cream);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#menu-side-resp.is-open .mobile-menu-wrapper {
    transform: translateX(0);
}

.mobile-menu-holder {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cpsc-copper);
    font-size: 2.2rem;
    line-height: 1;
}

.mobile-navigation .menu {
    display: block;
}

.mobile-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--cpsc-line);
}

.mobile-navigation a {
    display: block;
    padding: 0.9rem 0;
    color: var(--cpsc-setting-header-nav-color, var(--cpsc-copper));
    font-family: var(--cpsc-font-heading);
    font-size: 1.55rem;
    line-height: 1.2;
}

.mobile-navigation .sub-menu {
    display: none;
    padding: 0 0 0.75rem 1rem;
    list-style: none;
}

.mobile-navigation .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.mobile-navigation .menu-item-has-children {
    position: relative;
}

.mobile-navigation .cpsc-submenu-toggle {
    position: absolute;
    top: 0.25rem;
    right: 0;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cpsc-copper);
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-navigation .cpsc-submenu-toggle:hover,
.mobile-menu-close:hover,
.hamburger:hover {
    background: transparent;
    color: var(--cpsc-brown);
}

.mobile-navigation .cpsc-submenu-toggle::before {
    content: "+";
}

.mobile-navigation .is-open > .cpsc-submenu-toggle::before {
    content: "\2212";
}

.mobile-navigation .sub-menu li {
    border: 0;
}

.mobile-navigation .sub-menu a {
    padding: 0.35rem 0;
    font-family: var(--cpsc-font-body);
    font-size: 0.95rem;
}

.social-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 2rem 0 1.5rem;
}

.mob-nav-item {
    display: inline-flex;
    color: var(--cpsc-copper);
    font-size: 1.25rem;
}

#mobile-book-now-btn {
    margin-top: auto;
}

#mobile-book-now-btn a {
    display: block;
    padding: 1rem;
    background: var(--cpsc-orange);
    color: var(--cpsc-cream);
    font-family: var(--cpsc-font-label);
    font-size: 1rem;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Layout and article
   ------------------------------------------------------------------------- */

.page-content-wrapper,
.site-main,
.main-content,
.cp-inner-page-wrapper {
    width: 100%;
}

.main-content {
    min-height: 55vh;
}

.siteBottom {
    width: 100%;
}

.siteBottom > .container,
.container {
    width: 100%;
    margin: 0 auto;
    padding-right: var(--cpsc-pad);
    padding-left: var(--cpsc-pad);
}

/* Posts + products only — pages stay unconstrained */
body.single-post .siteBottom .container,
body.single-affiliate_product .siteBottom .container,
body.single-product .siteBottom .container {
    max-width: 1200px;
}

.siteContent {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
}

.sidebar {
    flex: 0 0 290px;
    order: 2;
}

.siteContent > .contentCopy,
.siteContent > article {
    flex: 1 1 auto;
    min-width: 0;
}

.cpsc-sidebar-left .sidebar {
    order: 0;
}

.contentCopy {
    width: 100%;
}

article.contentCopy,
.siteContent > article,
.cpsc-front-content article {
    max-width: 100%;
    margin: 50px auto 0;
    padding: 0 0 150px;
}

article.news-outer-item {
    max-width: none;
    margin: 0;
    padding: 0;
}

.news-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 450px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.news-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(63, 35, 22, 0) 35%, rgba(63, 35, 22, 0.42) 100%);
    content: "";
    pointer-events: none;
}

.news-title-mob {
    position: relative;
    z-index: 2;
    display: none;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 28px 2.5rem;
    color: var(--cpsc-cream);
    font-family: var(--cpsc-font-heading);
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
}

.article-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--cpsc-line);
}

.article-published {
    color: var(--cpsc-copper);
    font-family: var(--cpsc-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cpsc-post-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--cpsc-line);
}

.cpsc-post-author__avatar img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.cpsc-post-author__label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--cpsc-muted);
    font-family: var(--cpsc-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpsc-post-author__name {
    display: inline-block;
    color: var(--cpsc-copper);
    font-family: var(--cpsc-font-heading);
    font-size: 1.2rem;
    line-height: 1.2;
}

.cpsc-post-author__name:hover {
    color: var(--cpsc-brown);
}

.share-socials .sub-heading {
    margin: 0 0 0.4rem;
    color: var(--cpsc-copper);
    font-family: var(--cpsc-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.share-socials ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.share-socials li {
    margin: 0;
}

.share-socials a,
.share-socials .cpsc-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--cpsc-line);
    border-radius: 50%;
    background: transparent;
    color: var(--cpsc-copper);
    font-size: 0.85rem;
}

.share-socials a:hover,
.share-socials .cpsc-copy-link:hover {
    background: var(--cpsc-copper);
    border-color: var(--cpsc-copper);
    color: var(--cpsc-cream);
}

.copy-confirm {
    margin-left: 0.25rem;
    color: var(--cpsc-copper);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy-confirm.hidden {
    display: none;
}

article > header {
    margin-bottom: 2rem;
}

article > header h1,
article > header h2,
.entry-title {
    margin: 0;
    color: var(--cpsc-copper);
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    line-height: 1.08;
}

.cpsc-entry-media {
    margin: 0 0 2.5rem;
}

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

.entry-content {
    color: var(--cpsc-text);
    font-size: 1em;
    line-height: 1.95;
}

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

.entry-content h2 {
    margin-top: 2.4em;
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
}

.entry-content h3 {
    margin-top: 2em;
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

.entry-content h4 {
    margin-top: 1.8em;
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
}

.entry-content a {
    color: var(--cpsc-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--cpsc-link-hover);
}

.entry-content img {
    border-radius: var(--cpsc-image-radius);
}

.entry-content .wp-block-image {
    margin: 2rem 0;
}

.entry-content .alignwide {
    width: min(1200px, calc(100vw - 2rem));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.cpsc-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cpsc-table-scroll table {
    margin-bottom: 0;
    width: 100%;
    min-width: 100%;
}

.wp-block-quote,
.quote-block {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(176, 106, 73, 0.06);
    border-left: 3px solid var(--cpsc-copper);
}

.wp-block-quote p:last-child {
    margin-bottom: 0;
}

.page-links {
    clear: both;
    margin: 2rem 0;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Archive / news cards
   ------------------------------------------------------------------------- */

.news-archive,
.cpsc-page-header,
.cpsc-author-header,
.cpsc-author-bio {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}

.news-archive {
    padding: 4rem 0 6rem;
}

.news-archive > h1,
.news-archive > .title,
.news-archive > .cpsc-page-header h1 {
    margin-bottom: 2.5rem;
    text-align: center;
}

.news-archive .cpsc-page-header {
    padding: 0;
}

.news-archive .cpsc-archive-description {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.author-archive > h2 {
    margin-top: 2.5rem;
    text-align: center;
}

.cpsc-404 {
    text-align: center;
}

.copy-confirm.hidden,
.hidden {
    display: none !important;
}

.cpsc-page-header {
    padding: 3.5rem 0 2rem;
}

.cpsc-archive-description {
    max-width: 760px;
    margin-top: 1rem;
}

.cpsc-post-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--cpsc-archive-grid-cols, 2), minmax(0, 1fr));
    gap: 3.5rem 2.5rem;
}

.cpsc-post-cards-grid.has-columns-1 {
    grid-template-columns: minmax(0, 1fr);
}

.cpsc-post-cards-grid.has-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpsc-post-cards-grid.has-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cpsc-post-cards-grid.is-list-layout {
    grid-template-columns: minmax(0, 1fr);
}

.news-outer-item {
    min-width: 0;
}

.news-outer-item .item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cpsc-content-bg);
}

.news-outer-item .item-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--cpsc-line);
}

.news-outer-item .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-outer-item:hover .item-image img {
    transform: scale(1.035);
}

.news-outer-item .excerpt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.5rem 0 0;
}

.news-outer-item .news-title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    line-height: 1.15;
}

.news-outer-item .news-title a {
    color: var(--cpsc-copper);
}

.news-outer-item .news-title a:hover {
    color: var(--cpsc-brown);
}

.news-outer-item .news-preview {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-outer-item .read-more {
    margin-top: auto;
}

.news-outer-item .post-link {
    display: inline-flex;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--cpsc-orange);
    background: transparent;
    color: var(--cpsc-orange);
    font-family: var(--cpsc-font-label);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-outer-item .post-link:hover {
    border-bottom-color: var(--cpsc-copper);
    background: transparent;
    color: var(--cpsc-copper);
}

.is-list-layout .news-outer-item .item-inner {
    display: grid;
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.is-list-layout .news-outer-item .excerpt {
    padding-top: 0;
}

.cpsc-pagination-nav,
.navigation.pagination {
    margin-top: 4rem;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border: 1px solid var(--cpsc-line);
    color: var(--cpsc-copper);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
    background: var(--cpsc-copper);
    border-color: var(--cpsc-copper);
    color: var(--cpsc-cream);
}

/* -------------------------------------------------------------------------
   Author / search / 404
   ------------------------------------------------------------------------- */

.cpsc-author-header--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 0 1rem;
    text-align: center;
}

.cpsc-author-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.cpsc-author-name {
    margin-bottom: 0.25rem;
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.cpsc-author-role,
.cpsc-author-count {
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cpsc-author-bio {
    max-width: 760px;
    padding-bottom: 2rem;
    text-align: center;
}

.cpsc-breadcrumb-nav {
    max-width: 1040px;
    margin: 2.5rem auto 0;
    color: var(--cpsc-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cpsc-breadcrumb-nav a {
    color: var(--cpsc-copper);
}

/* -------------------------------------------------------------------------
   Sidebar and widgets
   ------------------------------------------------------------------------- */

.widget {
    margin-bottom: 2.5rem;
}

.widget-title {
    margin-bottom: 1rem;
    font-family: var(--cpsc-font-heading);
    font-size: 1.5rem;
    color: var(--cpsc-copper);
}

.widget ul {
    padding-left: 0;
    list-style: none;
}

.widget li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--cpsc-line);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
    padding: 2.25rem var(--cpsc-pad);
    background: var(--cpsc-footer-bg);
    border-top: 1px solid var(--cpsc-line);
}

.copy-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin: 0 auto;
    color: var(--cpsc-muted);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-align: left;
}

.footer-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.4rem;
    min-width: 0;
}

.footer-item,
.footer-item a,
.footer-navigation a {
    color: var(--cpsc-muted);
    text-align: center;
}

.footer-item-dn,
.footer-item-dn a {
    color: var(--cpsc-copper);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer a:hover {
    color: var(--cpsc-setting-footer-link-hover-color, var(--cpsc-brown));
}

.footer-navigation li {
    margin: 0;
    list-style: none;
}

.footer-navigation .menu,
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-navigation li {
    margin: 0;
}

.social-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-left: auto;
    flex-shrink: 0;
}

.footer-item-social,
.mob-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--cpsc-copper);
    border-radius: 50%;
    background: var(--cpsc-copper);
    color: var(--cpsc-cream);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-item-social:hover,
.mob-nav-item:hover {
    background: #542d1b !important;
    border-color: var(--cpsc-setting-footer-link-hover-color, var(--cpsc-brown));
    color: var(--cpsc-cream) !important;
}

/* -------------------------------------------------------------------------
   Gutenberg / utility
   ------------------------------------------------------------------------- */

.cpsc-front-content {
    width: 100%;
}

body.home .cpsc-front-content,
body.home .cpsc-front-content.site-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.home .cpsc-front-content article {
    max-width: none;
    margin: 0;
    padding: 0;
}

.alignleft {
    float: left;
    margin: 0 2rem 1.5rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5rem 2rem;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    margin-top: 0.5rem;
    color: var(--cpsc-muted);
    font-size: 0.8rem;
    text-align: center;
}

.sticky {
    position: relative;
}

.bypostauthor {
    display: block;
}

.cpsc-empty-state {
    padding: 3rem 0;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1280px) {
    .navigation-header {
        padding-right: 30px;
        padding-left: 30px;
    }

    .main-navigation li {
        margin-right: 16px;
    }
}

@media (max-width: 1100px) {
    .main-navigation,
    .header-right .main-navigation,
    .header-book-online {
        display: none;
    }

    .inner-header {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .site-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .header-right {
        margin-left: auto;
    }

    .burger-menu {
        display: flex;
    }
}

@media (max-width: 1024px) {
    :root {
        --cpsc-body-size: var(--cpsc-setting-font-size-base-tablet, 15px);
        --cpsc-pad: var(--cpsc-setting-container-padding-tablet, 20px);
        --cpsc-logo-width: var(--cpsc-setting-logo-width-tablet, 220px);
    }

    h1 { font-size: var(--cpsc-setting-h1-size-tablet, 60px); }
    h2 { font-size: var(--cpsc-setting-h2-size-tablet, 48px); }
    h3 { font-size: var(--cpsc-setting-h3-size-tablet, 32px); }
    h4 { font-size: var(--cpsc-setting-h4-size-tablet, 24px); }
    h5 { font-size: var(--cpsc-setting-h5-size-tablet, 22px); }
    h6 { font-size: var(--cpsc-setting-h6-size-tablet, 22px); }

    .siteContent {
        gap: 2rem;
    }

    .sidebar {
        flex-basis: 240px;
    }

    .news-hero {
        min-height: 380px;
    }

    article.contentCopy,
    .siteContent > article,
    .cpsc-front-content article {
        padding-bottom: 100px;
    }
}

@media (max-width: 820px) {
    .siteContent {
        display: block;
    }

    .sidebar {
        width: 100%;
        margin-top: 3rem;
    }

    .cpsc-post-cards-grid,
    .cpsc-post-cards-grid.has-columns-3,
    .cpsc-post-cards-grid.has-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
    }

    .is-list-layout .news-outer-item .item-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --cpsc-body-size: var(--cpsc-setting-font-size-base-mobile, 15px);
        --cpsc-pad: var(--cpsc-setting-container-padding-mobile, 16px);
        --cpsc-logo-width: var(--cpsc-setting-logo-width-mobile, 200px);
    }

    h1 { font-size: var(--cpsc-setting-h1-size-mobile, 40px); }
    h2 { font-size: var(--cpsc-setting-h2-size-mobile, 36px); }
    h3 { font-size: var(--cpsc-setting-h3-size-mobile, 26px); }
    h4 { font-size: var(--cpsc-setting-h4-size-mobile, 22px); }
    h5 { font-size: var(--cpsc-setting-h5-size-mobile, 20px); }
    h6 { font-size: var(--cpsc-setting-h6-size-mobile, 20px); }

    .navigation-header {
        height: 65px;
        padding: 0 24px;
    }

    .site-logo img {
        max-width: var(--cpsc-logo-width);
        max-height: var(--cpsc-setting-logo-max-height-mobile, 52px);
        height: auto;
    }

    .news-hero {
        min-height: 320px;
    }

    .news-title-mob {
        display: block;
    }

    .article-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1.25rem;
    }

    .article-heading .share-socials {
        display: none;
    }

    article.contentCopy > header,
    .siteContent > article > header {
        display: none;
    }

    article.contentCopy,
    .siteContent > article,
    .cpsc-front-content article {
        margin-top: 1.75rem;
        padding-bottom: 70px;
    }

    .entry-content {
        font-size: 0.98em;
        line-height: 1.85;
    }

    .news-archive {
        padding: 2.5rem 0 4rem;
    }

    .cpsc-page-header {
        padding: 2.25rem 0 1.25rem;
    }

    .copy-text {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .footer-left {
        gap: 0.45rem 1rem;
        justify-content: center;
    }

    .footer-navigation .menu,
    .footer-navigation ul {
        gap: 0.35rem 1rem;
    }

    .social-container {
        margin-left: 0;
        margin-top: 0.15rem;
    }
}

@media (max-width: 560px) {
    .cpsc-post-cards-grid,
    .cpsc-post-cards-grid.has-columns-3,
    .cpsc-post-cards-grid.has-columns-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-outer-item .news-title {
        font-size: 1.55rem;
    }

    .mobile-menu-holder {
        padding-right: 1.35rem;
        padding-left: 1.35rem;
    }

    .mobile-navigation a {
        font-size: 1.35rem;
    }

    .alignleft,
    .alignright {
        float: none;
        margin: 0 0 1.5rem;
    }

    table {
        font-size: 0.86rem;
    }

    th,
    td {
        padding: 0.65rem 0.75rem;
    }

    td:first-child,
    th:first-child {
        width: 40%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
