@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap");

:root {
    --ink: #251b16;
    --muted: #665d58;
    --paper: #fffaf2;
    --surface: #ffffff;
    --line: #e6d8c5;
    --saffron: #d76a15;
    --red: #8f1f1b;
    --green: #1f6b57;
    --gold: #c69634;
    --shadow: 0 18px 44px rgba(52, 33, 20, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 250, 242, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    background: var(--red);
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 14px;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a,
.nav-toggle,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--red);
    background: #fff1de;
}

.admin-link,
.button {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.button-secondary {
    color: var(--green);
    background: #eef8f2;
    border-color: #b8d9c9;
}

.button-disabled {
    color: var(--muted);
    background: #f0e7da;
    border-color: var(--line);
    cursor: not-allowed;
}

.nav-toggle {
    display: none;
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 350px;
    height: 350px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 50%, rgba(215, 106, 21, 0.22), transparent 34%),
        linear-gradient(90deg, #2b0c08 0%, #4b160d 48%, #24130e 100%);
}

.hero img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(37, 27, 22, 0.82), rgba(37, 27, 22, 0.32) 52%, rgba(37, 27, 22, 0.08)), linear-gradient(0deg, rgba(37, 27, 22, 0.72), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100% - 36px));
    margin: 0 clamp(18px, 5vw, 72px) 34px;
    color: #fff;
}

