/* Jamaica C5 Form Online — refined institutional system.
   Ivory paper, deep green, muted gold, elegant serif headings, certificate-style
   rules and a seal. Calm and official — deliberately unlike the bolder siblings. */

:root {
  --ink: #1A2420;
  --green: #0B5D3B;
  --green-deep: #08442B;
  --gold: #C79A3A;
  --gold-deep: #A97F26;
  --ivory: #FBFAF5;
  --cream: #F4F0E4;
  --paper: #ffffff;
  --line: #E4DFCF;
  --muted: #5E655C;
  --shell: 1100px;
  --read: 700px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 0 14px 40px rgba(26,36,32,.10);
  --shadow-sm: 0 4px 16px rgba(26,36,32,.07);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 22px; }
.shell--read { max-width: var(--read); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 6px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1em; }

.eyebrow { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 1em; }

/* certificate rule with a centred diamond */
.rule { position: relative; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); margin: 22px 0; max-width: 220px; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.rule--center { margin-left: auto; margin-right: auto; }

.hd { position: relative; padding-top: 16px; margin-bottom: 1em; }
.hd::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--gold); }
.hd--center { text-align: center; padding-top: 20px; }
.hd--center::before { left: 50%; transform: translateX(-50%); }
.hd__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: .6em; }
.more { font-family: var(--sans); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; color: var(--green); }
.more:hover { text-decoration: underline; }

/* ---------- ribbon + masthead ---------- */
.ribbon { background: var(--green-deep); color: #eef3ee; font-size: .77rem; }
.ribbon__row { display: flex; align-items: center; gap: 9px; min-height: 34px; }
.ribbon__seal { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }

.mast { position: sticky; top: 0; z-index: 40; background: rgba(251,250,245,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mast__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.crest { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); min-width: 0; }
.crest__mark { flex: none; }
.crest__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.crest__name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.crest__name b { color: var(--green); font-weight: 600; }
.crest__sub { font-family: var(--sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: var(--sans); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; padding: 8px 11px; border-radius: 7px; }
.nav a:hover { background: var(--cream); }
.nav__ghost { border: 1px solid var(--line); }
.nav__cta { background: var(--green); color: #fff !important; }
.nav__cta:hover { background: var(--green-deep) !important; }
.nav__lang { color: var(--gold-deep) !important; font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 8px; border: 1.5px solid transparent; font-size: .98rem; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(11,93,59,.24); }
.btn--solid:hover { background: var(--green-deep); }
.btn--quiet { background: transparent; color: var(--green); border-color: var(--gold); }
.btn--quiet:hover { background: #fff; box-shadow: var(--shadow-sm); }

/* ---------- hero ---------- */
.hero { background:
    radial-gradient(120% 80% at 50% -10%, #fff 0%, var(--ivory) 60%),
    var(--ivory);
  border-bottom: 1px solid var(--line); text-align: center; }
.hero__inner { padding: 68px 22px 60px; max-width: 780px; }
.hero__crest { display: block; width: 62px; height: 62px; margin: 0 auto 22px;
  background: url("/assets/img/seal/seal.svg") center/contain no-repeat; }
.hero .eyebrow { text-align: center; }
.hero__h1 { font-size: clamp(2.1rem, 4.8vw, 3.1rem); text-wrap: balance; margin-bottom: .1em; }
.hero__lead { font-size: 1.14rem; color: #3d443b; max-width: 620px; margin: 0 auto 1.8em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- notice card (at a glance) ---------- */
.notice { margin-top: -34px; position: relative; z-index: 2; padding-bottom: 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.card::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--green) 0 55%, var(--gold) 55% 100%); }
.card__head { padding: 26px 30px 6px; }
.card__label { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.card__title { margin: 6px 0 0; font-size: 1.5rem; }
.ledger { margin: 14px 0 0; padding: 0 30px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ledger__row { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.ledger__row dt { flex: none; width: 118px; font-family: var(--sans); font-weight: 700; font-size: .92rem; color: var(--green); }
.ledger__row dd { margin: 0; font-size: .96rem; color: var(--ink); }

/* ---------- bands ---------- */
.band { padding: 60px 0; }
.band--ivory { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; padding: 8px; }
.step__n { font-family: var(--serif); font-size: 2rem; color: var(--gold); display: block; margin-bottom: 6px; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* topics + related */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.topic a { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; transition: transform .1s, box-shadow .15s, border-color .15s; }
.topic a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.topic__h { font-family: var(--serif); font-weight: 600; font-size: 1.24rem; }
.topic__p { color: var(--muted); font-size: .96rem; }
.topic__go { margin-top: auto; font-family: var(--sans); font-weight: 700; font-size: .84rem; color: var(--green); letter-spacing: .02em; }

/* list (register) */
.list { list-style: none; margin: 0; padding: 0; }
.list--index { border-top: 1px solid var(--line); }
.list__item a { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 20px; align-items: baseline; text-decoration: none; color: var(--ink); padding: 22px 6px; border-bottom: 1px solid var(--line); transition: background .12s; }
.list__item a:hover { background: rgba(255,255,255,.6); }
.list--index .list__item a { align-items: start; }
.list__n { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); font-weight: 600; }
.list__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list__tag { font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.list__h { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.list__p { color: var(--muted); font-size: .95rem; }
.list__meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.list__date { font-family: var(--sans); font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* ---------- prose ---------- */
.prose { font-size: 1.06rem; color: #2b322c; }
.prose > h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose > h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--green); text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 10px 10px 0; box-shadow: var(--shadow-sm); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.prose th { background: var(--cream); font-family: var(--sans); font-weight: 700; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 6px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 1.4rem; color: var(--gold-deep); font-family: var(--sans); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 18px; color: var(--muted); }
.faq__a p { margin: 0; }

/* seal CTA */
.seal-cta { margin-top: 34px; background: var(--green); color: #fff; border-radius: 14px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; box-shadow: var(--shadow); }
.seal-cta strong { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; display: block; }
.seal-cta p { margin: 5px 0 0; color: #d7e6dd; font-size: .92rem; max-width: 48ch; }
.seal-cta .btn--solid { background: var(--gold); color: var(--ink); box-shadow: none; }
.seal-cta .btn--solid:hover { background: var(--gold-deep); color: #fff; }

/* ---------- page head / doc ---------- */
.pagehead { background: var(--ivory); text-align: center; padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.pagehead .eyebrow { text-align: center; }
.pagehead__crest { display: block; width: 54px; height: 54px; margin: 0 auto 18px; background: url("/assets/img/seal/seal.svg") center/contain no-repeat; }
.pagehead__lead { font-size: 1.1rem; color: #3d443b; max-width: 600px; margin: 0 auto; }

.doc { padding-top: 40px; }
.crumbs { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--green); text-decoration: none; }
.doc__head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 32px; }
.doc__head .eyebrow { text-align: center; }
.doc__head .rule { margin-left: auto; margin-right: auto; }
.doc__lead { font-size: 1.14rem; color: var(--muted); max-width: 600px; margin: 0 auto .7em; }
.doc__meta { font-family: var(--sans); font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0; }
.doc__faq { margin-top: 42px; }
.doc__faq h2 { position: relative; padding-top: 14px; }
.doc__faq h2::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--gold); }
.doc__back { margin-top: 26px; font-family: var(--sans); font-weight: 700; }
.doc__back a { text-decoration: none; }

/* form card */
.formcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.formcard__note { margin: 18px 0 0; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 15px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c7cec7; padding: 56px 0 26px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot__name { font-family: var(--serif); color: #fff; font-size: 1.2rem; display: inline-block; margin-bottom: 12px; }
.foot__name b { color: var(--gold); font-weight: 600; }
.foot__about p { font-size: .9rem; max-width: 44ch; }
.foot__official a { color: var(--gold); }
.foot__col h2 { font-family: var(--sans); color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: 9px; }
.foot__col a { color: #c7cec7; text-decoration: none; font-size: .92rem; }
.foot__col a:hover { color: var(--gold); }
.foot__base { border-top: 1px solid #2c352f; margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: #8a938b; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 660px) {
  body { font-size: 16px; }
  .nav__ghost { display: none; }
  .ledger, .topics { grid-template-columns: 1fr; gap: 0; }
  .topics { gap: 16px; }
  .ledger { padding-inline: 22px; }
  .list__item a { grid-template-columns: auto 1fr; }
  .list__date { grid-column: 2; }
  .seal-cta { flex-direction: column; align-items: flex-start; }
  .notice { margin-top: -24px; }
}
@media (max-width: 420px) {
  .crest__sub { display: none; }
  .ledger__row { flex-direction: column; gap: 2px; }
  .ledger__row dt { width: auto; }
}
