/*
Theme Name: IJPSC Round Table
Theme URI: https://roundtable.ijpsc.org
Author: IJPSC
Author URI: https://ijpsc.org
Description: WordPress theme for the IJPSC Round Table Series. Three-column academic layout with IJPSC identity, editable menus, current event bar, red closed submission status with hint, discreet three-city world clock and homepage content area.
Version: 1.19.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ijpsc-roundtable
*/

:root {
    --ijpsc-blue: #0b2f56;
    --ijpsc-blue-2: #123f6e;
    --ijpsc-ink: #1f2833;
    --ijpsc-muted: #5b6977;
    --ijpsc-line: #d8e1ea;
    --ijpsc-soft: #f3f7fb;
    --ijpsc-soft-2: #eaf1f7;
    --ijpsc-paper: #ffffff;
    --ijpsc-body: #eef3f8;
    --ijpsc-ok: #17653a;
    --ijpsc-closed: #5f6d7a;
    --ijpsc-shadow: 0 8px 20px rgba(18, 44, 74, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.48;
    color: var(--ijpsc-ink);
    background: radial-gradient(circle at 50% 0, rgba(255,255,255,.9), rgba(238,243,248,.95) 42%, #e8eef5 100%);
}
a { color: #116eb8; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-shell {
    width: min(1680px, 100%);
    margin: 0 auto;
    padding: 10px 16px 28px;
}

.rt-masthead {
    background: var(--ijpsc-paper);
    border: 1px solid var(--ijpsc-line);
    box-shadow: var(--ijpsc-shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.rt-masthead:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ijpsc-blue);
}
.masthead-main {
    display: grid;
    grid-template-columns: 220px minmax(420px, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 20px 12px;
}
.masthead-logo {
    display: block;
    width: 200px;
}
.masthead-logo img {
    display: block;
    width: 100%;
    height: auto;
}
.masthead-identity { min-width: 0; }
.series-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 2.1vw, 36px);
    line-height: 1.08;
    color: var(--ijpsc-blue);
    margin: 0 0 4px;
    font-weight: 400;
}
.series-subtitle {
    color: #40576e;
    font-size: 12px;
    letter-spacing: .035em;
}
.meta-strip {
    display: flex;
    justify-content: flex-end;
    align-content: flex-start;
    align-items: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}
.meta-strip span {
    border: 1px solid #d9e2ea;
    background: #fff;
    color: #173b5c;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.top-teaser-bar {
    display: grid;
    grid-template-columns: 180px minmax(330px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    background: #f4f8fb;
    border-top: 1px solid #e1e9f0;
    border-bottom: 1px solid #e1e9f0;
    padding: 10px 20px;
}
.teaser-label {
    color: #66798c;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.teaser-main {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
    color: #173b5c;
}
.teaser-main strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--ijpsc-blue);
}
.teaser-main span {
    color: #4d6478;
    font-size: 12px;
}

.rt-world-clock {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    color: #526777;
}
.rt-clock-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    min-width: 64px;
    padding: 4px 7px;
    border: 1px solid #dde7ef;
    background: rgba(255,255,255,.72);
    line-height: 1.05;
    text-align: right;
}
.rt-clock-city {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7a8997;
}
.rt-clock-time {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #173b5c;
    font-variant-numeric: tabular-nums;
}
.submission-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid #bfd0df;
    background: #fff;
    color: #173b5c;
}
.submission-pill.open {
    background: #eaf7ef;
    border-color: #b7dec6;
    color: var(--ijpsc-ok);
}
.submission-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.submission-pill.closed {
    background: #fff1f2;
    border-color: #e5a3ad;
    color: #9f1239;
    box-shadow: none;
}
.submission-pill.closed:before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #be123c;
}
.submission-hint {
    max-width: 260px;
    color: #7a8794;
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
}
.submission-status-box.closed .submission-hint {
    color: #8a3a46;
}
.event-ribbon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    background: var(--ijpsc-blue);
    color: #fff;
    border-top: 1px solid #234d76;
}
.event-ribbon strong,
.event-ribbon span {
    padding: 10px 14px;
    font-size: 12px;
    border-right: 1px solid rgba(255,255,255,.18);
}
.event-ribbon strong {
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
}

.layout-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 285px;
    gap: 16px;
    align-items: start;
}
.navigation-sidebar,
.publications-sidebar {
    position: sticky;
    top: 12px;
}
.content-main { min-width: 0; }

