/*
 * Shared look of the public pages (layouts main and main_register): cards, buttons, forms, tables, page titles.
 * doc/public_ui_modern_design.md. The layout itself (where the banner, menu, content, sidebar and footer sit) stays
 * in css/public-layout.css and the theme; this file only changes how the pieces look.
 *
 * The values come from CSS variables that layouts/_public_header.php sets on :root from Manage Banner, so every
 * site keeps its own colours:
 *   --gw-accent, --gw-accent-text   the title colours of Manage Banner, as set
 *   --gw-on-accent                  text on --gw-accent, made readable (backend\components\ReadableColor)
 *   --gw-accent-ink                 --gw-accent as text on white, darkened when too light to read
 *   --gw-radius (14px), --gw-radius-md (10px), --gw-radius-sm (8px), --gw-shadow, --gw-shadow-hover,
 *   --gw-border, --gw-text, --gw-muted, --gw-soft
 */

/* ===== Focus: the theme takes the outline off links; keyboard users still need to see where they are =====
   Weight (0,2,0): above the theme's a:focus (0,1,1), below a piece's own rule such as a.home-card:focus-visible. */
:where(#menu, .aa-blog-archive-area, #aa-footer) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--gw-accent-ink);
    outline-offset: 2px;
}

/* on the menu bar and the footer the accent can be as dark as the bar: the outline takes the text colour there,
   which reads on its background as the text does */
:where(#menu, #aa-footer) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: currentColor;
}

/* ===== Header (layouts/_public_header.php; the colours of the bar stay in its <style>) ===== */

/* search box of wide screens: field and button in one pill of 38px, as tall as the flag and login buttons */
/* a thin edge, so the white pill still shows on a light menu bar */
#menu .header-search-wide,
#menu .header-search-form {
    border: 1px solid rgba(16, 24, 40, .18);
}

#menu .header-search-wide {
    display: flex;
    height: 38px;
    overflow: hidden;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

/* focus: a ring in the menu text colour, which shows on dark and light bars alike */
#menu .header-search-wide:focus-within,
#menu .header-search-form:focus-within {
    box-shadow: 0 0 0 2px var(--gw-menu-text);
}

#menu .header-search-wide .input-search {
    width: 170px;
    height: 36px;
    margin: 0;
    padding: 0 8px 0 16px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    font-size: 15px;
}

/* the pill shows the focus, an outline inside it would be cut */
#menu .header-search-wide .input-search:focus-visible,
#menu .header-search-form .input-search:focus-visible {
    outline: none;
}

#menu .header-search-wide .btn-search {
    width: 42px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
}

/* the item whose sub menu is open keeps the colour of the mouse-over, so one sees where the next level comes from.
   Heavier than the <style> of _public_header.php, which colours every link of an open item alike. */
#menu .menu-area .navbar-default .navbar-nav .submenu li.open > a {
    background-color: var(--gw-menu-focus) !important;
    color: var(--gw-on-menu-focus) !important;
}

/* ===== Footer (layouts/_public_footer.php). css/site.css sets ".aa-footer-bottom p" to 10-11pt with !important ===== */
#aa-footer .aa-footer-bottom {
    padding: 28px 0;
}

.aa-footer-bottom p.gw-footer-text {
    margin: 0;
    font-size: 15px !important;
    line-height: 1.7;
    text-align: center;
}

/* ===== Buttons ===== */

/* small outlined button (sidebar "all meetings", file buttons of the issue form) */
.gw-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--gw-accent-ink);
    border-radius: var(--gw-radius-sm);
    background: transparent;
    color: var(--gw-accent-ink);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.gw-btn-outline:hover,
.gw-btn-outline:focus-visible {
    background: var(--gw-accent-ink);
    color: #fff;
    text-decoration: none;
}

/* ===== Page title: each page prints its own h1 (no title bar in the layout) ===== */
.gw-page-title {
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gw-text);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .gw-page-title {
        font-size: 22px;
    }
}

/* the date line under a title. css/site.css sets every p of .divcontent to 10-11pt and justified, with !important */
.divcontent .gw-meta {
    margin: 0 0 16px;
    color: var(--gw-muted);
    font-size: 14px !important;
    line-height: 1.6;
    text-align: left !important;
}

/* ===== Article (site/detail.php) ===== */

