/* ==========================================================================
   Nestora — Page Template
   Centered, readable article column with full typographic hierarchy.
   Loaded after nestora.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --nestora-content-width: 72ch;        /* readable line length */
    --nestora-content-padding: 1.5rem;    /* horizontal page gutter */
    --nestora-section-gap: 3rem;          /* vertical rhythm between blocks */

    --nestora-color-text:       #2f2f2f;
    --nestora-color-body:       #6a6a6a;
    --nestora-color-muted:      #8a8a8a;
    --nestora-color-primary:    #3b5d50;
    --nestora-color-primary-dk: #314d43;
    --nestora-color-accent:     #f9bf29;
    --nestora-color-border:     #dee2e6;
    --nestora-color-surface:    #ffffff;
    --nestora-color-surface-2:  #f6f8f7;

    --nestora-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --nestora-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --nestora-radius:    0.5rem;
    --nestora-radius-lg: 1rem;
}

/* --------------------------------------------------------------------------
   2. Page wrapper
   -------------------------------------------------------------------------- */
.site-main {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* The article itself is the centered column */
.entry {
    max-width: var(--nestora-content-width);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) var(--nestora-content-padding) var(--nestora-section-gap);
    background: transparent;
}

/* Pages built from Nestora block patterns use the full width. */
.entry--wide {
    max-width: none;
    padding-inline: 0;
}

.entry--wide .entry__header,
.entry--wide .entry__pages {
    max-width: var(--nestora-content-width);
    margin-inline: auto;
    padding-inline: var(--nestora-content-padding);
}

.entry--wide .entry__content > .container {
    max-width: 1140px;
}

/* --------------------------------------------------------------------------
   3. Entry header
   -------------------------------------------------------------------------- */
.entry__header {
    margin-bottom: 2rem;
}

.entry__title {
    font-family: var(--nestora-font-body);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--nestora-color-text);
    margin: 0 0 0.75rem;
}

/* Optional subtitle/lead if you add one */
.entry__header .entry__meta {
    font-size: 0.875rem;
    color: var(--nestora-color-muted);
}

/* --------------------------------------------------------------------------
   4. Entry content — typographic hierarchy
   -------------------------------------------------------------------------- */
.entry__content {
    color: var(--nestora-color-body);
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
}

/* ------- Headings -------------------------------------------------------- */
.entry__content h1,
.entry__content h2,
.entry__content h3,
.entry__content h4,
.entry__content h5,
.entry__content h6 {
    font-family: var(--nestora-font-body);
    font-weight: 600;
    line-height: 1.25;
    color: var(--nestora-color-text);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.005em;
}

.entry__content h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.entry__content h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.entry__content h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.entry__content h4 { font-size: 1.125rem; }
.entry__content h5 { font-size: 1rem; }
.entry__content h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nestora-color-muted);
}

.entry__content > h1:first-child,
.entry__content > h2:first-child,
.entry__content > h3:first-child {
    margin-top: 0;
}

/* ------- Paragraphs ----------------------------------------------------- */
.entry__content p {
    margin: 0 0 1.25rem;
}

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

/* Lead paragraph (add class="lead" if desired) */
.entry__content p.lead,
.entry__content .lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--nestora-color-text);
}

/* ------- Links ---------------------------------------------------------- */
.entry__content a {
    color: var(--nestora-color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.entry__content a:hover {
    color: var(--nestora-color-primary-dk);
    text-decoration-thickness: 2px;
}

/* ------- Lists ---------------------------------------------------------- */
.entry__content ul,
.entry__content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }

.entry__content li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.entry__content li > ul,
.entry__content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Definition lists */
.entry__content dl {
    margin: 0 0 1.25rem;
}
.entry__content dt {
    font-weight: 600;
    color: var(--nestora-color-text);
    margin-top: 1rem;
}
.entry__content dd {
    margin: 0.25rem 0 0;
    padding-left: 1rem;
    border-left: 2px solid var(--nestora-color-border);
    color: var(--nestora-color-body);
}

/* ------- Blockquote ----------------------------------------------------- */
.entry__content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--nestora-color-primary);
    background: var(--nestora-color-surface-2);
    border-radius: 0 var(--nestora-radius) var(--nestora-radius) 0;
    color: var(--nestora-color-text);
    font-style: italic;
}

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

