/* Bahamas guide shell styles.
 * Loaded by /bahamas-sailing-guide hub and all 7 guide articles. Holds the
 * universal helpers, the link-list helpers, the canonical .beg-* article
 * framework, and mobile-safety defaults. Article-specific patterns
 * (.beg-choice-*, .beg-time-*, .beg-pack-*, .beg-safety-*, .beg-sense-*)
 * remain inline in the article that uses them.
 */

:root {
    --bg: #f6f3ec;
    --paper: #fffdf9;
    --paper-2: #fbf7f0;
    --text: #1f2937;
    --muted: #5f6b7a;
    --line: #e5ddd0;
    --accent: #244b63;
    --accent-2: #6f8ea3;
    --shadow: 0 10px 30px rgba(22, 30, 38, .07);
    --radius: 22px;
    --wrap: 1120px;
    --narrow: 760px;
}

.muted {
    color: var(--muted);
}

.narrow {
    width: min(var(--narrow), 100%);
    margin-left: auto;
    margin-right: auto;
}

.content-card {
    padding: 34px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.logo {
    padding-left: 20px !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* Link list (used by hub-and-article cross-references) */

.link-block {
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.link-item {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: .15s ease;
}

.link-item:hover {
    transform: translateX(2px);
}

.link-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 600;
    color: #18222d;
    margin-bottom: 4px;
}

.link-desc {
    display: block;
    font-size: .98rem;
    color: var(--muted);
}

/* .beg-* article framework — canonical version sourced from do-you-need-a-captain. */

.beg-page {
    --paper: #fbf8f2;
    --text: #2f3b40;
    --muted: #6f7b80;
    --line: rgba(47, 59, 64, 0.14);
    --line-strong: rgba(47, 59, 64, 0.24);
    --accent: #2f6b73;
    --max: 820px;
    color: var(--text);
}

.beg-article {
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px 24px 80px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.82;
}

.beg-kicker {
    margin: 0 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.beg-article h1 {
    margin: 0 0 18px;
    font-size: clamp(2.45rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #243036;
}

.beg-subhead {
    margin: 0 0 38px;
    font-size: 1.18rem;
    line-height: 1.62;
    color: var(--muted);
    max-width: 740px;
}

.beg-article p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.4em;
}

.beg-article h2 {
    margin: 48px 0 14px;
    font-size: 1.72rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #243036;
}

.beg-article h3 {
    margin: 28px 0 10px;
    font-size: 1.16rem;
    line-height: 1.32;
    color: #243036;
}

.beg-article a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 107, 115, 0.34);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.beg-article a:hover {
    color: #224e54;
    border-bottom-color: rgba(34, 78, 84, 0.64);
}

.beg-divider {
    margin: 46px 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line), transparent);
}

.beg-pull {
    margin: 30px 0;
    padding-left: 16px;
    border-left: 2px solid rgba(47, 107, 115, 0.25);
    color: #27353a;
}

.beg-pull p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.78;
}

.beg-note {
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
}

.beg-list {
    margin: 1em 0 1.5em 0.15em;
    padding-left: 1.2em;
}

.beg-list li {
    margin-bottom: 0.6em;
}

.beg-cta {
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid var(--line-strong);
}

@media (max-width: 760px) {
    .beg-article {
        padding: 42px 18px 68px;
    }
}

@media (max-width: 480px) {
    img[align="left"],
    img[align="right"] {
        float: none !important;
        display: block;
        width: 100% !important;
        height: auto !important;
        margin: 1rem auto;
    }
}
