/************************************************* Global properties *************************************************/
@viewport {
    width: device-width;
    zoom: 1.0;
}
@-ms-viewport {
    width: device-width;
}
@import url("global.css");

/******************************************************* Indent ******************************************************/
.indent {
    font-style: italic;
    margin: 4px 2em;
    padding: 4px 4em;
}

/**************************************************** Star layout ****************************************************/
.star {
    text-align: left;
    padding-left: 2.5em;
    margin-left: -1em;
    font-size: 32px;
    font-weight: bold;
    font-style: italic;
    color: darkblue;
}
img.star {
    float: left;
}

/**************************************************** Event layout ***************************************************/
.event {
    display: block;
    margin: 6px 10%;
    border: solid;
    border-color: tomato;
    border-width: 2px;
}

/**************************************************** Table layout ***************************************************/
table {
    border: 0;
    table-layout: auto;
    width: 90%;
    margin: 2em;
}
th {
    padding: 15px;
    text-align: left;
}
td {
    width: 25ch;
    max-width: 40ch;
    padding: 1px 15px;
    vertical-align: middle;
    border-collapse: collapse;
    font-size: 20px;
}
td[colspan]::before {
    margin-left: 5ch;
    content: "\2014\2014\2014\2014\2014  Vacant  \2014\2014\2014\2014\2014";
}
td.narrow { width: 12ch; }
tr:hover { background-color: var(--highlight-color);}
caption {
    margin: .5em 0;
    font-size: xx-large;
    font-weight: bold;
}

/******************************************************** FAQ ********************************************************/
details {
    border: black;
    border-width: 1px;
    border-style: solid;
    margin: 4px 2em;
    padding: 2px 2px 12px 2px;
    font-size: 20px;
}
summary {
    padding: .5em 1.3rem;
    list-style: none;
    display: flex;
    justify-content: space-between;  
    transition: height 1s ease;
    background-color: whitesmoke;
    font-weight: bold;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
  content: "\002B";
}
details[open] summary {
    border-bottom: 1px solid #aaa;
    margin-bottom: .5em;
}
details[open] summary::after {
  content: "\00D7";
}
details[open] > :not(summary) {
    padding: .1em 1em .2em 2em;
}
details[open] > ul, details[open] > ol {
    padding: .1em 1em .2em 3em;
}

/*************************************************** Donate button ***************************************************/
.donate {
    border: 4px solid gray;
    background-color: darkred;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1em;
    font-style: italic;
    color: white;
    text-align: center;
    justify-content: center;
    min-width: 12ch;

    display: block;
    width: 12ch;
    margin: 6px auto;
    padding: 12px;
}
header .donate {
    width: calc(100% - 10px);
    margin: 0;
    padding: 3px;
}

/************************************************* Copyright notice **************************************************/
body:after {
    display: block;
    width: calc(100% - 4em);
    margin: 2em;
    text-align: center;
    font-style: italic;
    font-size: medium;
    content: '© 2024 Constitution Party of Oregon';
}

/************************************************* Responsive layout *************************************************/
@media (max-width: 800px) {
    td[colspan]::before {
        margin-left: 5ch;
        text-wrap: nowrap;
        content: "\2014\2014  Vacant  \2014\2014";
    }
}