/* the main picture, whole (not cropped) */
.gw-article-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 20px;
    border-radius: var(--gw-radius);
    box-shadow: var(--gw-shadow);
}

.gw-article-slides {
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: var(--gw-radius);
    box-shadow: var(--gw-shadow);
}

/* the text: 16px with room between the lines. css/site.css forces 10-11pt on every p, div, span, td... of
   .divcontent with !important, also over the sizes the editor wrote into old news; these rules weigh more */
.divcontent .gw-article,
.divcontent .gw-article :is(p, div, span, li, ul, td, th, tr) {
    font-size: 16px !important;
    line-height: 1.8;
}

.gw-article {
    margin-bottom: 8px;
    color: var(--gw-text);
}

.gw-article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--gw-radius-sm);
}

/* a table in the text scrolls sideways on phones and tablets instead of widening the page (on a wide screen it
   keeps the theme's full width) */
@media (max-width: 991.98px) {
    .gw-article table {
        display: block;
        width: auto !important;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* share bar (site/_share_bar.php): a thin line above, the share group then the "Follow us" group, round buttons of
   at least 40px; the colour of a button comes from Share Platforms, the copy button keeps the theme's grey */
.gw-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gw-border);
}

.gw-share .gw-share-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* on a wide screen the pages sit at the right end; a narrow one wraps them under the share buttons */
.gw-share .gw-share-group--link {
    margin-left: auto;
}

.gw-share .gw-share-label {
    margin-right: 4px;
    color: var(--gw-muted);
    font-weight: 600;
}

.share-content.gw-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    line-height: 1;
    background-color: #888888;
    overflow: hidden;
}

.share-content.gw-share a img {
    display: block;
    width: 18px;
    height: 18px;
}

/* an uploaded icon fills the circle */
.share-content.gw-share a.gw-share-btn--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .gw-share .gw-share-group--link {
        margin-left: 0;
    }
}

/* ===== News list (site/contents.php) ===== */

/* search bar: field and button in one pill, the Title / Content choices under it */
.gw-searchbar {
    margin: 4px 0 22px;
}

.gw-searchbar-field {
    display: flex;
    max-width: 560px;
    overflow: hidden;
    border: 1px solid var(--gw-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.gw-searchbar-field:focus-within {
    border-color: var(--gw-accent-ink);
    box-shadow: 0 0 0 3px rgba(16, 24, 40, .08);
}

.gw-searchbar-field .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
}

/* the pill shows the focus (focus-within), an outline inside it would be cut */
.gw-searchbar-field .form-control:focus-visible {
    outline: none;
}

.gw-searchbar-btn {
    flex: 0 0 auto;
    width: 54px;
    border: 0;
    background: var(--gw-accent);
    color: var(--gw-on-accent);
    font-size: 17px;
}

.gw-searchbar-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 10px 6px 0;
    color: var(--gw-muted);
    font-size: 14px;
}

.gw-searchbar-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

/* cards: 3 columns from 992px, 2 from 576px, 1 on phones; display 0 is one card per row */
.gw-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

@media (max-width: 991.98px) {
    .gw-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .gw-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gw-cards.gw-cards--rows {
    grid-template-columns: minmax(0, 1fr);
}

.gw-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--gw-radius);
    background: #fff;
    box-shadow: var(--gw-shadow);
    color: var(--gw-text);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

a.gw-card:hover,
a.gw-card:focus-visible {
    box-shadow: var(--gw-shadow-hover);
    color: var(--gw-text);
    text-decoration: none;
    transform: translateY(-4px);
}

a.gw-card:hover .gw-card-title,
a.gw-card:focus-visible .gw-card-title {
    color: var(--gw-accent-ink);
}

/* the picture fills a 16:9 frame (cropped); min-height and overflow keep a tall picture from growing the frame */
.gw-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: var(--gw-soft);
}

.gw-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

a.gw-card:hover .gw-card-img img {
    transform: scale(1.03);
}

.gw-badge-hot {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #d9230f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    vertical-align: middle;
}