.side-card,
.nav-card,
.card,
.hero-inner,
.site-main article,
.no-results {
    background: var(--ijpsc-paper);
    border: 1px solid var(--ijpsc-line);
    box-shadow: var(--ijpsc-shadow);
}
.side-card,
.nav-card {
    margin-bottom: 14px;
    padding: 14px;
}
.side-card h2,
.nav-card h2,
.widget-title {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: var(--ijpsc-blue);
    font-size: 18px;
    line-height: 1.2;
}
.side-card h2 span,
.small-kicker,
.widget-title span,
.kicker {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #718296;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.nav-card { border-top: 4px solid var(--ijpsc-blue); }
.round-nav ul,
.ijpsc-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}
.round-nav a,
.ijpsc-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 9px 11px;
    background: #f5f8fb;
    border: 1px solid #dce6ef;
    color: #143b61;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}
.round-nav a:after,
.ijpsc-links a:after { content: '›'; color: #6b7f92; font-size: 17px; line-height: 1; }
.round-nav a:hover,
.round-nav .current-menu-item > a,
.ijpsc-links a:hover {
    background: var(--ijpsc-blue);
    border-color: var(--ijpsc-blue);
    color: #fff;
    text-decoration: none;
}
.round-nav a:hover:after,
.round-nav .current-menu-item > a:after,
.ijpsc-links a:hover:after { color: #fff; }

.event-card-small h3 {
    color: var(--ijpsc-blue);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px;
}
dl { margin: 0 0 12px; }
dl div { border-top: 1px solid #e6edf3; padding: 8px 0; }
dt { color: #718296; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
dd { margin: 2px 0 0; font-size: 12px; color: #2f3f4f; }

.search-row-widget { display: grid; grid-template-columns: 1fr 46px; }
.search-row-widget input[type="search"] {
    height: 40px;
    border: 1px solid #dce4ec;
    padding: 8px 10px;
    font: inherit;
    width: 100%;
}
.search-row-widget button {
    height: 40px;
    background: #202a35;
    color: #fff;
    border: 0;
    font-size: 18px;
    cursor: pointer;
}
.rolling-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rolling-list li {
    padding: 0 0 10px 12px;
    margin: 0 0 10px;
    border-left: 3px solid #d7e4ef;
    border-bottom: 1px solid #edf2f6;
    font-size: 12px;
    line-height: 1.32;
}
.rolling-list li:hover { border-left-color: var(--ijpsc-blue-2); }

.hero { background: transparent; border: 0; padding: 0; margin-bottom: 18px; }
.hero-inner { padding: 22px; position: relative; overflow: hidden; }
.hero-inner:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(18,63,110,.12), rgba(18,63,110,0));
    pointer-events: none;
}
.page-title,
.entry-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: var(--ijpsc-blue);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.12;
    margin: 0 0 12px;
}
.entry-title a { color: inherit; }
.lead { color: #35485a; font-size: 15px; line-height: 1.6; max-width: 980px; }
.small, .help { font-size: 12px; color: var(--ijpsc-muted); }
.slogan {
    display: block;
    border-left: 4px solid var(--ijpsc-blue);
    background: #f2f7fb;
    color: #33495d;
    padding: 11px 14px;
    font-style: italic;
    margin: 14px 0 18px;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #f6f9fb; border: 1px solid var(--ijpsc-line); padding: 13px; }
.stat .label { color: #607080; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.stat .value { color: #172d42; font-weight: 700; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.button,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-block;
    border: 1px solid var(--ijpsc-blue);
    background: var(--ijpsc-blue);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
}
.button.full { display: block; text-align: center; width: 100%; margin-top: 8px; }
.button.secondary { background: #fff; color: var(--ijpsc-blue); border-color: #b9c8d5; }
.button:hover,
.wp-block-button__link:hover { text-decoration: none; background: #092640; color: #fff; }
.button.secondary:hover { background: #edf4fa; color: var(--ijpsc-blue); }

.card,
.site-main article,
.no-results { padding: 20px; margin-bottom: 18px; }
.entry-content { font-size: 14px; }
.entry-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: var(--ijpsc-blue);
    font-size: 24px;
    line-height: 1.25;
    margin: 22px 0 12px;
}
.entry-content p { margin: 0 0 12px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-meta, .entry-footer { font-size: 12px; color: var(--ijpsc-muted); margin-top: 12px; }

.content-footer {
    margin-top: 18px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--ijpsc-line);
    color: #687580;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 12px;
}
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

@media (max-width: 1380px) {
    .masthead-main { grid-template-columns: 180px 1fr; }
    .meta-strip { grid-column: 1 / -1; justify-content: flex-start; padding-top: 6px; }
    .top-teaser-bar { grid-template-columns: 170px 1fr auto; }
}
@media (max-width: 1260px) {
    .layout-grid { grid-template-columns: 270px minmax(0, 1fr); }
    .publications-sidebar {
        grid-column: 1 / -1;
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    .publications-sidebar .side-card { margin-bottom: 0; }
}
@media (max-width: 900px) {
    .site-shell { padding: 10px; }
    .masthead-main { grid-template-columns: 1fr; text-align: left; gap: 12px; }
    .masthead-logo { width: 170px; margin: 0; }
    .top-teaser-bar { grid-template-columns: 1fr; gap: 8px; }
    .layout-grid { grid-template-columns: 1fr; }
    .navigation-sidebar,
    .publications-sidebar { position: static; grid-column: auto; display: block; }
    .grid, .grid-2 { grid-template-columns: 1fr; }
    .content-footer { display: block; }
}
@media (max-width: 560px) {
    .event-ribbon { display: block; text-align: left; }
    .event-ribbon strong,
    .event-ribbon span { display: block; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
    .hero-inner, .card, .site-main article { padding: 16px; }
}

@media (max-width: 900px) {
    .submission-status-box { align-items: flex-start; }
    .submission-hint { text-align: left; max-width: none; }
}


/* v1.4 header world clock placement */
@media (max-width: 1180px) {
    .top-teaser-bar {
        grid-template-columns: 160px minmax(280px, 1fr) auto;
    }
    .rt-world-clock {
        grid-column: 2 / 4;
        justify-content: flex-start;
        order: 3;
    }
    .submission-status-box {
        order: 2;
    }
}
@media (max-width: 780px) {
    .top-teaser-bar {
        grid-template-columns: 1fr;
    }
    .rt-world-clock {
        grid-column: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .rt-clock-item {
        text-align: left;
    }
    .submission-status-box {
        align-items: flex-start;
    }
    .submission-hint {
        text-align: left;
    }
}


/* v1.7 discreet seconds display for header clocks */
.rt-clock-colon {
    display: inline-block;
    min-width: .28em;
    text-align: center;
    animation: ijpsc-rt-clock-colon 1s steps(1, end) infinite;
}
@keyframes ijpsc-rt-clock-colon {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: .18; }
}
@media (prefers-reduced-motion: reduce) {
    .rt-clock-colon {
        animation: none;
        opacity: 1;
    }
}


/* v1.8 header clock seconds, no blinking */
.rt-clock-time {
    white-space: nowrap;
}
.rt-clock-seconds {
    margin-left: 1px;
    font-size: 10px;
    font-weight: 700;
    color: #7a8997;
    opacity: .78;
}
.rt-clock-colon {
    animation: none !important;
    opacity: 1 !important;
}


/* v1.9 Contact Form 7 registration styling */
.entry-content .wpcf7 {
    max-width: 980px;
    margin-top: 22px;
}
.entry-content .wpcf7 form {
    background: #f7fafc;
    border: 1px solid #d9e4ee;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(18, 44, 74, .04);
}
.entry-content .wpcf7 form > p {
    margin: 0 0 14px;
}
.entry-content .wpcf7 label {
    display: block;
    color: #1f3346;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
}
.entry-content .wpcf7 input[type="text"],
.entry-content .wpcf7 input[type="email"],
.entry-content .wpcf7 input[type="url"],
.entry-content .wpcf7 input[type="tel"],
.entry-content .wpcf7 input[type="number"],
.entry-content .wpcf7 select,
.entry-content .wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 5px;
    padding: 10px 11px;
    border: 1px solid #c8d6e3;
    border-radius: 0;
    background: #fff;
    color: #1f2833;
    font: 14px/1.35 Arial, Helvetica, sans-serif;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.entry-content .wpcf7 textarea {
    min-height: 145px;
    resize: vertical;
}
.entry-content .wpcf7 input:focus,
.entry-content .wpcf7 select:focus,
.entry-content .wpcf7 textarea:focus {
    border-color: #0b2f56;
    box-shadow: 0 0 0 3px rgba(11, 47, 86, .08);
}
.entry-content .wpcf7 ::placeholder {
    color: #8392a0;
}
.entry-content .wpcf7 .wpcf7-list-item {
    margin-left: 0;
}
.entry-content .wpcf7 .wpcf7-acceptance label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: #34495e;
}
.entry-content .wpcf7 .wpcf7-acceptance input {
    margin-top: 2px;
}
.entry-content .wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 11px 18px;
    border: 1px solid #0b2f56;
    background: #0b2f56;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.entry-content .wpcf7 input[type="submit"]:hover {
    background: #123f6e;
    border-color: #123f6e;
}
.entry-content .wpcf7 .wpcf7-spinner {
    vertical-align: middle;
}
.entry-content .wpcf7-not-valid-tip {
    margin-top: 4px;
    color: #9f1239;
    font-size: 11px;
}
.entry-content .wpcf7 form.invalid .wpcf7-response-output,
.entry-content .wpcf7 form.unaccepted .wpcf7-response-output,
.entry-content .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #e5a3ad;
    color: #7f1d1d;
    background: #fff1f2;
}
.entry-content .wpcf7 form.sent .wpcf7-response-output {
    border-color: #b7dec6;
    color: #17653a;
    background: #eaf7ef;
}

/* Optional structured CF7 markup. Use these classes in the form for a cleaner two-column layout. */
.rt-registration-form {
    background: #f7fafc;
    border: 1px solid #d9e4ee;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(18, 44, 74, .04);
}
.rt-form-intro {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-left: 3px solid #0b2f56;
    background: #fff;
    color: #40576e;
    font-size: 13px;
}
.rt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
}
.rt-form-field {
    min-width: 0;
}
.rt-form-field.full {
    grid-column: 1 / -1;
}
.rt-form-field .field-label {
    display: block;
    margin-bottom: 5px;
    color: #1f3346;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
}
.rt-form-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
}
.rt-form-note {
    margin-top: 10px;
    color: #6b7d8d;
    font-size: 11px;
}
@media (max-width: 760px) {
    .rt-form-grid {
        grid-template-columns: 1fr;
    }
    .entry-content .wpcf7 form,
    .rt-registration-form {
        padding: 14px;
    }
}


/* v1.12 DOI wrapping in publication widgets and narrow content areas */
.rolling-list a,
.publications-card a,
.publications-sidebar a,
.widget a,
.entry-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.rolling-list a[href*="doi.org"],
.publications-card a[href*="doi.org"],
.publications-sidebar a[href*="doi.org"],
.widget a[href*="doi.org"],
.entry-content a[href*="doi.org"] {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.rolling-list li {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* v1.13 restore right sidebar widgets and keep search widgets neat */
.publications-sidebar .widget_search form,
.publications-sidebar .wp-block-search {
    margin: 0;
}
.publications-sidebar .widget_search .search-form,
.publications-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.publications-sidebar .widget_search input[type="search"],
.publications-sidebar .wp-block-search__input {
    min-width: 0;
    width: 100%;
    border: 1px solid #c8d6e3;
    padding: 9px 10px;
    font-size: 13px;
}
.publications-sidebar .widget_search .search-submit,
.publications-sidebar .wp-block-search__button {
    border: 1px solid #1f2833;
    background: #1f2833;
    color: #fff;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}


/* v1.14 Rolling Release block removed from right sidebar.
   WordPress widgets remain active via Design > Widgets. */


/* v1.15 homepage hero clean white background */
.home .hero-inner,
.home .hero-card,
.home .hero-main,
.home .hero-summary,
.home .hero-content,
.home .hero-header,
.home .entry-hero,
.home .page-hero,
.home .intro-panel {
    background: #ffffff !important;
    background-image: none !important;
}
.home .hero-inner::before,
.home .hero-inner::after,
.home .hero-card::before,
.home .hero-card::after,
.home .hero-main::before,
.home .hero-main::after,
.home .hero-summary::before,
.home .hero-summary::after {
    display: none !important;
    content: none !important;
}
.home .hero-inner,
.home .hero-card,
.home .hero-main,
.home .hero-summary,
.home .entry-hero,
.home .page-hero,
.home .intro-panel {
    box-shadow: none !important;
}


/* v1.16 current event moved from left sidebar to right sidebar */
.right-event-card {
    border-top: 4px solid var(--ijpsc-blue);
}
.right-event-card .button.full {
    margin-top: 8px;
}


/* v1.17 full responsive cleanup */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

.site-shell,
.rt-masthead,
.layout-grid,
.navigation-sidebar,
.publications-sidebar,
.content-main,
.side-card,
.nav-card,
.card,
.hero-inner,
.site-main article,
.no-results {
    min-width: 0;
}

@media (max-width: 1180px) {
    .site-shell {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .masthead-main {
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: start;
    }

    .meta-strip {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .top-teaser-bar {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .teaser-main {
        display: block;
    }

    .teaser-main strong,
    .teaser-main span {
        display: block;
    }

    .rt-world-clock {
        grid-column: auto;
        order: 0;
        justify-content: flex-start;
        width: 100%;
    }

    .submission-status-box {
        order: 0;
        align-items: flex-start;
        width: 100%;
    }

    .submission-hint {
        text-align: left;
        max-width: none;
    }

    .layout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .navigation-sidebar,
    .publications-sidebar,
    .content-main {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
        position: static;
    }

    .navigation-sidebar {
        order: 1;
    }

    .content-main {
        order: 2;
    }

    .publications-sidebar {
        order: 3;
        display: block !important;
    }

    .publications-sidebar .side-card,
    .publications-sidebar .nav-card,
    .navigation-sidebar .side-card,
    .navigation-sidebar .nav-card {
        width: 100%;
        max-width: none;
        margin-bottom: 14px;
    }
}

@media (max-width: 760px) {
    .site-shell {
        padding: 8px;
    }

    .rt-masthead {
        margin-bottom: 10px;
    }

    .masthead-main {
        display: block;
        padding: 14px;
    }

    .masthead-logo {
        width: 150px;
        margin-bottom: 10px;
    }

    .series-title {
        font-size: 25px;
        line-height: 1.12;
    }

    .series-subtitle {
        font-size: 11px;
        line-height: 1.35;
    }

    .meta-strip {
        margin-top: 10px;
        justify-content: flex-start;
        gap: 5px;
    }

    .meta-strip span {
        font-size: 9px;
        padding: 3px 6px;
    }

    .top-teaser-bar {
        padding: 10px 14px;
    }

    .teaser-label {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .teaser-main strong {
        font-size: 18px;
        line-height: 1.2;
    }

    .rt-world-clock {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .rt-clock-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        text-align: left;
        padding: 7px 9px;
    }

    .rt-clock-city {
        font-size: 10px;
    }

    .rt-clock-time {
        font-size: 14px;
    }

    .event-ribbon {
        display: block;
    }

    .event-ribbon strong,
    .event-ribbon span {
        display: block;
        width: 100%;
        padding: 9px 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

    .layout-grid {
        gap: 10px;
    }

    .side-card,
    .nav-card,
    .card,
    .hero-inner,
    .site-main article,
    .no-results {
        width: 100%;
        max-width: none;
        padding: 14px;
        margin-bottom: 10px;
    }

    .round-nav ul,
    .ijpsc-links ul {
        margin: 0;
        padding: 0;
    }

    .round-nav a,
    .ijpsc-links a {
        width: 100%;
    }

    .publications-sidebar .widget_search .search-form,
    .publications-sidebar .wp-block-search__inside-wrapper,
    .search-row-widget {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .publications-sidebar .widget_search input[type="search"],
    .publications-sidebar .wp-block-search__input,
    .search-row-widget input[type="search"] {
        min-width: 0;
        width: 100%;
    }

    .right-event-card .button.full,
    .button.full {
        width: 100%;
    }

    .content-footer {
        display: block;
        padding: 12px;
    }

    .entry-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content .wpcf7 {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 13px;
    }

    .site-shell {
        padding-left: 6px;
        padding-right: 6px;
    }

    .series-title {
        font-size: 23px;
    }

    .side-card,
    .nav-card,
    .card,
    .hero-inner,
    .site-main article,
    .no-results {
        padding: 12px;
    }

    .submission-pill {
        width: 100%;
    }

    .rt-clock-item {
        padding: 7px 8px;
    }

    .publications-sidebar .widget_search .search-form,
    .publications-sidebar .wp-block-search__inside-wrapper,
    .search-row-widget {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .publications-sidebar .widget_search .search-submit,
    .publications-sidebar .wp-block-search__button,
    .search-row-widget button {
        width: 100%;
    }
}


/* v1.18 current event restored as first block in left navigation */
.navigation-sidebar .event-card-small:first-child {
    border-top: 4px solid var(--ijpsc-blue);
}


/* v1.19 centered header clocks and countdown */
.rt-clock-item {
    text-align: center;
    justify-items: center;
}
.rt-clock-city {
    text-align: center;
    width: 100%;
}
.rt-countdown-item {
    min-width: 132px;
}
.rt-countdown-item .rt-clock-city {
    letter-spacing: .11em;
}
.rt-countdown-time {
    font-size: 13px;
    white-space: nowrap;
}
.rt-countdown-days {
    color: #173b5c;
    font-weight: 700;
}
@media (max-width: 760px) {
    .rt-world-clock {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .rt-clock-item {
        justify-content: center;
        text-align: center;
        display: grid;
    }
    .rt-countdown-item {
        grid-column: 1 / -1;
        min-width: 0;
    }
}
@media (max-width: 420px) {
    .rt-world-clock {
        grid-template-columns: 1fr !important;
    }
}
