/*
Theme Name: Rebrighten
Theme URI: https://rebrighten.com
Description: Child theme for Astra — Website for "Sunlight Reflection: The Business Case for an Albedo Accord" by Robbie Tulip
Author: Rebrighten
Author URI: https://rebrighten.com
Template: astra
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: rebrighten
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Sans+3:ital,opsz,wght@0,9..46,300;0,9..46,400;0,9..46,600;0,9..46,700;1,9..46,300;1,9..46,400&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --c-night:        #0A0E1A;
  --c-navy:         #0F1E3D;
  --c-ocean:        #0B3D6B;
  --c-sky:          #1A6B9A;
  --c-gold:         #F5C842;
  --c-pale-gold:    #FEF3C7;
  --c-data:         #2DC4B2;
  --c-white:        #FAFCFE;
  --c-off-white:    #F4F7FA;
  --c-text:         #1C2B3A;
  --c-text-light:   #4A6275;
  --c-border:       #D0E2EC;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;

  --shadow-card:   0 4px 24px rgba(10,14,26,0.10);
  --shadow-lifted: 0 8px 40px rgba(10,14,26,0.16);
}

/* ============================================================
   ASTRA FULL-WIDTH FIXES — homepage template
   ============================================================ */
.page-template-template-homepage .site-content,
.page-template-template-homepage #content,
.page-template-template-homepage .ast-container,
.page-template-template-homepage .entry-content,
.page-template-template-homepage .post-content,
.page-template-template-homepage article.page,
.page-template-template-homepage .ast-article-single,
.page-template-template-homepage #primary,
.page-template-template-homepage .content-area,
.page-template-template-homepage .hentry {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
}
.page-template-template-homepage .site-primary-header-wrap .ast-builder-grid-row{
        padding:0 20px !important;
}
.rb-page { display: block; width: 100%; overflow-x: hidden; }

/* Section containers */
.rb-wrap         { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.rb-wrap--narrow { max-width: 820px;  margin: 0 auto; padding: 0 2rem; }
.rb-wrap--wide   { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   ASTRA FOOTER FIXES — eliminate white gap
   ============================================================ */

/* Kill ANY background that could create a white gap above the footer bar */
#colophon,
.site-footer,
.ast-site-footer,
footer.site-footer,
.ast-footer-overlay,
.footer-bar-wrap,
.ast-footer-bar,
#ast-footer-info,
.footer-copyright-wrap,
#colophon .ast-container,
.ast-small-footer,
.ast-small-footer-wrap {
    background: var(--c-night) !important;
    background-color: var(--c-night) !important;
    border-top: none !important;
}
.ast-footer-copyright{
    background-color: #000 !important;
    background: #000 !important;
}
.site-below-footer-wrap[data-section="section-below-footer-builder"]{
        background-color: #000000 !important;
       border-top-color: #000000 !important;
}
/* The actual bottom bar line separator */
.ast-footer-copyright,
.ast-small-footer {
    border-top: 1px solid rgba(255,255,255,0.07) !important;
}

/* Remove white widget area box entirely */
.ast-footer-widget-area,
#ast-footer-widget-area,
.ast-footer-widgets-area,
.footer-widget-area-inner,
#ast-footer-widget-area .ast-container,
.ast-footer-widget-area .ast-container,
.ast-footer-widget-area-inner {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}
.ast-site-title-wrap{
    padding-left: 10px;
}
/* Footer text */
.ast-footer-copyright *,
.footer-bar-wrap *,
.ast-footer-bar *,
#ast-footer-info *,
.site-footer *,
.ast-site-footer *,
.ast-small-footer * {
    color: rgba(255,255,255,0.38) !important;
}
.site-footer a,
.ast-site-footer a,
.ast-small-footer a {
    color: rgba(255,255,255,0.55) !important;
    border-bottom: none;
    transition: color 0.2s;
}
.site-footer a:hover,
.ast-site-footer a:hover,
.ast-small-footer a:hover { color: var(--c-gold) !important; }

/* Hide "Powered by Astra" if desired — comment out to keep */
.ast-footer-copyright .ast-footer-copyright-text { display: none !important; }

/* ============================================================
   ASTRA HEADER / NAV — strong specificity overrides
   ============================================================ */

/* Force dark background on ALL possible Astra header elements */
#masthead,
#masthead.site-header,
.site-header,
.ast-site-header-wrap,
.ast-site-header-wrap .main-header-bar,
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header-bar,
header#masthead,
.ast-header-break-point .main-header-bar {
    background: #0A0E1A !important;
    background-color: #0A0E1A !important;
    border-bottom: 1px solid rgba(245,200,66,0.15) !important;
    box-shadow: 0 2px 24px rgba(0,0,0,0.35) !important;
}

/* ── LOGO / SITE TITLE ── */
.site-title,
.ast-site-title-wrap .site-title,
h1.site-title,
.site-title a,
.ast-site-title-wrap .site-title a,
.ast-site-title-wrap a.site-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #F5C842 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 1px 12px rgba(245,200,66,0.25) !important;
    border-bottom: none !important;
    text-decoration: none !important;
    line-height: 1.1 !important;
}
/* Small italic tagline under site title */
.site-description,
.ast-site-title-wrap .site-description {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: rgba(245,200,66,0.45) !important;
    font-weight: 300 !important;
    margin-top: 0.1rem !important;
    display: block !important;
}

/* ── NAV ITEMS — target every possible Astra nav selector ── */
#masthead .main-navigation .menu-item > a,
#masthead .ast-main-navigation .menu-item > a,
#site-navigation .menu-item > a,
.main-header-bar .main-navigation .menu-item > a,
.main-header-bar nav .menu-item > a,
header .main-navigation .menu-item > a,
.ast-nav-menu > li > a,
.ast-header-menu > li > a,
nav.ast-flex .menu-item > a {
    font-family: 'Source Sans 3', system-ui, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.72) !important;
    background: transparent !important;
    border-bottom: none !important;
    text-decoration: none !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 3px !important;
    transition: color 0.2s ease, background 0.2s ease !important;
}