.gw-card-img .gw-badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.gw-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.gw-card-date {
    margin: 0;
    color: var(--gw-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* two lines of title, three of summary; the line height leaves room for the marks above and below Lao letters */
.gw-card-title {
    display: -webkit-box;
    margin: 0;
    /* the theme gives every h2 a padding-bottom of 10px */
    padding: 0;
    overflow: hidden;
    color: var(--gw-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.gw-card-summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #475467;
    font-size: 14.5px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.gw-card-more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--gw-accent-ink);
    font-size: 14px;
    font-weight: 600;
}

/* display 0: the picture on the left third, the text on the right; on phones the picture on top. The whole title
   and summary show, as before: a category without news pages has no other place to read them */
.gw-card--row {
    flex-direction: row;
}

.gw-card--row .gw-card-title,
.gw-card--row .gw-card-summary {
    display: block;
    overflow: visible;
    -webkit-line-clamp: none;
    line-clamp: none;
}

.gw-card--row .gw-card-img {
    flex: 0 0 34%;
    align-self: flex-start;
}

@media (max-width: 575.98px) {
    .gw-card--row {
        flex-direction: column;
    }

    .gw-card--row .gw-card-img {
        flex-basis: auto;
        width: 100%;
    }
}

/* tables (documents of a category, attachments, search results): scroll sideways inside their frame on phones */
.gw-table-wrap {
    margin-bottom: 26px;
    overflow-x: auto;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.gw-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.gw-table th,
.gw-table td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--gw-border);
    vertical-align: middle;
}

.gw-table th {
    background: var(--gw-soft);
    color: var(--gw-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.gw-table tbody tr:last-child td {
    border-bottom: 0;
}

.gw-table tbody tr:hover td {
    background: #f9fafb;
}

/* the theme's .img-fluid (max-width 100% !important) would squeeze the picture with its column on phones */
.gw-table .gw-table-photo {
    width: 96px;
}

.gw-table .gw-table-photo img {
    width: 72px;
    max-width: none !important;
    border-radius: var(--gw-radius-sm);
}

.gw-table .gw-table-title {
    min-width: 220px;
    line-height: 1.7;
}

/* !important with more weight than css/site.css's ".divcontent td a { color: #5588D9 !important }" */
.gw-table .gw-table-title a {
    color: var(--gw-accent-ink) !important;
    font-weight: 600;
}

.gw-table .gw-table-files {
    white-space: nowrap;
}

.gw-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 2px 4px 2px 0;
    border-radius: var(--gw-radius-sm);
    background: var(--gw-accent);
    color: var(--gw-on-accent);
    font-size: 16px;
    text-decoration: none;
    transition: filter .15s ease;
}

.gw-icon-btn:hover,
.gw-icon-btn:focus-visible {
    color: var(--gw-on-accent);
    filter: brightness(.9);
}

/* inside a table: more weight than css/site.css's ".divcontent td a" (blue, !important) */
.gw-table a.gw-icon-btn {
    color: var(--gw-on-accent) !important;
}

/* pager: rounded buttons, the current page in the accent colour */
.gw-pager {
    display: flex;
    justify-content: center;
    margin: 6px 0 26px;
}

.gw-pager .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.gw-pager .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin-left: 0;
    padding: 0 10px;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius-sm);
    background: #fff;
    color: var(--gw-text);
}

.gw-pager .page-item .page-link:hover {
    background: var(--gw-soft);
    color: var(--gw-text);
}

.gw-pager .page-item.active .page-link {
    border-color: var(--gw-accent);
    background: var(--gw-accent);
    color: var(--gw-on-accent);
}

.gw-pager .page-item.disabled .page-link {
    background: #fff;
    color: #c0c5cc;
}

/* nothing to show */
.gw-empty {
    padding: 48px 16px;
    color: var(--gw-muted);
    text-align: center;
}

.gw-empty .fa {
    display: block;
    margin-bottom: 12px;
    font-size: 40px;
    opacity: .6;
}

.gw-empty p {
    margin: 0;
    font-size: 16px;
}

/* css/site.css justifies every div / p / span of .divcontent and sets them to 10-11pt with !important */
.divcontent .gw-empty,
.divcontent .gw-empty p {
    text-align: center !important;
}

.divcontent .gw-empty p {
    font-size: 16px !important;
}

.divcontent .gw-empty .fa {
    font-size: 40px !important;
}

/* ===== Forms (contact, issue, search, meeting registration) =====
   The theme gives .scheduler-border (fieldset and legend) a grooved border, padding and margin with !important;
   these rules weigh more. */
