/* ------------------------------------------------------------------ *
 * Annai Poopathi – landing page styles                               *
 * Mirrors the relevant parts of AnnaiPoopathi.Frontend/src/CSS/Main.css *
 * and adds a few landing-page-only helpers on top of the ODS framework. *
 * ------------------------------------------------------------------ */

body {
    margin: 0;
}

/* Same link treatment as the React app (.o-kom-link) */
a.o-kom-link:link,
a.o-kom-link:visited,
a.o-kom-link:active {
    text-decoration: none;
    color: #2a2859;
}

a.o-kom-link:hover {
    cursor: pointer;
    text-decoration: underline;
    color: #1f42aa !important;
}

/* ODS resets `ul { list-style:none }` globally – restore real bullet
   points for the prose lists inside the section cards. */
.ods-status-card__content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.ods-status-card__content ul li {
    padding-top: 0.25rem;
}

/* Annai Poopathi portrait shown in a card on the left of "Om Annai" */
.ap-photo-card {
    border: 1px solid #e3e3e3;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.ap-photo-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.ap-photo-card figcaption {
    margin-top: 0.75rem;
    color: #6b6b6b;
}

/* Sticky top banner – reuses the app's yellow header look */
.ap-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.ap-header a {
    color: inherit;
    text-decoration: none;
}

.ap-logo {
    height: 2.5rem;
    width: auto;
    vertical-align: middle;
    margin-right: 0.75rem;
}

/* Anchor navigation under the banner */
.ap-nav {
    border-bottom: 1px solid #e3e3e3;
    background: #fff;
}

.ap-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    justify-content: center;
}

.ap-nav a {
    display: inline-block;
    padding: 0.75rem 0.25rem;
    color: #2a2859;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.ap-nav a:hover {
    color: #1f42aa;
}

.ap-nav a.is-active {
    border-bottom-color: #f9c66b;
    font-weight: 700;
}

/* Give anchored sections breathing room below the sticky header */
.ap-section {
    scroll-margin-top: 7rem;
}

/* The ods-margin-top-25 spacer is too tall on small screens (same fix
   the React app applies in Main.css). */
@media (max-width: 1023px) {
    .ods-margin-top-25 {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .ap-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .ap-nav a {
        white-space: nowrap;
    }
}