.entry__content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--nestora-color-muted);
}

/* ------- Code & pre ----------------------------------------------------- */
.entry__content code {
    font-family: var(--nestora-font-mono);
    font-size: 0.875em;
    padding: 0.15em 0.4em;
    background: var(--nestora-color-surface-2);
    border: 1px solid var(--nestora-color-border);
    border-radius: 0.25rem;
    color: #b03060;
}

.entry__content pre {
    font-family: var(--nestora-font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #1f2421;
    color: #e8ece9;
    border-radius: var(--nestora-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry__content pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.entry__content kbd {
    font-family: var(--nestora-font-mono);
    font-size: 0.8em;
    padding: 0.15em 0.5em;
    background: #2f2f2f;
    color: #fff;
    border-radius: 0.25rem;
}

/* ------- Horizontal rule ------------------------------------------------ */
.entry__content hr {
    border: 0;
    border-top: 1px solid var(--nestora-color-border);
    margin: 2.5rem 0;
}

/* ------- Images & media ------------------------------------------------- */
.entry__content img,
.entry__content video,
.entry__content iframe,
.entry__content svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry__content img {
    border-radius: var(--nestora-radius);
    margin: 1.5rem 0;
}

/* WP alignment classes */
.entry__content .alignleft {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
    max-width: 50%;
}
.entry__content .alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
    max-width: 50%;
}
.entry__content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.entry__content figure {
    margin: 1.5rem 0;
}
.entry__content figure img {
    margin: 0;
}
.entry__content figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--nestora-color-muted);
    text-align: center;
}

/* ------- Tables --------------------------------------------------------- */
.entry__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: var(--nestora-color-surface);
    border: 1px solid var(--nestora-color-border);
    border-radius: var(--nestora-radius);
    overflow: hidden;
}

.entry__content thead {
    background: var(--nestora-color-surface-2);
}

.entry__content th,
.entry__content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--nestora-color-border);
    vertical-align: top;
}

.entry__content th {
    font-weight: 600;
    color: var(--nestora-color-text);
}

.entry__content tbody tr:last-child td {
    border-bottom: 0;
}

.entry__content tbody tr:hover {
    background: rgba(59, 93, 80, 0.04);
}

/* Responsive table wrapper (WordPress often wraps in figure.wp-block-table) */
.entry__content figure.wp-block-table {
    overflow-x: auto;
}

/* ------- Buttons in content -------------------------------------------- */
.entry__content .btn,
.entry__content .wp-block-button__link {
    display: inline-block;
}

/* ------- Misc inline elements ------------------------------------------ */
.entry__content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

.entry__content mark {
    background: #fff3a3;
    padding: 0.1em 0.25em;
    border-radius: 0.2em;
}

.entry__content small {
    font-size: 0.875em;
    color: var(--nestora-color-muted);
}

.entry__content sup,
.entry__content sub {
    font-size: 0.75em;
}

/* ------- First/last child margin cleanup ------------------------------- */
.entry__content > *:first-child { margin-top: 0; }
.entry__content > *:last-child  { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5. Page links (wp_link_pages)
   -------------------------------------------------------------------------- */
.entry__pages {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nestora-color-border);
    font-size: 0.875rem;
    color: var(--nestora-color-muted);
}

.entry__pages a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin: 0 0.15rem;
    color: var(--nestora-color-primary);
    text-decoration: none;
    border: 1px solid var(--nestora-color-border);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.entry__pages a:hover {
    background: var(--nestora-color-primary);
    color: #fff;
    border-color: var(--nestora-color-primary);
}

/* --------------------------------------------------------------------------
   6. Comments — aligned with the article column
   -------------------------------------------------------------------------- */
.comments-area {
    max-width: var(--nestora-content-width);
    margin: 0 auto;
    padding: 0 var(--nestora-content-padding) 4rem;
}