fieldset.scheduler-border,
fieldset.scheduler-border1 {
    margin: 0 0 24px !important;
    padding: 20px !important;
    border: 1px solid var(--gw-border) !important;
    border-radius: var(--gw-radius);
    background: #fff;
    box-shadow: var(--gw-shadow) !important;
}

legend.scheduler-border,
legend.scheduler-border1 {
    width: 100%;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--gw-text);
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5;
    text-align: left !important;
}

:is(fieldset.scheduler-border, fieldset.scheduler-border1) .form-label {
    margin-bottom: 6px;
    color: var(--gw-text);
    font-size: 14px;
    font-weight: 600;
}

:is(fieldset.scheduler-border, fieldset.scheduler-border1, .gw-form-card) :is(.form-control, .form-select) {
    min-height: 44px;
    border-color: #d0d5dd;
    border-radius: var(--gw-radius-md);
    font-size: 15px;
}

:is(fieldset.scheduler-border, fieldset.scheduler-border1, .gw-form-card) input:is([type=text], [type=email], [type=number], [type=tel]).form-control,
:is(fieldset.scheduler-border, fieldset.scheduler-border1, .gw-form-card) .form-select {
    height: 44px;
}

:is(fieldset.scheduler-border, fieldset.scheduler-border1, .gw-form-card) :is(.form-control, .form-select):focus {
    border-color: var(--gw-accent-ink);
    box-shadow: 0 0 0 3px rgba(16, 24, 40, .08);
}

/* the field and the picture of the captcha side by side; a short line under them says how to change the picture */
.gw-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gw-captcha .form-control {
    flex: 1 1 auto;
    max-width: 260px;
}

.gw-captcha img {
    height: 44px;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius-sm);
    cursor: pointer;
}

.divcontent .gw-hint {
    margin: 6px 0 16px;
    color: var(--gw-muted);
    font-size: 13px !important;
    text-align: left !important;
}

/* the main button of a form, in the site's accent colour with readable text */
.btn.gw-btn,
.btn.gw-btn:hover,
.btn.gw-btn:focus,
.btn.gw-btn:active,
.btn.gw-btn:disabled {
    border-color: var(--gw-accent);
    background-color: var(--gw-accent);
    color: var(--gw-on-accent);
}

.btn.gw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--gw-radius-md);
    font-size: 16px;
    font-weight: 600;
}

.btn.gw-btn:hover,
.btn.gw-btn:focus-visible {
    filter: brightness(.93);
}

@media (max-width: 575.98px) {
    .divcontent .btn.gw-btn,
    fieldset.scheduler-border1 .btn.gw-btn {
        width: 100%;
    }
}

/* issue form: the file field and its buttons in one row */
.gw-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 12px;
}

.gw-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

/* a small card (meeting code) */
.gw-form-card {
    max-width: 340px;
    padding: 20px;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    background: #fff;
    box-shadow: var(--gw-shadow);
}

.gw-form-card-note {
    max-width: 340px;
}

/* registration form: how many people may register, how many did */
.gw-form-counts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gw-border);
    font-size: 15px;
}

.gw-form-count-max {
    color: #b42318;
    font-weight: 600;
}

.gw-form-count-done {
    color: #067647;
    text-decoration: none;
}

/* messages: success and error boxes of Bootstrap, with an icon */
.alert.gw-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: var(--gw-radius-md);
    line-height: 1.7;
}

.alert.gw-alert > .fa {
    margin-top: 4px;
    font-size: 20px;
}

.gw-alert-page {
    max-width: 640px;
    margin: 40px auto;
}

/* ===== Meetings (site/list_meeting.php): one row per meeting =====
   css/site.css forces every span of .divcontent to 10-11pt with !important */
.gw-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gw-list-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--gw-radius);
    background: #fff;
    box-shadow: var(--gw-shadow);
    color: var(--gw-text);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

a.gw-list-row:hover,
a.gw-list-row:focus-visible {
    box-shadow: var(--gw-shadow-hover);
    color: var(--gw-text);
    text-decoration: none;
    transform: translateY(-2px);
}

.gw-list-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: var(--gw-radius-md);
    background: var(--gw-soft);
    color: var(--gw-accent-ink);
}

