/* ===========================================
   HISTORICUM PAGES STYLES
   Cart, Blog, Contact, About
   
   Uses the same design system as shop page:
   - Paper rip sections for key content
   - Black sections for secondary content
   - Yellow diagonal bands in heroes
   - Medieval high-tech aesthetic
   =========================================== */


/* -----------------------------------------
   BASE PAGE STYLES
----------------------------------------- */
.h-page-wrapper {
    background-color: var(--h-black);
    color: var(--h-white);
    min-height: 100vh;
    padding-top: 80px;
}

body.historicum-cart-page,
body.historicum-blog-page,
body.historicum-contact-page,
body.historicum-about-page,
body.historicum-measurement-page,
body.historicum-regulations-page {
    padding-top: 0 !important;
    margin: 0 !important;
    background-color: transparent;
}

body.historicum-cart-page .site-header,
body.historicum-blog-page .site-header,
body.historicum-contact-page .site-header,
body.historicum-about-page .site-header,
body.historicum-measurement-page .site-header,
body.historicum-regulations-page .site-header,
body.historicum-cart-page #masthead,
body.historicum-blog-page #masthead,
body.historicum-contact-page #masthead,
body.historicum-about-page #masthead,
body.historicum-measurement-page #masthead,
body.historicum-regulations-page #masthead {
    display: none !important;
}


/* -----------------------------------------
   PAGE HERO SECTION
----------------------------------------- */
.h-page-hero {
    position: relative;
    background-color: var(--h-black);
    padding: 80px 40px 100px;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-page-hero.h-hero-tall {
    min-height: 450px;
    padding: 100px 40px 120px;
}

.h-page-bg-overlay {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: calc(100% + 80px);
    background-image: url('https://historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.11;
    z-index: 1;
    pointer-events: none;
}

.h-page-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.h-page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    color: var(--h-accent);
}

.h-page-icon.h-icon-large {
    width: 120px;
    height: 120px;
}

.h-page-icon svg,
.h-page-icon img {
    width: 100%;
    height: 100%;
}

.h-page-title {
    font-family: var(--h-font-cinzel);
    font-size: 56px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.h-page-subtitle {
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    color: var(--h-gray-light);
    margin: 0;
}


/* -----------------------------------------
   YELLOW DIAGONAL BANDS (Page Heroes)
----------------------------------------- */
.h-page-hero .h-diagonal-bands {
    position: absolute;
    top: 0;
    left: -30%;
    width: 160%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.h-page-hero .h-band {
    position: absolute;
    width: 200%;
    left: -50%;
    background: var(--h-accent);
    transform: rotate(-5deg);
}

.h-page-hero .h-band-top {
    top: 45%;
    height: 5px;
}

.h-page-hero .h-band-middle {
    top: calc(45% + 10px);
    height: 120px;
}

.h-page-hero .h-band-bottom {
    top: calc(45% + 140px);
    height: 10px;
}


/* -----------------------------------------
   PAPER SECTIONS (Reused from shop)
----------------------------------------- */
.h-paper-section {
    position: relative;
}

.h-paper-section::before {
    content: '';
    display: block;
    height: 60px;
    background: #000000;
}

.h-paper-section.h-first-section::before {
    display: none;
}

.h-torn-top,
.h-torn-bottom {
    width: 100%;
    height: 50px;
    background-size: 150% 100%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
}

.h-torn-top {
    background-position: bottom left;
}

.h-torn-bottom {
    background-position: top left;
    transform: scaleY(-1);
}

.h-rip-offset-1 .h-torn-top,
.h-rip-offset-1 .h-torn-bottom { background-position-x: 0%; }
.h-rip-offset-2 .h-torn-top,
.h-rip-offset-2 .h-torn-bottom { background-position-x: 33%; }
.h-rip-offset-3 .h-torn-top,
.h-rip-offset-3 .h-torn-bottom { background-position-x: 66%; }

.h-paper-content {
    background-color: var(--h-paper);
    padding: 50px 60px 60px;
}

.h-paper-title {
    font-family: var(--h-font-cinzel);
    font-size: 36px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 30px;
}


/* -----------------------------------------
   DARK SECTIONS
----------------------------------------- */
.h-dark-section {
    background-color: var(--h-black);
    padding: 60px 40px;
}

.h-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.h-section-title {
    font-family: var(--h-font-cinzel);
    font-size: 36px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 15px;
}

.h-section-subtitle {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: var(--h-gray-light);
    margin: 0;
}


/* -----------------------------------------
   BUTTONS
----------------------------------------- */
.h-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background-color: var(--h-accent);
    border: 2px solid var(--h-accent);
    border-radius: 4px;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 600;
    color: var(--h-black);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-btn-primary:hover {
    background-color: var(--h-white);
    border-color: var(--h-white);
    color: var(--h-black);
}

.h-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background-color: transparent;
    border: 1px solid var(--h-white);
    border-radius: 4px;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 600;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-btn-secondary:hover {
    background-color: var(--h-accent);
    border-color: var(--h-accent);
    color: var(--h-black);
}

.h-btn-large {
    padding: 18px 45px;
    font-size: 15px;
}


/* ===========================================
   CART PAGE STYLES
   =========================================== */

.h-cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Empty Cart */
.h-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.h-cart-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    color: var(--h-black);
    opacity: 0.3;
}

.h-cart-empty-icon svg {
    width: 100%;
    height: 100%;
}

.h-cart-empty-title {
    font-family: var(--h-font-cinzel);
    font-size: 32px;
    font-weight: 700;
    color: var(--h-black);
    margin: 0 0 15px;
}

.h-cart-empty-text {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: #555;
    margin: 0 0 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Cart Items */
.h-cart-items {
    margin-bottom: 30px;
}

.h-cart-header-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 50px;
    gap: 20px;
    padding: 15px 20px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 600;
    color: var(--h-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.h-cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background-color: var(--h-white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.h-cart-col-product {
    display: flex;
    gap: 20px;
    align-items: center;
}

.h-cart-item-image {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.h-cart-item-image img:not(.h-watermark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-cart-item-image .h-watermark {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    opacity: 0.5;
}

.h-cart-item-info {
    flex: 1;
}

.h-cart-item-name {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 600;
    color: var(--h-black);
    margin: 0 0 5px;
    text-transform: uppercase;
}

.h-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.h-cart-item-name a:hover {
    color: var(--h-accent);
}

.h-cart-item-sku {
    font-family: var(--h-font-cormorant);
    font-size: 13px;
    color: #888;
}

.h-cart-col-price,
.h-cart-col-total {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 600;
    color: var(--h-black);
}

.h-cart-col-total {
    color: var(--h-accent);
}

.h-cart-col-qty input {
    width: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
}

.h-cart-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: #999;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.h-cart-remove:hover {
    background-color: #fee;
    color: #c00;
}

/* Cart Actions */
.h-cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cart Totals */
.h-cart-totals-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.h-cart-totals {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 30px;
}

.h-cart-totals-title {
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    margin: 0 0 25px;
    text-align: center;
}

.h-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-gray-light);
}

.h-totals-row.h-totals-total {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 20px;
    font-weight: 700;
    color: var(--h-white);
}

.h-totals-row.h-totals-total span:last-child {
    color: var(--h-accent);
}

.h-coupon-form {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.h-coupon-input {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--h-white);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
}

.h-coupon-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.h-checkout-btn-wrapper {
    margin-top: 25px;
}

.h-checkout-btn-wrapper .h-btn-primary {
    width: 100%;
}

/* Trust Badges */
.h-trust-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.h-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--h-gray-light);
    font-family: var(--h-font-cormorant);
    font-size: 12px;
}

.h-trust-badge svg {
    width: 24px;
    height: 24px;
    color: var(--h-accent);
}


/* ===========================================
   BLOG PAGE STYLES
   =========================================== */

/* Featured Post */
.h-featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.h-featured-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.h-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.h-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background-color: var(--h-accent);
    color: var(--h-black);
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
}

.h-featured-content {
    padding: 20px 0;
}

.h-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-family: var(--h-font-cormorant);
    font-size: 14px;
}

.h-post-category {
    color: var(--h-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.h-post-date {
    color: #888;
}

.h-featured-title {
    font-family: var(--h-font-cinzel);
    font-size: 32px;
    font-weight: 700;
    color: var(--h-black);
    margin: 0 0 20px;
    line-height: 1.3;
}

.h-featured-title a {
    color: inherit;
    text-decoration: none;
}

.h-featured-title a:hover {
    color: var(--h-accent);
}

.h-featured-excerpt {
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 25px;
}

/* Blog Filter */
.h-blog-filter-section {
    padding: 30px 40px;
}

.h-blog-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.h-filter-label {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    color: var(--h-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.h-filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.h-filter-tag {
    padding: 8px 18px;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    color: var(--h-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.h-filter-tag:hover {
    background-color: transparent;
    border-color: var(--h-accent);
    color: var(--h-accent);
}

.h-filter-tag.active {
    background-color: var(--h-accent);
    border-color: var(--h-accent);
    color: var(--h-black);
}

/* Blog Grid */
.h-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Pagination */
.h-pagination {
    text-align: center;
}

.h-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.h-pagination li a,
.h-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: var(--h-white);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    color: var(--h-black);
    text-decoration: none;
    transition: all 0.3s ease;
}

.h-pagination li a:hover,
.h-pagination li span.current {
    background-color: var(--h-accent);
    border-color: var(--h-accent);
    color: var(--h-black);
}

/* Newsletter */
.h-newsletter-section {
    text-align: center;
    padding: 80px 40px;
}

.h-newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.h-newsletter-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    color: var(--h-accent);
}

.h-newsletter-icon svg {
    width: 100%;
    height: 100%;
}

.h-newsletter-title {
    font-family: var(--h-font-cinzel);
    font-size: 32px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    margin: 0 0 15px;
}

.h-newsletter-text {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: var(--h-gray-light);
    margin: 0 0 30px;
    line-height: 1.6;
}

.h-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.h-newsletter-input {
    flex: 1;
    padding: 15px 20px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--h-white);
    font-family: var(--h-font-cormorant);
    font-size: 16px;
}

.h-newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.h-newsletter-note {
    font-family: var(--h-font-cormorant);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 15px;
}


/* ===========================================
   CONTACT PAGE STYLES
   =========================================== */

/* Contact Cards */
.h-contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.h-contact-card {
    background-color: var(--h-white);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.h-contact-card:hover {
    transform: translateY(-5px);
}

.h-contact-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--h-accent);
}

.h-contact-card-icon svg {
    width: 100%;
    height: 100%;
}

.h-contact-card-title {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 600;
    color: var(--h-black);
    margin: 0 0 8px;
}

.h-contact-card-text {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
}

.h-contact-card-link {
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    color: var(--h-black);
    text-decoration: none;
    font-weight: 600;
}

a.h-contact-card-link:hover {
    color: var(--h-accent);
}

.h-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.h-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h-black);
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.h-social-link:hover {
    background-color: var(--h-accent);
    border-color: var(--h-accent);
    color: var(--h-black);
}

.h-social-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Form */
.h-contact-form-section {
    padding: 80px 40px;
}

.h-contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.h-contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.h-contact-form {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 40px;
}

.h-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.h-form-group {
    display: flex;
    flex-direction: column;
}

.h-form-group.h-form-full {
    grid-column: 1 / -1;
}

.h-form-group label {
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.h-form-group input,
.h-form-group select,
.h-form-group textarea {
    padding: 14px 18px;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: var(--h-white);
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.h-form-group input:focus,
.h-form-group select:focus,
.h-form-group textarea:focus {
    outline: none;
    border-color: var(--h-accent);
}

.h-form-group input::placeholder,
.h-form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.h-form-group select {
    cursor: pointer;
}

.h-form-group select option {
    background-color: var(--h-black);
    color: var(--h-white);
}

.h-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: var(--h-gray-light);
    cursor: pointer;
}

.h-checkbox-label input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.h-checkbox-label a {
    color: var(--h-accent);
}

.h-form-submit {
    margin-top: 30px;
    text-align: center;
}

/* FAQ */
.h-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.h-faq-item {
    background-color: var(--h-white);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.h-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 600;
    color: var(--h-black);
    text-align: left;
}

.h-faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.h-faq-item.active .h-faq-question svg {
    transform: rotate(180deg);
}

.h-faq-answer {
    display: none;
    padding: 0 25px 25px;
}

.h-faq-item.active .h-faq-answer {
    display: block;
}

.h-faq-answer p {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Map */
.h-map-section {
    padding: 0;
}

.h-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 400px;
}

.h-map-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.h-map-info h3 {
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    margin: 0 0 8px;
}

.h-map-info > p {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-gray-light);
    margin: 0 0 25px;
}

.h-map-hours {
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: var(--h-gray-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.h-map-hours strong {
    color: var(--h-white);
}

.h-map-embed {
    background-color: #1a1a1a;
}

.h-map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
}

.h-map-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}


/* ===========================================
   ABOUT PAGE STYLES
   =========================================== */

/* Intro Section */
.h-about-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.h-intro-title {
    font-family: var(--h-font-cinzel);
    font-size: 32px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    margin: 0 0 25px;
}

.h-intro-lead {
    font-family: var(--h-font-cormorant);
    font-size: 22px;
    line-height: 1.6;
    color: var(--h-black);
    margin: 0 0 20px;
    font-weight: 500;
}

.h-intro-text p {
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 15px;
}

.h-intro-image {
    border-radius: 8px;
    overflow: hidden;
}

.h-image-placeholder {
    background-color: #f0f0f0;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.h-image-placeholder svg {
    width: 100%;
    height: auto;
}

/* Stats */
.h-stats-section {
    padding: 80px 40px;
}

.h-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.h-stat-number {
    display: block;
    font-family: var(--h-font-cinzel);
    font-size: 56px;
    font-weight: 700;
    color: var(--h-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.h-stat-label {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-gray-light);
}

/* Values Grid */
.h-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.h-value-card {
    background-color: var(--h-white);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.h-value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--h-accent);
}

.h-value-icon svg {
    width: 100%;
    height: 100%;
}

.h-value-title {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 600;
    color: var(--h-black);
    margin: 0 0 12px;
}

.h-value-text {
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Team */
.h-team-section {
    padding: 80px 40px;
}

.h-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.h-team-member {
    text-align: center;
}

.h-member-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--h-accent);
}

.h-member-placeholder {
    width: 100%;
    height: 100%;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.h-member-placeholder svg {
    width: 60%;
    height: 60%;
}

.h-member-name {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 600;
    color: var(--h-white);
    margin: 0 0 5px;
}

.h-member-role {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: var(--h-accent);
    margin: 0 0 12px;
    font-weight: 600;
}

.h-member-bio {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    line-height: 1.6;
    color: var(--h-gray-light);
    margin: 0;
}

/* Process Timeline */
.h-process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.h-process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.h-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 70px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: rgba(0,0,0,0.1);
}

.h-step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--h-accent);
    color: var(--h-black);
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
}

.h-step-content h3 {
    font-family: var(--h-font-cinzel);
    font-size: 20px;
    font-weight: 600;
    color: var(--h-black);
    margin: 0 0 10px;
    padding-top: 10px;
}