/* --------------------------------------------------------------------------
   7. Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --nestora-content-padding: 1.25rem;
    }

    .entry {
        padding-top: 2rem;
    }

    .entry__content .alignleft,
    .entry__content .alignright {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    :root {
        --nestora-content-padding: 1rem;
    }

    .entry__content {
        font-size: 0.95rem;
    }

    .entry__content blockquote {
        padding: 0.875rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   8. Print
   -------------------------------------------------------------------------- */
@media print {
    .entry {
        max-width: 100%;
        padding: 0;
    }

    .entry__content a {
        color: inherit;
        text-decoration: none;

    }

    .entry__content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #666;
    }
}
#add_payment_method table.cart img, .woocommerce-cart table.cart img, .woocommerce-checkout table.cart img{
	width:auto;
}

/* =========================================
   NESTORA — SINGLE POST DESIGN
   Scoped to .nestora-single only
========================================= */

.nestora-single {
    --single-text: #33352f;
    --single-muted: #777970;
    --single-accent: #68745b;
    --single-border: #e8e8e1;
    --single-surface: #f8f8f4;
    color: var(--single-text);
    background: #fff;
    padding-bottom: 70px;
}

.nestora-single .container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* Article card */
.nestora-single .single-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    border: 1px solid var(--single-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(35, 39, 29, 0.045);
}

/* Header */
.nestora-single .entry-header {
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: center;
}

.nestora-single .entry-title {
    margin: 0 0 22px;
    color: #292c25;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.8px;
    overflow-wrap: break-word;
}

/* Post date and author */
.nestora-single .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--single-muted);
    font-size: 13px;
    line-height: 1.8;
}

.nestora-single .entry-meta a {
    color: var(--single-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nestora-single .entry-meta a:hover {
    color: #343d2c;
    text-decoration: underline;
}

/* Featured image */
.nestora-single .entry-thumbnail {
    margin: 0 0 36px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--single-surface);
}

.nestora-single .entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: cover;
    border-radius: inherit;
}

/* Article content */
.nestora-single .entry-content {
    max-width: 740px;
    margin: 0 auto;
    color: #45473f;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.nestora-single .entry-content p {
    margin: 0 0 24px;
}

.nestora-single .entry-content h2,
.nestora-single .entry-content h3,
.nestora-single .entry-content h4 {
    margin: 38px 0 16px;
    color: #292c25;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.3;
}

.nestora-single .entry-content h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.nestora-single .entry-content h3 {
    font-size: 1.55rem;
}

.nestora-single .entry-content h4 {
    font-size: 1.25rem;
}

.nestora-single .entry-content a {
    color: var(--single-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.nestora-single .entry-content a:hover {
    color: #343d2c;
}

.nestora-single .entry-content ul,
.nestora-single .entry-content ol {
    margin: 0 0 25px;
    padding-left: 26px;
}

.nestora-single .entry-content li {
    margin-bottom: 9px;
}

.nestora-single .entry-content blockquote {
    margin: 30px 0;
    padding: 20px 26px;
    border-left: 4px solid var(--single-accent);
    background: var(--single-surface);
    color: #55594d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.7;
}

.nestora-single .entry-content img,
.nestora-single .entry-content video,
.nestora-single .entry-content iframe {
    max-width: 100%;
}

.nestora-single .entry-content img {
    height: auto;
    border-radius: 7px;
}

/* Categories */
.nestora-single .entry-footer {
    max-width: 740px;
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--single-border);
}

.nestora-single .cat-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--single-muted);
    font-size: 13px;
}

.nestora-single .cat-links strong {
    color: #44473e;
    font-weight: 600;
}

.nestora-single .cat-links a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e2e5dc;
    border-radius: 30px;
    background: var(--single-surface);
    color: #5b6650;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nestora-single .cat-links a:hover {
    border-color: var(--single-accent);
    background: var(--single-accent);
    color: #fff;
}

/* Previous / next post navigation */
.nestora-single .post-navigation {
    max-width: 900px;
    margin: 28px auto 0;
}