.status-pill {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 8px 12px;
    background: rgba(215, 106, 21, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(31px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: 0;
}

.registration,
.address {
    max-width: 760px;
    margin: 10px 0 0;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 700;
}

.home-page .site-header {
    animation: home-header-drop 620ms ease-out both;
}

.home-page .hero::after {
    animation: home-hero-shade 900ms ease-out both;
}

.home-page .hero img {
    transform-origin: right center;
    animation: home-hero-image 1100ms ease-out 120ms both, home-hero-float 7s ease-in-out 1300ms infinite;
}

.home-page .status-pill,
.home-page .hero h1,
.home-page .registration,
.home-page .address {
    opacity: 0;
    animation: home-hero-copy 760ms ease-out both;
}

.home-page .status-pill {
    animation-delay: 140ms;
}

.home-page .hero h1 {
    animation-delay: 240ms;
}

.home-page .registration {
    animation-delay: 340ms;
}

.home-page .address {
    animation-delay: 440ms;
}

.home-page .button,
.home-page .text-link,
.home-page .site-nav a {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.home-page .button:hover,
.home-page .button:focus-visible,
.home-page .text-link:hover,
.home-page .text-link:focus-visible {
    transform: translateY(-2px);
}

.home-page .document-card,
.home-page .about-grid article,
.home-page .contact-grid div {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-page .document-card:hover,
.home-page .about-grid article:hover,
.home-page .contact-grid div:hover {
    transform: translateY(-4px);
    border-color: #d5b282;
    box-shadow: 0 22px 50px rgba(52, 33, 20, 0.2);
}

.home-page .document-number {
    transition: transform 220ms ease;
}

.home-page .document-card:hover .document-number {
    transform: scale(1.06) rotate(-3deg);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms ease, transform 650ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes home-header-drop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-hero-copy {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-hero-image {
    from {
        opacity: 0;
        transform: translateX(36px) scale(1.04);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes home-hero-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.012);
    }
}

@keyframes home-hero-shade {
    from {
        opacity: 0.45;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-page .site-header,
    .home-page .hero::after,
    .home-page .hero img,
    .home-page .status-pill,
    .home-page .hero h1,
    .home-page .registration,
    .home-page .address {
        animation: none;
    }

    .home-page .button,
    .home-page .text-link,
    .home-page .site-nav a,
    .home-page .document-card,
    .home-page .committee-feature-card,
    .home-page .about-grid article,
    .home-page .contact-grid div,
    .committee-feature-media img,
    .home-page .document-number,
    .reveal-on-scroll {
        transition: none;
    }

    .reveal-on-scroll,
    .home-page .status-pill,
    .home-page .hero h1,
    .home-page .registration,
    .home-page .address {
        opacity: 1;
        transform: none;
    }
}

.notice-band {
    padding: 18px clamp(18px, 5vw, 72px);
    color: #fff;
    background: var(--red);
}

.notice-band div {
    max-width: 1120px;
    margin: 0 auto;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(58px, 8vw, 92px) clamp(18px, 4vw, 36px);
}

.section-heading {
    display: block;
    margin-inline: auto;
    margin-bottom: 28px;
    text-align: center;
}

.section-heading p {
    margin: 0;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.section-heading h2 {
    margin: 0 auto;
    max-width: 920px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading h1 {
    margin: 0 auto;
    max-width: 920px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-grid article,
.contact-grid div,
.documents-panel,
.auth-card,
.upload-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-grid article {
    padding: 24px;
}

.about-grid h3,
.empty-docs h3,
.upload-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.about-grid p,
.empty-docs p,
.auth-card p,
.muted {
    margin: 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--green);
    font-weight: 800;
}

.home-page .about-section {
    max-width: 1240px;
}

.home-page .about-section .section-heading {
    max-width: 900px;
    margin-bottom: 42px;
}

.home-page .about-section .section-heading h2 {
    color: #0b0a09;
    font-size: clamp(38px, 5.2vw, 64px);
    font-weight: 900;
    line-height: 1.08;
}

.home-page .about-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.home-page .about-grid article {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 340px;
    padding: clamp(30px, 4vw, 48px) clamp(22px, 3vw, 30px);
    border: 1px solid #8d8178;
    border-radius: 0;
    box-shadow: none;
}

.home-page .about-grid article::before {
    content: "";
    display: block;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    color: var(--saffron);
    border: 2px solid currentColor;
    background:
        linear-gradient(currentColor, currentColor) 15px 34px / 5px 14px no-repeat,
        linear-gradient(currentColor, currentColor) 26px 24px / 5px 24px no-repeat,
        linear-gradient(currentColor, currentColor) 37px 16px / 5px 32px no-repeat,
        linear-gradient(currentColor, currentColor) 14px 24px / 30px 2px no-repeat;
}

.home-page .about-grid article.has-card-icon::before {
    display: none;
}

.committee-card-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 24px;
    color: var(--saffron);
}

.committee-card-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-page .about-grid h3 {
    margin-bottom: 14px;
    color: #050505;
    font-size: clamp(25px, 2.3vw, 31px);
    font-weight: 900;
    line-height: 1.1;
}

.home-page .about-grid p {
    color: #2d2723;
    font-size: 17px;
    line-height: 1.58;
}

.home-page .about-grid .text-link {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-top: 34px;
    color: #050505;
    background: #fff;
    border: 1px solid #cfc7c0;
    border-radius: 50%;
    font-size: 0;
    text-decoration: none;
}

.home-page .about-grid .text-link::before {
    content: "\2192";
    font-size: 25px;
    font-weight: 900;
}

.home-page .about-grid .text-link:hover,
.home-page .about-grid .text-link:focus-visible {
    color: #fff;
    background: var(--saffron);
    border-color: var(--saffron);
}

.committee-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

.committee-feature-card {
    position: relative;
    min-width: 0;
}

.committee-feature-media {
    height: clamp(210px, 22vw, 270px);
    overflow: hidden;
    background: #efe4d5;
}

.committee-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 320ms ease;
}

.committee-feature-logo {
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(143, 31, 27, 0.08), rgba(143, 31, 27, 0.08)),
        #fff7ea;
}

.committee-feature-logo img {
    width: min(54%, 170px);
    height: auto;
    object-fit: contain;
}

.committee-feature-content {
    position: relative;
    z-index: 1;
    width: calc(100% - 48px);
    min-height: 212px;
    margin: -58px auto 0;
    padding: clamp(28px, 3vw, 38px) 24px 28px;
    text-align: center;
    background: var(--surface);
    border: 4px solid #efefef;
    box-shadow: 0 18px 42px rgba(37, 27, 22, 0.08);
}

.committee-feature-content h3 {
    margin: 0 0 16px;
    color: #14395f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.18;
     
}

.committee-feature-content h3 span {
    margin-right: 6px;
    font-size: 0.82em;
}

.committee-feature-card:nth-child(2) .committee-feature-content h3 {
    color: var(--saffron);
}

.committee-feature-content p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}

.committee-feature-content .text-link {
    justify-content: center;
}

.home-page .committee-feature-card {
    transition: transform 220ms ease;
}

.home-page .committee-feature-card:hover,
.home-page .committee-feature-card:focus-within {
    transform: translateY(-4px);
}

.home-page .committee-feature-card:hover .committee-feature-media img,
.home-page .committee-feature-card:focus-within .committee-feature-media img {
    transform: scale(1.045);
}

.documents-panel {
    padding: 26px;
}

@media (max-width: 980px) {
    .committee-showcase {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .committee-feature-media {
        height: 260px;
    }

    .committee-feature-content {
        width: min(680px, calc(100% - 40px));
        min-height: auto;
    }
}

.redevelopment-section {
    padding-top: clamp(38px, 6vw, 72px);
}

.document-intro {
    max-width: 980px;
    margin-bottom: 24px;
    padding: 24px 26px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 6px solid var(--saffron);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.document-intro p {
    margin: 0;
    font-size: 17px;
}

.docs-teaser .document-intro {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.docs-teaser-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.documents-page-section .document-intro {
    margin-right: auto;
    margin-left: auto;
}

.redevelopment-grid {
    display: grid;
    gap: 16px;
}

.document-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.document-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: var(--red);
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-weight: 800;
}

.document-card-body {
    min-width: 0;
}

.document-card h2,
.document-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: 0;
}

.marathi-title {
    display: block;
    margin-top: 4px;
    color: var(--red);
}

.document-card p {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 14px;
}

.document-card .document-description {
    color: var(--ink);
    font-size: 15px;
}

.documents-page .marathi-title,
.documents-page .document-description[lang="mr"] {
    font-size: 21px;
}

.documents-page .document-card h2 {
    font-size: 14px;
}

.document-card span {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.document-card .missing-file {
    color: var(--red);
}

.document-actions {
    display: flex;
    gap: 10px;
}

.document-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.document-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    background: #fff7ea;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.document-list a {
    overflow-wrap: anywhere;
    color: var(--green);
    font-weight: 800;
}

.document-list span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
}

.empty-docs {
    margin-bottom: 20px;
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid div {
    min-height: 138px;
    padding: 20px;
}

.contact-grid span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px clamp(18px, 5vw, 72px);
    color: #fff;
    background: var(--ink);
}

.letterhead-option {
    --letterhead-gutter: clamp(22px, 5vw, 76px);
    background: #fffaf2;
}

.letterhead-hero {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    background: #fff;
    border-bottom: 4px solid #e5242c;
}

.letterhead-curve {
    position: absolute;
    inset: 0 0 auto 0;
    height: 50px;
    background: #f57c17;
    clip-path: ellipse(78% 88% at 34% 0%);
}

.letterhead-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    max-width: none;
    min-height: 290px;
    margin: 0;
    padding: 66px var(--letterhead-gutter) 26px;
}

.letterhead-logo {
    display: grid;
    place-items: center;
    width: clamp(150px, 14vw, 190px);
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
    border: 2px solid #151515;
    border-radius: 50%;
}

.letterhead-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.letterhead-title {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.letterhead-title p {
    margin: 0 0 8px;
    color: var(--saffron);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.letterhead-title h1 {
    margin: 0;
    color: #ec1f2d;
    font-family: "Nirmala UI", "Mangal", "Roboto", Helvetica, sans-serif;
    font-size: clamp(38px, 4.15vw, 60px);
    line-height: 1.04;
    letter-spacing: 0;
    white-space: nowrap;
}

.letterhead-title h1 span {
    display: inline;
}

.letterhead-title h2 {
    margin: 10px 0 8px;
    color: var(--ink);
    font-size: clamp(20px, 2.4vw, 34px);
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.letterhead-title strong {
    display: block;
    color: #2f347e;
    font-family: "Nirmala UI", "Mangal", "Roboto", Helvetica, sans-serif;
    font-size: clamp(20px, 2.35vw, 30px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.letterhead-title > span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.letterhead-links {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px var(--letterhead-gutter);
    padding-left: calc(var(--letterhead-gutter) - 14px);
    background: rgba(255, 250, 242, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.letterhead-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.letterhead-links a:hover,
.letterhead-links a:focus-visible,
.letterhead-links a[aria-current="page"] {
    color: var(--red);
    background: #fff1de;
}

.letterhead-links .admin-link:hover,
.letterhead-links .admin-link:focus-visible {
    color: #fff;
    background: #175c4a;
}

.letterhead-notice div {
    margin: 0;
    max-width: none;
}

.letterhead-notice {
    padding-left: var(--letterhead-gutter);
    padding-right: var(--letterhead-gutter);
}

.letterhead-notice div {
    white-space: nowrap;
}

.committee-page {
    min-height: calc(100vh - 127px);
}

.committee-intro {
    max-width: 760px;
    margin: 0 auto 26px;
    color: var(--muted);
    text-align: center;
}

.committee-intro p {
    margin: 0;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.committee-card {
    padding: 22px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.committee-photo {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
    color: var(--muted);
    background: #fff7ea;
    border: 1px dashed #d6b889;
    border-radius: 50%;
    font-weight: 800;
}

.committee-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: 0;
}

.committee-card p {
    margin: 0;
    color: var(--red);
    font-weight: 800;
}

.auth-page,
.admin-page {
    min-height: 100vh;
    background: #fff6e8;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-brand {
    margin-bottom: 18px;
}

.auth-card,
.upload-card {
    width: min(100%, 460px);
    padding: 28px;
}

.auth-card h1,
.admin-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0;
}

label {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: var(--ink);
    font-weight: 800;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8c7b2;
    border-radius: 6px;
    font: inherit;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

.auth-card .button,
.upload-card .button {
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    font-weight: 800;
}

.auth-links a {
    color: var(--green);
}

.alert,
.success {
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
}

.alert {
    color: #771d1d;
    background: #ffe8e4;
    border: 1px solid #efb5aa;
}

.success {
    color: #17573f;
    background: #e3f5ec;
    border: 1px solid #a6d9bf;
}

.admin-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: 46px 20px 76px;
}

.admin-hero {
    margin-bottom: 24px;
}

.admin-hero p,
.admin-hero span {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.upload-card {
    width: 100%;
}

.document-upload-form {
    max-width: 720px;
    padding: 0;
    overflow: hidden;
}

.document-upload-body {
    padding: 28px;
}

.document-upload-form h2,
.uploaded-documents-card h2 {
    margin: 0 0 18px;
}

.form-field {
    margin-top: 16px;
}

.field-label {
    display: block;
    color: var(--ink);
    font-weight: 800;
}

.attachment-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 124px;
    margin-top: 8px;
    padding: 22px 18px;
    color: var(--muted);
    text-align: center;
    background: #f8fbff;
    border: 2px dashed #6fb2e8;
    border-radius: 6px;
    cursor: pointer;
}

.attachment-dropzone:hover,
.attachment-dropzone:focus-within {
    background: #eef7ff;
    border-color: #408fd4;
}

.attachment-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.attachment-icon {
    position: relative;
    width: 34px;
    height: 42px;
    background: #fff;
    border: 2px solid #9bcaf0;
    border-radius: 5px;
}

.attachment-icon::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    background: #f8fbff;
    border-left: 2px solid #9bcaf0;
    border-bottom: 2px solid #9bcaf0;
    border-radius: 0 4px 0 4px;
}

.attachment-copy {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.attachment-copy span {
    color: #2d7fc2;
    text-decoration: underline;
}

.attachment-help,
.attachment-file {
    font-size: 12px;
    font-weight: 700;
}

.attachment-file {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--green);
}

.document-upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px;
    background: #fffbf4;
    border-top: 1px solid var(--line);
}

.document-upload-actions .button {
    width: auto;
    min-width: 116px;
    margin-top: 0;
}

.edit-document-note {
    margin-top: 16px;
}

.uploaded-documents-card {
    padding: 0;
    overflow: hidden;
}

.uploaded-documents-card h2 {
    padding: 24px 24px 6px;
}

.admin-doc-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-doc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-doc-table th,
.admin-doc-table td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #eadfce;
}

.admin-doc-table th {
    color: #fff;
    background: #5b4b40;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.admin-doc-table tbody tr:nth-child(even) {
    background: #f4f0ea;
}

.admin-doc-table tbody tr:hover {
    background: #fff4df;
}

.admin-doc-table td:first-child,
.admin-doc-table td:nth-child(2),
.admin-doc-table td:last-child {
    text-align: center;
    white-space: nowrap;
}

.admin-doc-file {
    display: grid;
    gap: 4px;
    min-width: 220px;
}

.admin-doc-file strong,
.admin-doc-file small,
.admin-doc-file p {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-doc-file strong {
    color: var(--ink);
}

.admin-doc-file small,
.admin-doc-file p {
    color: var(--muted);
    font-size: 13px;
}

.admin-doc-actions {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}

.admin-doc-actions form {
    margin: 0;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    border-radius: 6px;
    font-weight: 900;
    font: inherit;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.table-action-view {
    background: #0d7df2;
}

.table-action-edit {
    background: var(--green);
}

.table-action-delete {
    background: #dc3545;
}

@media (max-width: 860px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        justify-self: end;
        width: 44px;
        min-height: 44px;
        padding: 0;
        gap: 4px;
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        justify-content: flex-start;
    }

    .hero {
        min-height: 350px;
        height: 350px;
    }

    .hero::after {
        background: linear-gradient(0deg, rgba(37, 27, 22, 0.86), rgba(37, 27, 22, 0.2));
    }

    .hero-content {
        margin-bottom: 24px;
    }

    .about-grid,
    .contact-grid,
    .admin-grid,
    .document-card {
        grid-template-columns: 1fr;
    }

    .home-page .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .committee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .document-actions {
        width: 100%;
    }

    .document-actions .button {
        flex: 1;
    }

    .site-footer {
        flex-direction: column;
    }

    .letterhead-hero {
        min-height: auto;
    }

    .letterhead-curve {
        height: 58px;
        clip-path: ellipse(100% 78% at 34% 0%);
    }

    .letterhead-inner {
        grid-template-columns: 126px minmax(0, 1fr);
        min-height: auto;
        gap: 18px;
        padding: 28px 18px 24px;
    }

    .letterhead-logo {
        width: 126px;
    }

    .letterhead-title h1 {
        font-size: clamp(30px, 8vw, 48px);
        white-space: normal;
    }

    .letterhead-title strong {
        font-size: clamp(16px, 4.2vw, 24px);
    }

    .letterhead-links {
        position: static;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 12px 18px;
    }

    .letterhead-links a {
        white-space: normal;
    }

    .letterhead-notice div {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    html,
    body,
    .letterhead-option {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .letterhead-option * {
        max-width: 100%;
    }

    .brand {
        max-width: 100%;
    }

    .hero h1 {
        max-width: 340px;
        font-size: 28px;
        line-height: 1.02;
    }

    .hero img {
        right: -250px;
    }

    .document-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-card {
        padding: 18px;
    }

    .document-actions {
        flex-direction: column;
    }

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .home-page .about-grid {
        grid-template-columns: 1fr;
    }

    .home-page .about-grid article {
        min-height: auto;
    }

    .letterhead-inner {
        display: block;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        text-align: left;
    }

    .letterhead-logo {
        width: 132px;
        justify-self: start;
    }

    .letterhead-title h1 {
        font-size: 21px;
        line-height: 1.15;
    }

    .letterhead-title h1 span {
        display: block;
    }

    .letterhead-title {
        width: 100%;
        max-width: calc(100vw - 36px);
    }

    .letterhead-title h2 {
        font-size: 13px;
    }

    .letterhead-title strong {
        font-size: 12px;
    }

    .letterhead-title > span {
        font-size: 13px;
    }

    .letterhead-title h1,
    .letterhead-title h2,
    .letterhead-title strong,
    .letterhead-title > span,
    .letterhead-notice div,
    .section-heading h2 {
        display: block;
        width: auto;
        max-width: calc(100vw - 42px);
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .letterhead-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 100vw;
    }

    .letterhead-links a {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 14px;
        justify-content: flex-start;
    }

    .letterhead-notice,
    .letterhead-notice div,
    .section,
    .document-intro,
    .redevelopment-grid,
    .document-card,
    .document-card-body {
        max-width: 100vw;
        min-width: 0;
    }

    .letterhead-notice {
        padding-inline: 18px;
        font-size: 15px;
    }

    .section-heading h2 {
        width: min(100%, 320px);
        font-size: 25px;
        word-break: normal;
    }

    .letterhead-title strong,
    .letterhead-title > span {
        width: auto;
    }

    .letterhead-notice div {
        width: auto;
    }

    .document-intro p,
    .document-card-body {
        width: auto;
    }

    .admin-doc-table,
    .admin-doc-table thead,
    .admin-doc-table tbody,
    .admin-doc-table tr,
    .admin-doc-table th,
    .admin-doc-table td {
        display: block;
    }

    .admin-doc-table thead {
        display: none;
    }

    .admin-doc-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-doc-table th,
    .admin-doc-table td {
        border-bottom: 0;
    }

    .admin-doc-table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 16px;
        text-align: left;
        white-space: normal;
    }

    .admin-doc-table td:first-child,
    .admin-doc-table td:nth-child(2),
    .admin-doc-table td:last-child {
        text-align: left;
        white-space: normal;
    }

    .admin-doc-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-doc-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .table-action {
        min-width: 96px;
    }
}