.h-step-content p {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* CTA Section */
.h-cta-section {
    padding: 100px 40px;
    text-align: center;
}

.h-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.h-cta-title {
    font-family: var(--h-font-cinzel);
    font-size: 40px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    margin: 0 0 20px;
}

.h-cta-text {
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    color: var(--h-gray-light);
    margin: 0 0 35px;
    line-height: 1.6;
}

.h-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sponsors */
.h-sponsors-subtitle {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: #666;
    margin: -20px 0 40px;
    text-align: center;
}

.h-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.h-sponsor-logo {
    background-color: var(--h-white);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.h-sponsor-placeholder {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #aaa;
}


/* ===========================================
   MEASUREMENT PAGE STYLES
   =========================================== */

/* Warning Box */
.h-measurement-warning {
    text-align: center;
    padding: 40px;
    background-color: rgba(235, 188, 0, 0.1);
    border: 2px solid var(--h-accent);
    border-radius: 8px;
    margin-bottom: 40px;
}

.h-warning-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--h-accent);
}

.h-warning-icon svg {
    width: 100%;
    height: 100%;
}

.h-warning-title {
    font-family: var(--h-font-cinzel);
    font-size: 28px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    margin: 0 0 10px;
}

.h-warning-text {
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    color: var(--h-black);
    margin: 0;
}

.h-warning-text strong {
    color: var(--h-accent);
    font-weight: 700;
}

/* Measurement Rules */
.h-measurement-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.h-rule-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 8px;
}

.h-rule-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--h-accent);
    color: var(--h-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--h-font-cinzel);
    font-weight: 700;
    font-size: 16px;
}

.h-rule-card p {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-black);
    margin: 0;
    line-height: 1.5;
}

.h-rule-card p strong {
    font-weight: 700;
}

/* Measurement Section */
.h-measurement-section {
    padding: 80px 40px;
}

.h-measurement-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.h-measurement-diagram.h-diagram-paper {
    gap: 40px;
}

.h-diagram-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.h-body-diagram,
.h-head-diagram {
    width: 100%;
    max-width: 300px;
}

.h-body-diagram svg,
.h-head-diagram svg {
    width: 100%;
    height: auto;
}

/* Measurement Table */
.h-measurement-table {
    width: 100%;
}

.h-measurement-table h3 {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    margin: 0 0 15px;
}

.h-measurement-table table {
    width: 100%;
    border-collapse: collapse;
}

.h-measurement-table th,
.h-measurement-table td {
    padding: 12px 15px;
    text-align: left;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
}

.h-measurement-table th {
    background-color: rgba(235, 188, 0, 0.2);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--h-black);
}

/* Dark section table */
.h-dark-section .h-measurement-table th {
    background-color: rgba(235, 188, 0, 0.3);
    color: var(--h-white);
}

.h-dark-section .h-measurement-table td {
    color: var(--h-white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.h-measurement-table td {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.h-measurement-table td:first-child {
    font-family: var(--h-font-cinzel);
    font-weight: 700;
    color: var(--h-accent);
    width: 80px;
}

.h-measurement-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: #666;
}

/* Product Requirements Grid */
.h-product-requirements {
    padding: 80px 40px;
}

.h-product-measurement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.h-product-req-card {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.h-product-req-card h3 {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 700;
    color: var(--h-accent);
    text-transform: uppercase;
    margin: 0 0 12px;
}

.h-req-codes {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: var(--h-gray-light);
    margin: 0;
    line-height: 1.6;
}

/* Tips Grid */
.h-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.h-tip-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 8px;
}

.h-tip-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--h-accent);
}

.h-tip-icon svg {
    width: 100%;
    height: 100%;
}

.h-tip-card h3 {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    margin: 0 0 10px;
}

.h-tip-card p {
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.h-contact-cta {
    text-align: center;
    padding: 30px;
    background-color: rgba(235, 188, 0, 0.1);
    border-radius: 8px;
}

.h-contact-cta p {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: var(--h-black);
    margin: 0;
}

.h-contact-cta a {
    color: var(--h-accent);
    font-weight: 700;
    text-decoration: none;
}

.h-contact-cta a:hover {
    text-decoration: underline;
}


/* ===========================================
   REGULATIONS PAGE STYLES
   =========================================== */

/* Key Points Grid */
.h-key-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.h-key-point-card {
    padding: 30px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
}

.h-key-point-card.h-key-point-warning {
    background-color: rgba(235, 188, 0, 0.1);
    border-color: var(--h-accent);
}

.h-key-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--h-accent);
}

.h-key-icon svg {
    width: 100%;
    height: 100%;
}

.h-key-point-card h3 {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    margin: 0 0 15px;
}

.h-key-point-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.h-key-point-card li {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #444;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.h-key-point-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--h-accent);
}

.h-key-point-card li strong {
    font-weight: 700;
    color: var(--h-black);
}

.h-key-note {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Regulations Section */
.h-regulations-section {
    padding: 80px 40px;
}

/* Accordion */
.h-regulations-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.h-reg-item {
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.h-reg-item.h-reg-item-important {
    border-color: var(--h-accent);
}

.h-reg-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(255,255,255,0.05);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.h-reg-question:hover {
    background-color: rgba(255,255,255,0.1);
}

.h-reg-question span {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.h-reg-question svg {
    width: 20px;
    height: 20px;
    color: var(--h-accent);
    transition: transform 0.3s ease;
}

.h-reg-item.active .h-reg-question svg {
    transform: rotate(180deg);
}

.h-reg-answer {
    display: none;
    padding: 0 25px 25px;
    background-color: rgba(255,255,255,0.03);
}

.h-reg-item.active .h-reg-answer {
    display: block;
}

.h-reg-answer p,
.h-reg-answer li {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-gray-light);
    line-height: 1.7;
}

.h-reg-answer h4 {
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 700;
    color: var(--h-accent);
    text-transform: uppercase;
    margin: 20px 0 10px;
}

.h-reg-answer ul,
.h-reg-answer ol {
    padding-left: 20px;
    margin: 10px 0;
}

.h-reg-answer li {
    margin-bottom: 8px;
}

.h-reg-answer strong {
    color: var(--h-white);
}

.h-reg-warning {
    background-color: rgba(235, 188, 0, 0.15);
    border-left: 4px solid var(--h-accent);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.h-reg-warning strong {
    color: var(--h-accent);
}

/* Regulations Contact */
.h-reg-contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.h-reg-contact p {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: var(--h-black);
    line-height: 1.6;
}

.h-reg-contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
}

.h-contact-method {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #555;
}

.h-contact-method strong {
    display: block;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--h-black);
    margin-bottom: 5px;
}

.h-contact-method a {
    color: var(--h-accent);
    text-decoration: none;
}

.h-contact-method a:hover {
    text-decoration: underline;
}

.h-contact-method span {
    display: block;
    font-size: 14px;
    color: #888;
}

.h-reg-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}


/* ===========================================
   ABOUT PAGE - ADDITIONAL STYLES
   =========================================== */

/* Founder Profile */
.h-founder-profile {
    max-width: 900px;
    margin: 0 auto;
}

.h-founder-dark-section {
    padding: 80px 40px;
}

.h-founder-header {
    text-align: center;
    margin-bottom: 40px;
}

.h-founder-name {
    font-family: var(--h-font-cinzel);
    font-size: 36px;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    margin: 0 0 10px;
}

.h-paper-section .h-founder-name {
    color: var(--h-black);
}

.h-founder-role {
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    color: var(--h-gray-light);
    margin: 0;
}

.h-paper-section .h-founder-role {
    color: #666;
}

/* Achievements Grid */
.h-achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.h-achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 4px solid var(--h-accent);
}

.h-paper-section .h-achievement {
    background-color: rgba(0,0,0,0.03);
}

.h-achievement-gold {
    border-left-color: #FFD700;
}

.h-achievement-silver {
    border-left-color: #C0C0C0;
}

.h-achievement-bronze {
    border-left-color: #CD7F32;
}

.h-achievement-icon {
    font-size: 24px;
}

.h-achievement-text {
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: var(--h-white);
    line-height: 1.4;
}

.h-paper-section .h-achievement-text {
    color: var(--h-black);
}

/* Founder Roles */
.h-founder-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.h-role-tag {
    padding: 8px 20px;
    background-color: rgba(235, 188, 0, 0.2);
    border-radius: 20px;
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: var(--h-accent);
}

.h-paper-section .h-role-tag {
    background-color: rgba(235, 188, 0, 0.3);
    color: #8B7500;
}

.h-founder-note {
    text-align: center;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-gray-light);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.h-paper-section .h-founder-note {
    color: #666;
}

/* The New Era Section */
.h-new-era-section {
    text-align: center;
}

.h-new-era-intro {
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    color: #444;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.h-new-era-intro strong {
    color: var(--h-accent);
}

.h-new-era-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.h-feature-card {
    padding: 40px 30px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 12px;
    text-align: center;
}

.h-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    color: var(--h-accent);
}

.h-feature-icon svg {
    width: 100%;
    height: 100%;
}

.h-feature-card h3 {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    color: var(--h-black);
    text-transform: uppercase;
    margin: 0 0 15px;
}

.h-feature-card p {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Company Info Grid */
.h-company-info {
    text-align: center;
}

.h-company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.h-company-card {
    padding: 30px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 8px;
    text-align: center;
}

.h-company-card h3 {
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 700;
    color: var(--h-accent);
    text-transform: uppercase;
    margin: 0 0 15px;
}

.h-company-card p {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.h-company-card .h-social-links {
    flex-direction: column;
    gap: 8px;
}

.h-company-card .h-social-link {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: var(--h-accent);
}

.h-company-card .h-social-link:hover {
    background: none;
    text-decoration: underline;
}


/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media screen and (max-width: 1200px) {
    .h-contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-values-grid,
    .h-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .h-company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-product-measurement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .h-page-title {
        font-size: 42px;
    }
    
    .h-paper-content {
        padding: 40px;
    }
    
    .h-featured-post {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .h-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .h-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-stat-number {
        font-size: 42px;
    }
    
    .h-cart-header-row {
        display: none;
    }
    
    .h-cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .h-cart-col-product {
        flex-direction: column;
        text-align: center;
    }
    
    .h-cart-col-price,
    .h-cart-col-qty,
    .h-cart-col-total {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }
    
    .h-cart-col-price::before { content: 'Price: '; }
    .h-cart-col-qty::before { content: 'Quantity: '; }
    .h-cart-col-total::before { content: 'Total: '; }
    
    .h-map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .h-map-info {
        padding: 40px;
    }
    
    .h-map-embed {
        min-height: 300px;
    }
    
    /* Measurement page */
    .h-measurement-diagram {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .h-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .h-product-measurement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Regulations page */
    .h-key-points-grid {
        grid-template-columns: 1fr;
    }
    
    /* About page */
    .h-achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .h-new-era-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .h-company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .h-page-wrapper {
        padding-top: 70px;
    }
    
    .h-page-hero {
        padding: 60px 20px 80px;
        min-height: 300px;
    }
    
    .h-page-title {
        font-size: 32px;
    }
    
    .h-page-subtitle {
        font-size: 16px;
    }
    
    .h-paper-content {
        padding: 30px 20px;
    }
    
    .h-paper-title {
        font-size: 28px;
    }
    
    .h-section-title {
        font-size: 28px;
    }
    
    .h-dark-section {
        padding: 50px 20px;
    }
    
    .h-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .h-contact-cards {
        grid-template-columns: 1fr;
    }
    
    .h-form-row {
        grid-template-columns: 1fr;
    }
    
    .h-contact-form {
        padding: 25px;
    }
    
    .h-values-grid,
    .h-team-grid {
        grid-template-columns: 1fr;
    }
    
    .h-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .h-stat-number {
        font-size: 36px;
    }
    
    .h-process-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .h-process-step::after {
        display: none;
    }
    
    .h-step-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .h-cta-title {
        font-size: 28px;
    }
    
    .h-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .h-sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-newsletter-form {
        flex-direction: column;
    }
    
    .h-cart-actions {
        flex-direction: column;
    }
    
    .h-trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Measurement page */
    .h-measurement-section {
        padding: 50px 20px;
    }
    
    .h-measurement-rules {
        grid-template-columns: 1fr;
    }
    
    .h-product-measurement-grid {
        grid-template-columns: 1fr;
    }
    
    .h-product-requirements {
        padding: 50px 20px;
    }
    
    .h-warning-title {
        font-size: 22px;
    }
    
    /* Regulations page */
    .h-regulations-section {
        padding: 50px 20px;
    }
    
    .h-reg-question {
        padding: 15px 20px;
    }
    
    .h-reg-question span {
        font-size: 14px;
    }
    
    .h-reg-contact-info {
        flex-direction: column;
        gap: 25px;
    }
    
    .h-reg-buttons {
        flex-direction: column;
    }
    
    /* About page */
    .h-founder-dark-section {
        padding: 50px 20px;
    }
    
    .h-founder-name {
        font-size: 28px;
    }
    
    .h-founder-roles {
        gap: 8px;
    }
    
    .h-role-tag {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .h-company-grid {
        grid-template-columns: 1fr;
    }
    
    .h-new-era-intro {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .h-page-title {
        font-size: 26px;
    }
    
    .h-paper-title {
        font-size: 22px;
    }
    
    .h-blog-card-image {
        height: 160px;
    }
    
    .h-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .h-sponsors-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   REAL PAPER GRAIN TEXTURE FOR LIGHT SURFACES
   =========================================== */

.h-paper-section,
.h-paper-content,
.h-contact-form,
.h-measurement-warning,
.h-faq-item,
.h-contact-card,
.h-value-card,
.h-feature-card {
    position: relative;
}

.h-paper-content,
.h-contact-form,
.h-measurement-warning,
.h-faq-item,
.h-contact-card,
.h-value-card,
.h-feature-card {
    overflow: visible;
}

.h-paper-content::before,
.h-contact-form::before,
.h-measurement-warning::before,
.h-faq-item::before,
.h-contact-card::before,
.h-value-card::before,
.h-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('https://historicum.pl/wp-content/uploads/2026/04/noise.png');
    background-repeat: repeat;
    background-size: 256px 256px;
    background-position: 0 0;
    opacity: 0.055;
}

.h-paper-content::after,
.h-contact-form::after,
.h-measurement-warning::after,
.h-faq-item::after,
.h-contact-card::after,
.h-value-card::after,
.h-feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 35%,
        rgba(150, 120, 80, 0.18) 100%
    );
}

.h-paper-content > *,
.h-contact-form > *,
.h-measurement-warning > *,
.h-faq-item > *,
.h-contact-card > *,
.h-value-card > *,
.h-feature-card > * {
    position: relative;
    z-index: 1;
}

/* ===========================================
   HISTORICUM STATIC PAGE EXPANSION
   Community, Training, Policy, 404, Account, Newsletter Popup
   =========================================== */

body.historicum-community-page,
body.historicum-community-blog-page,
body.historicum-social-page,
body.historicum-events-page,
body.historicum-collaborations-page,
body.historicum-custom-projects-page,
body.historicum-training-page,
body.historicum-policy-page,
body.historicum-privacy-page,
body.historicum-returns-page,
body.historicum-error-page,
body.woocommerce-account {
    padding-top: 0 !important;
    margin: 0 !important;
    background: var(--h-black);
}

body.historicum-community-page .site-header,
body.historicum-community-blog-page .site-header,
body.historicum-social-page .site-header,
body.historicum-events-page .site-header,
body.historicum-collaborations-page .site-header,
body.historicum-custom-projects-page .site-header,
body.historicum-training-page .site-header,
body.historicum-policy-page .site-header,
body.historicum-error-page .site-header,
body.woocommerce-account .site-header,
body.historicum-community-page #masthead,
body.historicum-community-blog-page #masthead,
body.historicum-social-page #masthead,
body.historicum-events-page #masthead,
body.historicum-collaborations-page #masthead,
body.historicum-custom-projects-page #masthead,
body.historicum-training-page #masthead,
body.historicum-policy-page #masthead,
body.historicum-error-page #masthead,
body.woocommerce-account #masthead {
    display: none !important;
}

.h-static-page {
    overflow: hidden;
}

.h-static-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.h-static-dark-section {
    position: relative;
    padding: 96px 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(235, 188, 0, 0.10), transparent 32%),
        linear-gradient(180deg, #050604 0%, #0e110c 52%, #000 100%);
}

.h-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}

.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid var(--h-accent);
    border-radius: 2px;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.h-btn:hover,
.h-btn:focus-visible {
    transform: translateY(-2px);
}

.h-btn-gold {
    background: var(--h-accent);
    color: #060604 !important;
}

.h-btn-outline {
    background: rgba(0, 0, 0, 0.22);
    color: var(--h-white) !important;
}

.h-btn-outline:hover,
.h-btn-outline:focus-visible {
    background: var(--h-accent);
    color: #060604 !important;
}

.h-diagonal-band,
.h-error-band {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(235, 188, 0, 0), rgba(235, 188, 0, 0.55), rgba(235, 188, 0, 0));
    transform: rotate(-10deg);
    opacity: 0.6;
}

.h-diagonal-band-one,
.h-error-band-one {
    width: 60%;
    height: 54px;
    top: 38%;
    left: -12%;
}

.h-diagonal-band-two,
.h-error-band-two {
    width: 46%;
    height: 34px;
    right: -8%;
    bottom: 18%;
    opacity: 0.35;
}

.h-section-header-dark-text {
    color: #111;
    text-align: center;
    margin-bottom: 34px;
}

.h-section-header-dark-text p,
.h-center-copy p,
.h-lead-copy,
.h-policy-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 21px;
    line-height: 1.55;
}

