/* =========================
   BASE
   ========================= */

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
    margin: 0;
}

body.page-home header {
    background: #000;
}

header {
    background: #111 url("/images/bg-header.webp");
    color: white;
    padding: 0;
    margin: 0;
    text-align: center;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 150px;
    background: white;
    min-height: 70vh;
}

article {
    padding-bottom: 50px;
}

footer {
    background: #222;
    color: #ccc;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #0ff;
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    text-align: center;
}

article h2 {
    margin-top: 50px;
}

article h3,
article h4 {
    margin-top: 30px;
}

p {
    text-indent: 15px;
}

.p--flat,
p.has-drop-cap,
p.has-drop-cap-lost {
    text-indent: 0 !important;
}

.x--small-caps,
.span--small-caps {
    font-variant: small-caps;
}


/* =========================
   DROP CAPS
   ========================= */

p.has-drop-cap {
    text-align: left;
    margin-left: -10px !important;
}

p.has-drop-cap:first-letter {
    font-size: 375%;
    margin-top: 2px !important;
    margin-right: 5px;
    padding: 0 5px;
    color: #000;
    float: left;
}

.blockquote--sidebar .has-drop-cap:first-letter {
    margin-left: -65px;
    margin-right: -10px;
    font-size: 700%;
    margin-top: 10px;
    background: none;
    color: #f00;
    text-indent: 0;
}

#lost p.p2.has-drop-cap {
    text-indent: 0;
}

#lost p.p2.has-drop-cap:first-letter {
    font-size: 375%;
    margin-top: -12px;
    margin-right: 5px;
    padding: 0 5px;
    background: #000;
    color: #fff !important;
}


/* =========================
   LAYOUT + SIDEBAR
   ========================= */

.layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: 900px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f2f2f2;
    padding: 20px 15px 20px 20px;
    border-radius: 12px;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar ul {
    padding-left: 20px;
}


/* =========================
   HEADER + NAVIGATION
   ========================= */

.home-header-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    position: relative;
    top: 5px;
    font-size: 2.4rem;
    font-weight: 700;
}

.site-logo img {
    width: 75px;
    height: auto;
    position: relative;
    bottom: 4px;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: inline-block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
}

.nav-item.campaign a {
    color: #ff0;
}

.main-nav .nav-item.home img {
    width: 30px;
    height: 30px;
    display: block;
}

nav a.active {
    background: #0066ff;
    color: white;
    border-radius: 6px;
    font-weight: 700;
}

nav .campaign a.active {
    background: #ff0000;
}

.nav-item.home a:hover {
    background: #06c;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #222;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    color: white;
    text-decoration: none;
}

.dropdown a:hover {
    background: #333;
}

.nav-item.open .dropdown {
    display: block;
}


/* =========================
   HERO IMAGES
   ========================= */

.hero {
    margin-bottom: 30px;
}

.hero img,
.hero-image,
.hero-image-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 25px;
}

.hero-image-link {
    display: block;
    width: 100%;
    position: relative;
    margin-bottom: 75px;
}

.hero-image-link::after {
    content: "🔍";
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 24px;
    opacity: .7;
    background: rgba(0,0,0,.5);
    padding: 6px 10px;
    border-radius: 50%;
    color: white;
}

.hero-image-link:hover::after {
    opacity: 1;
}


/* =========================
   HOME PAGE
   ========================= */

.page--front {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.page--front h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.front-section {
    margin-top: 20px;
}

.home-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-icon,
.home-issue-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.home-issues-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 50px 0;
}

.home-box,
.home-issue-card {
    background: #f5f5f5;
    padding: 10px 25px;
    border-radius: 14px;
}

.home-box--center {
    background: #111;
    color: white;
}

.home-issue-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.home-issue-card p {
    text-indent: 0;
}

.home-issue-card a {
    text-decoration: none;
}

.home-text {
    margin: 50px 0;
    font-size: 1.15rem;
    line-height: 1.7;
}


/* =========================
   ISSUE / CARD GRIDS
   ========================= */

.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.issue-card {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 14px;
    transition: 0.2s;
}

.issue-card:hover {
    background: #ebebeb;
    transform: translateY(-2px);
}

.issue-card h3 {
    margin-top: 0;
}

.issue-card a {
    text-decoration: none;
    color: #111;
}


/* =========================
   CTA + NEWS
   ========================= */

.cta-box {
    background: #111;
    color: white;
    padding: 30px;
    border-radius: 14px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h2 {
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #111;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
}

.news-list {
    margin-top: 40px;
}

.news-card {
    padding: 24px;
    background: #f5f5f5;
    border-radius: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.news-card h3 {
    margin-top: 0;
}

.article-date {
    color: #777;
    font-size: 0.9rem;
}


/* =========================
   PAGE MENUS
   ========================= */

.div--page-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 25px 0 35px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.div--page-menu a {
    display: inline-block;
    padding: 8px 14px;
    background: #f2f2f2;
    color: #222;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.div--page-menu a:hover {
    background: #0066ff;
    color: white;
    transform: translateY(-2px);
}

.div--page-menu a[href="#seattle"],
h2#seattle {
    background: #b7ff5e;
    border: 1px solid #7cb342;
    color: #000;
}

.div--page-menu a[href="#videos"] {
    background: #009;
    color: #fff;
}

h2#seattle {
    display: table;
    margin: 10px auto;
    padding: 8px 14px;
    border-radius: 999px;
}

