/* Weather hub (category "weather"): enqueued by category.php when the description contains class="rome-weather-hub". */
body.category main article.article-wrap .rwh-lede {
    font-size: 19px;
    line-height: 1.55;
    color: #27251f;
    margin: 8px 0 20px;
}
body.category main article.article-wrap .rome-weather-hub h2 {
    text-align: left;
    font-size: 25px;
    line-height: 1.25;
    margin: 36px 0 12px;
}
body.category main article.article-wrap .rome-weather-hub h3 {
    text-align: left;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 6px;
}
.rome-weather-hub .rwh-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.rome-weather-hub .rwh-facts div {
    background: #faf8f3;
    border: 1px solid #dfd9cc;
    border-radius: 12px;
    padding: 12px 14px;
}
.rome-weather-hub .rwh-facts span,
.rome-weather-hub .rwh-facts em {
    display: block;
    font-size: 14px;
    font-style: normal;
    color: #6b6457;
}
.rome-weather-hub .rwh-facts strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    color: #27251f;
}

.rome-weather-hub .rwh-months {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
body.category main article.article-wrap .rome-weather-hub a.rwh-month {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 4px;
    align-content: start;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #dfd9cc;
    border-radius: 12px;
    color: #27251f;
    text-decoration: none;
    transition: border-color .15s;
}
body.category main article.article-wrap .rome-weather-hub a.rwh-month:hover { border-color: #785c2b; }
body.category main article.article-wrap .rome-weather-hub a.rwh-month.is-selected {
    border: 2px solid #785c2b;
    padding: 11px 13px;
    background: #faf8f3;
}
.rome-weather-hub .rwh-month b { font-size: 17px; }
.rome-weather-hub .rwh-month strong {
    grid-column: 1 / -1;
    font-size: 22px;
    line-height: 1.2;
}
.rome-weather-hub .rwh-month strong small {
    font-size: 15px;
    font-weight: 400;
    color: #6b6457;
}
.rome-weather-hub .rwh-month > span {
    grid-column: 1 / -1;
    font-size: 14px;
    color: #6b6457;
}
.rome-weather-hub .rwh-month .rwh-now {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #785c2b;
}

.rome-weather-hub .rwh-tag {
    display: inline-block;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
    padding: 1px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.rome-weather-hub .rwh-ideal { background: #e3efd6; color: #2f5410; }
.rome-weather-hub .rwh-hot { background: #fbe7cf; color: #7a420a; }
.rome-weather-hub .rwh-rain { background: #dfeaf6; color: #17426e; }
.rome-weather-hub .rwh-cool { background: #e7ecef; color: #384a57; }
.rome-weather-hub .rwh-mild { background: #efece4; color: #4f4a40; }
body.category main article.article-wrap .rome-weather-hub .rwh-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
    font-size: 13px;
    color: #6b6457;
    margin: 10px 0 0;
}
.rome-weather-hub .rwh-legend .rwh-tag { margin-right: 4px; }

.rome-weather-hub .rwh-detail {
    margin-top: 12px;
    padding: 16px 18px;
    border: 2px solid #785c2b;
    border-radius: 12px;
    background: #faf8f3;
}
.rome-weather-hub .rwh-detail[hidden] { display: none; }
.rome-weather-hub .rwh-months > .rwh-detail { grid-column: 1 / -1; margin-top: 0; }
body.category main article.article-wrap .rome-weather-hub .rwh-detail h3 { margin: 0 0 4px; }
body.category main article.article-wrap .rome-weather-hub .rwh-detail p { margin: 6px 0 0; }
.rome-weather-hub .rwh-detail .rwh-stats { color: #6b6457; font-size: 15px; }
.rome-weather-hub .rwh-detail .rwh-now-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 6px;
    background: #efece4;
    color: #4f4a40;
    font-size: 12px;
    font-weight: 400;
    vertical-align: 3px;
}
body.category main article.article-wrap .rome-weather-hub .rwh-detail .rwh-event {
    margin-top: 10px;
    padding: 10px 12px 10px 40px;
    position: relative;
    background: #fdf3e3;
    border: 1px solid #f0d9b0;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #5a3a0a;
}
.rome-weather-hub .rwh-event::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 12px;
    width: 18px;
    height: 18px;
    background: #a0621a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16M12 15v2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16M12 15v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rome-weather-hub .rwh-detail-pack b { color: #785c2b; margin-right: 2px; }
body.category main article.article-wrap .rome-weather-hub .rwh-detail a.rwh-more {
    display: inline-block;
    margin-top: 14px;
    padding: 11px 20px;
    background: #785c2b;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background .15s;
}
body.category main article.article-wrap .rome-weather-hub .rwh-detail a.rwh-more:hover { background: #5f4820; color: #fff; }
@media (max-width: 767px) {
    body.category main article.article-wrap .rome-weather-hub .rwh-detail a.rwh-more { display: block; text-align: center; }
}

.rome-weather-hub .rwh-seasons,
.rome-weather-hub .rwh-tips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.rome-weather-hub .rwh-seasons section {
    background: #faf8f3;
    border: 1px solid #dfd9cc;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}
body.category main article.article-wrap .rome-weather-hub .rwh-seasons p,
body.category main article.article-wrap .rome-weather-hub .rwh-tips p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}
body.category main article.article-wrap .rome-weather-hub .rwh-seasons .rwh-pack {
    margin-top: auto;
    padding: 10px 12px 10px 42px;
    position: relative;
    background: #fff;
    border: 1px solid #dfd9cc;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: #27251f;
}
body.category main article.article-wrap .rome-weather-hub .rwh-seasons p:not(.rwh-pack) { margin-bottom: 14px; }
.rome-weather-hub .rwh-pack::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 11px;
    width: 18px;
    height: 18px;
    background: #785c2b;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rome-weather-hub .rwh-pack b { color: #785c2b; margin-right: 4px; }
.rome-weather-hub .rwh-tips > div {
    border-top: 2px solid #dfd9cc;
    padding-top: 10px;
}

.rome-weather-hub .rwh-cams {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
body.category main article.article-wrap .rome-weather-hub .rwh-cams a {
    display: block;
    overflow: hidden;
    border: 1px solid #dfd9cc;
    border-radius: 12px;
    color: #27251f;
    text-decoration: none;
    font-weight: 600;
}
body.category main article.article-wrap .rome-weather-hub .rwh-cams img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}
body.category main article.article-wrap .rome-weather-hub .rwh-cams span {
    display: block;
    padding: 9px 12px;
    line-height: 1.3;
}
body.category main article.article-wrap .rome-weather-hub .rwh-cams span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #c0392b;
    vertical-align: 1px;
}
body.category main article.article-wrap .rome-weather-hub .rwh-cams a:hover { border-color: #785c2b; }

.rome-weather-hub .rwh-table summary {
    cursor: pointer;
    color: #785c2b;
    font-weight: 600;
}
.rome-weather-hub .rwh-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 15px;
}
.rome-weather-hub .rwh-table th,
.rome-weather-hub .rwh-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #e6e1d6;
    text-align: left;
}
.rome-weather-hub .rwh-table th { font-weight: 600; background: #faf8f3; }
body.category main article.article-wrap .rome-weather-hub .rwh-source { font-size: 13px; color: #6b6457; }

@media (max-width: 767px) {
    .rome-weather-hub .rwh-facts,
    .rome-weather-hub .rwh-months,
    .rome-weather-hub .rwh-cams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rome-weather-hub .rwh-seasons,
    .rome-weather-hub .rwh-tips { grid-template-columns: 1fr; }
    .rome-weather-hub .rwh-scroll { overflow-x: auto; max-width: 100%; }
    .rome-weather-hub .rwh-table table { font-size: 14px; min-width: 520px; }
    .rome-weather-hub .rwh-table th,
    .rome-weather-hub .rwh-table td { white-space: nowrap; }
}