.h-center-copy {
    text-align: center;
}

/* Community hub */
.h-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.h-destination-tile {
    position: relative;
    display: flex;
    min-height: 265px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.88)),
        url('https://historicum.pl/wp-content/uploads/2026/04/Workshop2.jpg') center/cover;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.h-destination-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(235, 188, 0, 0.28), transparent 32%);
    opacity: 0.75;
}

.h-destination-tile > * {
    position: relative;
    z-index: 1;
}

.h-destination-tile:hover,
.h-destination-tile:focus-visible {
    transform: translateY(-5px);
    border-color: var(--h-accent);
}

.h-destination-label,
.h-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.h-destination-tile h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--h-font-cinzel);
    font-size: 26px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.h-destination-tile p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    line-height: 1.45;
}

.h-destination-link {
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Blog/community cards */
.h-featured-article,
.h-two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.h-featured-media,
.h-media-placeholder {
    display: block;
    min-height: 330px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background:
        linear-gradient(145deg, rgba(235, 188, 0, 0.16), rgba(0, 0, 0, 0.12)),
        url('https://historicum.pl/wp-content/uploads/2026/04/Workshop2.jpg') center/cover;
    overflow: hidden;
}

.h-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.h-featured-copy h2,
.h-featured-copy h2 a {
    color: #111;
    font-family: var(--h-font-cinzel);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    text-transform: uppercase;
    text-decoration: none;
}

.h-featured-copy p {
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    line-height: 1.55;
}

.h-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.h-filter-pills span {
    border: 1px solid rgba(235, 188, 0, 0.5);
    padding: 8px 14px;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.h-blog-grid-modern,
.h-event-grid,
.h-feature-grid-modern,
.h-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.h-blog-card-modern,
.h-event-card,
.h-feature-card-modern,
.h-platform-card,
.h-collab-card {
    border: 1px solid rgba(235, 188, 0, 0.26);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
}

.h-blog-card-image-modern {
    display: block;
    height: 220px;
    background:
        radial-gradient(circle at 25% 15%, rgba(235, 188, 0, 0.22), transparent 34%),
        url('https://historicum.pl/wp-content/uploads/2026/04/Workshop2.jpg') center/cover;
}

.h-blog-card-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-blog-card-content-modern,
.h-event-card,
.h-feature-card-modern,
.h-platform-card,
.h-collab-card {
    padding: 24px;
}

.h-blog-card-content-modern span,
.h-event-card span,
.h-collab-card span {
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-blog-card-content-modern h3,
.h-blog-card-content-modern h3 a,
.h-event-card h3,
.h-feature-card-modern h3,
.h-platform-card h2,
.h-collab-card h2 {
    color: #fff;
    font-family: var(--h-font-cinzel);
    font-size: 22px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
}

.h-blog-card-content-modern p,
.h-event-card p,
.h-feature-card-modern p,
.h-platform-card p,
.h-collab-card p,
.h-clean-list,
.h-quote-copy {
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    line-height: 1.5;
}

.h-blog-card-content-modern a,
.h-collab-card a {
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.h-empty-state {
    padding: 45px;
    text-align: center;
}

/* Social, collaborations, projects, training */
.h-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h-platform-card {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.16);
    color: #111;
}

.h-platform-heading {
    display: flex;
    gap: 14px;
    align-items: center;
}

.h-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--h-accent);
    background: #090907;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
}

.h-platform-card h2,
.h-feature-card-modern h3 {
    color: #111;
}

.h-platform-card p,
.h-feature-card-modern p {
    color: #4a4339;
}

.h-platform-embed {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    border: 1px dashed rgba(0, 0, 0, 0.24);
    color: #7a7164;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-collab-rail {
    display: grid;
    grid-auto-columns: minmax(280px, 1fr);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.h-collab-card {
    min-width: 280px;
    scroll-snap-align: start;
}

.h-collab-photo {
    height: 180px;
    margin: -24px -24px 22px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62)),
        url('https://historicum.pl/wp-content/uploads/2026/04/Workshop2.jpg') center/cover;
}

.h-project-masonry {
    columns: 3 260px;
    column-gap: 20px;
}

.h-project-card {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 330px;
    margin: 0 0 20px;
    break-inside: avoid;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.84)),
        url('https://historicum.pl/wp-content/uploads/2026/04/Workshop2.jpg') center/cover;
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.22);
}

.h-project-card-tall {
    min-height: 450px;
}

.h-project-card-wide {
    min-height: 280px;
}

.h-project-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: #fff;
}

.h-project-overlay h2 {
    color: #fff;
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    text-transform: uppercase;
}

.h-project-overlay p {
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--h-font-cormorant);
    font-size: 18px;
}

.h-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 17, 17, 0.54);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.h-media-placeholder-dark {
    color: rgba(255, 255, 255, 0.65);
}

.h-two-column-dark .h-section-title {
    text-align: left;
}

.h-feature-card-modern {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.16);
}

/* Policy pages */
.h-policy-paper {
    max-width: 980px;
}

.h-policy-paper a {
    color: #111;
    font-weight: 700;
}

