/* ============================================================
   Gazehounds of New England - gone.css
   Modern responsive reset + layout, preserving the club's look.
   ============================================================ */

:root {
    --bg-top: #ece3c9;
    --bg-bottom: #d4c6a0;
    --card: #fbf7ec;
    --ink: #3a3226;
    --muted: #6b6046;
    --nav-bg: #114944;
    --nav-fg: #f3ecd8;
    --nav-active: #db501f;
    --link: #008000;
    --link-visited: #ac6a1b;
    --link-hover: #db501f;
    --link-active: #183881;
    --accent: #660000;
    --border: #c4b793;
    --shadow: 0 2px 8px rgba(58, 50, 38, 0.25);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    background:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.35), transparent 60%),
        linear-gradient(160deg, var(--bg-top), var(--bg-bottom)) fixed;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

a:visited {
    color: var(--link-visited);
}

a:active {
    color: var(--link-active);
}

h1, h2, h3, h4 {
    font-family: "Times New Roman", Georgia, serif;
    color: var(--ink);
    line-height: 1.2;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.25rem;
}

h2 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.4rem;
}

h3 {
    font-size: 1.05rem;
    font-style: italic;
    margin: 1rem 0 0.35rem;
}

ul, ol {
    padding-left: 1.5rem;
}

/* ---------- Accessibility ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Header ---------- */

.site-header {
    text-align: center;
    padding: 1rem 1rem 0.25rem;
}

.site-logo {
    width: min(680px, 100%);
}

/* ---------- Navigation ---------- */

.main-nav {
    background: var(--nav-bg);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    margin-bottom: 1.25rem;
}

.main-nav > ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    position: relative;
    border-right: 1px solid rgba(243, 236, 216, 0.25);
}

.main-nav li:last-child {
    border-right: none;
}

.main-nav a,
.main-nav button {
    display: block;
    padding: 0.6rem 0.9rem;
    color: var(--nav-fg);
    font-size: 0.85rem;
    font-weight: bold;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav button:focus {
    background: rgba(243, 236, 216, 0.12);
    color: #fff;
    text-decoration: none;
}

.main-nav a.active,
.main-nav li.active > button {
    background: var(--nav-active);
    color: #fff;
}

/* Dropdown submenus: hidden until the group is hovered/focused */
.main-nav li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 13rem;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--nav-bg);
    border-top: 2px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    align-items: stretch;
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
    display: flex;
}

.main-nav li > ul li {
    border-right: 0;
    border-bottom: 1px solid rgba(243, 236, 216, 0.15);
}

.main-nav li > ul li:last-child {
    border-bottom: 0;
}

.main-nav li > ul a,
.main-nav li > ul button {
    white-space: nowrap;
}

/* ---------- Main content ---------- */

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.intro {
    font-size: 0.95rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    color: #fff;
    background: var(--accent);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

a.btn:hover {
    background: #8c0000;
    color: #fff;
    text-decoration: none;
}

/* ---------- Tables ---------- */

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 0.45rem 0.7rem;
    text-align: center;
    vertical-align: middle;
}

th {
    background: var(--nav-bg);
    color: var(--nav-fg);
    font-weight: bold;
}

tr:nth-child(even) td {
    background: rgba(212, 198, 160, 0.18);
}

td {
    border-bottom: 1px solid var(--border);
}

/* ---------- Officer / club lists ---------- */

.contact-table td {
    border-bottom: none;
    text-align: left;
}

.contact-table tr:nth-child(even) td {
    background: transparent;
}

.contact-table td:first-child {
    white-space: nowrap;
    font-weight: bold;
    padding-right: 1.5rem;
}

.link-list {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 2rem;
}

.link-list a {
    display: inline-block;
    padding: 0.15rem 0;
}

/* ---------- Home page extras ---------- */

.poster {
    max-width: 320px;
    display: block;
    margin: 1.25rem auto 0;
}

.calendar-frame {
    border: none;
    width: 100%;
    height: 420px;
    display: block;
    margin-top: 0.75rem;
}

.calendar-nav {
    margin-bottom: 0.5rem;
}

/* ---------- Calendar pages (embedded iframe) ---------- */

body.calendar {
    background: var(--card);
    padding: 0.5rem;
}

.calendar-table-wrap {
    overflow-x: auto;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
}

.calendar-note {
    font-size: 0.8rem;
    font-style: italic;
}

/* ---------- Results list ---------- */

.results-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.results-list li {
    padding: 0.15rem 0;
}

.results-list .note {
    font-style: italic;
}

/* ---------- Photo gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.gallery-item img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: block;
}

/* ---------- Memorials ---------- */

.memorial {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.memorial-photo {
    width: 200px;
    border: 5px solid var(--border);
    border-radius: 4px;
}

.memorial-thumb {
    border: 1px solid var(--border);
    border-radius: 4px;
}

.memorial-caption {
    font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(212, 198, 160, 0.5);
    text-align: center;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    body {
        font-size: 13px;
    }

    .main-nav a,
    .main-nav button {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .link-list {
        columns: 1;
    }

    .card {
        padding: 1rem 1.1rem;
    }

    h1 {
        font-size: 1.35rem;
    }

    .contact-table td:first-child {
        white-space: normal;
    }
}