#masthead .main-navigation .menu-item > a:hover,
#masthead .ast-main-navigation .menu-item > a:hover,
.main-header-bar .main-navigation .menu-item > a:hover,
.ast-nav-menu > li > a:hover,
nav.ast-flex .menu-item > a:hover {
    color: #F5C842 !important;
    background: rgba(245,200,66,0.07) !important;
}

/* Active/current page nav item */
#masthead .main-navigation .current-menu-item > a,
#masthead .ast-main-navigation .current-menu-item > a,
.ast-nav-menu > li.current-menu-item > a {
    color: #F5C842 !important;
}

/* Mobile hamburger */
.ast-mobile-header-wrap .menu-toggle,
.ast-button-wrap .menu-toggle,
button.menu-toggle {
    color: #F5C842 !important;
    background: transparent !important;
}
button.menu-toggle svg, button.menu-toggle span {
    color: #F5C842 !important;
    fill: #F5C842 !important;
}

/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--c-navy);
    line-height: 1.2;
    font-weight: 700;
    margin-top: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }

p { max-width: 68ch; margin-top: 0; }
p + p { margin-top: 1rem; }

a { color: var(--c-sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-ocean); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-ghost, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.85rem 1.9rem;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--c-gold);
    color: var(--c-night) !important;
    border: none;
    box-shadow: 0 4px 20px rgba(245,200,66,0.28);
    border-bottom: none !important;
}
.btn-primary:hover {
    background: #e8b820;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,200,66,0.38);
    color: var(--c-night) !important;
}
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85) !important;
    border: 1.5px solid rgba(255,255,255,0.38) !important;
    border-bottom: 1.5px solid rgba(255,255,255,0.38) !important;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7) !important;
    color: white !important;
}
.btn-outline {
    background: transparent;
    color: var(--c-ocean) !important;
    border: 1.5px solid var(--c-sky) !important;
    border-bottom: 1.5px solid var(--c-sky) !important;
}
.btn-outline:hover {
    background: var(--c-sky);
    color: white !important;
    border-color: var(--c-sky) !important;
}
.btn-dark {
    background: var(--c-ocean);
    color: white !important;
    border: none;
    border-bottom: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.85rem 1.9rem;
    border-radius: var(--r-sm);
    transition: all 0.2s;
}
.btn-dark:hover {
    background: var(--c-night);
    color: white !important;
    transform: translateY(-1px);
}

/* ============================================================
   HERO — Full-bleed twilight photo, yellow title (matches PPTX)
   ============================================================ */
.rb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--c-night);
}

/* Hero background — uses uploaded image file from theme folder */
.rb-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    /* Gradient fallback when image not yet uploaded */
    background-color: #0F2040;
}