.h-policy-section {
    padding: 26px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.h-policy-section h2,
.h-policy-contact h2 {
    margin: 0 0 14px;
    color: #111;
    font-family: var(--h-font-cinzel);
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.h-policy-section p,
.h-policy-section li,
.h-policy-contact p {
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 20px;
    line-height: 1.55;
}

.h-policy-section ul {
    margin: 0;
    padding-left: 22px;
}

.h-policy-highlight,
.h-policy-contact {
    border: 1px solid rgba(235, 188, 0, 0.65);
    background: rgba(235, 188, 0, 0.13);
    padding: 18px 20px;
}

/* 404 */
.h-error-code {
    color: var(--h-accent);
    font-family: var(--h-font-augusta);
    font-size: clamp(80px, 20vw, 210px);
    line-height: 0.8;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.h-search-paper {
    max-width: 820px;
    text-align: center;
}

.h-inline-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 24px;
}

.h-inline-search input {
    min-height: 52px;
    border: 1px solid rgba(17, 17, 17, 0.22);
    background: #ece3d2;
    padding: 0 16px;
    color: #111;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
}

.h-inline-search button {
    min-height: 52px;
    border: 1px solid var(--h-accent);
    background: var(--h-accent);
    padding: 0 24px;
    color: #070705;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Newsletter popup */
.h-newsletter-popup {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10040;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    width: min(620px, calc(100% - 44px));
    padding: 20px;
    border: 1px solid rgba(235, 188, 0, 0.72);
    background:
        linear-gradient(145deg, rgba(245, 240, 230, 0.98), rgba(236, 227, 210, 0.98)),
        url('https://historicum.pl/wp-content/uploads/2026/04/noise.png') repeat;
    color: #111;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 28px rgba(235, 188, 0, 0.16);
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s ease, opacity 0.26s ease;
}

.h-newsletter-popup.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.h-newsletter-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.h-newsletter-popup-mark {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--h-accent);
    background: #090907;
    color: var(--h-accent);
    font-family: var(--h-font-augusta);
    font-size: 34px;
}

.h-newsletter-popup-copy h3 {
    margin: 0 30px 8px 0;
    color: #111;
    font-family: var(--h-font-cinzel);
    font-size: 20px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.h-newsletter-popup-copy p {
    margin: 0;
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    line-height: 1.35;
}

.h-newsletter-popup-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.h-newsletter-popup-input {
    min-height: 46px;
    border: 1px solid rgba(17, 17, 17, 0.22);
    background: #ece3d2;
    padding: 0 14px;
    color: #111;
    font-family: var(--h-font-cormorant);
    font-size: 17px;
}

.h-newsletter-popup-submit {
    min-height: 46px;
    border: 1px solid var(--h-accent);
    background: var(--h-accent);
    padding: 0 20px;
    color: #070705;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-newsletter-popup-status {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 14px;
}

@media screen and (max-width: 1180px) {
    .h-community-grid,
    .h-blog-grid-modern,
    .h-event-grid,
    .h-feature-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media screen and (max-width: 820px) {
    .h-static-container {
        width: min(100% - 32px, 720px);
    }

    .h-community-grid,
    .h-blog-grid-modern,
    .h-event-grid,
    .h-feature-grid-modern,
    .h-platform-grid,
    .h-featured-article,
    .h-two-column-section {
        grid-template-columns: 1fr;
    }

    .h-static-dark-section {
        padding: 72px 0;
    }

    .h-policy-section p,
    .h-policy-section li,
    .h-policy-contact p {
        font-size: 18px;
    }
}

@media screen and (max-width: 640px) {
    .h-destination-tile {
        min-height: 230px;
    }

    .h-page-actions,
    .h-inline-search,
    .h-newsletter-popup-form {
        grid-template-columns: 1fr;
    }

    .h-page-actions {
        display: grid;
    }

    .h-btn,
    .h-inline-search button {
        width: 100%;
    }

    .h-newsletter-popup {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
        padding: 18px;
    }

    .h-newsletter-popup-mark {
        display: none;
    }

}

@media screen and (max-width: 480px) {
    .h-featured-media,
    .h-media-placeholder {
        min-height: 240px;
    }

    .h-blog-card-image-modern {
        height: 180px;
    }

    .h-newsletter-popup-form {
        display: flex;
        flex-direction: column;
    }
}

/* ===========================================
   FINAL COMMERCE + STATIC PAGE REPAIR PASS
   Cart, Checkout, Contact, 404, Account login
   =========================================== */

body.historicum-cart-page,
body.historicum-checkout-page,
body.historicum-contact-page,
body.historicum-error-page,
body.woocommerce-account {
    background: linear-gradient(180deg, #0e1a14 0%, #080f0b 30%, #050805 60%, #020202 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: var(--h-white);
}

body.historicum-cart-page .h-page-wrapper,
body.historicum-checkout-page .h-page-wrapper,
body.historicum-contact-page .h-page-wrapper,
body.historicum-error-page .h-page-wrapper,
body.woocommerce-account .h-page-wrapper {
    padding-top: 0 !important;
    background: transparent !important;
}

body.historicum-cart-page main.h-page-wrapper,
body.historicum-checkout-page main.h-page-wrapper,
body.historicum-contact-page main.h-page-wrapper,
body.historicum-error-page main.h-page-wrapper {
    padding-top: 0 !important;
}

body.historicum-error-page .h-error-content .h-page-title,
body.historicum-error-page .h-error-content .h-page-subtitle {
    color: #ffffff !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72);
}

body.historicum-error-page .h-search-paper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: center;
}

body.historicum-error-page .h-search-paper .h-paper-title,
body.historicum-error-page .h-inline-search {
    width: min(820px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.h-commerce-hero {
    min-height: 360px;
    padding-top: 128px;
    padding-bottom: 84px;
}

.h-commerce-paper-section .h-torn-top,
.h-commerce-paper-section .h-torn-bottom,
.h-contact-modern-section .h-torn-top,
.h-contact-modern-section .h-torn-bottom {
    background-color: var(--h-paper);
}

.h-commerce-paper,
.h-contact-modern-paper {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    border: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.h-med-cart-layout,
.h-med-checkout-layout,
.h-contact-modern-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.h-med-cart-items,
.h-checkout-panel,
.h-contact-info-card,
.h-contact-modern-form,
.h-contact-faq-grid article,
.h-account-auth-card {
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.h-med-cart-items {
    padding: 28px;
}

.h-med-cart-header,
.h-med-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 130px 150px 130px 76px;
    gap: 18px;
    align-items: center;
}

.h-med-cart-header {
    padding: 0 0 16px;
    border-bottom: 2px solid rgba(17, 17, 17, 0.14);
    color: #6b6257;
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-med-cart-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.h-med-cart-item:last-of-type {
    border-bottom: 0;
}

.h-med-cart-product {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.h-med-cart-image {
    position: relative;
    display: block;
    width: 118px;
    height: 118px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: #ece3d2;
}

.h-med-cart-image img:not(.h-watermark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-med-cart-image .h-watermark,
.h-commerce-rec-image .h-watermark {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 38px;
    height: auto;
    filter: none !important;
    pointer-events: none;
}

.h-med-cart-name {
    margin: 0 0 8px;
    font-family: var(--h-font-cinzel);
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: 0.04em;
    line-height: 1.16;
    text-transform: uppercase;
}

.h-med-cart-name a {
    color: #111111;
    text-decoration: none;
}

.h-med-cart-meta,
.h-med-workshop-note {
    color: #665d52;
    font-family: var(--h-font-readable, var(--h-font-instrument));
    font-size: 15px;
    line-height: 1.45;
}

.h-med-workshop-note {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 10px;
    border-left: 3px solid var(--h-accent);
    background: rgba(235, 188, 0, 0.10);
}

.h-med-cart-price,
.h-med-cart-total,
.h-med-cart-qty {
    color: #111111;
    font-family: var(--h-font-instrument);
    font-size: 18px;
    line-height: 1.2;
}

.h-med-cart-qty .quantity input,
.h-med-cart-qty input.qty {
    width: 86px !important;
    min-height: 42px;
    border: 1px solid rgba(17, 17, 17, 0.22) !important;
    background: #fbf7ed !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument));
    text-align: center;
}

.h-med-cart-remove a,
.h-cart-remove {
    color: #8b2f25 !important;
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-med-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.h-btn-dark-text {
    color: #111111 !important;
}

.h-med-order-summary,
.h-checkout-summary-panel {
    position: sticky;
    top: 116px;
    padding: 32px;
    background: var(--h-paper);
    color: #111111;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.h-med-order-summary h2,
.h-checkout-summary-panel h2 {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--h-accent);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-summary-row,
.h-checkout-review-order .cart_item,
.h-checkout-review-order tfoot tr {
    color: #f5f0e6;
    font-family: var(--h-font-readable, var(--h-font-instrument));
    font-size: 17px;
}

.h-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.h-summary-row-stack {
    display: block;
}

.h-summary-row-stack > div {
    margin-top: 10px;
}

.h-summary-total {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid var(--h-accent);
    color: var(--h-accent);
    font-family: var(--h-font-instrument);
    font-size: 26px;
}

.h-coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 22px;
}

.h-coupon-form input {
    min-height: 46px;
    border: 1px solid rgba(245, 240, 230, 0.22);
    background: rgba(245, 240, 230, 0.08);
    color: #f5f0e6;
    padding: 0 14px;
    font-family: var(--h-font-readable, var(--h-font-instrument));
}

.h-coupon-form button,
.h-checkout-btn,
.h-contact-submit {
    min-height: 48px;
    border: 1px solid var(--h-accent);
    background: var(--h-accent);
    color: #070705 !important;
    font-family: var(--h-font-instrument);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.h-checkout-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

.h-coupon-form button:hover,
.h-checkout-btn:hover,
.h-contact-submit:hover {
    transform: translateY(-2px);
    background: #d9ad00;
}

.h-coupon-form button,
.h-checkout-btn,
.h-contact-submit,
body.historicum-cart-page .h-btn,
body.historicum-cart-page .h-med-cart-actions button,
body.historicum-checkout-page #place_order {
    border-radius: 999px !important;
}

.h-workshop-info {
    margin-top: 24px;
    padding: 16px;
    border-left: 3px solid var(--h-accent);
    background: rgba(235, 188, 0, 0.10);
    color: #f5f0e6;
}

.h-workshop-info strong {
    display: block;
    margin-bottom: 7px;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.h-workshop-info p {
    margin: 0;
    color: rgba(245, 240, 230, 0.86);
}

.h-commerce-rec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.h-commerce-rec-card {
    overflow: hidden;
    background: #050604;
    color: #f5f0e6 !important;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.h-commerce-rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.h-commerce-rec-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ece3d2;
}

.h-commerce-rec-image img:not(.h-watermark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-commerce-rec-copy {
    display: block;
    padding: 18px;
}

.h-commerce-rec-copy strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--h-font-instrument);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.h-commerce-rec-copy em {
    display: inline-flex;
    border: 1px solid var(--h-accent);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--h-accent);
    font-family: var(--h-font-instrument);
    font-style: normal;
}

.h-checkout-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(17, 17, 17, 0.14);
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-checkout-topline a,
.h-checkout-topline span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111111;
    text-decoration: none;
}

.h-checkout-topline a::before,
.h-checkout-topline span::before {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--h-accent);
    color: #111111;
}

.h-checkout-topline a::before { content: "1"; }
.h-checkout-topline span:nth-child(2)::before { content: "2"; }
.h-checkout-topline span:nth-child(3)::before { content: "3"; }

.h-med-checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.h-med-checkout-forms {
    display: grid;
    gap: 24px;
}

.h-checkout-panel {
    padding: 30px;
}

.h-checkout-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.13);
}

.h-checkout-panel-head span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--h-accent);
    color: #111111;
    font-family: var(--h-font-instrument);
    font-weight: 800;
}

.h-checkout-panel-head h2 {
    margin: 0;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-med-checkout-form .form-row label,
.h-contact-modern-form label span,
.h-account-auth-form label {
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.h-med-checkout-form input.input-text,
.h-med-checkout-form select,
.h-med-checkout-form textarea,
.h-contact-modern-form input,
.h-contact-modern-form select,
.h-contact-modern-form textarea,
.h-account-auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(17, 17, 17, 0.22) !important;
    background: #ece3d2 !important;
    color: #111111 !important;
    padding: 10px 14px;
    font-family: var(--h-font-readable, var(--h-font-instrument));
    font-size: 17px;
}

.h-checkout-summary-panel p {
    margin: -10px 0 22px;
    color: rgba(245, 240, 230, 0.78);
    font-family: var(--h-font-readable, var(--h-font-instrument));
}

.h-checkout-review-order table {
    width: 100%;
    border-collapse: collapse;
    color: #f5f0e6;
}

.h-checkout-review-order th,
.h-checkout-review-order td {
    border-bottom: 1px solid rgba(245, 240, 230, 0.16);
    padding: 12px 0;
    color: #f5f0e6;
}

.h-checkout-review-order .order-total th,
.h-checkout-review-order .order-total td {
    color: var(--h-accent);
    font-size: 22px;
}

.h-checkout-review-order #payment {
    margin-top: 22px;
    background: transparent;
    color: #f5f0e6;
}

.h-checkout-review-order #payment div.payment_box {
    background: rgba(245, 240, 230, 0.09);
    color: #f5f0e6;
}

.h-checkout-review-order #place_order {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    border: 1px solid var(--h-accent) !important;
    background: var(--h-accent) !important;
    color: #070705 !important;
    font-family: var(--h-font-instrument) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.h-contact-modern-paper {
    max-width: 1180px;
}

.h-contact-modern-header {
    margin-bottom: 34px;
}

.h-contact-modern-header h2 {
    margin: 0 0 10px;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.h-contact-modern-header p {
    margin: 0;
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 19px;
}

.h-contact-info-card,
.h-contact-modern-form {
    padding: 30px;
}

.h-contact-info-card h3 {
    margin: 0 0 24px;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-contact-line {
    display: grid;
    gap: 5px;
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.13);
}

.h-contact-line span {
    color: #7a7164;
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-contact-line a,
.h-contact-line strong {
    color: #111111;
    font-family: var(--h-font-cormorant);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.h-contact-hours-card {
    margin-top: 24px;
    padding: 20px;
    border-left: 4px solid var(--h-accent);
    background: rgba(235, 188, 0, 0.10);
}

.h-contact-hours-card h4 {
    margin: 0 0 8px;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-contact-hours-card p {
    margin: 0;
    color: #4a4339;
}

.h-contact-modern-form {
    display: grid;
    gap: 20px;
}

.h-contact-modern-form .h-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.h-contact-modern-form label,
.h-contact-modern-form .h-form-full {
    display: grid;
    gap: 8px;
}

.h-contact-modern-form textarea {
    min-height: 142px;
    resize: vertical;
}

.h-contact-consent {
    display: flex !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px !important;
    color: #4a4339;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
}

.h-contact-consent input {
    width: auto !important;
    min-height: 0 !important;
    margin-top: 4px;
}

.h-contact-submit {
    width: 100%;
    border-radius: 8px;
}

.h-contact-status {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-left: 4px solid var(--h-accent);
    background: rgba(235, 188, 0, 0.12);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.h-contact-status-failed,
.h-contact-status-invalid,
.h-contact-status-missing {
    border-left-color: #a43f35;
    background: rgba(164, 63, 53, 0.10);
}

.h-contact-faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.h-contact-faq-grid article {
    padding: 20px;
}

.h-contact-faq-grid h3 {
    margin: 0 0 10px;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.h-contact-faq-grid p {
    margin: 0;
    color: #4a4339;
    font-size: 16px;
    line-height: 1.55;
}

.h-account-login-shell {
    min-height: 100vh;
}

.h-account-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.h-account-auth-grid.has-login-only {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}

.h-account-auth-card {
    padding: 30px;
}

.h-account-auth-card h2 {
    margin: 0 0 24px;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 26px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-account-auth-form .form-row {
    margin-bottom: 18px;
}

.h-account-auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.h-account-remember {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.h-account-remember input {
    width: auto !important;
    min-height: 0 !important;
}

.h-account-auth-card a {
    color: #111111;
    font-weight: 700;
}

@media screen and (max-width: 1180px) {
    .h-med-cart-layout,
    .h-med-checkout-layout,
    .h-contact-modern-grid {
        grid-template-columns: 1fr;
    }

    .h-med-order-summary,
    .h-checkout-summary-panel {
        position: static;
    }

    .h-med-cart-header,
    .h-med-cart-item {
        grid-template-columns: minmax(0, 1fr) 120px 110px 130px 110px 60px;
    }

    .h-contact-faq-grid,
    .h-commerce-rec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Keep checkout split layout on laptop/desktop widths. */
@media screen and (max-width: 1180px) and (min-width: 992px) {
    body.historicum-checkout-page .h-med-checkout-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
}

@media screen and (max-width: 820px) {
    .h-commerce-paper,
    .h-contact-modern-paper {
        width: calc(100% - 24px);
        padding: 32px 22px 42px;
    }

    .h-med-cart-header {
        display: none;
    }

    .h-med-cart-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .h-med-cart-product {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .h-med-cart-image {
        width: 92px;
        height: 92px;
    }

    .h-med-cart-price::before,
    .h-med-cart-qty::before,
    .h-med-cart-total::before {
        content: attr(data-label) ": ";
        color: #6b6257;
        font-family: var(--h-font-cinzel);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .h-coupon-form,
    .h-contact-modern-form .h-form-row,
    .h-account-auth-grid {
        grid-template-columns: 1fr;
    }

    .h-contact-faq-grid,
    .h-commerce-rec-grid {
        grid-template-columns: 1fr;
    }

    .h-checkout-topline {
        display: grid;
    }
}

/* ===========================================
   ROOT PAPER RIP REPAIR
   Keep rips attached to paper instead of creating detached black spacer bands.
   =========================================== */

.h-paper-section::before {
    content: none !important;
    display: none !important;
    height: 0 !important;
    background: transparent !important;
}

.h-torn-top,
.h-torn-bottom {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 56px !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transform: none !important;
    pointer-events: none;
    z-index: 2;
}

.h-torn-top::before,
.h-torn-bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--h-paper);
    clip-path: polygon(0 68%, 6% 62%, 12% 70%, 18% 64%, 24% 72%, 30% 66%, 36% 74%, 42% 68%, 48% 76%, 54% 70%, 60% 78%, 66% 71%, 72% 77%, 78% 69%, 84% 75%, 90% 67%, 96% 73%, 100% 70%, 100% 100%, 0 100%);
}

.h-torn-bottom::before {
    transform: scaleY(-1);
    transform-origin: center;
}

.h-torn-top::after,
.h-torn-bottom::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--h-paper);
    opacity: 0;
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
    .h-torn-top::before,
    .h-torn-bottom::before {
        opacity: 0;
    }

    .h-torn-top::after,
    .h-torn-bottom::after {
        opacity: 1;
        -webkit-mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
        -webkit-mask-size: 118% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
        mask-size: 118% 100%;
        mask-repeat: no-repeat;
    }

    .h-torn-top::after {
        -webkit-mask-position: 48% bottom;
        mask-position: 48% bottom;
    }

    .h-torn-bottom::after {
        -webkit-mask-position: 52% top;
        mask-position: 52% top;
        transform: scaleY(-1);
        transform-origin: center;
    }

    .h-rip-offset-1 .h-torn-top::after,
    .h-rip-offset-1 .h-torn-bottom::after {
        -webkit-mask-position-x: 0%;
        mask-position-x: 0%;
    }

    .h-rip-offset-2 .h-torn-top::after,
    .h-rip-offset-2 .h-torn-bottom::after {
        -webkit-mask-position-x: 33%;
        mask-position-x: 33%;
    }

    .h-rip-offset-3 .h-torn-top::after,
    .h-rip-offset-3 .h-torn-bottom::after {
        -webkit-mask-position-x: 66%;
        mask-position-x: 66%;
    }
}

body.historicum-cart-page .h-commerce-paper-section:not(.h-commerce-recommendations) .h-torn-bottom {
    display: none !important;
}

body.historicum-cart-page .h-commerce-recommendations {
    margin-top: 0 !important;
}

body.historicum-cart-page .h-commerce-recommendations .h-torn-top {
    display: none !important;
}

/* ===========================================
   Commerce Page Section Contract
   Cart/checkout follow shop/home: the paper edge is attached to paper,
   not rendered as a loose spacer between sections.
   =========================================== */

body.historicum-cart-page .h-page-wrapper,
body.historicum-checkout-page .h-page-wrapper {
    overflow: visible !important;
}

body.historicum-cart-page .h-commerce-hero,
body.historicum-checkout-page .h-commerce-hero {
    margin: 0 !important;
}

body.historicum-cart-page .h-commerce-hero {
    display: none !important;
}

body.historicum-checkout-page .h-commerce-hero {
    display: none !important;
}

body.historicum-cart-page .h-med-cart-form,
body.historicum-checkout-page .h-med-checkout-form {
    margin: 0 !important;
}

body.historicum-checkout-page .h-commerce-paper {
    width: min(1600px, calc(100% - 32px)) !important;
}

body.historicum-checkout-page .h-commerce-paper::before,
body.historicum-checkout-page .h-commerce-paper::after {
    display: none !important;
}

body.historicum-checkout-page .h-commerce-paper-section .h-torn-top::before,
body.historicum-checkout-page .h-commerce-paper-section .h-torn-top::after,
body.historicum-checkout-page .h-commerce-paper-section .h-torn-bottom::before,
body.historicum-checkout-page .h-commerce-paper-section .h-torn-bottom::after {
    background-color: var(--h-paper) !important;
}

body.historicum-checkout-page .h-commerce-paper-section .h-torn-bottom {
    display: block !important;
}

.h-commerce-paper-section {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    isolation: isolate;
    background: transparent !important;
}

.h-commerce-paper-section .h-commerce-paper {
    position: relative;
    z-index: 2;
}

.h-commerce-paper-section .h-torn-top,
.h-commerce-paper-section .h-torn-bottom {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 4 !important;
    display: block !important;
    width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transform: none !important;
    pointer-events: none;
}

.h-commerce-paper-section .h-torn-top {
    top: -61px !important;
}

.h-commerce-paper-section .h-torn-bottom {
    bottom: -61px !important;
}

body.historicum-cart-page .h-commerce-recommendations {
    margin-top: 0 !important;
}

body.historicum-cart-page .h-commerce-recommendations .h-commerce-paper {
    padding-top: clamp(24px, 4vw, 44px);
}

body.historicum-cart-page .h-med-order-summary {
    background: var(--h-paper) !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
    box-shadow: none !important;
}

body.historicum-cart-page .h-med-order-summary h2 {
    color: #111111 !important;
    border-bottom-color: var(--h-accent) !important;
}

body.historicum-cart-page .h-summary-row,
body.historicum-cart-page .h-summary-row span,
body.historicum-cart-page .h-summary-row strong {
    color: #111111 !important;
}

body.historicum-cart-page .h-summary-total {
    color: var(--h-accent) !important;
}

body.historicum-cart-page .h-summary-total strong {
    color: var(--h-accent) !important;
}

body.historicum-cart-page .h-workshop-info {
    color: #111111 !important;
    background: rgba(235, 188, 0, 0.12) !important;
}

body.historicum-cart-page .h-coupon-form input {
    border-color: rgba(17, 17, 17, 0.22) !important;
    background: #ece3d2 !important;
    color: #111111 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel {
    background: var(--h-paper) !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
    box-shadow: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel h2 {
    color: #111111 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel p {
    color: #111111 !important;
}

body.historicum-checkout-page .h-checkout-review-order table,
body.historicum-checkout-page .h-checkout-review-order th,
body.historicum-checkout-page .h-checkout-review-order td {
    color: #111111 !important;
    border-bottom-color: rgba(17, 17, 17, 0.12) !important;
}

body.historicum-checkout-page .h-checkout-review-order .order-total th,
body.historicum-checkout-page .h-checkout-review-order .order-total td {
    color: var(--h-accent) !important;
}

body.historicum-checkout-page .h-checkout-review-order #payment {
    color: #111111 !important;
}

body.historicum-checkout-page .h-checkout-review-order #payment div.payment_box {
    background: rgba(17, 17, 17, 0.06) !important;
    color: #333333 !important;
}

body.historicum-checkout-page .h-med-checkout-form select#billing_country,
body.historicum-checkout-page .h-med-checkout-form select#shipping_country,
body.historicum-checkout-page .h-med-checkout-form .select2-selection {
    border-color: var(--h-accent) !important;
    background: rgba(235, 188, 0, 0.08) !important;
}

body.historicum-cart-page .h-med-cart-form .h-commerce-paper-section .h-torn-bottom,
body.historicum-cart-page .h-commerce-recommendations .h-torn-top {
    display: none !important;
}

body.historicum-cart-page .h-med-cart-form .h-commerce-paper-section .h-commerce-paper {
    padding-bottom: clamp(34px, 5vw, 58px);
}

body.historicum-cart-page .h-commerce-recommendations .h-commerce-paper {
    border-top: 0;
}

/* --- Round 3: constrain and compact cart recommendations --- */
body.historicum-cart-page .h-commerce-recommendations .h-paper-title,
body.historicum-cart-page .h-commerce-recommendations .h-commerce-rec-grid {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

body.historicum-cart-page .h-commerce-rec-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body.historicum-cart-page .h-commerce-rec-card {
    border-radius: 6px;
    overflow: hidden;
}

body.historicum-cart-page .h-commerce-rec-copy {
    padding: 12px 14px;
}

body.historicum-cart-page .h-commerce-rec-copy strong {
    font-size: 12px;
}

@media screen and (max-width: 1100px) {
    body.historicum-cart-page .h-commerce-rec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 640px) {
    body.historicum-cart-page .h-commerce-rec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

body.historicum-cart-page .h-commerce-paper {
    width: min(1600px, calc(100% - 32px)) !important;
}

body.historicum-cart-page .h-commerce-paper::before,
body.historicum-cart-page .h-commerce-paper::after {
    display: none !important;
}

body.historicum-cart-page .h-commerce-paper-section .h-torn-top::before,
body.historicum-cart-page .h-commerce-paper-section .h-torn-top::after {
    background-color: var(--h-paper) !important;
}

.h-med-cart-wait {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #111111;
}

.h-wait-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(235, 188, 0, 0.15);
    color: #111111;
    font-family: var(--h-font-instrument);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.h-wait-badge--in_stock {
    background: rgba(34, 139, 34, 0.15);
    color: #1a6b1a;
}

.h-wait-badge--paused {
    background: rgba(180, 40, 40, 0.12);
    color: #8b2020;
}

@media screen and (max-width: 820px) {
    .h-med-cart-wait {
        text-align: left;
    }

    .h-med-cart-wait::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-family: var(--h-font-cinzel);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #6b6257;
    }
}

@media (max-width: 820px) {
    .h-commerce-paper-section .h-torn-top,
    .h-commerce-paper-section .h-torn-bottom {
        height: 48px !important;
    }

    .h-commerce-paper-section .h-torn-top {
        top: -47px !important;
    }

    .h-commerce-paper-section .h-torn-bottom {
        bottom: -47px !important;
    }
}

body.historicum-blog-page .h-page-title {
    font-family: var(--h-font-cinzel) !important;
    letter-spacing: 0.08em !important;
}

body.historicum-blog-page .h-page-subtitle {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
    font-family: var(--h-font-cormorant) !important;
    font-style: normal !important;
}

body.historicum-blog-page .h-newsletter-section {
    position: relative;
    overflow: visible;
}

/* Final blog-page section contract: cream rips above images, black paper text, clickable black links. */
body.historicum-blog-page .h-page-wrapper,
body.historicum-blog-page .h-paper-section,
body.historicum-blog-page .h-dark-section {
    font-family: var(--h-font-cormorant) !important;
}

body.historicum-blog-page .h-page-title,
body.historicum-blog-page .h-paper-title,
body.historicum-blog-page .h-featured-title,
body.historicum-blog-page .h-blog-card-title,
body.historicum-blog-page .h-btn-primary,
body.historicum-blog-page .h-filter-label,
body.historicum-blog-page .h-filter-tag,
body.historicum-blog-page .h-post-category {
    font-family: var(--h-font-cinzel) !important;
}

body.historicum-blog-page .h-paper-section {
    position: relative !important;
    overflow: visible !important;
    background: #000000 !important;
}

body.historicum-blog-page .h-paper-content {
    position: relative !important;
    z-index: 2 !important;
    background: var(--h-paper) !important;
    color: #111111 !important;
}

body.historicum-blog-page .h-post-category,
body.historicum-blog-page .h-post-category:visited {
    display: inline-flex;
    align-items: center;
    color: #111111 !important;
    text-decoration: none !important;
}

body.historicum-blog-page .h-post-category:hover,
body.historicum-blog-page .h-featured-title a:hover,
body.historicum-blog-page .h-blog-card-title a:hover,
body.historicum-blog-page .h-read-more:hover {
    color: #8d6500 !important;
}

body.historicum-blog-page .h-torn-top,
body.historicum-blog-page .h-torn-bottom {
    position: relative !important;
    z-index: 5 !important;
    background: transparent !important;
}

body.historicum-blog-page .h-torn-top::before,
body.historicum-blog-page .h-torn-top::after,
body.historicum-blog-page .h-torn-bottom::before,
body.historicum-blog-page .h-torn-bottom::after {
    z-index: 5 !important;
    background-color: var(--h-paper) !important;
}

body.historicum-blog-page .h-site-footer {
    margin-top: -1px !important;
}

/* Final blog image contract: use post images as artwork with a dark green read layer. */
body.historicum-blog-page .h-featured-image,
body.historicum-blog-page .h-blog-card-image {
    position: relative !important;
    overflow: hidden !important;
    background: #07110d !important;
}

body.historicum-blog-page .h-featured-image a,
body.historicum-blog-page .h-blog-card-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

body.historicum-blog-page .h-featured-image img,
body.historicum-blog-page .h-blog-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.historicum-blog-page .h-featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(4, 18, 12, 0.56) 68%, rgba(0, 0, 0, 0.92) 100%);
    z-index: 1;
}

body.historicum-blog-page .h-featured-badge {
    z-index: 2 !important;
}

/* Blog archive rip and click-layer contract. */
body.historicum-blog-page .h-paper-section .h-torn-top {
    z-index: 10 !important;
    margin-bottom: -1px !important;
}

body.historicum-blog-page .h-paper-section .h-torn-bottom {
    z-index: 10 !important;
    margin-top: -1px !important;
}

body.historicum-blog-page .h-featured-post,
body.historicum-blog-page .h-post-meta,
body.historicum-blog-page .h-post-category,
body.historicum-blog-page .h-blog-card-title a,
body.historicum-blog-page .h-featured-title a,
body.historicum-blog-page .h-read-more {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: auto !important;
}

body.historicum-blog-page .h-blog-card-title a,
body.historicum-blog-page .h-featured-title a,
body.historicum-blog-page .h-post-category,
body.historicum-blog-page .h-read-more {
    text-decoration: none !important;
}

body.historicum-blog-page .h-featured-image,
body.historicum-blog-page .h-blog-card-image {
    z-index: 1 !important;
}

/* Contact page final pass. */
body.historicum-contact-page .h-contact-modern-hero {
    color: #ffffff !important;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.9)),
        url("https://historicum.pl/wp-content/uploads/2026/04/Workshop2.jpg") center center / cover no-repeat !important;
}

body.historicum-contact-page .h-contact-modern-hero .h-page-title,
body.historicum-contact-page .h-contact-modern-hero .h-page-subtitle {
    color: #ffffff !important;
}

body.historicum-contact-page .h-contact-modern-hero .h-page-bg-overlay {
    inset: 0 !important;
    opacity: 1 !important;
    background:
        radial-gradient(70% 80% at 16% 44%, rgba(0, 58, 40, 0.36), transparent 62%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.78)) !important;
}

body.historicum-contact-page .h-contact-modern-grid {
    display: grid !important;
    width: min(100%, 1540px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr) !important;
    align-items: stretch !important;
    gap: clamp(24px, 4vw, 58px) !important;
}

body.historicum-contact-page .h-contact-info-card,
body.historicum-contact-page .h-contact-modern-form {
    height: 100% !important;
    min-height: 100% !important;
}

body.historicum-contact-page .h-contact-modern-header {
    max-width: 980px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

@media screen and (max-width: 980px) {
    body.historicum-contact-page .h-contact-modern-paper,
    body.historicum-contact-page .h-contact-modern-section .h-paper-content {
        padding: 54px 20px 66px !important;
    }

    body.historicum-contact-page .h-contact-modern-grid {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 640px) {
    body.historicum-contact-page .h-contact-modern-paper,
    body.historicum-contact-page .h-contact-modern-section .h-paper-content {
        padding: 44px 16px 58px !important;
    }

    body.historicum-contact-page .h-contact-info-card,
    body.historicum-contact-page .h-contact-modern-form {
        padding: 22px !important;
    }

    body.historicum-contact-page .h-contact-modern-form .h-form-row {
        grid-template-columns: 1fr !important;
    }

}

/* Measurement guide rework. */
body.historicum-measurement-page {
    background: #000000 !important;
}

body.historicum-measurement-page .h-measurement-hero {
    min-height: clamp(240px, 32vh, 360px) !important;
    padding-top: clamp(96px, 12vh, 132px) !important;
    padding-bottom: clamp(48px, 8vh, 88px) !important;
    color: #ffffff !important;
    background:
        radial-gradient(70% 86% at 12% 42%, rgba(0, 62, 42, 0.34), transparent 66%),
        linear-gradient(180deg, #000000 0%, #050b08 45%, #000000 100%) !important;
}

body.historicum-measurement-page .h-measurement-hero .h-page-title,
body.historicum-measurement-page .h-measurement-hero .h-page-subtitle,
body.historicum-measurement-page .h-measurement-hero-note {
    color: #ffffff !important;
}

body.historicum-measurement-page .h-measurement-hero-note {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.84) !important;
    font-family: var(--h-font-cormorant);
    font-size: clamp(19px, 2.1vw, 28px);
    font-style: italic;
}

@media screen and (max-width: 767px) {
    body.historicum-measurement-page .h-measurement-hero {
        min-height: clamp(210px, 30vh, 280px) !important;
        padding-top: clamp(74px, 12vh, 92px) !important;
        padding-bottom: clamp(34px, 7vh, 54px) !important;
    }

    body.historicum-measurement-page .h-measurement-hero .h-page-title {
        font-size: clamp(44px, 13vw, 60px) !important;
        line-height: 1.02 !important;
    }

    body.historicum-measurement-page .h-measurement-hero .h-page-subtitle {
        font-size: clamp(18px, 5.2vw, 24px) !important;
    }
}

body.historicum-measurement-page .h-measurement-warning-strip {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    width: 100%;
    padding: clamp(24px, 3vw, 38px) clamp(20px, 5vw, 76px);
    background: var(--h-accent);
    color: #080808;
    font-family: var(--h-font-cinzel);
    font-size: clamp(14px, 1.55vw, 20px);
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
}

body.historicum-measurement-page .h-measurement-rules-section {
    background: #000000 !important;
}

body.historicum-measurement-page .h-measurement-paper {
    background: var(--h-paper) !important;
    color: #111111 !important;
    padding: clamp(48px, 6vw, 88px) clamp(22px, 6vw, 92px) !important;
}

body.historicum-measurement-page .h-measurement-paper::before,
body.historicum-measurement-page .h-measurement-paper::after {
    display: none !important;
}

body.historicum-measurement-page .h-measurement-section-header {
    max-width: 820px;
    margin: 0 auto clamp(34px, 5vw, 62px);
    text-align: center;
}

body.historicum-measurement-page .h-measurement-section-header h2,
body.historicum-measurement-page .h-measurement-details h3,
body.historicum-measurement-page .h-measurement-final-cta h2 {
    margin: 0 0 12px;
    font-family: var(--h-font-cinzel);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.historicum-measurement-page .h-measurement-section-header h2 {
    font-size: clamp(34px, 5vw, 60px);
}

body.historicum-measurement-page .h-measurement-section-header p {
    margin: 0;
    font-family: var(--h-font-cormorant);
    font-size: clamp(20px, 2.2vw, 28px);
    font-style: italic;
}

body.historicum-measurement-page .h-measurement-step-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 24px);
    max-width: 1480px;
    margin: 0 auto clamp(52px, 7vw, 96px);
    padding: 0;
    list-style: none;
}

body.historicum-measurement-page .h-measurement-step-path::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.34), transparent);
}

body.historicum-measurement-page .h-measurement-step-path li {
    position: relative;
    z-index: 1;
    text-align: center;
}

body.historicum-measurement-page .h-step-node {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 2px solid #111111;
    border-radius: 999px;
    background: var(--h-paper);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-weight: 800;
}

body.historicum-measurement-page .h-measurement-step-path li.is-active .h-step-node {
    background: #111111;
    color: var(--h-accent);
}

body.historicum-measurement-page .h-measurement-step-path strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.historicum-measurement-page .h-measurement-step-path p {
    margin: 0;
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    line-height: 1.35;
}

body.historicum-measurement-page .h-measurement-diagram-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: clamp(28px, 4vw, 64px);
    width: min(100%, 1500px);
    margin: 0 auto;
    align-items: start;
}

body.historicum-measurement-page .h-measurement-main-diagram {
    margin: 0;
}

body.historicum-measurement-page .h-measurement-main-diagram svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.18));
}

body.historicum-measurement-page .h-diagram-labels text {
    fill: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 34px;
    font-weight: 900;
}

body.historicum-measurement-page .h-measurement-main-diagram figcaption {
    margin-top: 14px;
    color: #5b5144;
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    text-align: center;
}

body.historicum-measurement-page .h-measurement-details {
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: rgba(255, 255, 255, 0.36);
}

body.historicum-measurement-page .h-measurement-details dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

body.historicum-measurement-page .h-measurement-details dl > div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
}

body.historicum-measurement-page .h-measurement-details dt {
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-weight: 900;
}

body.historicum-measurement-page .h-measurement-details dd {
    margin: 0;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    line-height: 1.45;
}

/* --- Measurement accordion section --- */
body.historicum-measurement-page .h-measurement-accordion-section {
    width: min(100%, 1500px);
    margin: clamp(40px, 6vw, 80px) auto 0;
}

body.historicum-measurement-page .h-measurement-accordion-heading {
    margin: 0 0 8px;
    font-family: var(--h-font-cinzel);
    font-size: clamp(28px, 4vw, 48px);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    color: #111111;
}

body.historicum-measurement-page .h-measurement-accordion-intro {
    margin: 0 0 clamp(28px, 4vw, 48px);
    font-family: var(--h-font-cormorant);
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    text-align: center;
    color: #5b5144;
}

body.historicum-measurement-page .h-measurement-accordion {
    display: grid;
    gap: 14px;
}

body.historicum-measurement-page .h-measurement-accordion-item {
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: rgba(255, 255, 255, 0.36);
}

body.historicum-measurement-page .h-measurement-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    cursor: pointer;
    font-family: var(--h-font-cinzel);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111111;
    list-style: none;
    user-select: none;
}

