/* Singapore software funding page. Keep all additions scoped to this page. */
.grant-page {
    --grant-ink: #0a1628;
    --grant-muted: #526176;
    --grant-green: #a9d03f;
    --grant-surface: #f4f7f8;
    background: #fff;
    color: var(--grant-ink);
}
.grant-page main { overflow: clip; }
.grant-page section[id] { scroll-margin-top: 100px; }
.grant-page h1, .grant-page h2, .grant-page h3 { color: inherit; }
.grant-page h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -0.035em; margin-bottom: 22px; }
.grant-page h3 { line-height: 1.35; }
.grant-page p { line-height: 1.75; }
.grant-page main a:focus-visible, .grant-page main summary:focus-visible, .grant-page main button:focus-visible { outline: 3px solid #729510; outline-offset: 5px; }
.grant-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--grant-muted); margin-bottom: 48px; }
.grant-breadcrumb a { color: inherit; }
.grant-breadcrumb a:hover { text-decoration: underline; }
.grant-hero { background: var(--grant-surface); padding: 112px 0 76px; }
.grant-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.grant-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 20px; color: #506c10; }
.grant-eyebrow span { margin: 0 9px; color: #9ba783; }
.grant-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.75rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 26px; }
.grant-hero h1 span { color: #587c0c; }
.grant-lead { color: var(--grant-muted); font-size: 1.04rem; max-width: 560px; }
.grant-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.grant-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; background: #a9d03f; color: #0a1628; border: 1px solid #a9d03f; border-radius: 6px; padding: 14px 20px; font-size: .88rem; font-weight: 700; line-height: 1.4; text-align: center; transition: background .2s, border-color .2s; }
.grant-button:hover { background: #b9df53; border-color: #b9df53; color: #0a1628; }
.grant-text-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: .88rem; font-weight: 600; text-underline-offset: 4px; }
.grant-text-link:hover { text-decoration: underline; }
.grant-hero-note { margin-top: 22px; font-size: .78rem; color: var(--grant-muted); }
.grant-hero-image { margin: 0; background: #0e2138; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 42px #0a162812; }
.grant-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 1017; object-fit: cover; }
.grant-hero-image figcaption { padding: 25px 28px; display: grid; gap: 6px; color: #c6d0df; font-size: .76rem; }
.grant-hero-image figcaption strong { color: #fff; font-size: 1.35rem; font-weight: 600; }
.grant-funding { background: #0a1628; color: #e1e7ee; padding: 66px 0; }
.grant-funding-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: start; }
.grant-funding .grant-eyebrow, .grant-contact .grant-eyebrow { color: #b8dc5b; }
.grant-funding h2 { color: #fff; }
.grant-funding p { font-size: .93rem; margin-bottom: 16px; }
.grant-funding .grant-text-link { color: #c7e983; margin-top: 3px; }
.grant-funding .grant-checked { color: #adb9ca; font-size: .73rem; margin: 24px 0 0; }
.grant-checked a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.grant-reference { border: 1px solid #42506a; background: #13243a; border-radius: 10px; padding: 30px; }
.grant-reference-label { display: block; font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; color: #b7c6d7; margin-bottom: 18px; }
.grant-reference h3 { font-size: 1.65rem; color: #fff; margin-bottom: 10px; }
.grant-button-outline { background: transparent; color: #d8eeac; border-color: #8daa4b; margin: 7px 0 16px; }
.grant-button-outline:hover { background: #a9d03f; color: #0a1628; }
.grant-reference .grant-reference-note { font-size: .76rem; color: #b7c6d7; margin: 0; }
.grant-section { padding: 80px 0; }
.grant-section-heading { max-width: 720px; margin-bottom: 36px; }
.grant-section-heading > p:last-child { color: var(--grant-muted); }
.grant-modules { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dce2e7; border-radius: 10px; overflow: hidden; }
.grant-modules article { padding: 28px; }
.grant-modules article + article { border-left: 1px solid #dce2e7; }
.grant-module-number { font-size: .75rem; font-weight: 700; color: #63851c; display: block; margin-bottom: 30px; }
.grant-modules h3 { font-size: 1.12rem; margin-bottom: 12px; }
.grant-modules p { color: var(--grant-muted); font-size: .86rem; margin: 0; }
.grant-section-note { color: var(--grant-muted); font-size: .8rem; margin-top: 22px; max-width: 900px; }
.grant-section-alt { background: var(--grant-surface); }
.grant-steps { list-style: none; counter-reset: grant-step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0; margin: 0; }
.grant-steps li { counter-increment: grant-step; border-top: 1px solid #ccd5dc; padding-top: 20px; }
.grant-steps li::before { content: "0" counter(grant-step); color: #587c0c; display: block; font-size: .85rem; font-weight: 700; margin-bottom: 22px; }
.grant-steps h3 { font-size: 1rem; margin-bottom: 12px; }
.grant-steps p { font-size: .86rem; color: var(--grant-muted); margin-bottom: 14px; }
.grant-steps a { color: #425f08; font-size: .8rem; font-weight: 600; text-underline-offset: 4px; }
.grant-steps a:hover { text-decoration: underline; }
.grant-timing { border-left: 3px solid #809b35; background: #eaf0e0; padding: 20px 24px; margin-top: 38px; }
.grant-timing strong { font-size: .88rem; }
.grant-timing p { font-size: .85rem; margin: 5px 0 0; color: #405137; }
.grant-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.grant-info-grid > div > p:not(.grant-eyebrow) { color: var(--grant-muted); font-size: .92rem; margin-bottom: 18px; }
.grant-faq details { border-bottom: 1px solid #dce2e7; padding: 22px 0; }
.grant-faq details:first-child { border-top: 1px solid #dce2e7; }
.grant-faq summary { font-weight: 600; font-size: .94rem; cursor: pointer; padding-right: 12px; }
.grant-faq details p { color: var(--grant-muted); font-size: .86rem; margin: 14px 0 0; }
.grant-contact { color: #fff; background: #152a40; padding: 70px 0; }
.grant-contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.grant-contact h2 { max-width: 550px; }
.grant-contact p:not(.grant-eyebrow) { color: #c5d0dd; font-size: .93rem; }
.grant-person { display: flex; gap: 24px; align-items: flex-start; border-left: 1px solid #536478; padding-left: 36px; }
.grant-person img { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.grant-person h3 { color: #fff; font-size: 1.05rem; margin: 0 0 6px; }
.grant-person p { font-size: .76rem !important; margin-bottom: 18px; }
.grant-person address { color: #c5d0dd; font-size: .8rem; font-style: normal; line-height: 1.8; }
.grant-footer { padding-top: 35px; }
.grant-footer-top { display: flex; gap: 28px; align-items: center; justify-content: space-between; padding-bottom: 30px; }
.grant-footer-top .nav-logo img { width: 160px; height: auto; }
.grant-footer-top p { font-size: .82rem; color: #b5c0cf; margin: 0; }
.grant-footer-top > a:last-child { font-size: .82rem; color: #c7e983; }
.grant-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.dark-mode.grant-page { --grant-ink: #e2e8f0; --grant-muted: #acbacb; --grant-surface: #111f31; background: #0d192a; }
body.dark-mode.grant-page .grant-eyebrow { color: #b8dc5b; }
body.dark-mode.grant-page .grant-hero h1 span, body.dark-mode.grant-page .grant-module-number, body.dark-mode.grant-page .grant-steps li::before, body.dark-mode.grant-page .grant-steps a { color: #b8dc5b; }
body.dark-mode.grant-page .grant-modules, body.dark-mode.grant-page .grant-modules article + article, body.dark-mode.grant-page .grant-faq details, body.dark-mode.grant-page .grant-steps li { border-color: #34465e; }
body.dark-mode.grant-page .grant-timing { background: #24351e; }
body.dark-mode.grant-page .grant-timing p { color: #c0cfb5; }
@media (max-width: 1100px) {
    .grant-hero-grid { gap: 35px; }
    .grant-funding-grid, .grant-info-grid, .grant-contact-grid { gap: 40px; }
    .grant-modules article { padding: 24px 20px; }
}
@media (max-width: 800px) {
    .grant-hero { padding: 100px 0 48px; }
    .grant-breadcrumb { margin-bottom: 30px; }
    .grant-hero-grid, .grant-funding-grid, .grant-info-grid, .grant-contact-grid { grid-template-columns: 1fr; gap: 35px; }
    .grant-hero h1 { font-size: clamp(2.25rem, 6.4vw, 3.25rem); }
    .grant-hero-image { max-width: 600px; }
    .grant-funding, .grant-contact { padding: 48px 0; }
    .grant-section { padding: 52px 0; }
    .grant-modules, .grant-steps { grid-template-columns: repeat(2, 1fr); }
    .grant-modules article:nth-child(3) { border-left: 0; }
    .grant-modules article:nth-child(n+3) { border-top: 1px solid #dce2e7; }
    .grant-person { border-left: 0; border-top: 1px solid #536478; padding: 28px 0 0; }
    .grant-footer-top { flex-wrap: wrap; }
    body.dark-mode.grant-page .grant-modules article:nth-child(n+3) { border-top-color: #34465e; }
}
@media (max-width: 480px) {
    .grant-hero h1 { font-size: 2.25rem; }
    .grant-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .grant-reference { padding: 24px; }
    .grant-reference .grant-button { width: 100%; }
    .grant-modules, .grant-steps { grid-template-columns: 1fr; }
    .grant-modules article + article { border-left: 0; border-top: 1px solid #dce2e7; }
    .grant-module-number { margin-bottom: 12px; }
    .grant-steps { gap: 24px; }
    .grant-person { gap: 18px; }
    .grant-person img { width: 65px; height: 65px; }
    .grant-footer-top { align-items: flex-start; flex-direction: column; gap: 16px; }
    body.dark-mode.grant-page .grant-modules article + article { border-top-color: #34465e; }
}

.grant-person .grant-person-links { margin: 16px 0 0; overflow-wrap: anywhere; }
.grant-person-links a { color: #d8eeac; text-underline-offset: 3px; }
.grant-person-links a:hover { text-decoration: underline; }
