/* ==========================================================================
   HEART MATES CLINIC SUITE - EDITORIAL SERVICE ROUTING STYLE SHEET
   Synchronized directly with welcome.css and services.css design tokens
   ========================================================================== */
:root {
    --color-soft-cream: #FDFBF3;
    --color-deep-black: #0E0E0E;
    --color-gold: #C29B47;
    --color-white: #FFFFFF;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    --hms-border: #EFECE6;
    --hms-slate: #6B7280;
    --hms-body-charcoal: #2D2D3A;
}

.display-none { display: none !important; }
.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* ── Reading Progress Top Fluid Tracker ── */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 4px !important;
    width: 0%;
    background: var(--color-gold);
    pointer-events: none !important;
    transition: width 0.1s linear;
}

/* ── Structural Layout Canvas ── */
.hms-article-master-canvas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

.hms-article-header {
    margin-bottom: 25px;
    text-align: left;
}

.hms-category-badge-tag {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.8rem;
    border-radius: 2px;
    margin-bottom: 10px;
}

.hms-article-main-headline {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    color: var(--color-deep-black);
    line-height: 1.2;
    margin: 10px 0 12px 0;
    letter-spacing: -0.5px;
}

.hms-article-timestamp-row {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--hms-slate);
    margin-bottom: 5px;
}

.hms-article-featured-banner-frame {
    width: 100%;
    max-height: 550px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--premium-shadow);
    margin-bottom: 30px;
    border: 1px solid var(--hms-border);
}

.hms-article-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Byline Meta Strip Layer ── */
.byline-strip {
    background: var(--color-soft-cream);
    border-bottom: 1px solid var(--hms-border);
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 10px;
    border-radius: 6px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-gold);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.byline-text {
    flex: 1 1 auto;
}

.byline-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-deep-black);
}

.byline-text span {
    font-size: 0.78rem;
    color: var(--hms-slate);
}

.byline-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.btn-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1.5px solid var(--hms-border);
    cursor: pointer;
    background: var(--color-white);
    color: var(--color-deep-black);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-pill:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.btn-pill.active {
    background: var(--color-deep-black);
    border-color: var(--color-deep-black);
    color: var(--color-gold);
}

/* ── Split Columns Container Mode ── */
.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 0;
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 3.5rem;
    align-items: start;
    box-sizing: border-box;
}

.article-intro {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 300;
    color: var(--hms-body-charcoal);
    line-height: 1.85;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-gold);
    padding-left: 1.2rem;
}

.rich-text-clinical-desc-canvas {
    font-size: 0.975rem;
    color: var(--hms-body-charcoal);
    line-height: 1.75;
}

.rich-text-clinical-desc-canvas p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.rich-text-clinical-desc-canvas h2,
.rich-text-clinical-desc-canvas h3 {
    font-family: "Times New Roman", Times, serif;
    color: var(--color-deep-black);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.pull-quote {
    margin: 2.5rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 5px solid var(--color-gold);
    background: var(--color-soft-cream);
    border-radius: 0 8px 8px 0;
}

.pull-quote p {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.28rem;
    font-style: italic;
    color: var(--color-deep-black);
    line-height: 1.5;
    margin: 0;
}

.pull-quote cite {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hms-slate);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-style: normal;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    background: var(--color-soft-cream);
    border: 1px solid var(--hms-border);
    border-radius: 20px;
    color: var(--hms-slate);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

/* ── Sticky Sidebar Components ── */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--color-white);
    border: 1px solid var(--hms-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--premium-shadow);
}

.sidebar-card-header {
    background: var(--color-deep-black);
    color: var(--color-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.8rem 1.2rem;
}

.sidebar-card-body {
    padding: 1.2rem;
}

.highlight-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hms-border);
}

.highlight-item:last-child {
    border-bottom: none;
}

.hi-bullet {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.hi-text {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--hms-body-charcoal);
}