body.historicum-measurement-page .h-measurement-accordion-trigger::-webkit-details-marker {
    display: none;
}

body.historicum-measurement-page .h-measurement-accordion-trigger::after {
    content: '+';
    margin-left: auto;
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.25s ease;
}

body.historicum-measurement-page details[open] > .h-measurement-accordion-trigger::after {
    content: '−';
}

body.historicum-measurement-page .h-accordion-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--h-accent);
    color: #111111;
    font-family: var(--h-font-instrument);
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

body.historicum-measurement-page .h-measurement-accordion-body {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.2fr);
    gap: clamp(24px, 4vw, 48px);
    padding: 0 28px 28px;
    align-items: start;
}

body.historicum-measurement-page .h-measurement-accordion-figure {
    margin: 0;
}

body.historicum-measurement-page .h-measurement-accordion-figure img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    border: 1px solid rgba(17, 17, 17, 0.10);
}

body.historicum-measurement-page .h-measurement-accordion-table {
    width: 100%;
    border-collapse: collapse;
}

body.historicum-measurement-page .h-measurement-accordion-table th,
body.historicum-measurement-page .h-measurement-accordion-table td {
    padding: 10px 14px;
    text-align: left;
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.10);
    color: #111111;
}

body.historicum-measurement-page .h-measurement-accordion-table th {
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b6257;
}

