/*
 Theme Name: Twenty Seventeen Child
 Template: twentyseventeen
*/

/* =========================
   PAGE WIDTH CONTROL
========================= */

.page.page-one-column:not(.twentyseventeen-front-page) .site-content-contain,
.page.page-one-column:not(.twentyseventeen-front-page) #content,
.page.page-one-column:not(.twentyseventeen-front-page) #primary,
.page.page-one-column:not(.twentyseventeen-front-page) article,
.page.page-one-column:not(.twentyseventeen-front-page) .panel-content,
.page.page-one-column:not(.twentyseventeen-front-page) .entry-header,
.page.page-one-column:not(.twentyseventeen-front-page) .entry-content {
    width: 100%;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page.page-one-column:not(.twentyseventeen-front-page) .wrap {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}
/* =========================
   TABLE STYLING
========================= */

.asc-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.asc-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Header styling */
.asc-table th {
    background-color: #222;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Cell styling */
.asc-table th,
.asc-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

/* Zebra striping */
.asc-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect */
.asc-table tr:hover {
    background-color: #ffd9b3;
}

/* Prevent wrapping for key columns */
.asc-table td:nth-child(3),
.asc-table td:nth-child(4),
.asc-table td:nth-child(5),
.asc-table td:nth-child(6),
.asc-table td:nth-child(9) {
    white-space: nowrap;
}

/* Links inside table */
.asc-table a {
    text-decoration: none;
}

.asc-table a:hover {
    text-decoration: underline;
}

/* Slightly de-emphasize address columns */
.asc-table td:nth-child(7),
.asc-table td:nth-child(8),
.asc-table td:nth-child(9) {
    font-size: 13px;
    color: #666;
}

/* =========================
   EXPORT BUTTON
========================= */

.asc-export-button,
.asc-export-button:visited {
    display: inline-block;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    padding: 0.75em 1.5em;
    border: 0;
    border-radius: 2px;
    box-shadow: none;
    font-weight: 600;
    line-height: 1;
}

.asc-export-button:hover,
.asc-export-button:focus {
    background-color: #767676;
    color: #fff;
    text-decoration: none;
    outline: none;
}

.asc-export-button:active {
    background-color: #555;
}

.asc-export-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* =========================
   MEMBER COUNTS
========================= */

.asc-member-counts p {
    margin-bottom: 1.5em;
}


.asc-admin-form {
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid #ccc;
    background: #fafafa;
}

.asc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px 18px;
}

.asc-admin-form input,
.asc-admin-form select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
}

.asc-admin-success {
    padding: 10px 12px;
    background: #eef8ee;
    border-left: 4px solid #4a8f4a;
    margin-bottom: 16px;
}

.asc-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.asc-admin-table th,
.asc-admin-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.asc-admin-table th {
    background: #f5f5f5;
}

.asc-admin-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.asc-admin-form {
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid #ccc;
    background: #fafafa;
}

.asc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px 18px;
}

.asc-admin-form input,
.asc-admin-form select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
}

.asc-admin-success {
    padding: 10px 12px;
    background: #eef8ee;
    border-left: 4px solid #4a8f4a;
    margin-bottom: 16px;
}

.asc-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.asc-admin-table th,
.asc-admin-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.asc-admin-table th {
    background: #f5f5f5;
}

.asc-admin-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* =========================
   GALLERY STYLING
========================= */
.wp-block-gallery .wp-element-caption {
    position: relative !important;
    background: none !important;
    background-color: transparent !important;
    color: #333 !important;
    text-align: center !important;
    padding: 8px 4px !important;
}

.wp-block-columns .wp-block-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
}

