/* The public journal uses the same dates on the front page, in the archive and in each article. */
html[data-office-masthead] {
    --news-ink: #253247;
    --news-paper: #faf9f6;
    --news-mat: #eeebe5;
    --news-line: #d9d5cd;
    --news-muted: #505864;
    --news-title: "Office Naskh", var(--office-text);
}
html[data-office-masthead][lang=en] { --news-title: "Office Baskervville", Georgia, serif; }

#site-content a.office-news-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    box-sizing: border-box;
    min-block-size: 44px;
    max-inline-size: 100%;
    padding: .38rem .8rem;
    border: 1px solid #cdbb9e;
    border-radius: 14px;
    background: #f5eddf;
    box-shadow: inset 0 1px rgb(255 255 255 / .72),0 1px 3px rgb(38 42 46 / .08);
    touch-action: manipulation;
    color: #594325;
    font: 500 .85rem/1.5 var(--office-text);
    font-variant-numeric: tabular-nums;
    text-align: start;
    text-decoration: none;
}
#site-content .office-news-date i { color: inherit; margin: 0; font-size: 1.03em; line-height: 1; }
#site-content .office-news-date time { color: inherit; font: inherit; }
/* The single-post theme pins its original date over the photo and hides its icon. */
#site-content .top-meta-wrap .post-date a.office-news-date {
    position: static;
    inset: auto;
    float: none;
    width: auto;
    height: auto;
    text-transform: none;
}
#site-content .post-date .office-news-date > i { display: inline-block; }
#site-content .post-date .office-news-date time { display: inline; width: auto; white-space: normal; }
#site-content .akb-news-lead .office-news-date { background: #f0dfc2; color: #41321e; border-color: #e8cd9e; }
@media (hover:hover) {
    #site-content a.office-news-date:hover { color: #fffaf1; background: #514230; border-color: #514230; }
}
#site-content a.office-news-date:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
    box-shadow: 0 0 0 5px #3b5068;
}
#site-content a.office-news-date:active { background: #3e342a; color: #fffaf1; }