body.historicum-measurement-page .h-measurement-accordion-table td:first-child {
    font-family: var(--h-font-cinzel);
    font-weight: 900;
    color: var(--h-accent-dark, #111111);
    width: 70px;
}

/* Guidance cards */
body.historicum-measurement-page .h-measurement-guidance {
    margin-top: clamp(40px, 5vw, 72px);
    text-align: center;
}

body.historicum-measurement-page .h-measurement-guidance h3 {
    margin: 0 0 20px;
    font-family: var(--h-font-cinzel);
    font-size: clamp(22px, 3vw, 36px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
}

body.historicum-measurement-page .h-measurement-guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

body.historicum-measurement-page .h-measurement-guidance-card {
    padding: 24px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: rgba(255, 255, 255, 0.36);
    text-align: left;
}

body.historicum-measurement-page .h-measurement-guidance-card h4 {
    margin: 0 0 10px;
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111111;
}

body.historicum-measurement-page .h-measurement-guidance-card p {
    margin: 0;
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
}

@media screen and (max-width: 820px) {
    body.historicum-measurement-page .h-measurement-accordion-body {
        grid-template-columns: 1fr;
    }

    body.historicum-measurement-page .h-measurement-accordion-figure img {
        max-width: 320px;
    }

    body.historicum-measurement-page .h-measurement-accordion-trigger {
        padding: 16px 20px;
    }

    body.historicum-measurement-page .h-measurement-accordion-body {
        padding: 0 20px 20px;
    }
}

body.historicum-measurement-page .h-measurement-final-cta {
    padding: clamp(74px, 8vw, 132px) clamp(22px, 5vw, 76px) !important;
    text-align: center;
    background:
        radial-gradient(56% 84% at -12% 50%, rgba(0, 70, 48, 0.32), transparent 70%),
        radial-gradient(56% 84% at 112% 50%, rgba(0, 62, 42, 0.24), transparent 70%),
        linear-gradient(180deg, #000000 0%, #050806 56%, #000000 100%) !important;
}

body.historicum-measurement-page .h-measurement-final-cta h2,
body.historicum-measurement-page .h-measurement-final-cta p {
    color: #ffffff !important;
}

body.historicum-measurement-page .h-measurement-final-cta p {
    margin: 0 auto 28px;
    max-width: 760px;
    font-family: var(--h-font-cormorant);
    font-size: clamp(20px, 2.3vw, 30px);
}

@media screen and (max-width: 1100px) {
    body.historicum-measurement-page .h-measurement-step-path {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.historicum-measurement-page .h-measurement-step-path::before {
        display: none;
    }

    body.historicum-measurement-page .h-measurement-diagram-section {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    body.historicum-measurement-page .h-measurement-step-path {
        grid-template-columns: 1fr;
    }
}

/* Final page-system repair: blog/contact/community cream paper, clickable tags, and footer rips. */
body.historicum-blog-page,
body.historicum-contact-page,
body.historicum-community-page {
    --h-paper-system-cream: #f5f0e6;
}

body.historicum-blog-page .h-paper-content,
body.historicum-blog-page .h-paper-section .h-torn-top::before,
body.historicum-blog-page .h-paper-section .h-torn-top::after,
body.historicum-blog-page .h-paper-section .h-torn-bottom::before,
body.historicum-blog-page .h-paper-section .h-torn-bottom::after,
body.historicum-community-page .h-rip-paper-inner,
body.historicum-community-page .h-ref-paper-section .h-torn-top::before,
body.historicum-community-page .h-ref-paper-section .h-torn-top::after,
body.historicum-community-page .h-ref-paper-section .h-torn-bottom::before,
body.historicum-community-page .h-ref-paper-section .h-torn-bottom::after {
    background-color: var(--h-paper-system-cream) !important;
    background-image: none !important;
}

body.historicum-blog-page .h-paper-section,
body.historicum-community-page .h-ref-paper-section {
    position: relative !important;
    overflow: visible !important;
    background: transparent !important;
}

body.historicum-blog-page .h-newsletter-section,
body.historicum-community-page .h-ref-paper-section {
    margin-bottom: 0 !important;
}

body.historicum-blog-page .h-blog-card-title,
body.historicum-blog-page .h-filter-tags {
    position: relative !important;
    z-index: 8 !important;
}

body.historicum-blog-page .h-filter-tag,
body.historicum-blog-page .h-filter-tag:link,
body.historicum-blog-page .h-filter-tag:visited {
    position: relative !important;
    z-index: 9 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: transparent !important;
    text-decoration: none !important;
}

body.historicum-blog-page .h-filter-tag:hover,
body.historicum-blog-page .h-filter-tag:focus-visible {
    color: var(--h-accent) !important;
    background: transparent !important;
    border-color: var(--h-accent) !important;
}

body.historicum-blog-page .h-filter-tag.active {
    color: #111111 !important;
    background: var(--h-accent) !important;
    border-color: var(--h-accent) !important;
}

body.historicum-blog-page .h-blog-placeholder {
    background:
        radial-gradient(80% 80% at 24% 16%, rgba(235, 188, 0, 0.24), transparent 42%),
        linear-gradient(150deg, #0b2117 0%, #020403 72%, #000000 100%) !important;
    color: rgba(245, 240, 230, 0.72) !important;
}

body.historicum-community-page .h-ref-paper-section .h-torn-top,
body.historicum-community-page .h-ref-paper-section .h-torn-bottom {
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 6 !important;
    height: 62px !important;
    margin: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

body.historicum-community-page .h-ref-paper-section .h-torn-top {
    top: -61px !important;
}

body.historicum-community-page .h-ref-paper-section .h-torn-bottom {
    bottom: -61px !important;
}

body.historicum-community-page .h-ref-page .hero {
    isolation: isolate !important;
    min-height: clamp(360px, 34vw, 500px) !important;
    padding: 98px 32px 62px !important;
    background:
        radial-gradient(86% 88% at 16% 46%, rgba(0, 54, 35, 0.44), rgba(0, 0, 0, 0) 68%),
        linear-gradient(180deg, #000000 0%, #050806 48%, #000000 100%) !important;
}

body.historicum-community-page .h-ref-page .hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: url("https://historicum.pl/wp-content/uploads/2026/05/546082371_24598669926418799_6988863607962584155_n.jpg") center/cover no-repeat !important;
    opacity: 0.2 !important;
    pointer-events: none !important;
}

body.historicum-community-page .h-ref-page .hero::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background:
        radial-gradient(92% 86% at 16% 48%, rgba(0, 54, 35, 0.42), rgba(0, 15, 10, 0.2) 42%, rgba(0, 0, 0, 0) 72%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.82)) !important;
    pointer-events: none !important;
}

body.historicum-community-page .h-ref-page .hero .diagonal-band,
body.historicum-community-page .h-ref-page .hero .hero-content {
    position: relative !important;
    z-index: 2 !important;
}

body.historicum-community-page .h-ref-paper-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.historicum-community-page .h-rip-paper-inner {
    position: relative !important;
    z-index: 2 !important;
}

@media screen and (max-width: 640px) {
    body.historicum-community-page .h-ref-paper-section {
        margin-bottom: 50px !important;
    }

    body.historicum-community-page .h-ref-paper-section .h-torn-top,
    body.historicum-community-page .h-ref-paper-section .h-torn-bottom {
        height: 50px !important;
    }

    body.historicum-community-page .h-ref-paper-section .h-torn-top {
        top: -49px !important;
    }

    body.historicum-community-page .h-ref-paper-section .h-torn-bottom {
        bottom: -49px !important;
    }
}


/* ===========================================
   ROUND 2 OVERRIDES
   Measurement guidance, cart layout, seamless gradients
   =========================================== */

/* Deep continuous gradient for cart/checkout/static dark backgrounds */
body.historicum-cart-page,
body.historicum-checkout-page,
body.historicum-contact-page,
body.historicum-error-page,
body.woocommerce-account {
    background: linear-gradient(180deg, #0f1f17 0%, #0a1610 20%, #060d09 45%, #030604 70%, #000000 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: var(--h-white);
}

/* Cart/checkout: mostly black with faint antique gold glow */
body.historicum-cart-page,
body.historicum-checkout-page {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(100, 75, 10, 0.13), transparent 40%),
        linear-gradient(180deg, #0a0804 0%, #050403 40%, #000000 85%) !important;
}

body.historicum-cart-page .h-page-wrapper,
body.historicum-checkout-page .h-page-wrapper,
body.historicum-contact-page .h-page-wrapper,
body.historicum-error-page .h-page-wrapper,
body.woocommerce-account .h-page-wrapper,
body.historicum-cart-page main.h-page-wrapper,
body.historicum-checkout-page main.h-page-wrapper,
body.historicum-contact-page main.h-page-wrapper,
body.historicum-error-page main.h-page-wrapper {
    background: transparent !important;
}

.h-commerce-paper-section,
body.historicum-blog-page .h-paper-section,
body.historicum-contact-page .h-contact-modern-section,
body.historicum-community-page .h-ref-paper-section,
body.historicum-measurement-page .h-measurement-rules-section {
    background: transparent !important;
}

/* Cart/checkout top breathing room after hiding heroes */
body.historicum-cart-page .h-commerce-hero,
body.historicum-checkout-page .h-commerce-hero {
    display: none !important;
}

body.historicum-cart-page .h-med-cart-form {
    padding-top: 0 !important;
}

body.historicum-cart-page .h-commerce-paper-section:first-of-type {
    margin-top: clamp(120px, 14vh, 180px) !important;
}

body.historicum-cart-page .h-commerce-paper-section::before {
    display: none !important;
}

body.historicum-cart-page .h-cart-empty-panel {
    margin-top: clamp(120px, 14vh, 180px) !important;
}

body.historicum-checkout-page .h-commerce-paper-section {
    padding-top: clamp(120px, 14vh, 180px) !important;
}

/* Cart full-width cream paper with centered readable contents */
body.historicum-cart-page .h-commerce-paper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

body.historicum-cart-page .h-med-cart-layout {
    max-width: 1500px;
    margin: 0 auto;
    align-items: start !important;
}

body.historicum-cart-page .h-med-cart-actions {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

body.historicum-cart-page .h-med-cart-items,
body.historicum-cart-page .h-med-order-summary {
    margin-top: 0 !important;
}

@media screen and (max-width: 820px) {
    body.historicum-cart-page .h-commerce-paper {
        width: 100% !important;
        padding: 32px 16px 42px !important;
    }
}

/* Cart workshop queue text contrast */
body.historicum-cart-page .h-workshop-info {
    color: #333333 !important;
    background: rgba(235, 188, 0, 0.08) !important;
}

body.historicum-cart-page .h-workshop-info strong {
    color: #111111 !important;
}

body.historicum-cart-page .h-workshop-info p {
    color: #555555 !important;
}

/* Measurement guidance now sits above Measurement Details */
body.historicum-measurement-page .h-measurement-guidance {
    margin-top: 0 !important;
    margin-bottom: clamp(40px, 5vw, 72px) !important;
    text-align: center;
}

body.historicum-measurement-page .h-guidance-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

body.historicum-measurement-page .h-code-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(235, 188, 0, 0.14);
    border: 1px solid rgba(235, 188, 0, 0.3);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
}


/* --- Round 3 final overrides --- */
body.historicum-measurement-page .h-code-tag {
    color: #111111 !important;
}

body.historicum-cart-page,
body.historicum-checkout-page {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(100, 75, 10, 0.13), transparent 40%),
        linear-gradient(180deg, #0a0804 0%, #050403 40%, #000000 85%) !important;
}

body.historicum-cart-page .h-commerce-paper-section::before,

body.historicum-cart-page .h-commerce-recommendations .h-paper-title,
body.historicum-cart-page .h-commerce-recommendations .h-commerce-rec-grid {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.historicum-cart-page .h-commerce-rec-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body.historicum-cart-page .h-commerce-rec-card {
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.historicum-cart-page .h-commerce-rec-copy {
    padding: 12px 14px !important;
}

body.historicum-cart-page .h-commerce-rec-copy strong {
    font-size: 12px !important;
}

body.historicum-blog-page .h-newsletter-section,
body.historicum-community-page .h-ref-paper-section {
    margin-bottom: 0 !important;
}





@media screen and (max-width: 1100px) {
    body.historicum-cart-page .h-commerce-rec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 640px) {
    body.historicum-cart-page .h-commerce-rec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ===========================================
   CONTACT PAGE CLEAN RESET
   Single source of truth for Contact paper/rip structure.
   Keep hero visuals and contact grid/form/card rules above.
   =========================================== */
body.historicum-contact-page .h-contact-modern-hero {
    min-height: clamp(230px, 28vh, 320px) !important;
    padding: clamp(104px, 12vh, 132px) 40px clamp(18px, 3vh, 36px) !important;
    margin-bottom: 0 !important;
}

body.historicum-contact-page .h-contact-modern-section {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

body.historicum-contact-page .h-contact-modern-section::before {
    content: none !important;
    display: none !important;
}

body.historicum-contact-page .h-contact-paper-stack {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.historicum-contact-page .h-contact-modern-section .h-torn-top,
body.historicum-contact-page .h-contact-modern-section .h-torn-bottom {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-size: 150% 100% !important;
    pointer-events: none !important;
    z-index: 2 !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
}

body.historicum-contact-page .h-contact-modern-section .h-torn-top {
    background-position: bottom left !important;
}

body.historicum-contact-page .h-contact-modern-section .h-torn-bottom {
    background-position: top left !important;
    transform: none !important;
}

body.historicum-contact-page .h-contact-modern-section .h-torn-top::before,
body.historicum-contact-page .h-contact-modern-section .h-torn-top::after,
body.historicum-contact-page .h-contact-modern-section .h-torn-bottom::before,
body.historicum-contact-page .h-contact-modern-section .h-torn-bottom::after {
    background-color: var(--h-paper) !important;
    background-image: none !important;
}

body.historicum-contact-page .h-contact-modern-paper,
body.historicum-contact-page .h-contact-modern-section .h-paper-content {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: clamp(28px, 4vw, 52px) max(24px, calc((100vw - 1540px) / 2 + 40px)) clamp(58px, 7vw, 104px) !important;
    background-color: var(--h-paper) !important;
    background-image: none !important;
    color: #111111 !important;
    border: 0 !important;
    outline: 0 !important;
}

body.historicum-contact-page .h-contact-modern-paper::before,
body.historicum-contact-page .h-contact-modern-paper::after,
body.historicum-contact-page .h-contact-modern-section .h-paper-content::before,
body.historicum-contact-page .h-contact-modern-section .h-paper-content::after {
    content: none !important;
    display: none !important;
}

@media screen and (max-width: 980px) {
    body.historicum-contact-page .h-contact-modern-paper,
    body.historicum-contact-page .h-contact-modern-section .h-paper-content {
        padding: 54px 20px 66px !important;
    }
}

@media screen and (max-width: 640px) {
    body.historicum-contact-page .h-contact-modern-hero {
        min-height: 220px !important;
        padding: 96px 22px 22px !important;
    }

    body.historicum-contact-page .h-contact-modern-paper,
    body.historicum-contact-page .h-contact-modern-section .h-paper-content {
        padding: 28px 16px 58px !important;
    }
}


/* Contact page: fade the area after the bottom rip into the black footer */
body.historicum-contact-page .h-contact-modern-section {
    margin-bottom: 0 !important;
}

body.historicum-contact-page .h-contact-modern-section::after {
    content: "" !important;
    display: block !important;
    height: clamp(64px, 8vw, 120px) !important;
    margin: 0 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 78%, #000000 100%) !important;
    pointer-events: none !important;
}

/* ===========================================
   HISTORICUM PATCH FIXES
   =========================================== */

/* -----------------------------------------
   Fix 6: About Us - Match Training page style
   The about page uses .h-page-wrapper with paper sections
   like training uses .h-ref-page. Apply reference-page
   styles to about page.
----------------------------------------- */
body.historicum-about-page .h-page-wrapper {
    background-color: var(--h-black);
}

body.historicum-about-page .h-paper-section {
    background-color: var(--h-paper, #F5F0E6);
}

body.historicum-about-page .h-paper-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    color: #1a1a1a;
    font-family: var(--h-font-cormorant, 'Cormorant Garamond', serif);
    font-size: 18px;
    line-height: 1.65;
}

body.historicum-about-page .h-dark-section {
    background-color: var(--h-black, #0A0A0A);
    color: var(--h-white, #ffffff);
    padding: 60px 40px;
}

body.historicum-about-page .h-dark-section .h-stats-grid,
body.historicum-about-page .h-dark-section .h-founder-profile {
    max-width: 1200px;
    margin: 0 auto;
}

body.historicum-about-page .h-paper-title,
body.historicum-about-page .h-intro-title,
body.historicum-about-page .h-founder-name {
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    color: #1a1a1a;
    letter-spacing: 0.06em;
}

body.historicum-about-page .h-dark-section .h-founder-name {
    color: var(--h-white);
}

body.historicum-about-page .h-page-hero {
    padding-bottom: 120px;
}

body.historicum-about-page .h-torn-top,
body.historicum-about-page .h-torn-bottom {
    height: 60px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

body.historicum-about-page .h-torn-top {
    position: relative;
    margin-top: -60px;
}

body.historicum-about-page .h-torn-bottom {
    position: relative;
    transform: scaleY(-1);
}

/* -----------------------------------------
   Fix 10: Cart quantity block - smaller, better spaced
----------------------------------------- */
.h-med-cart-qty .quantity,
.h-med-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.h-med-cart-qty .quantity input,
.h-med-cart-qty input.qty {
    width: 52px !important;
    min-height: 36px;
    padding: 4px 2px !important;
    font-size: 16px;
}

.h-med-cart-qty .quantity .hp-qty-step,
.h-med-cart-qty .hp-qty-step {
    width: 32px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fbf7ed;
    border: 1px solid rgba(17, 17, 17, 0.22);
    color: #111111;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.h-med-cart-qty .hp-qty-step:hover {
    background: #f0e8d2;
}

.h-med-cart-qty .hp-qty-step-minus {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.h-med-cart-qty .hp-qty-step-plus {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.h-med-cart-qty .quantity input.qty,
.h-med-cart-qty input.qty {
    border-radius: 0 !important;
}

/* -----------------------------------------
   Fix 11: Checkout page - Use cart style reference
   Apply the same paper/commerce styling
----------------------------------------- */
body.historicum-checkout-page .h-checkout-paper {
    max-width: 1200px;
    margin: 0 auto;
}

body.historicum-checkout-page .h-checkout-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 24px;
}

body.historicum-checkout-page .h-checkout-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

body.historicum-checkout-page .h-checkout-panel-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--h-accent, #EBBC00);
    color: #111;
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    font-weight: 700;
    font-size: 14px;
}

body.historicum-checkout-page .h-checkout-panel-head h2 {
    margin: 0;
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    font-size: 20px;
    letter-spacing: 0.06em;
    color: #1a1a1a;
}

body.historicum-checkout-page .h-checkout-topline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

body.historicum-checkout-page .h-checkout-topline a {
    color: var(--h-accent, #EBBC00);
    text-decoration: none;
}

body.historicum-checkout-page .h-med-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

@media screen and (max-width: 991px) {
    body.historicum-checkout-page .h-med-checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.historicum-checkout-page .woocommerce-input-wrapper input,
body.historicum-checkout-page .woocommerce-input-wrapper textarea,
body.historicum-checkout-page select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.22);
    border-radius: 8px;
    background: #fbf7ed;
    color: #111;
    font-family: var(--h-font-readable, var(--h-font-instrument, 'Instrument Sans', sans-serif));
    font-size: 16px;
}

body.historicum-checkout-page .woocommerce-input-wrapper input:focus,
body.historicum-checkout-page .woocommerce-input-wrapper textarea:focus,
body.historicum-checkout-page select:focus {
    outline: none;
    border-color: var(--h-accent, #EBBC00);
    box-shadow: 0 0 0 2px rgba(235, 188, 0, 0.15);
}

body.historicum-checkout-page label {
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

/* -----------------------------------------
   Fix 12: Blog pagination
----------------------------------------- */
/* Community blog title links keep the light-paper color contract. */
body.historicum-community-blog-page .blog-card h3 a,
body.historicum-community-blog-page .blog-card h3 a:visited,
body.historicum-community-blog-page .blog-card h3 a:hover,
body.historicum-community-blog-page .blog-card h3 a:active,
body.historicum-community-blog-page .featured-content h2 a,
body.historicum-community-blog-page .featured-content h2 a:visited,
body.historicum-community-blog-page .featured-content h2 a:hover,
body.historicum-community-blog-page .featured-content h2 a:active {
    color: #111111 !important;
    text-decoration: none;
}

/* Blog pagination - match site arrow/button style */
.h-pagination ul,
.pagination-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
}

.h-pagination li,
.pagination-links .page-link,
.pagination-links a,
.pagination-links span {
    list-style: none;
}

.h-pagination li a,
.h-pagination li span,
.pagination-links .page-link,
.pagination-links a.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #1a1a1a;
    border-radius: 50%;
    background: transparent;
    color: #1a1a1a;
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.h-pagination li a:hover,
.h-pagination li span.current,
.pagination-links .page-link.active,
.pagination-links span.page-link.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* -----------------------------------------
   Fix 13: Leave a Review - clean centered paper page
----------------------------------------- */
body.historicum-review-page .historicum-review-form-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--h-black, #0A0A0A);
}

body.historicum-review-page .historicum-review-stage {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

body.historicum-review-page .historicum-review-paper {
    position: relative;
    background-color: #f5f0e6;
    border-radius: 18px;
    padding: 48px 40px 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Paper texture documentation (Fix 13):
   The paper texture is created by the combination of:
   1. Background color: #f5f0e6 (cream paper base)
   2. ::before and ::after pseudo-elements with torn-edge clip-paths
   3. Background image on pseudo-elements using:
      - background-color: #f5f0e6
      - background-image: linear-gradient(rgba(255,255,255,.08),rgba(255,255,255,.08)),
        url("https://historicum.pl/wp-content/uploads/papershapes-bonus-texture.svg")
   4. Located in functions.php inline styles, function: historicum_enqueue_review_front_styles()
   5. The texture CAN be reused on other paper pages by applying the same
      background-image + background-color combination
*/

/* -----------------------------------------
   Fix 14: Measurement page - warning strip spacing + subtle dynamic
----------------------------------------- */
.h-measurement-warning-strip {
    padding: 18px 24px;
    margin-bottom: 24px;
    text-align: center;
    font-family: var(--h-font-cinzel, 'Cinzel', serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111111;
    background: var(--h-accent, #EBBC00);
    position: relative;
    z-index: 5;
    animation: h-measurement-notification-glow 3s ease-in-out 0.5s 1 both;
}

@keyframes h-measurement-notification-glow {
    0%   { box-shadow: 0 0 0 0 rgba(235, 188, 0, 0); }
    25%  { box-shadow: 0 0 18px 4px rgba(235, 188, 0, 0.3); }
    75%  { box-shadow: 0 0 8px 2px rgba(235, 188, 0, 0.12); }
    100% { box-shadow: 0 0 0 0 rgba(235, 188, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .h-measurement-warning-strip {
        animation: none;
    }
}

/* Extra spacing between hero and warning strip */
.h-measurement-hero + .h-measurement-warning-strip {
    margin-top: 20px;
}

/* ===========================================
   Final audit cart quantity fixes
   =========================================== */
.h-med-cart-qty,
.h-med-cart-qty .quantity {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.h-med-cart-qty .hp-qty-step {
    border: none !important;
}

.h-med-cart-qty input.qty {
    border: 1px solid rgba(17, 17, 17, 0.22) !important;
}

body.historicum-cart-page .h-btn-primary,
body.historicum-cart-page .checkout-button,
body.historicum-cart-page a.checkout-button {
    font-family: var(--h-font-cinzel, 'Cinzel', serif) !important;
    letter-spacing: 0.06em !important;
}

/* ===========================================
   Final audit about founder card fixes
   =========================================== */
body.historicum-about-page .h-founder-profile {
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 28px 24px;
    background: rgba(255,255,255,0.3);
}

body.historicum-about-page .h-achievement-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex: 0 0 auto;
}

body.historicum-about-page .h-achievement-dot-gold { background: var(--h-accent, #EBBC00); }
body.historicum-about-page .h-achievement-dot-silver { background: #999999; }
body.historicum-about-page .h-achievement-dot-bronze { background: #8B4513; }

/* About page final content contract. */
body.historicum-about-page .h-about-hero {
    min-height: clamp(620px, 58vw, 860px) !important;
    background-color: #000000 !important;
    background-image:
        linear-gradient(160deg, rgba(0, 0, 0, 0.82) 0%, rgba(8, 32, 18, 0.68) 44%, rgba(0, 0, 0, 0.9) 100%),
        var(--h-about-hero-image) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100%, cover !important;
}

body.historicum-about-page .h-about-hero .diagonal-band {
    opacity: 0.05 !important;
}

body.historicum-about-page .h-about-story-figure {
    width: min(100%, 900px) !important;
}

body.historicum-about-page .h-about-dark-section {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    background:
        radial-gradient(74% 86% at 50% 18%, rgba(4, 38, 24, 0.44), rgba(0, 0, 0, 0) 66%),
        linear-gradient(180deg, #030504 0%, #000000 100%) !important;
}

body.historicum-about-page .h-about-dark-section::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: var(--h-about-hero-image) center center / cover no-repeat !important;
    opacity: 0.2 !important;
    pointer-events: none !important;
}

body.historicum-about-page .h-about-dark-section > * {
    position: relative !important;
    z-index: 1 !important;
}

body.historicum-about-page .h-about-stats-section {
    background:
        radial-gradient(86% 72% at 50% 12%, rgba(2, 31, 20, 0.34), rgba(0, 0, 0, 0) 68%),
        linear-gradient(180deg, #010101 0%, #030604 46%, #000000 100%) !important;
}

body.historicum-about-page .h-about-founders-grid {
    align-items: start !important;
}

body.historicum-about-page .h-about-founder-card {
    padding: 24px;
    border: 0.2px solid #111111;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
}

body.historicum-about-page .h-about-founder-name {
    color: #111111 !important;
    font-size: clamp(28px, 2.6vw, 38px) !important;
    line-height: 1.08 !important;
}

body.historicum-about-page .h-about-founder-role {
    color: #111111 !important;
    font-size: clamp(19px, 1.4vw, 24px) !important;
    font-weight: 700 !important;
}

body.historicum-about-page .h-about-founder-results p:not(.h-about-result-heading) {
    margin: 8px 0 !important;
    padding: 8px 10px !important;
    border: 0.2px solid #111111 !important;
    border-radius: 8px !important;
    color: #111111 !important;
    background: rgba(255, 255, 255, 0.28) !important;
    line-height: 1.35 !important;
}

body.historicum-about-page .h-about-result-heading--roles {
    margin-top: 28px !important;
    margin-bottom: 4px !important;
}

body.historicum-about-page .h-about-result-heading--roles + p {
    margin-top: 4px !important;
}

body.historicum-about-page .h-about-founder-results strong {
    color: #111111 !important;
}

body.historicum-about-page .h-about-dark-section.final-cta {
    margin-bottom: 0 !important;
    background:
        radial-gradient(74% 76% at 50% 0%, rgba(4, 38, 24, 0.34), rgba(0, 0, 0, 0) 60%),
        linear-gradient(180deg, #020302 0%, #000000 72%, #000000 100%) !important;
}

body.historicum-about-page .h-about-dark-section.final-cta::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    height: 180px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 78%, #000000 100%) !important;
    pointer-events: none !important;
}

body.historicum-about-page .h-about-dark-section.final-cta > * {
    z-index: 2 !important;
}

body.historicum-about-page .h-about-new-era-section .cards-grid {
    display: grid !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: center !important;
}

@media screen and (max-width: 900px) {
    body.historicum-about-page .h-about-founders-grid,
    body.historicum-about-page .h-about-new-era-section .cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Single article page final source of truth. */
body.historicum-single-post-page .hero .diagonal-band {
    opacity: 0.05 !important;
}

body.historicum-single-post-page .h-single-post-comments,
body.historicum-single-post-page .h-single-post-comments form,
body.historicum-single-post-page .h-single-post-comments .comment-respond {
    background: var(--h-paper-system-cream, var(--h-paper, #f5f0e6)) !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
}

body.historicum-single-post-page .h-single-post-comments input[type="text"],
body.historicum-single-post-page .h-single-post-comments input[type="email"],
body.historicum-single-post-page .h-single-post-comments input[type="url"],
body.historicum-single-post-page .h-single-post-comments textarea {
    background: var(--h-paper-system-cream, var(--h-paper, #f5f0e6)) !important;
    color: #111111 !important;
    border: 1px solid rgba(17, 17, 17, 0.32) !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

body.historicum-single-post-page .h-single-comments-list {
    display: grid;
    gap: 18px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

body.historicum-single-post-page .h-single-comments-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
}

body.historicum-single-post-page .h-single-comment-control {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid rgba(17, 17, 17, 0.36);
    border-radius: 999px;
    background: transparent;
    color: #111111;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

body.historicum-single-post-page .h-single-comment-control:hover,
body.historicum-single-post-page .h-single-comment-control.is-active,
body.historicum-single-post-page .h-single-comment-control[aria-pressed="true"] {
    border-color: var(--h-accent, #ebbc00);
    background: rgba(235, 188, 0, 0.24);
}

body.historicum-single-post-page .h-single-comments-list .children {
    display: grid;
    gap: 16px;
    margin: 16px 0 0 32px;
    padding: 0 0 0 22px;
    list-style: none;
    border-left: 1px solid rgba(17, 17, 17, 0.24);
}

body.historicum-single-post-page .h-single-comment-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.historicum-single-post-page .h-single-comment-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(17, 17, 17, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    color: #111111;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.18), 0 2px 5px rgba(0, 0, 0, 0.12);
}

body.historicum-single-post-page .h-single-comments-list .children .h-single-comment-card {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 13px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.historicum-single-post-page .h-single-comment-avatar img {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.22);
}

body.historicum-single-post-page .h-single-comment-main {
    min-width: 0;
}

body.historicum-single-post-page .h-single-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3px;
    margin: 0 0 12px;
}

body.historicum-single-post-page .h-single-comment-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

body.historicum-single-post-page .h-single-comment-author,
body.historicum-single-post-page .h-single-comment-author a {
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 17px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

body.historicum-single-post-page .h-single-comment-date {
    color: rgba(17, 17, 17, 0.62) !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

body.historicum-single-post-page .h-single-comment-toggle {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 12px;
    border: 1px solid rgba(17, 17, 17, 0.32);
    border-radius: 999px;
    background: transparent;
    color: #111111;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

body.historicum-single-post-page .h-single-comment-toggle:hover {
    border-color: var(--h-accent, #ebbc00);
    background: rgba(235, 188, 0, 0.22);
}

body.historicum-single-post-page .h-single-comment-text,
body.historicum-single-post-page .h-single-comment-text p {
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 17px;
    line-height: 1.58;
}

body.historicum-single-post-page .h-single-comment-text p {
    margin: 0 0 12px;
}

body.historicum-single-post-page .h-single-comment-text p:last-child {
    margin-bottom: 0;
}

body.historicum-single-post-page .h-single-comment-moderation {
    margin: 0 0 10px;
    color: rgba(17, 17, 17, 0.68);
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
    font-size: 14px;
    font-weight: 700;
}

body.historicum-single-post-page .h-single-comment-actions {
    margin-top: 14px;
}

body.historicum-single-post-page .h-single-comment-item.is-collapsed > .h-single-comment-card .h-single-comment-text,
body.historicum-single-post-page .h-single-comment-item.is-collapsed > .h-single-comment-card .h-single-comment-actions,
body.historicum-single-post-page .h-single-comment-item.is-collapsed > .children {
    display: none;
}

body.historicum-single-post-page .h-single-comment-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 14px;
    border: 1px solid rgba(17, 17, 17, 0.38);
    border-radius: 999px;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.18s ease, border-color 0.18s ease;
}

body.historicum-single-post-page .h-single-comment-actions a:hover {
    border-color: var(--h-accent, #ebbc00);
    background: rgba(235, 188, 0, 0.22);
}

body.historicum-single-post-page .h-single-post-comments .comment-reply-title,
body.historicum-single-post-page .h-single-post-comments .logged-in-as,
body.historicum-single-post-page .h-single-post-comments .comment-notes,
body.historicum-single-post-page .h-single-post-comments label {
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 16px !important;
}

@media screen and (max-width: 700px) {
    body.historicum-single-post-page .h-single-comment-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    body.historicum-single-post-page .h-single-comment-avatar img {
        width: 42px;
        height: 42px;
    }

    body.historicum-single-post-page .h-single-comments-list .children {
        margin-left: 12px;
        padding-left: 14px;
    }
}

body.historicum-single-post-page .h-single-related-section {
    padding: 60px 40px;
    background:
        radial-gradient(86% 92% at 50% 0%, rgba(5, 52, 34, 0.34), rgba(0, 0, 0, 0) 66%),
        linear-gradient(160deg, #020403 0%, #06120d 46%, #000000 100%) !important;
}

body.historicum-single-post-page .h-single-related-title {
    font-size: clamp(22px, 2.5vw, 32px) !important;
}

body.historicum-single-post-page .h-single-related-wrapper {
    width: min(1540px, 100%);
    margin: 28px auto 0;
    overflow: visible;
}

body.historicum-single-post-page .h-single-related-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
    padding: 12px 0 28px;
}

body.historicum-single-post-page .h-single-related-track .h-blog-slide {
    min-width: 0;
    padding-bottom: 14px;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card {
    position: relative;
    display: block;
    min-height: 460px;
    overflow: hidden;
    border-radius: 8px;
    background: #07110d;
    box-shadow: 0 8px 11px rgba(0, 0, 0, 0.58);
    text-decoration: none;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card:hover {
    transform: none !important;
    box-shadow: 0 8px 11px rgba(0, 0, 0, 0.58) !important;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card::after {
    content: none;
    display: none;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.7) 58%, #000000 100%);
    pointer-events: none;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card-image img,
body.historicum-single-post-page .h-single-related-track .h-blog-placeholder {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card:hover .h-blog-card-image img {
    transform: none !important;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    padding: 26px;
    background: transparent;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card-title {
    margin: 0 0 12px;
    color: #ffffff !important;
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    line-height: 1.25;
}

body.historicum-single-post-page .h-single-related-track .h-blog-card-excerpt {
    margin: 0 0 15px;
    color: #ffffff !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
    font-size: 15px;
    line-height: 1.55;
}

body.historicum-single-post-page .h-single-related-track .h-read-more {
    color: var(--h-accent, #ebbc00) !important;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
}

@media screen and (max-width: 900px) {
    body.historicum-single-post-page .h-single-related-track {
        grid-template-columns: 1fr;
    }
}

/* Blog page final source of truth. */
body.historicum-blog-page .h-page-wrapper {
    padding-top: 0 !important;
    overflow: hidden !important;
    background:
        linear-gradient(180deg, #020504 0%, #000000 100%) !important;
}

body.historicum-blog-page .h-blog-hero {
    width: 100vw !important;
    margin-top: 0 !important;
    margin-bottom: -1px !important;
    margin-left: calc(50% - 50vw) !important;
    min-height: clamp(440px, 40vw, 620px) !important;
    overflow: visible !important;
    background: #000000 !important;
    isolation: isolate !important;
}

body.historicum-blog-page .h-blog-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: -2px 0 -76px 0 !important;
    z-index: 0 !important;
    background: url("https://historicum.pl/wp-content/uploads/2026/04/Workshop4.jpg") center 46% / cover no-repeat !important;
    opacity: 0.2 !important;
    pointer-events: none !important;
}

body.historicum-blog-page .h-blog-hero .h-page-bg-overlay {
    inset: -2px 0 -76px 0 !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    background:
        radial-gradient(116% 94% at 8% 44%, rgba(1, 48, 30, 0.26) 0%, rgba(1, 22, 14, 0.18) 40%, rgba(0, 0, 0, 0) 76%),
        linear-gradient(112deg, rgba(0, 0, 0, 0.74) 0%, rgba(1, 16, 11, 0.5) 42%, rgba(0, 0, 0, 0.66) 76%, rgba(0, 0, 0, 0.78) 100%) !important;
}

body.historicum-blog-page .h-blog-hero .diagonal-band {
    opacity: 0.05 !important;
}

body.historicum-blog-page .h-page-title {
    color: #ffffff !important;
}

body.historicum-blog-page .h-blog-filter-section {
    display: none !important;
}

body.historicum-blog-page .h-blog-archive-paper .h-paper-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(54px, 6vw, 86px) clamp(20px, 5vw, 80px) !important;
    background: var(--h-paper-system-cream, var(--h-paper, #f5f0e6)) !important;
    color: #111111 !important;
}

body.historicum-blog-page .h-blog-archive-paper {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

body.historicum-blog-page .h-blog-archive-paper .h-paper-content::before,
body.historicum-blog-page .h-blog-archive-paper .h-paper-content::after {
    content: none !important;
    display: none !important;
}

body.historicum-blog-page .h-blog-archive-paper .h-torn-top::before,
body.historicum-blog-page .h-blog-archive-paper .h-torn-top::after,
body.historicum-blog-page .h-blog-archive-paper .h-torn-bottom::before,
body.historicum-blog-page .h-blog-archive-paper .h-torn-bottom::after {
    background-color: var(--h-paper-system-cream, var(--h-paper, #f5f0e6)) !important;
}

body.historicum-blog-page .h-featured-post {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr) !important;
    gap: clamp(24px, 4vw, 58px) !important;
    width: min(1540px, 100%) !important;
    margin: 0 auto clamp(54px, 6vw, 84px) !important;
    align-items: stretch !important;
    background: transparent !important;
}

body.historicum-blog-page .h-featured-image {
    min-height: clamp(360px, 34vw, 560px) !important;
    border-radius: 8px !important;
}

body.historicum-blog-page .h-featured-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: clamp(24px, 3vw, 44px) !important;
    border: 1px solid rgba(17, 17, 17, 0.22) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.22) !important;
}

body.historicum-blog-page .h-featured-title a,
body.historicum-blog-page .h-featured-title a:visited {
    color: #111111 !important;
}

body.historicum-blog-page .h-featured-excerpt {
    color: rgba(17, 17, 17, 0.76) !important;
}

body.historicum-blog-page .h-blog-latest-block {
    width: min(1540px, 100%) !important;
    margin: 0 auto !important;
    overflow: visible !important;
    padding-bottom: 10px !important;
}

body.historicum-blog-page .h-blog-wrapper {
    position: relative !important;
    overflow: visible !important;
    padding-bottom: 34px !important;
}

body.historicum-blog-page .h-blog-track {
    display: flex !important;
    gap: 24px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 12px 0 64px !important;
    margin-bottom: -28px !important;
    cursor: grab !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.historicum-blog-page .h-blog-track::-webkit-scrollbar {
    display: none !important;
}

body.historicum-blog-page .h-blog-track.is-dragging {
    cursor: grabbing !important;
}

body.historicum-blog-page .h-blog-slide {
    flex: 0 0 calc((100% - 72px) / 4) !important;
    min-width: 0 !important;
    padding-bottom: 28px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.historicum-blog-page .h-blog-archive-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 460px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #07110d !important;
    box-shadow: 0 9px 14px rgba(0, 0, 0, 0.66), 0 2px 4px rgba(0, 0, 0, 0.34) !important;
    transform: none !important;
}

body.historicum-blog-page .h-blog-archive-card:hover {
    transform: none !important;
    box-shadow: 0 9px 14px rgba(0, 0, 0, 0.66), 0 2px 4px rgba(0, 0, 0, 0.34) !important;
}

body.historicum-blog-page .h-blog-archive-card::before,
body.historicum-blog-page .h-blog-archive-card::after {
    content: none !important;
    display: none !important;
}

body.historicum-blog-page .h-blog-card-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

body.historicum-blog-page .h-blog-card-image::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.72) 58%, #000000 100%) !important;
    pointer-events: none !important;
}

body.historicum-blog-page .h-blog-card-image img,
body.historicum-blog-page .h-blog-card-image .h-blog-placeholder {
    position: relative !important;
    z-index: 1 !important;
}

body.historicum-blog-page .h-blog-archive-card:hover .h-blog-card-image img {
    transform: none !important;
}

body.historicum-blog-page .h-blog-card-content {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3 !important;
    padding: 26px !important;
    color: #ffffff !important;
    background: transparent !important;
}

body.historicum-blog-page .h-blog-card-title,
body.historicum-blog-page .h-blog-card-title a,
body.historicum-blog-page .h-blog-card-title a:link,
body.historicum-blog-page .h-blog-card-title a:visited,
body.historicum-blog-page .h-blog-card-title a:hover,
body.historicum-blog-page .h-blog-card-title a:active {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
}

body.historicum-blog-page .h-blog-card-excerpt {
    color: #ffffff !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
}

body.historicum-blog-page .h-read-more,
body.historicum-blog-page .h-read-more:link,
body.historicum-blog-page .h-read-more:visited,
body.historicum-blog-page .h-read-more:hover,
body.historicum-blog-page .h-read-more:active {
    color: var(--h-accent, #ebbc00) !important;
    font-family: var(--h-font-cinzel) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-controls {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 8px !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-arrow {
    position: static !important;
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1.5px solid #111111 !important;
    border-radius: 50% !important;
    background: transparent !important;
    cursor: pointer !important;
    transform: none !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-arrow::before {
    content: "" !important;
    display: block !important;
    width: 7px !important;
    height: 7px !important;
    border-top: 1.5px solid #111111 !important;
    border-right: 1.5px solid #111111 !important;
    transition: border-color 0.2s ease !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-prev::before {
    transform: rotate(-135deg) translate(-1px, 1px) !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-next::before {
    transform: rotate(45deg) translate(-1px, 1px) !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-arrow:hover {
    border-color: #111111 !important;
    background: #111111 !important;
}

body.historicum-blog-page .h-blog-wrapper .h-carousel-arrow:hover::before {
    border-color: #ffffff !important;
}

body.historicum-blog-page .h-newsletter-section {
    margin-top: -62px !important;
    margin-bottom: 0 !important;
    padding: calc(clamp(70px, 8vw, 120px) + 62px) 20px clamp(86px, 9vw, 140px) !important;
    background:
        radial-gradient(76% 86% at 50% 0%, rgba(8, 82, 54, 0.48), rgba(0, 0, 0, 0) 68%),
        linear-gradient(180deg, #071b12 0%, #030705 44%, #000000 100%) !important;
}

body.historicum-blog-page .h-newsletter-section::after {
    content: none !important;
    display: none !important;
}

body.historicum-blog-page .h-newsletter-title {
    color: var(--h-accent, #ebbc00) !important;
}

body.historicum-blog-page .h-newsletter-input {
    background: #ffffff !important;
    color: #111111 !important;
}

body.historicum-blog-page .h-newsletter-input::placeholder {
    color: rgba(17, 17, 17, 0.56) !important;
}

@media screen and (max-width: 1180px) {
    body.historicum-blog-page .h-blog-slide {
        flex-basis: calc((100% - 48px) / 3) !important;
    }

    body.historicum-blog-page .h-featured-post {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 760px) {
    body.historicum-blog-page .h-blog-slide {
        flex-basis: min(82vw, 360px) !important;
    }

    body.historicum-blog-page .h-blog-archive-card {
        min-height: 520px !important;
    }
}