.rb-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(10,14,26,0.45) 0%,
            rgba(10,14,26,0.15) 40%,
            rgba(10,14,26,0.2)  55%,
            rgba(10,14,26,0.7)  78%,
            rgba(10,14,26,0.95) 100%
        );
}

.rb-hero__content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 4.5rem;
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

/* Site domain label */
.rb-hero__domain {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245,200,66,0.5);
    margin-bottom: 0.6rem;
    display: block;
}

/* Main title — large yellow Playfair, matching PPTX "Sunlight Reflection" */
.rb-hero__title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.8rem, 7vw, 5.5rem) !important;
    font-weight: 900 !important;
    color: var(--c-gold) !important;
    line-height: 1.0 !important;
    letter-spacing: -0.02em;
    margin: 0 0 1rem !important;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

/* Subtitle — italic serif, pale gold */
.rb-hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.45rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(254,243,199,0.88);
    line-height: 1.4;
    max-width: 70ch;
    margin: 0 0 0.6rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.rb-hero__author {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232,168,48,0.65);
    margin-bottom: 2.25rem;
    display: block;
}

.rb-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.rb-hero__credit {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    z-index: 3;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.25);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
}
.rb-hero__credit a { color: rgba(255,255,255,0.35) !important; }

/* ============================================================
   ALBEDO DATA STRIP
   ============================================================ */
/* ── Albedo Data Ticker ───────────────────────────────────────── */
@keyframes rb-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rb-data-strip {
    background: var(--c-night);
    border-bottom: 1px solid rgba(245,200,66,0.1);
    padding: 1.4rem 0;
    overflow: hidden;             /* no scrollbar ever */
    position: relative;
}

/* Fade-out edges */
.rb-data-strip::before,
.rb-data-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.rb-data-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--c-night), transparent);
}
.rb-data-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--c-night), transparent);
}

/* The track — contains two identical sets of stats side-by-side for seamless loop */
.rb-data-strip__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: rb-ticker-scroll 28s linear infinite;
}
/* Pause on hover */
.rb-data-strip:hover .rb-data-strip__track {
    animation-play-state: paused;
}

/* One stat item */
.rb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2.5rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.rb-stat__val {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--c-gold);
    line-height: 1;
    letter-spacing: -0.02em;
}
.rb-stat__label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.37);
    margin-top: 0.4rem;
    white-space: nowrap;
}

/* ============================================================
   ABOUT SECTION (homepage)
   ============================================================ */
.rb-about-section {
    padding: var(--sp-xl) 2rem;
    background: var(--c-white);
}
.rb-section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-sky);
    margin-bottom: 1rem;
    display: block;
}
.rb-thesis-quote {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-ocean);
    font-style: italic;
    line-height: 1.6;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--c-gold);
    background: rgba(245,200,66,0.05);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: 1.75rem 0;
    max-width: 65ch;
}

/* ============================================================
   CHAPTERS SECTION (homepage)
   ============================================================ */
.rb-chapters-section {
    padding: var(--sp-xl) 2rem;
    background: var(--c-off-white);
}

.rb-chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.rb-chapter-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    border-bottom: 1px solid var(--c-border) !important;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
    position: relative;
    overflow: hidden;
}
.rb-chapter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-ocean), var(--c-data));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.rb-chapter-card:hover {
    box-shadow: var(--shadow-lifted);
    transform: translateY(-4px);
    border-color: rgba(11,61,107,0.18) !important;
}
.rb-chapter-card:hover::before { transform: scaleX(1); }

.rb-ch-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-sky);
    margin-bottom: 0.55rem;
    display: block;
}
.rb-chapter-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--c-navy);
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.rb-chapter-card p {
    font-size: 0.85rem;
    color: var(--c-text-light);
    line-height: 1.6;
    margin: 0 0 1.2rem;
    flex-grow: 1;
    max-width: 100%;
}
.rb-ch-read {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--c-sky);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.rb-ch-read::after { content: ' →'; }

.rb-chapter-card--coming {
    opacity: 0.48;
    pointer-events: none;
    background: var(--c-off-white);
}
.rb-chapter-card--coming .rb-ch-read { color: var(--c-text-light); }
.rb-chapter-card--coming .rb-ch-read::after { content: ''; }

/* ============================================================
   SUBSTACK CTA SECTION
   ============================================================ */
