:root {
    --brand: #E95233;
    --ink: #1a1a1a;
    --paper: #ffffff;
    --page-bg: #fffaf9;
    --menu-grey: #777777;
    --light-grey: #999999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--brand); 
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

#top-anchor { position: absolute; top: 0; left: 0; visibility: hidden; }

.register-page {
    background-color: var(--page-bg);
    max-width: 900px;
    width: 100%;
    min-height: 100%;
    padding: 40px 60px 80px 60px;
    box-shadow: 15px 15px 50px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

/* NAVIGATION MENU */
nav.main-nav {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--menu-grey);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

nav.main-nav a:hover {
    color: var(--brand);
}

/* REVERSED EFFECT FOR VAPELODY */
nav.main-nav a.vapelody-link {
    color: var(--brand);
}

nav.main-nav a.vapelody-link:hover {
    color: var(--menu-grey);
}

/* HEADER SECTION */
header {
    text-align: center;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-block {
    display: inline-block;
    text-align: center;
    max-width: 100%;
}

.specialist-label {
    font-size: clamp(0.4rem, 1vw, 0.65rem); 
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 4.8px); 
    color: #777;
    margin-bottom: 12px;
    display: block;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

header h1 {
    font-family: 'Libre Caslon Display', serif;
    font-size: clamp(1.6rem, 5vw, 3.5rem); 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--ink);
    white-space: nowrap;
}

header p.site-url {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--brand);
    margin-top: 5px;
}

/* CONTENT STYLES / LEDGER GROUPS */
.ledger-group {
    margin-bottom: 60px;
}

.group-heading {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.group-heading::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #eee;
    margin-left: 15px;
}

/* VOUCHER ROW STYLES (INDEX) */
.voucher-row {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    width: 100%;
}
.insight-row {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    width: 100%;
}
.voucher-row:hover {
    color: var(--brand);
    padding-left: 10px;
}
.insight-row:hover {
    color: var(--brand);
    padding-left: 10px;
}
.v-brand {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: 140px;
}

.v-author {
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.v-offer {
    flex-grow: 1;
    display: flex;
    align-items: baseline;
    overflow: hidden;
    margin: 0 15px;
}

.v-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.v-insight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.v-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    min-width: 20px;
}

.v-code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand);
    flex-shrink: 0;
    background: #fff;
    border: 1px dashed var(--brand);
    padding: 4px 12px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.v-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
	flex-shrink: 0;
    background: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
}



/* ARTICLE / INTERNAL PAGE STYLES */
.all-insights-link {
    display: inline-block;
    text-decoration: none;
    color: var(--light-grey);
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px; 
    padding-left: 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.all-insights-link:hover {
    color: var(--brand);
    padding-left: 10px;
}

.article-container { font-family: 'Montserrat', sans-serif; color: #444; line-height: 1.8; }
.article-title { font-family: 'Libre Caslon Display', serif; font-size: 2.2rem; color: var(--ink); margin-bottom: 50px; text-align: center; }
.article-p { margin-bottom: 25px; font-size: 0.95rem; }

.article-container .group-heading {
    margin: 50px 0 25px 0;
}

.article-subheading {
    font-family: 'Libre Caslon Display', serif;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 30px 0 15px 0;
}

.article-list { margin-bottom: 30px; padding-left: 40px; list-style: none; }
.article-list li { margin-bottom: 15px; font-size: 0.95rem; }
.article-list span.italic-head { font-style: italic; color: var(--ink); font-weight: 700; }

.article-alert {
    border: 2px dashed var(--brand);
    padding: 40px;
    margin: 60px 0;
    background-color: transparent;
    position: relative;
}

.news-alert {
    border: 2px dashed var(--brand);
    padding: 40px;
    margin: 30px 0;
    background-color: transparent;
    position: relative;
}

.article-alert h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--brand);
    font-weight: 700;
}