/* Preserve the theme's article links, author, pagination and sharing controls in chronological rows. */
#site-content .office-news-stream { display: grid; min-inline-size: 0; }
.office-news-stream > article.type-post {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-content: start;
    margin: 0;
    padding: clamp(1.25rem,2.4vw,2.2rem) 0;
    border: 0;
    border-block-end: 1px solid var(--news-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: start;
}
.office-news-stream > article.type-post:first-child { padding-block-start: 0; }
.office-news-stream > article.type-post:has(> .featured-media) {
    grid-template-columns: minmax(6.5rem,28%) minmax(0,1fr);
    column-gap: clamp(.85rem,2vw,1.8rem);
}
.office-news-stream > article.type-post > :not(.featured-media) { grid-column: -2/-1; min-inline-size: 0; }
.office-news-stream > article.type-post > .featured-media {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    margin: 0;
}
.office-news-stream .featured-media .featured-media-inner { width: 100%; max-width: none; margin: 0; }
.office-news-stream .office-news-photo-link {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 13px;
    background: var(--news-mat);
}
.office-news-stream .office-news-photo-link img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}
.office-news-stream :is(.entry-header,.top-meta-wrap,.bottom-meta-wrap,.post-inner,.entry-content) {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    text-align: start;
}
#site-content .office-news-stream .entry-title {
    margin: 0;
    color: var(--news-ink);
    font-family: var(--news-title) !important;
    font-size: clamp(1.45rem,2.25vw,2.2rem);
    font-weight: 560;
    line-height: 1.43;
    text-wrap: pretty;
}
html[lang=en] #site-content .office-news-stream .entry-title { font-weight: 400; line-height: 1.24; }
.office-news-stream .entry-title a { color: inherit; }
.office-news-stream .entry-title a:is(:hover,:focus-visible) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.office-news-stream article > .top-meta-wrap { margin-block: .45rem .25rem; }
.office-news-stream .post-meta,
.single-post #site-content .post-inner > .top-meta-wrap .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .8rem;
    margin: 0;
    padding: 0;
    float: none;
    line-height: 1.55;
}
.office-news-stream .post-meta > li,
.single-post #site-content .post-inner > .top-meta-wrap .post-meta > li { margin: 0; padding: 0; }
.office-news-stream .post-author,
.single-post #site-content .post-inner .post-author { color: var(--news-muted); font: 400 .85rem/1.55 var(--office-text); }
.office-news-stream .post-author a,.single-post #site-content .post-inner .post-author a { color: inherit; }
.office-news-stream .entry-content p { margin: .25rem 0 .45rem; color: var(--news-muted); font-size: .99rem; line-height: 1.72; }
.office-news-stream article > .bottom-meta-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem .7rem;
    margin-block-start: .45rem;
}
.office-news-stream .post-share-wrap .social-share { display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.office-news-stream .office-news-share {
    --share-ink: #535b65;
    color: var(--share-ink);
    text-align: start;
}
.office-news-stream .office-news-share > summary {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    min-height: 44px;
    padding-inline: .75rem;
    border-radius: 14px;
    touch-action: manipulation;
    color: var(--share-ink);
    font: 500 .87rem/1.5 var(--office-text);
    list-style: none;
    cursor: pointer;
}
.office-news-stream .office-news-share > summary::-webkit-details-marker { display: none; }
.office-news-stream .office-news-share > summary:is(:hover,:focus-visible),
.office-news-stream .office-news-share[open] > summary { color: #453b2f; background: #f1ece3; text-decoration: underline; text-underline-offset: .23em; }
.office-news-stream .office-news-share > summary:focus-visible { outline: 2px solid #536782; outline-offset: 2px; }
.office-news-stream .office-news-share[open] > .social-share { padding-block-start: .2rem; }

/* Show publication information before the poster, including on narrow screens. */
.single-post #site-content article.type-post > .post-inner:has(> .featured-media + .top-meta-wrap) {
    display: flex;
    flex-direction: column;
}
.single-post #site-content article.type-post > .post-inner > .top-meta-wrap {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .45rem 1rem;
    margin: 0 0 1.15rem;
    padding: 0 0 .8rem;
    border: 0;
    border-block-end: 1px solid var(--news-line);
    background: transparent;
    box-shadow: none;
}
.single-post #site-content .top-meta-wrap .post-category::before,
.single-post #site-content .top-meta-wrap .post-category a:last-child::after { content: none; }
.single-post #site-content .featured-media:has(.office-news-poster) .featured-media-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(.45rem,1.7vw,1.25rem);
    background: var(--news-mat);
    border-radius: 14px;
}
.single-post #site-content .post-inner > .entry-content { min-inline-size: 0; }
@media (max-width:620px) {
    .office-news-stream > article.type-post:has(> .featured-media) {
        grid-template-columns: clamp(4.4rem,21vw,7.2rem) minmax(0,1fr);
    }
    .office-news-stream > article.type-post > .featured-media { grid-row: 1 / span 2; }
    .office-news-stream > article.type-post > :is(.post-inner,.bottom-meta-wrap) { grid-column: 1/-1; }
    .office-news-stream .office-news-photo-link { border-radius: 9px; }
    .office-news-stream article > .bottom-meta-wrap { justify-content: start; }
}
@media (forced-colors:active) {
    #site-content a.office-news-date { color: LinkText; border-color: LinkText; }
    #site-content a.office-news-date:focus-visible { outline: 2px solid Highlight; box-shadow: none; }
}
@media print {
    #site-content .office-news-stream article { break-inside: avoid; }
    #site-content a.office-news-date,.akb-news .akb-news-lead { color: #111; background: white; }
    .office-news-stream .post-share-wrap { display: none; }
}
