/* Catholic Economic Forum member app. Brand colors and fonts from the CEF design manual (same as the public site). */
:root {
  --cef-blue: #38B6FF; --cef-navy: #1B3A5C; --cef-gold: #D4980A; --cef-peach: #FFEFD8;
  --cef-light-blue: #C4E5FF; --cef-light-gold: #FEBD59; --cef-medium-blue: #2D5A8A;
  --ink: #333; --muted: #6b6b6b; --line: #dcdfe4; --bg: #F5F5F5; --ok: #1e7b45; --err: #a32020;
  --serif: 'Georgia', 'Times New Roman', serif; --sans: 'Arial', 'Helvetica Neue', sans-serif;
  --display: 'Cinzel', 'Georgia', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--cef-medium-blue); }
:focus-visible { outline: 3px solid var(--cef-blue); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cef-navy); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header and footer */
.app-header { background: #fff; border-bottom: 4px solid var(--cef-gold); position: sticky; top: 0; z-index: 10; }
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.brand img { width: 110px; height: auto; display: block; }
#app-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
#app-nav a, #app-nav button { font: 600 14px var(--sans); color: var(--cef-navy); text-decoration: none; padding: 8px 10px;
  border-radius: 6px; background: none; border: 0; cursor: pointer; }
#app-nav a.cur { background: var(--cef-light-blue); }
#app-nav a:hover, #app-nav button:hover { background: var(--bg); }
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
main:focus { outline: none; }
.app-footer { background: var(--cef-navy); color: #dbe6f2; font-size: 14px; padding: 16px 0; }
.app-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-footer a { color: #fff; }

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--cef-navy); line-height: 1.25; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 18px 0 6px; }
.eyebrow { font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cef-medium-blue); margin: 0 0 4px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 16px 0; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card.gold { border-top: 4px solid var(--cef-gold); }
.card.blue { border-top: 4px solid var(--cef-blue); }
.notice { background: var(--cef-peach); border-left: 4px solid var(--cef-gold); padding: 12px 14px; border-radius: 6px; margin: 12px 0; }
.notice.err { background: #fdecec; border-left-color: var(--err); }
.notice.ok { background: #e8f5ec; border-left-color: var(--ok); }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 4px; color: var(--cef-navy); }
.field { margin: 0 0 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: 16px var(--sans); padding: 10px 11px; border: 1px solid #b9c0ca; border-radius: 6px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.check { display: block; position: relative; padding-left: 30px; margin: 10px 0; font-weight: 400; color: var(--ink); font-size: 15px; }
.check input { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; font-size: 14px; color: var(--cef-navy); margin-bottom: 4px; }
.code-input { font-size: 26px !important; letter-spacing: .4em; text-align: center; font-family: var(--sans); }

/* Buttons */
.btn { display: inline-block; font: 700 15px var(--sans); padding: 11px 18px; border-radius: 6px; border: 2px solid var(--cef-navy);
  background: var(--cef-navy); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cef-medium-blue); border-color: var(--cef-medium-blue); color: #fff; }
.btn.gold { background: var(--cef-gold); border-color: var(--cef-gold); color: #1b1b1b; }
.btn.gold:hover { background: var(--cef-light-gold); border-color: var(--cef-light-gold); }
.btn.ghost { background: #fff; color: var(--cef-navy); }
.btn.ghost:hover { background: var(--bg); color: var(--cef-navy); }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn[disabled] { opacity: .55; cursor: wait; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.linkbtn { background: none; border: 0; color: var(--cef-medium-blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Steps */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0 18px; flex-wrap: wrap; }
.steps li { font: 600 13px var(--sans); padding: 6px 10px; border-radius: 99px; background: #e6e9ee; color: var(--muted); }
.steps li.cur { background: var(--cef-navy); color: #fff; }
.steps li.done { background: var(--cef-light-blue); color: var(--cef-navy); }

/* Documents (Profession, Code) */
.doc { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 18px; background: #fffdf8;
  font-family: var(--serif); font-size: 16px; }
.doc h1 { font-size: 22px; } .doc h2 { font-size: 18px; margin-top: 20px; } .doc h3 { font-size: 16px; }
.doc blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--cef-gold); color: #444; font-style: italic; }

/* Tables and lists */
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
table.list th, table.list td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover { background: #f3f7fb; }
table.compare { font-size: 14px; min-width: 640px; }
table.compare th, table.compare td { padding: 8px; }
table.compare thead th { color: var(--cef-navy); font-size: 13px; text-align: center; vertical-align: bottom; }
table.compare thead th:first-child { text-align: left; }
table.compare .sel { background: var(--cef-peach); }
table.compare thead th.sel { border-top: 4px solid var(--cef-gold); }
.pill { display: inline-block; font: 700 12px var(--sans); padding: 2px 9px; border-radius: 99px; background: #e6e9ee; color: var(--ink); }
.pill.blue { background: var(--cef-light-blue); color: var(--cef-navy); }
.pill.gold { background: var(--cef-peach); color: #7a5300; }
.pill.ok { background: #dff2e5; color: var(--ok); }
.pill.err { background: #fbe1e1; color: var(--err); }
dl.facts { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; margin: 0; }
dl.facts dt { font-weight: 600; color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; }
@media (max-width: 640px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 8px; } }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--cef-navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }
