/* Donegal Trust Center (public). Layered on site.css: dark navy hero under the shared fixed
   header, ivory reading sections, gold accents, forest actions. Statuses are always stated in
   words, never by colour alone. */
.trust-page {
  --t-paper: #f3f0e9;
  --t-paper-2: #eae6dd;
  --t-card: #fffdfa;
  --t-ink: #19312b;
  --t-muted: #5d6c6b;
  --t-rule: #dad6ce;
  --t-gold: #9b7a38;
  --t-gold-soft: #d7bc78;
  --t-forest: #173f3a;
  --t-forest-2: #24574b;
  --t-link: #18614a;
  background: var(--t-paper);
}
.trust-page main { color: var(--t-ink); background: var(--t-paper); }
.trust-page main a:focus-visible,
.trust-page main button:focus-visible,
.trust-page main input:focus-visible { outline: 3px solid #ab7c2e; outline-offset: 3px; }
.trust-page main [hidden] { display: none !important; }
.trust-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trust-skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; border-radius: 8px; background: var(--ivory); color: #0d1118; font-weight: 700; }
.trust-skip:focus { top: 12px; }

/* Hero */
.trust-hero {
  position: relative; overflow: hidden; color: var(--ivory);
  padding: clamp(128px, 15vw, 170px) 0 clamp(60px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 85% 10%, rgba(175,142,69,.16), transparent 36%),
    radial-gradient(ellipse at 7% 100%, rgba(35,86,78,.26), transparent 42%),
    linear-gradient(140deg, #101929, #0b111a 60%);
  border-bottom: 1px solid rgba(215,188,120,.16);
}
.trust-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .2; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(#000, transparent 95%); mask-image: linear-gradient(#000, transparent 95%);
}
.trust-hero__ring { position: absolute; right: -80px; top: 90px; width: 360px; height: 360px; border: 1px solid rgba(215,188,120,.12); border-radius: 50%; pointer-events: none; }
.trust-hero__ring::before { content: ''; position: absolute; inset: 46px; border: 1px solid rgba(215,188,120,.1); border-radius: 50%; }
.trust-hero .shell { position: relative; }
.trust-hero h1 { font-size: clamp(2.9rem, 6.8vw, 5.3rem); line-height: 1.04; margin: 18px 0 20px; max-width: 880px; }
.trust-hero h1 em { color: var(--gold-soft); }
.trust-hero .lead { max-width: 730px; color: #cbd1dc; }
.trust-hero--inner h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.trust-chips li { border: 1px solid rgba(215,188,120,.3); color: #cfd5dc; padding: 7px 12px; border-radius: 100px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* Section sub-navigation (sticky under the shared header on wide screens, scrollable on phones) */
.trust-subnav { background: #0f1724; border-bottom: 1px solid rgba(215,188,120,.18); }
.trust-subnav .shell { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding: 10px 0; }
.trust-subnav a { flex: 0 0 auto; color: #d3d8e1; font-size: .84rem; font-weight: 600; padding: 9px 13px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.trust-subnav a:hover { color: var(--gold-soft); }
.trust-subnav a[aria-current="page"] { color: #f3e0aa; border-color: rgba(215,188,120,.45); background: rgba(215,188,120,.08); }
.trust-subnav a.trust-subnav__verify { margin-left: auto; color: #0d1118; background: var(--gold-soft); }
.trust-subnav a.trust-subnav__verify:hover { background: #e8ce8c; color: #0d1118; }
.trust-subnav a:focus-visible { outline: 3px solid #e5c46e; outline-offset: 2px; }

/* Verify panel */
.trust-verify {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px;
  margin-top: 38px; padding: clamp(22px, 3vw, 32px); border-radius: 18px;
  background: #f5f0e6; color: var(--t-ink, #19312b); border: 1px solid #ded1af; box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.trust-verify__intro { padding-right: 22px; border-right: 1px solid #d6d1c7; }
.trust-verify .eyebrow { color: #8e7239; }
.trust-verify h2 { font: normal clamp(1.6rem, 3vw, 1.9rem)/1.15 Georgia, "Times New Roman", serif; margin: 10px 0 10px; color: #19312b; }
.trust-verify p { color: #5e6a66; font-size: .92rem; line-height: 1.65; margin: 0; }
.trust-verify__form { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.trust-verify__form label { font-weight: 700; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: #19312b; }
.trust-verify__line { display: flex; gap: 9px; }
.trust-verify__line input {
  flex: 1; min-width: 0; width: 100%; padding: 14px 13px; border-radius: 8px; border: 1px solid #b9c2ba; background: #fff; color: #19312b;
  font: 600 1rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase;
}
.trust-verify__line input::placeholder { color: #8b958f; letter-spacing: .04em; }
.trust-verify__line input[aria-invalid="true"] { border-color: #9b3d30; }
.trust-verify__small { font-size: .78rem !important; color: #5f6b66 !important; }
.trust-verify__error { font-size: .85rem !important; color: #9b3d30 !important; font-weight: 600; }
.trust-verify__error:empty { display: none; }
.trust-verify__levels { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #d6d1c7; }
.trust-verify__levels-title { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8e7239; }
.trust-verify__levels .trust-verify__small { margin-top: 12px; }
.trust-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 12px 0 0; }
.trust-levels div { padding: 10px 12px; border-left: 3px solid #b7923a; background: #fffaf0; border-radius: 0 8px 8px 0; }
.trust-levels dt { font-weight: 700; font-size: .85rem; color: #19312b; }
.trust-levels dd { margin: 2px 0 0; font-size: .84rem; color: #5e6a66; line-height: 1.5; }

/* Buttons used inside light sections */
.trust-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 750; font-size: .88rem; white-space: nowrap; cursor: pointer; }
.trust-btn--primary { background: var(--t-forest, #173f3a); color: #fff; }
.trust-btn--primary:hover { background: var(--t-forest-2, #24574b); }
.trust-btn--outline { border-color: #1f5c48; color: #155c42; background: transparent; }
.trust-btn--outline:hover { background: #e2eee8; }
.trust-link { display: inline-block; color: var(--t-link); font-weight: 700; font-size: .86rem; }
.trust-link:hover { text-decoration: underline; }

/* Sections */
.trust-section { padding: clamp(56px, 7vw, 84px) 0; }
.trust-section--alt { background: var(--t-paper-2); border-block: 1px solid #ddd6c9; }
.trust-section--soft { background: #f7f5ef; }
.trust-section--dark { background: #10202b; color: var(--ivory); }
.trust-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.trust-head .eyebrow, .trust-section .eyebrow { color: var(--t-gold); }
.trust-section--dark .eyebrow { color: var(--gold-soft); }
.trust-head h2, .trust-h2 { font: normal clamp(2rem, 4vw, 3rem)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 10px 0 0; }
.trust-head p { max-width: 440px; margin: 0; color: var(--t-muted); font-size: .92rem; }
.trust-section--dark .trust-head p { color: #b8c5c9; }
.trust-prose { max-width: 760px; }
.trust-prose p, .trust-prose li { color: #44544f; font-size: 1rem; line-height: 1.75; }
.trust-prose h2 { font: normal clamp(1.6rem, 3vw, 2.1rem)/1.2 Georgia, serif; margin: 40px 0 10px; color: var(--t-ink); }
.trust-prose h2:first-child { margin-top: 0; }
.trust-prose ul { padding-left: 1.2em; }
.trust-prose a { color: var(--t-link); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.trust-grid { display: grid; gap: 18px; }
.trust-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 25px; border: 1px solid var(--t-rule); background: var(--t-card); border-radius: 15px; box-shadow: 0 10px 25px rgba(10,30,20,.035); min-width: 0; }
.trust-card h3 { font: normal 1.5rem/1.2 Georgia, "Times New Roman", serif; margin: 6px 0 0; color: var(--t-ink); }
.trust-card p { color: #5f6e6b; font-size: .9rem; line-height: 1.65; margin: 0; }
.trust-card .trust-link { margin-top: auto; padding-top: 10px; }
.trust-index { color: #a7853c; font-size: .74rem; letter-spacing: .11em; font-weight: 800; text-transform: uppercase; }
.trust-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-section--dark .trust-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.13); box-shadow: none; }
.trust-section--dark .trust-card h3 { color: var(--ivory); }
.trust-section--dark .trust-card p { color: #bcc9c9; }
.trust-section--dark .trust-index { color: var(--gold-soft); }

/* Status labels */
.trust-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; padding: 5px 11px; font-size: .74rem; font-weight: 750; white-space: nowrap; background: #f2ebdb; color: #805d1b; }
.trust-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.trust-status--published { background: #e3f1e8; color: #1d5a3c; }
.trust-status--request { background: #e8eff0; color: #335157; }
.trust-status--preparation { background: #f2ebdb; color: #7c5a19; }
.trust-status--planned { background: #eceae4; color: #55605c; }

/* Programme status list */
.trust-status-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--t-rule); border-radius: 15px; background: var(--t-card); overflow: hidden; }
.trust-status-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid #ebe8e2; }
.trust-status-list li:last-child { border-bottom: 0; }
.trust-status-list strong { display: block; font-size: .95rem; }
.trust-status-list small { display: block; color: #6b7873; font-size: .82rem; margin-top: 2px; }

/* Document catalogue */
.trust-docs { background: #fff; border: 1px solid #dbd9d1; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(6,17,25,.08); }
.trust-docs__tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 18px; padding: 20px 24px; background: #f8f7f1; border-bottom: 1px solid #e4e0d8; }
.trust-docs__tools h2, .trust-docs__tools h3 { margin: 0; font: normal 1.5rem Georgia, serif; color: var(--t-ink); }
.trust-docs__search { min-width: 240px; padding: 11px 14px; border: 1px solid #c9cfc8; border-radius: 8px; background: #fff; color: var(--t-ink); font-size: .92rem; }
.trust-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-bottom: 1px solid #ebe8e2; background: #fcfbf7; }
.trust-filters button { border: 1px solid #ccd2cb; background: #fff; color: #33463f; border-radius: 999px; padding: 7px 13px; font-size: .8rem; font-weight: 650; cursor: pointer; }
.trust-filters button[aria-pressed="true"] { background: var(--t-forest); border-color: var(--t-forest); color: #fff; }
.trust-doc { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #ebe8e2; }
.trust-doc:last-of-type { border-bottom: 0; }
.trust-doc[hidden] { display: none !important; }
.trust-doc .trust-status { justify-self: start; }
.trust-doc strong { display: block; font-size: .95rem; color: var(--t-ink); }
.trust-doc small { display: block; margin-top: 3px; color: #6f7b75; font-size: .82rem; line-height: 1.5; }
.trust-doc__cat { color: #8b713d; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.trust-doc__action { justify-self: end; font-size: .84rem; font-weight: 750; color: var(--t-link); text-align: right; }
a.trust-doc__action:hover { text-decoration: underline; }
.trust-doc__action--none { color: #7d8580; font-weight: 600; }
.trust-docs__empty { padding: 24px; color: #5d6c6b; }
.trust-docs__empty[hidden] { display: none; }
.trust-docs__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--t-muted); font-size: .84rem; }
.trust-docs__legend li { display: flex; align-items: center; gap: 8px; }

/* Steps / method */
.trust-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; margin: 0; padding: 0; list-style: none; }
.trust-step { padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.025); }
.trust-step h3 { font: normal 1.45rem Georgia, serif; margin: 12px 0 8px; color: var(--ivory); }
.trust-step p { color: #bcc9c9; font-size: .88rem; margin: 0; line-height: 1.7; }
.trust-step .trust-index { color: var(--gold-soft); }
.trust-note { margin-top: 24px; padding: 18px 22px; border-left: 3px solid var(--gold-soft); background: rgba(255,255,255,.05); color: #cad4d3; font-size: .92rem; line-height: 1.65; }
.trust-note strong { color: #f4f0e7; }
.trust-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.trust-section--dark .trust-links a { color: #e5cc90; font-weight: 650; font-size: .9rem; }
.trust-section--dark .trust-links a:hover { text-decoration: underline; }

/* Readiness Matrix preview */
.trust-matrix { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 38px; align-items: start; }
.trust-matrix__panel { background: #fff; border: 1px solid #dcded7; border-radius: 17px; padding: clamp(22px, 3vw, 30px); box-shadow: 0 20px 38px rgba(10,30,25,.055); }
.trust-matrix__panel h3 { font: normal 1.8rem Georgia, serif; margin: 6px 0 4px; color: var(--t-ink); }
.trust-matrix__sub { font-size: .84rem; color: #667571; margin: 0 0 14px; }
.trust-measure { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e8e8e4; }
.trust-measure:last-of-type { border-bottom: 0; }
.trust-measure strong { font-size: .95rem; color: var(--t-ink); }
.trust-measure small { display: block; color: #667571; font-size: .8rem; }
.trust-pending { font-size: .76rem; color: #7c5a19; background: #f7f0df; padding: 6px 11px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.trust-inset { padding: 14px 16px; margin-top: 18px; border-left: 3px solid #b19250; background: #f9f6ed; font-size: .84rem; color: #5d6c65; line-height: 1.6; }
.trust-domains { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.trust-domains li { border: 1px solid #ccc6b8; color: #665a48; background: #f7f4ea; border-radius: 100px; padding: 5px 11px; font-size: .78rem; }

/* Closing call to action */
.trust-final { padding: clamp(52px, 6vw, 72px) 0; background: #f1eee6; border-top: 1px solid #e0dcd2; }
.trust-final__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: center; }
.trust-final h2 { font: normal clamp(1.8rem, 3.4vw, 2.4rem)/1.15 Georgia, serif; margin: 12px 0 14px; color: var(--t-ink); }
.trust-final p { color: #5f6e69; max-width: 620px; margin: 0 0 20px; }
.trust-final__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-callout { border: 1px solid #d7c49a; background: #fffdf7; padding: 24px; border-radius: 15px; }
.trust-callout span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #8b713d; text-transform: uppercase; }
.trust-callout strong { display: block; font: normal 1.4rem Georgia, serif; margin: 8px 0 8px; color: var(--t-ink); }
.trust-callout p { font-size: .86rem; margin: 0; color: #5f6e69; }

@media (max-width: 980px) {
  .trust-verify { grid-template-columns: 1fr; }
  .trust-verify__intro { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid #d6d1c7; }
  .trust-grid--3, .trust-grid--2, .trust-steps, .trust-matrix, .trust-final__grid { grid-template-columns: 1fr; }
  .trust-final__grid { gap: 24px; }
  .trust-head { display: block; }
  .trust-head p { margin-top: 14px; }
  .trust-doc { grid-template-columns: minmax(0, 1fr) 130px 120px; }
}
@media (max-width: 650px) {
  .trust-hero { padding-top: 118px; }
  .trust-hero .lead { font-size: 1rem; }
  .trust-hero__ring { display: none; }
  .trust-chips { display: none; }
  .trust-verify { margin-top: 28px; }
  .trust-levels { grid-template-columns: 1fr; }
  .trust-verify__line { flex-direction: column; }
  .trust-verify__line .trust-btn { width: 100%; }
  .trust-card { padding: 22px 20px; }
  .trust-docs__tools { padding: 18px; }
  .trust-docs__search { width: 100%; min-width: 0; }
  .trust-filters { padding: 12px 18px; flex-wrap: nowrap; overflow-x: auto; }
  .trust-filters button { flex: 0 0 auto; }
  .trust-doc { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 18px; }
  .trust-doc__action { justify-self: start; text-align: left; }
  .trust-status-list li { grid-template-columns: 1fr; padding: 15px 18px; }
  .trust-status-list .trust-status { justify-self: start; }
  .trust-subnav a.trust-subnav__verify { margin-left: 0; }
  .trust-final__actions .trust-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .trust-page * { scroll-behavior: auto !important; } }
