/* Liberty Assignments: "The Course Guide"
   Sample library for Liberty University Online's eight Module/Weeks. The look borrows
   the printed course guide: a schedule table of weeks, navy ink on warm white, Liberty
   red kept for the one action on each screen. Source Serif 4 + Manrope. */

:root {
  --navy: #0A254E;
  --navy-2: #12356B;
  --navy-3: #2B4F86;
  --navy-wash: #EEF2F8;
  --navy-wash-2: #E2E9F3;
  --red: #C41230;
  --red-deep: #9E0E26;
  --red-wash: #FBEDEF;

  --paper: #FBFAF7;
  --card: #FFFFFF;
  --ink: #15213A;
  --muted: #4F5B72;
  --soft: #7D879B;
  --line: #DFE3EA;
  --line-2: #C9D1DD;

  --f-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --f-code: "JetBrains Mono", Consolas, monospace;

  --r: 4px;
  --sh: 0 10px 30px rgba(10, 37, 78, 0.10);
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--paper); line-height: 1.68; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); }
::selection { background: var(--navy-wash-2); }

.btn { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 0.95rem; padding: 12px 22px; border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn-cta { background: var(--red); color: #FFF; }
.btn-cta:hover { background: var(--red-deep); }
.btn-navy { background: var(--navy); color: #FFF; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); }

/* header */
.site-head { background: var(--navy); color: #FFF; position: sticky; top: 0; z-index: 60; }
.head-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; color: #FFF; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.22rem; line-height: 1.1; }
.brand-sub { display: block; font-size: 0.8rem; color: #B9C6DC; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #E3E9F3; text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover { color: #FFF; text-decoration: underline; text-underline-offset: 5px; }
.head-cta { padding: 10px 18px; }
.nav-burger { display: none; background: none; border: 1.5px solid #3A5482; border-radius: var(--r); padding: 7px 11px; cursor: pointer; font-size: 1.05rem; color: #FFF; }

/* home hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 58px 24px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; }
.hero h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.05rem); line-height: 1.12; margin: 0 0 18px; color: var(--navy); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero-sub { font-size: 1.06rem; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; padding: 14px 16px; font-size: 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #FFF; font-family: var(--f-body); }
.search-row input:focus { outline: none; border-color: var(--navy); }
.search-results { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r); background: #FFF; max-height: 320px; overflow-y: auto; display: none; box-shadow: var(--sh); }
.search-results.is-on { display: block; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--navy-wash); }
.search-results .sr-code { font-family: var(--f-code); color: var(--navy-2); font-size: 0.85rem; white-space: nowrap; }
.search-results .sr-kind { color: var(--soft); font-size: 0.82rem; white-space: nowrap; }
.search-none { display: none; margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.search-none.is-on { display: block; }
.popular { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.popular a { color: var(--navy-2); margin-right: 12px; }

/* the schedule card in the hero: a course guide table */
.guide-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.guide-card .gc-title { padding: 16px 20px 12px; font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.guide-card .gc-title small { display: block; font-family: var(--f-body); font-weight: 500; color: var(--muted); font-size: 0.86rem; }
.guide-card table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.guide-card th { background: var(--navy); color: #FFF; text-align: left; font-weight: 600; padding: 8px 14px; font-size: 0.86rem; }
.guide-card td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.guide-card td:first-child { width: 64px; font-weight: 700; color: var(--navy); }
.guide-card td:last-child { text-align: right; color: var(--muted); white-space: nowrap; }
.guide-card tr.on td { background: var(--red-wash); }
.guide-card tr.on td:nth-child(2) a { color: var(--red-deep); font-weight: 700; }

/* sections */
.sect { max-width: var(--maxw); margin: 0 auto; padding: 46px 24px; }
.sect h2 { font-family: var(--f-head); font-size: clamp(1.55rem, 2.6vw, 2.05rem); color: var(--navy); margin: 0 0 8px; line-height: 1.2; }
.sect-sub { color: var(--muted); max-width: 46em; margin: 0 0 24px; }
.field-head { font-family: var(--f-head); font-size: 1.22rem; color: var(--navy); margin: 30px 0 10px; }
.guide-index { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); overflow: hidden; }
.gi-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 18px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.gi-row:first-child { border-top: none; }
.gi-row:hover { background: var(--navy-wash); }
.gi-row .gi-code { font-family: var(--f-code); font-size: 0.9rem; color: var(--navy-2); font-weight: 500; white-space: nowrap; }
.gi-row h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin: 0 0 2px; color: var(--navy); }
.gi-row p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.gi-row .gi-meta { font-size: 0.84rem; color: var(--soft); white-space: nowrap; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.trust-row > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.trust-row > div:first-child { border-left: none; }
.trust-num { font-family: var(--f-head); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.trust-lbl { font-size: 0.9rem; color: var(--muted); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step-card .s-n { font-family: var(--f-head); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.step-card h3 { font-family: var(--f-body); font-size: 1.04rem; color: var(--navy); margin: 4px 0 8px; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.request-band { background: var(--navy); color: #EAF0F8; }
.request-in { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.request-in h2 { font-family: var(--f-head); color: #FFF; margin: 0 0 12px; font-size: 1.85rem; line-height: 1.2; }
.request-in p { color: #C7D3E6; }
.request-band .ob-form input { background: #FFF; }
.request-band .ob-thanks { color: #FFF; }

/* forms */
.ob-form { display: flex; flex-direction: column; gap: 10px; }
.ob-form input { padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-family: var(--f-body); background: #FFF; color: var(--ink); }
.ob-form input:focus { outline: none; border-color: var(--navy); }
.ob-form .hp, .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ob-fine { font-size: 0.82rem; color: var(--soft); }
.request-band .ob-fine { color: #A9B8D0; }
.ob-thanks { font-weight: 600; }
.hero-lead { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; max-width: 600px; }
.hero-lead input { flex: 1 1 200px; min-width: 0; padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #FFF; }
.hero-lead input.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero-lead .btn { flex: 0 0 auto; }
.hero-lead-done, .hero-lead-err { margin: 10px 0 0; font-size: 0.92rem; }

/* inner pages */
.crumbs { max-width: 860px; margin: 0 auto; padding: 22px 24px 0; font-size: 0.88rem; color: var(--soft); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; color: var(--line-2); }
.article-hero { max-width: 860px; margin: 0 auto; padding: 16px 24px 6px; }
.article-hero h1 { font-family: var(--f-head); font-size: clamp(1.75rem, 3.4vw, 2.45rem); line-height: 1.18; color: var(--navy); margin: 8px 0 10px; }
.article-hero .lead { font-size: 1.06rem; color: var(--muted); }
.article-by { font-size: 0.9rem; color: var(--muted); margin: 0; }
.article { max-width: 860px; margin: 0 auto; padding: 8px 24px 60px; }
.article h2 { font-family: var(--f-head); font-size: 1.5rem; color: var(--navy); margin: 38px 0 10px; line-height: 1.25; }
.article h3 { font-size: 1.06rem; color: var(--navy); margin: 22px 0 8px; }
.article p { margin: 0 0 14px; }
.article ul { padding-left: 22px; }
.article blockquote { margin: 0 0 16px; padding: 14px 18px; background: var(--navy-wash); border-radius: var(--r); color: var(--ink); }
.answer-box { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px; margin: 18px 0; }
.answer-box p { margin: 0; }
.facts { width: 100%; border-collapse: collapse; margin: 18px 0 8px; background: var(--card); border: 1px solid var(--line-2); font-size: 0.95rem; }
.facts th { text-align: left; width: 32%; padding: 9px 14px; background: var(--navy-wash); font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); }
.facts td { padding: 9px 14px; border-top: 1px solid var(--line); }
.week-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-2); font-size: 0.95rem; }
.week-table th { background: var(--navy); color: #FFF; text-align: left; padding: 9px 14px; font-weight: 600; }
.week-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.week-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--navy); }
.week-table td:last-child { white-space: nowrap; }
.drawer { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.drawer-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--line); align-items: start; }
.drawer-row:first-child { border-top: none; }
.drawer-row .d-n { font-weight: 700; color: var(--navy); }
.drawer-row h3 { margin: 0 0 4px; font-size: 1rem; }
.drawer-row p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.drawer-row .d-act a { font-weight: 700; white-space: nowrap; }
.rel-list { padding-left: 20px; }
.rel-list li { margin: 4px 0; }
.related { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.related a { font-weight: 600; }
.offer-links { margin-top: 18px; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--red); font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 8px 0 0; color: var(--muted); }

/* true-form paper sheets */
.paper-wrap { margin: 24px 0; }
.sheet { background: #FFF; border: 1px solid #D6D9DF; padding: 46px 56px; margin: 0 0 14px; font-family: "Times New Roman", Times, serif; font-size: 1.04rem; line-height: 2; color: #111; box-shadow: 0 3px 14px rgba(10, 37, 78, 0.07); }
.sheet .sh-num { display: block; text-align: right; font-size: 0.95rem; color: #444; line-height: 1.2; margin-bottom: 0.6em; }
.sheet .sh-title { text-align: center; font-weight: 700; margin: 0 0 1.4em; }
.sheet .sh-center { text-align: center; margin: 0; }
.sheet h3 { font-size: 1.04rem; font-weight: 700; margin: 0.4em 0; text-align: center; color: #111; font-family: inherit; }
.sheet p { margin: 0 0 0.4em; text-indent: 2.2em; }
.sheet p.noindent { text-indent: 0; }
.sheet .hl { background: var(--navy-wash); }
.sheet .ref { text-indent: -2.2em; padding-left: 2.2em; margin: 0 0 0.6em; }
.annot { background: var(--navy-wash); border-radius: var(--r); padding: 12px 16px; margin: 0 0 18px; font-size: 0.93rem; color: var(--ink); }
.annot b { display: block; color: var(--navy); margin-bottom: 2px; }

/* footer */
.site-foot { background: #071A38; color: #C3CEE0; margin-top: 20px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
/* any page built from the older footer: keep the removed email box hidden */
.foot-in > div:has(#newsForm) { display: none; }
.foot-in h4 { color: #FFF; font-family: var(--f-body); font-size: 0.98rem; margin: 0 0 12px; }
.foot-in a { display: block; color: #C3CEE0; text-decoration: none; font-size: 0.92rem; margin: 6px 0; }
.foot-in a:hover { color: #FFF; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #FFF; font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; }
.foot-brand .brand-mark { width: 34px; height: 34px; }
.foot-note { font-size: 0.9rem; color: #A9B6CC; }
.foot-legal { border-top: 1px solid #1C3157; }
.foot-legal-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; color: #8F9DB5; }
.site-foot .ob-form input { background: #FFF; }

/* offer popup */
.ob-backdrop { position: fixed; inset: 0; background: rgba(7, 26, 56, 0.6); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.ob-backdrop.is-open { display: flex; }
.ob-modal { background: var(--paper); border-radius: var(--r); max-width: 470px; width: 100%; box-shadow: var(--sh); overflow: hidden; max-height: calc(100dvh - 40px); overflow-y: auto; }
.ob-mast { background: var(--navy); color: #FFF; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.ob-mast .om-title { font-family: var(--f-head); font-weight: 700; }
.ob-close { background: none; border: none; color: #FFF; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.ob-body { padding: 20px 22px 24px; }
.ob-season { display: block; color: var(--red-deep); font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.ob-body h3 { font-family: var(--f-head); color: var(--navy); font-size: 1.4rem; margin: 0 0 6px; line-height: 1.2; }
.ob-sub { color: var(--muted); margin: 0 0 14px; }

/* chat + dock */
.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--navy); background: var(--card); cursor: pointer; box-shadow: var(--sh); padding: 0; overflow: hidden; }
.chat-launch svg { width: 100%; height: 100%; display: block; }
.chat-nudge { position: fixed; right: 92px; bottom: 34px; z-index: 79; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px 12px 3px 12px; padding: 10px 14px; font-size: 0.86rem; box-shadow: var(--sh); cursor: pointer; display: none; max-width: 240px; }
.chat-nudge.is-on { display: block; }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 85; width: 340px; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh); display: none; flex-direction: column; overflow: hidden; max-height: 480px; }
.chat-panel.is-open { display: flex; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #FFF; }
.chat-face { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 1.5px solid #FFF; }
.chat-face svg { width: 100%; height: 100%; display: block; }
.chat-head .c-name { font-weight: 700; font-size: 0.93rem; }
.chat-head .c-cred { font-size: 0.76rem; color: #C3CEE0; }
.chat-back { margin-left: auto; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #FFF; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.msg { max-width: 84%; padding: 9px 12px; font-size: 0.9rem; line-height: 1.5; }
.msg-in { background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; align-self: flex-start; }
.msg-out { background: var(--navy); color: #FFF; border-radius: 12px 12px 3px 12px; align-self: flex-end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 9px 12px; font-size: 0.9rem; min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--navy); }
.chat-form button { border: none; background: var(--red); color: #FFF; border-radius: var(--r); padding: 9px 16px; font-weight: 700; cursor: pointer; }
.dock { position: fixed; left: 22px; bottom: 22px; z-index: 78; display: flex; flex-direction: column; gap: 10px; }
.dock button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; box-shadow: var(--sh); display: flex; align-items: center; justify-content: center; padding: 0; }
.dock button svg { width: 22px; height: 22px; }
.dock .wa-live { width: 46px; height: 46px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; }
.dock .wa-live svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .request-in { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .head-cta { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .site-head.menu-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 14px 24px; gap: 14px; }
  .gi-row { grid-template-columns: 1fr; gap: 4px; }
  .drawer-row { grid-template-columns: 1fr; gap: 4px; }
  .steps3, .trust-row { grid-template-columns: 1fr; }
  .trust-row > div { border-left: none; border-top: 1px solid var(--line); }
  .trust-row > div:first-child { border-top: none; }
  .sheet { padding: 26px 20px; font-size: 0.98rem; line-height: 1.85; }
  .foot-in { grid-template-columns: 1fr; }
  .week-table td:last-child { white-space: normal; }
}
@media (max-width: 640px) {
  .chat-panel.is-open { inset: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; z-index: 95; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* paper parts and course pages */
.sheet .title-page { padding: 3.2em 0 2em; }
.sheet .apa-table { width: 100%; border-collapse: collapse; margin: 0.6em 0 1em; font-size: 0.95rem; line-height: 1.45; }
.sheet .apa-table th { border-top: 1px solid #111; border-bottom: 1px solid #111; text-align: left; padding: 5px 8px; font-weight: 700; }
.sheet .apa-table td { padding: 5px 8px; vertical-align: top; }
.sheet .apa-table tr:last-child td { border-bottom: 1px solid #111; }
.sheet .p-list { margin: 0 0 0.6em; padding-left: 2.6em; }
.catalog-desc { color: var(--muted); margin: 6px 0 8px; }
.offer-note { margin: 0 0 10px; }
.sm-list { columns: 2; padding-left: 20px; }
.sm-list li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 700px) { .sm-list { columns: 1; } }

/* pill badges as quiet text (owner: no pills) */
.badge-lib { display: inline; font-size: 0.86rem; color: var(--muted); background: none; border: 0; border-radius: 0; padding: 0; }
.badge-lib + .badge-lib::before { content: "\00B7"; margin: 0 8px; color: var(--line-strong); }
.chips.plain a { background: none; border: 0; border-radius: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