div.div--seattle {
    background: #b7ff5e;
}


/* =========================
   TABLES
   ========================= */

.table--basic {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 25px auto;
}

.table--basic td,
.table--basic th {
    padding: 2px 5px;
}

.table--ul td {
    border-bottom: 1px dotted #000;
}

#tabcampaign td:nth-child(5),
#tabcampaign th:nth-child(5) {
    text-align: center;
}

#tabcampaign td:nth-child(6),
#tabcampaign th:nth-child(6) {
    text-align: right;
}

.table--social {
    width: 100%;
}

.table--social td {
    width: 25%;
}

.table--social td img {
    width: 100%;
}


/* =========================
   AGENDA TABLE
   ========================= */

.agenda-table {
    margin-top: 2rem;
    overflow-x: auto;
}

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

.agenda-table th,
.agenda-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.agenda-table th {
    background: #222;
    color: #fff;
}

.agenda-link {
    display: inline-block;
    margin-left: 0.35rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.agenda-link:hover {
    transform: translateX(2px);
}

.h2--section {
    margin-top: 2.5rem;
    border-bottom: 3px solid #222;
}

.h3--subcategory {
    margin-top: 1.5rem;
}

.popular-name {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

tr.wa {
    background: #6c3;
}

tr.fr {
    background: #fff7c7;
}

tr.wa.fr {
    background: linear-gradient(90deg, #6c3 0%, #fff7c7 100%);
}

.td--law {
    background: #eee;
    font-weight: bold;
}

.td--constitutional-amendment {
    font-weight: bold;
    background: #009;
    color: #ff0;
}

.td--repeal {
    background: #f00;
    color: #fff;
}

.td--policy {
    background: #666;
    color: #fff;
}

.td--executive-action {
    background: #606;
    color: #fff;
}


/* =========================
   CALLOUTS
   ========================= */

.callout {
    margin: 30px 0;
    padding: 10px 25px;
    border-left: 6px solid #0066ff;
    background: #f5f8ff;
    border-radius: 10px;
}

.callout p {
    text-indent: 0;
}

.callout-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0066ff;
    margin-bottom: 10px;
}

.callout--quip {
    background: #fff8e8;
    border-left-color: #cc8800;
}

.callout--quip .callout-label {
    color: #cc8800;
}

.callout-statement {
    width: 100%;
    margin: 25px auto;
    background: #333;
    border-left: 25px solid #0066ff;
    color: #fff;
    text-align: left;
}

.callout-site-link,
.callout-geobop {
    width: 300px;
    margin: 25px auto;
    background: #000099;
    border-left-color: #00ffff;
    color: #fff;
    text-align: center;
}

.callout-geobop {
    background: #0066ff;
}

.callout a,
.callout-statement .callout-label {
    color: #fff;
}

.callout-teaser a {
    color: #0000ff;
}

.callout-site-link .callout-label {
    color: #00ffff;
}

.callout-geobop .callout-label {
    color: #ffff00;
}

.callout-law-policy-measure {
    background: #ffd700;
    border: 2px solid #000;
    font-weight: bold;
    color: #0066ff;
}

.callout-law-policy-measure .callout-label {
    color: #990000;
}


/* =========================
   IMAGES + CAPTIONS
   ========================= */

.div--img {
    margin: 25px auto;
}

.div--img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.img-caption {
    margin-top: 10px;
    text-align: center;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #666;
    font-style: italic;
}


/* =========================
   SEARCH
   ========================= */

.site-search {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
}

.site-search input {
    width: min(420px, 80vw);
    padding: 0.45rem 0.65rem;
}

.site-search button {
    padding: 0.45rem 0.8rem;
    cursor: pointer;
}

.search-result {
    margin: 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}


/* =========================
   VIDEOS
   ========================= */

.page-videos {
    margin-top: 3rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.video-comment {
    max-width: 800px;
}

.h2--videos {
    margin-top: 100px;
    background: #009;
    color: #fff;
    border-radius: 12px;
}

.h2--videos a {
    color: #fff;
}


/* =========================
   LISTS
   ========================= */

ul.ul--basic {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

ul.ul--basic li {
    padding: 0;
    margin-bottom: 0.1rem;
    line-height: 1.1;
}

/*
ul.ul--basic li {
    padding: 0;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}
*/

ul.card-list,
ul.arrow-list,
.topic-list,
.warning-list,
.cheat-sheet,
.ul--ranked {
    list-style: none;
    padding: 0;
}

ul.card-list {
    margin: 2rem 0;
}

ul.card-list li {
    background: #f5f5f5;
    border-left: 6px solid #0a58ca;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

ul.arrow-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

ul.arrow-list li::before {
    content: "➜";
    position: absolute;
    left: 0;
    color: #c00;
    font-weight: bold;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.topic-list li {
    background: #222;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.warning-list li {
    background: #fff3f3;
    border-left: 5px solid #d00;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.ul--advanced ul {
    margin-top: 0.5rem;
}

.ul--advanced ul li {
    font-size: 0.95rem;
    opacity: 0.9;
}

.cheat-sheet li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f8f8;
    border-left: 6px solid limegreen;
}

.cheat-sheet strong {
    min-width: 180px;
    display: inline-block;
}


/* =========================
   ORDERED ARGUMENT LIST
   ========================= */

ol.argument-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

ol.argument-list li {
    counter-increment: item;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

ol.argument-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: #0a58ca;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: bold;
}


/* =========================
   RANKED LIST / CHEAT SHEET
   ========================= */

.ul--ranked {
    margin: 0;
}

.ul--ranked li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
}

.ul--ranked .li--header {
    background: navy;
    color: #fff;
    font-weight: bold;
    border-radius: 12px;
    padding-left: 25px;
    text-align: center;
}

.ul--ranked .li--header a {
    color: #fff;
}

.ul--ranked .li--good {
    background: #f8f8f8;
    border-left: 6px solid limegreen;
}

.ul--ranked .li--bad {
    background: #fff3f3;
    border-left: 6px solid #d00;
}

.ul--ranked .li--neutral {
    background: #f3f3ff;
    border-left: 6px solid #6699ff;
}

.ul--ranked .li--warning {
    background: #fff8dd;
    border-left: 6px solid orange;
}

.li--wa {
    border-left: 6px solid #2ecc71;
}

.li--fr {
    border-left: 6px solid gold;
}


/* =========================
   MISC
   ========================= */

.div--asterisks {
    margin: 10px auto;
    font-size: 250%;
    text-align: center;
}

.tr--title,
.tr--subtitle {
    background: #009;
    color: #ff0;
}

.tr--subtitle {
    color: #fff;
}

.x--fr {
    background: #090;
    color: #fff;
}

.x--democrat {
    background: #00f;
    color: #fff;
}

.x--republican {
    background: #f00;
    color: #fff;
}

.image-help {
    margin: 1rem 0;
    max-width: 700px;
}

.image-help summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border-left: 5px solid #cc9900;
    padding: 0.6rem 1rem;
    font-weight: bold;
}

.image-help summary::marker {
    display: none;
}

.image-help-icon {
    font-size: 1.2rem;
}

.image-help-text {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: #fffbe6;
    border-left: 5px solid #cc9900;
}

.div--nav-bottom {
    max-width: 250px;
    margin: 50px auto;
}

body.page-platform .div--nav-bottom,
body.page-issues .div--nav-bottom,
body.page-campaign .div--nav-bottom {
    display: none;
}


/* =========================
   PAGE TITLE HIDING
   ========================= */

body.page-home h1.page-title,
body.page-principles h1.page-title,
body.section-platform h1.page-title,
body.section-issues h1.page-title,
body.section-campaign h1.page-title,
body.page-act h1.page-title,
body.page-platform h1.page-title,
body.page-issues h1.page-title,
body.page-campaign h1.page-title {
    display: none;
}

body.section-platform h2.page-subtitle,
body.section-issues h2.page-subtitle,
body.section-campaign h2.page-subtitle {
    margin-top: -50px;
    margin-bottom: 100px;
}


/* =========================
   LINKS
   ========================= */

h1 a,
h2 a,
h3 a,
h4 a,
td a,
aside.sidebar a {
    text-decoration: none;
}

.main-content a:hover,
.main-nav a:hover,
.sidebar a:hover,
footer a:hover {
    background: #ff0;
    color: #f00;
    font-weight: bold;
    text-decoration: none;
}

.sidebar { padding-right: 50px; }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1400px) {
    .layout {
        gap: 30px;
    }

    main {
        padding: 50px 100px 150px;
    }
.sidebar { padding-right: 25px; }
}

@media (max-width: 1100px) {
    .sidebar {
        width: 240px;
    }

    main {
        padding: 25px 50px;
    }
.sidebar { padding-right: 25px; }
}

@media (max-width: 900px) {
    .layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    main {
        padding: 15px 25px 25px;
    }

    .home-intro-grid,
    .home-issues-grid {
        grid-template-columns: 1fr;
    }
}

/* Campaign Home Page Template */
.campaign-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 50px 0;
}

.campaign-card {
    background: #f5f5f5;
    padding: 20px 25px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.campaign-card a {
    color: #111;
    text-decoration: none;
}

.campaign-card p {
    text-indent: 0;
}

.campaign-card-icon {
    width: 55%;
    margin: 0 auto -10px;
}

.campaign-card-icon img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .campaign-card-grid {
        grid-template-columns: 1fr;
    }
}

div.campaign-card { padding-top: 0px; }

.campaign-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 25px 0;
}

.campaign-images a {
    display: block;
}

.campaign-images img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .campaign-images {
        grid-template-columns: 1fr;
    }
}

.campaign-images a.lightbox {
    pointer-events: none;
    cursor: default;
}