.share-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--color-white);
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sb-twitter { background: #1DA1F2; }
.sb-twitter:hover { background: #0d8fd9; }
.sb-linkedin { background: #0A66C2; }
.sb-linkedin:hover { background: #094fa3; }
.sb-copy { background: var(--hms-slate); }
.sb-copy:hover { background: var(--color-deep-black); color: var(--color-gold); }

/* ── Section Visual Divider ── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hms-border);
}

.section-divider-label {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-deep-black);
    white-space: nowrap;
}

/* ── Premium Treatment Comments Canvas ── */
.comments-section {
    padding: 0 0 5rem 0;
    box-sizing: border-box;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.comments-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-deep-black);
}

.comments-count {
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.hms-hub-review-split-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: start;
}

.comment-form {
    background: var(--color-soft-cream);
    border: 1px solid var(--hms-border);
    border-radius: 12px;
    padding: 1.75rem;
    flex: 1.1;
    min-width: 320px;
    position: relative;
    z-index: 100;
}

.form-panel-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.35rem;
    color: var(--color-deep-black);
    margin: 0 0 4px 0;
}

.form-panel-subtitle {
    font-size: 0.85rem;
    color: var(--hms-slate);
    margin: 0 0 25px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 15px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-deep-black);
}

.form-field input,
.form-field textarea {
    border: 1.5px solid var(--hms-border);
    border-radius: 7px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    background: var(--color-white);
    color: var(--hms-body-charcoal);
    transition: border-color 0.2s;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-gold);
}

.form-field textarea { min-height: 110px; }

.submit-btn {
    background: var(--color-deep-black);
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 7px;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: 0.2s;
    width: 100%;
    position: relative;
    z-index: 101;
}

.submit-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* Captcha Module Sub-Layout */
.hms-captcha-container-strip {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid var(--hms-border);
    padding: 12px 18px;
    border-radius: 8px;
    gap: 15px;
    max-width: 340px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.hms-captcha-label-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.hms-captcha-label-box label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-deep-black);
}

.hms-captcha-question-text {
    font-size: 0.92rem;
    color: var(--hms-body-charcoal);
    font-weight: 500;
}

.hms-captcha-question-text strong {
    color: var(--color-gold);
    font-size: 1rem;
    font-weight: 700;
}

.hms-captcha-field-control {
    width: 90px !important;
    text-align: center;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: var(--color-deep-black) !important;
    border: 1px solid var(--hms-border) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
}

/* OTP Code States */
.otp-center-wrapper {
    text-align: center;
    align-items: center;
    margin-bottom: 15px;
}

.otp-input-label {
    color: var(--color-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.otp-input-control {
    padding: 12px;
    font-size: 1.5rem;
    text-align: center;
    width: 60% !important;
    letter-spacing: 4px;
    border: 2px solid var(--color-gold) !important;
    border-radius: 6px;
    background: var(--color-white);
    outline: none;
}

.otp-actions-flex {
    display: flex;
    gap: 12px;
}

.btn-otp-cancel {
    flex: 1;
    justify-content: center;
    font-weight: 700;
    padding: 12px;
}

.btn-otp-verify {
    flex: 1;
    padding: 12px;
    background: #16A34A;
    color: var(--color-white);
    border-radius: 6px;
    font-weight: 700;
}

.btn-otp-verify:hover {
    background: #12823b;
    color: var(--color-white);
}

.stage-loading-box {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner-icon {
    font-size: 2.2rem;
    color: var(--color-deep-black);
    margin-bottom: 15px;
}

.loading-status-text {
    color: var(--color-deep-black);
    margin: 0;
    font-size: 1.1rem;
}

/* Feed Module Configuration */
.hms-hub-feed-container {
    flex: 0.9;
    min-width: 320px;
}

.hms-hub-feed-item {
    background: var(--color-white);
    border: 1px solid var(--hms-border);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: var(--premium-shadow);
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.patient-name {
    color: var(--color-deep-black);
    font-size: 0.95rem;
}

.hms-hub-verified-tag {
    background: #DCFCE7;
    color: #16A34A;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.patient-review-text {
    margin: 0;
    color: var(--hms-body-charcoal);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    white-space: pre-wrap;
}

.empty-fallback-msg {
    color: #A0AEC0;
    font-style: italic;
    text-align: center;
    padding: 30px 0;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
    .content-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .sidebar { position: static; }
}

@media (max-width: 640px) {
    .byline-strip { padding: 0.9rem 1.1rem; gap: 0.8rem; }
    .form-row { grid-template-columns: 1fr; gap: 1rem; }
    .comment-form { padding: 1.25rem; }
    .otp-input-control { width: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}