.rb-substack-section {
    padding: var(--sp-xl) 2rem;
    background: var(--c-navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rb-substack-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.rb-substack-section .rb-section-label { color: rgba(245,200,66,0.55); }
.rb-substack-section h2 { color: white !important; margin-bottom: 1rem; }
.rb-substack-section p  { color: rgba(255,255,255,0.62); max-width: 50ch; margin: 0 auto 2rem; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.rb-page-hero {
    background: linear-gradient(140deg, var(--c-night) 0%, var(--c-navy) 55%, var(--c-ocean) 100%);
    padding: 5rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}
.rb-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,200,66,0.35), transparent);
}
.rb-page-hero h1 { color: white !important; margin: 0 0 0.75rem; }
.rb-page-hero p  { color: rgba(254,243,199,0.72); font-size: 1.08rem; margin: 0; }

.rb-page-body { padding: var(--sp-lg) 2rem var(--sp-xl); }

/* ============================================================
   LINKS PAGE
   ============================================================ */
.rb-links-group { margin-bottom: 2.5rem; }
.rb-links-group-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-sky);
    font-weight: 400;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--c-border);
    display: block;
}

.rb-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: white;
    margin-bottom: 0.55rem;
    text-decoration: none !important;
    border-bottom: 1px solid var(--c-border) !important;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.rb-link-item:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(5px);
    border-color: var(--c-sky) !important;
}
.rb-link-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    background: var(--c-off-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid var(--c-border);
}
.rb-link-name {
    font-weight: 600;
    color: var(--c-navy);
    font-size: 0.94rem;
    display: block;
}
.rb-link-desc {
    font-size: 0.8rem;
    color: var(--c-text-light);
    display: block;
    margin-top: 0.1rem;
}

/* ============================================================
   REFERENCES PAGE
   ============================================================ */
.rb-ref-list { list-style: none; padding: 0; margin: 0; }
.rb-ref-item {
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    gap: 0.75rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--c-border);
}
.rb-ref-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-sky);
    padding-top: 0.1rem;
    font-weight: 700;
}
.rb-ref-body { font-size: 0.9rem; line-height: 1.65; }
.rb-ref-title { font-style: italic; }
.rb-ref-doi {
    font-size: 0.78rem;
    color: var(--c-sky);
    font-family: var(--font-mono);
    display: inline-block;
    margin-top: 0.2rem;
}

/* ============================================================
   NOTICE BOX
   ============================================================ */
.rb-notice {
    background: rgba(26,107,154,0.06);
    border: 1px solid rgba(26,107,154,0.2);
    border-left: 4px solid var(--c-sky);
    border-radius: var(--r-md);
    padding: 1.2rem 1.5rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.rb-notice__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.rb-notice strong { color: var(--c-navy); font-size: 0.95rem; }
.rb-notice p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--c-text-light); max-width: 100%; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.rb-contact-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    max-width: 620px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    font-family: var(--font-body) !important;
    border: 1px solid var(--c-border) !important;
    border-radius: var(--r-sm) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    background: var(--c-off-white) !important;
    color: var(--c-text) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
    border-color: var(--c-sky) !important;
    box-shadow: 0 0 0 3px rgba(26,107,154,0.1) !important;
    outline: none !important;
    background: white !important;
}
.wpcf7-submit {
    background: var(--c-ocean) !important;
    color: white !important;
    border: none !important;
    padding: 0.9rem 2.5rem !important;
    border-radius: var(--r-sm) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s !important;
}
.wpcf7-submit:hover {
    background: var(--c-night) !important;
    transform: translateY(-1px) !important;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.rb-divider {
    border: none;
    height: 1px;
    background: var(--c-border);
    margin: var(--sp-md) 0;
}
.rb-center { text-align: center; }
.rb-mt-md  { margin-top: var(--sp-md); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .rb-hero__title { font-size: clamp(2.4rem, 8vw, 3.8rem) !important; }
    .rb-hero__links { gap: 1.2rem; margin-bottom: 3rem; }
}
@media (max-width: 640px) {
    :root { --sp-xl: 3.5rem; --sp-lg: 2.5rem; }
    .rb-hero__content { padding: 2rem 1.25rem 3rem; }
    .rb-hero__cta { flex-direction: column; align-items: flex-start; }
    .rb-chapter-grid { grid-template-columns: 1fr; }
}