.news-alert h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--brand);
    font-weight: 700;
}

.brick-link {
    color: var(--brand) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}

.brick-link:hover {
    border-bottom: 1px solid var(--brand);
	color: #666 !important;
    opacity: 0.8;
}

.article-table-container { 
    max-width: 100%;
    overflow-x: auto; 
    margin: 40px 0; 
    border: 1px solid #eee; 
}

.article-table { 
    width: 100%; 
    table-layout: fixed; /* Forces the table to stay within 100% width */
    word-wrap: break-word; /* Prevents long text from pushing the width out */
    border-collapse: collapse; 
    font-size: 0.85rem; 
    background: #fff; 
}
.article-table th { background-color: #f9f9f9; text-align: left; padding: 15px; border-bottom: 2px solid var(--ink); text-transform: uppercase; font-weight: 700; }
.article-table td { padding: 15px; border-bottom: 1px solid #eee; vertical-align: top; }

.article-signature { margin-top: 60px; padding-top: 30px; display: flex; align-items: center; gap: 15px; }
.author-avatar {
    width: 50px;
    height: 50px;
    overflow: hidden; /* Clips the image to the circle */
    border-radius: 50%; /* Perfect circle */
    border: 1px solid #ddd; /* Thin, elegant ledger-style border */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9; /* Fallback if image fails to load */
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image isn't squashed or stretched */
    display: block;
    image-rendering: -webkit-optimize-contrast; /* Extra sharpness for mobile */
}
.author-biz {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-biz img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image isn't squashed or stretched */
    display: block;
    image-rendering: -webkit-optimize-contrast; /* Extra sharpness for mobile */
}

.author-info { display: flex; flex-direction: column; justify-content: center; }
.author-name { font-family: 'Libre Caslon Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.author-title { font-size: 0.65rem; text-transform: uppercase; color: var(--light-grey); font-weight: 700; letter-spacing: 1.5px; margin-top: 2px; }

.back-to-top {
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 60px 0 15px 0; /* 60px above, 15px below */
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.65rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.back-to-top:hover { 
    color: var(--menu-grey); 
}

.to-list {
    display: block;
    text-align: right;
    text-decoration: none;
    margin: 20px 0 15px 0; /* 60px above, 15px below */
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.55rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.to-list:hover { 
    color: var(--menu-grey); 
}

/* FOOTER SECTION */
footer {
    margin-top: 5px; 
    text-align: center;
    border-top: 1px solid var(--ink);
    padding-top: 30px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #444;
    line-height: 1.6;
}

.copyright {
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
    text-transform: uppercase;
}

/* MEDIA QUERIES */
@media (max-width: 600px) {
    body { padding: 10px; }
    .register-page { padding: 30px 15px; }
    nav.main-nav ul { gap: 10px; }
    .v-brand { min-width: 90px; font-size: 0.75rem; }
    .article-alert { padding: 25px; }
	.news-alert { padding: 25px; }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Spans the entire screen width */
    background: var(--ink); /* Your dark #1a1a1a background */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 40px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px; /* Limits content width even if banner is full-width */
    width: 100%;
}

.cookie-content p {
    font-size: 0.7rem;
    color: #cccccc; /* Light grey text for readability on dark */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    flex-grow: 1;
}

.cookie-content a {
    color: var(--paper);
    text-decoration: underline;
}

/* BUTTON WITH SPECIFIC HOVER EFFECT */
.cookie-content button {
    background-color: var(--brand); /* #E95233 */
    color: var(--paper);           /* White text */
    border: 1px solid var(--brand);
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for color & bg */
}

.cookie-content button:hover {
    background-color: var(--paper); /* Background becomes white */
    color: var(--brand);           /* Text becomes #E95233 */
    border-color: var(--paper);
}

@media (max-width: 600px) {
    .cookie-banner { padding: 20px; }
    .cookie-content { flex-direction: column; text-align: center; gap: 15px; }
}