.nestora-single .post-navigation .nav-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.nestora-single .post-navigation .nav-previous,
.nestora-single .post-navigation .nav-next {
    min-width: 0;
}

.nestora-single .post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 22px 26px;
    border: 1px solid var(--single-border);
    border-radius: 10px;
    background: #fff;
    color: #303329;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nestora-single .post-navigation a:hover {
    border-color: #c5cbbb;
    box-shadow: 0 6px 22px rgba(35, 39, 29, 0.05);
}

.nestora-single .nav-subtitle {
    color: var(--single-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nestora-single .nav-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.45;
}

/* Comments area */
.nestora-single .comments-area {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 36px 40px;
    border: 1px solid var(--single-border);
    border-radius: 12px;
    background: #fff;
}

.nestora-single .comment-reply-title {
    margin: 0 0 24px;
    color: #292c25;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
}

.nestora-single .comment-reply-title small {
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.nestora-single .logged-in-as,
.nestora-single .comment-notes,
.nestora-single .required-field-message {
    color: var(--single-muted);
    font-size: 13px;
    line-height: 1.8;
}

.nestora-single .comments-area a {
    color: var(--single-accent);
}

.nestora-single .comment-form p {
    margin-bottom: 18px;
}

.nestora-single .comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #393c33;
    font-size: 14px;
    font-weight: 600;
}

.nestora-single .comment-form textarea,
.nestora-single .comment-form input[type="text"],
.nestora-single .comment-form input[type="email"],
.nestora-single .comment-form input[type="url"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid #dedfd7;
    border-radius: 6px;
    background: #fcfcfa;
    color: var(--single-text);
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nestora-single .comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.nestora-single .comment-form textarea:focus,
.nestora-single .comment-form input[type="text"]:focus,
.nestora-single .comment-form input[type="email"]:focus,
.nestora-single .comment-form input[type="url"]:focus {
    outline: none;
    border-color: var(--single-accent);
    box-shadow: 0 0 0 3px rgba(104, 116, 91, 0.12);
}

.nestora-single .comment-form input[type="submit"] {
    display: inline-block;
    padding: 13px 25px;
    border: 1px solid var(--single-accent);
    border-radius: 5px;
    background: var(--single-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nestora-single .comment-form input[type="submit"]:hover {
    border-color: #4e5943;
    background: #4e5943;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .nestora-single {
        padding-bottom: 40px;
    }

    .nestora-single .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nestora-single .single-post {
        padding: 26px 20px;
        border-radius: 9px;
    }

    .nestora-single .entry-header {
        margin-bottom: 25px;
    }

    .nestora-single .entry-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        letter-spacing: -0.4px;
    }

    .nestora-single .entry-thumbnail {
        margin-bottom: 26px;
    }

    .nestora-single .entry-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .nestora-single .entry-content p {
        margin-bottom: 20px;
    }

    .nestora-single .comments-area {
        padding: 26px 20px;
    }

    .nestora-single .comment-reply-title {
        font-size: 24px;
    }

    .nestora-single .nav-title {
        font-size: 17px;
    }
}

/* ==========================================================================
   Accessibility: skip link and visible keyboard focus
   ========================================================================== */
.skip-link.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #222;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 7px;
	width: auto;
	z-index: 100000;
}

#primary:focus {
	outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.nst-nav__toggle:focus-visible,
.nst-footer input:focus-visible{
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffffff;
}

.form-control:focus,
.nst-footer input:focus,
.nestora-single .comment-form textarea:focus,
.nestora-single .comment-form input[type="text"]:focus,
.nestora-single .comment-form input[type="email"]:focus,
.nestora-single .comment-form input[type="url"]:focus {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
}

/* ==========================================================================
   Block style: Outline button
   ========================================================================== */
.wp-block-button.is-style-nestora-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}

.wp-block-button.is-style-nestora-outline .wp-block-button__link:hover,
.wp-block-button.is-style-nestora-outline .wp-block-button__link:focus {
	background: #3b5d50;
	border-color: #3b5d50;
	color: #fff;
}