.divcontent .gw-list-icon .fa {
    font-size: 20px !important;
}

.gw-list-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.divcontent .gw-list-title {
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.6;
    text-align: left !important;
}

.divcontent .gw-list-meta {
    color: var(--gw-muted);
    font-size: 13px !important;
    text-align: left !important;
}

.gw-list-go {
    color: var(--gw-muted);
    font-size: 20px;
}

/* ===== Sitemap (site/sitemap.php): its own page (layout main_register) and, when Manage Banner enables it, the
   bottom of every page of layout main. The sections flow in columns in menu order; the pages of a section hang on a
   line, like the menu they come from, and the mark at the top of the line has the colour of the menu bar
   (--gw-sitemap-mark, set on the nav). --gw-sitemap-pad is the space above a page's text: the tick to the page sits
   in the middle of its first line (line height 1.6em, so .8em below the text's top). ===== */
.gw-sitemap {
    --gw-sitemap-pad: 8px;
    --gw-sitemap-line: #d0d5dd;
    columns: 15rem auto;
    column-gap: 40px;
    padding: 24px 16px 8px;
    color: var(--gw-text);
    text-align: left;
}

@media (min-width: 768px) {
    .gw-sitemap {
        padding: 32px 28px 12px;
    }
}

/* rows of 40px on touch screens, closer with a mouse */
@media (min-width: 992px) {
    .gw-sitemap {
        --gw-sitemap-pad: 5px;
    }
}

.gw-sitemap-section {
    break-inside: avoid;
    margin: 0 0 24px;
}

.gw-sitemap .gw-sitemap-title {
    position: relative;
    margin: 0;
    padding: 0 0 6px 16px;
    color: var(--gw-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

/* the mark: as tall as the title's first line, above the line the pages hang on */
.gw-sitemap .gw-sitemap-title::before {
    content: "";
    position: absolute;
    top: .2em;
    left: 0;
    width: 4px;
    height: 1.2em;
    border-radius: 2px;
    background: var(--gw-sitemap-mark, var(--gw-text));
}

/* a section without pages is a link itself: underlined, so it does not pass for a heading of pages */
.gw-sitemap .gw-sitemap-title a {
    color: inherit;
    text-decoration: underline 2px var(--gw-sitemap-line);
    text-underline-offset: 6px;
}

.gw-sitemap .gw-sitemap-title a:hover {
    color: var(--gw-accent-ink);
    text-decoration-color: currentColor;
}

.gw-sitemap .gw-sitemap-pages {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-sitemap .gw-sitemap-pages li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
}

/* the line, down to the tick of the last page */
.gw-sitemap .gw-sitemap-pages li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1px;
    width: 2px;
    background: var(--gw-sitemap-line);
}

.gw-sitemap .gw-sitemap-pages li:last-child::before {
    bottom: auto;
    height: calc(var(--gw-sitemap-pad) + .8em + 1px);
}

/* the tick from the line to the page */
.gw-sitemap .gw-sitemap-pages li::after {
    content: "";
    position: absolute;
    top: calc(var(--gw-sitemap-pad) + .8em - 1px);
    left: 3px;
    width: 9px;
    height: 2px;
    background: var(--gw-sitemap-line);
}

.gw-sitemap .gw-sitemap-pages li:hover::after,
.gw-sitemap .gw-sitemap-pages li:focus-within::after {
    background: var(--gw-accent-ink);
}

.gw-sitemap .gw-sitemap-pages a {
    display: block;
    padding: var(--gw-sitemap-pad) 10px;
    border-radius: var(--gw-radius-sm);
    color: var(--gw-text);
    text-decoration: none;
}

.gw-sitemap .gw-sitemap-pages a:hover {
    background: var(--gw-soft);
    color: var(--gw-accent-ink);
}

/* at the bottom of layout main the sitemap is outside the areas of the shared focus rule (top of this file) */
.gw-sitemap a:focus-visible {
    outline: 3px solid var(--gw-accent-ink);
    outline-offset: 1px;
}

/* ===== Reduced motion: no lift or slide for people who ask their system for less movement ===== */
@media (prefers-reduced-motion: reduce) {
    [class*="gw-"],
    .gw-card-img img {
        transition: none !important;
        transform: none !important;
    }
}
