/*
 * La Salle Hotel School: news index and editorial article (round 9, B18, 16 Nov 2026; contract v1.1 E19).
 * Loaded by inc/news.php on the news index, archives and single posts only. Owns every ls-news-* and ls-article*
 * rule for these templates; nothing here reaches into another component.
 */

/* ------------------------------------------------------------------ index: hero, spotlight, archive */
.ls-main .ls-section:is(.ls-news-spotsec, .ls-news-archsec, .ls-article-footsec) { margin-block: 0; padding-block: var(--ls-section); }
.ls-main :is(.ls-news-spotsec, .ls-news-archsec) > .alignwide > * { margin-block: 0; }
.ls-news-hero p.ls-news-hero__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sun); }
.ls-news-spotsec { background: #fff; }

.ls-main .ls-news-spot .ls-news-spot__list { list-style: none; margin: 0; padding: 0; }
.ls-main .ls-news-spot__item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin: 0; }
.ls-main .ls-news-spot__item > * { margin: 0; min-width: 0; }
.ls-main .ls-news-spot__media { margin: 0; }
.ls-main .ls-news-spot__media img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ls-radius); }
.ls-main .ls-news-spot__copy > * { margin: 0; }
.ls-main .ls-news-spot__copy > * + * { margin-top: var(--ls-stack-s); }
.ls-main p.ls-news-spot__kicker { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ember); }
.ls-main .ls-news-spot__title a { color: var(--navy); text-decoration: none; }
.ls-main .ls-news-spot__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ls-main .ls-news-spot__excerpt p { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 36em; }
.ls-main .ls-news-spot__more { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--ls-radius); background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.ls-main .ls-news-spot__more:hover { background: var(--ink); }
.ls-main .ls-news-spot__more:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.ls-main .ls-news-arch__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.ls-main .ls-news-arch__head > * { margin: 0; }
.ls-main p.ls-news-arch__lede { font-size: 16px; color: var(--ink); }
.ls-main .ls-news-arch__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) var(--ls-gutter); }
.ls-main .ls-news-arch__list > li { margin: 0; display: flex; flex-direction: column; border-top: 2px solid var(--navy); padding-top: 18px; }
.ls-main .ls-news-arch__list > li > * { margin: 0; }
.ls-main .ls-news-arch__media { order: 3; margin-top: 16px; }
.ls-main .ls-news-arch__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ls-radius); }
.ls-main .ls-news-arch__date { order: 1; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ember); }
.ls-main .ls-news-arch__title { order: 2; margin-top: 6px; }
.ls-main .ls-news-arch__title a { color: var(--navy); text-decoration: none; }
.ls-main .ls-news-arch__title a:hover { text-decoration: underline; }
.ls-main .ls-news-arch__excerpt { order: 4; margin-top: 12px; }
.ls-main .ls-news-arch__excerpt p { font-size: 17px; line-height: 1.5; color: var(--ink); }

/* Numbered pagination: large numerals, the current page filled. */
.ls-main .ls-news-pages { margin-top: clamp(40px, 5vw, 64px); gap: 8px; font-weight: 700; }
.ls-main .ls-news-pages .page-numbers, .ls-main .ls-news-pages a { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: var(--ls-radius); color: var(--navy); text-decoration: none; font-family: var(--ls-f-display); font-size: 22px; font-variant-numeric: lining-nums; }
.ls-main .ls-news-pages .page-numbers.current { background: var(--navy); color: #fff; }
.ls-main .ls-news-pages a:hover { background: var(--mist); }
.ls-main .ls-news-pages a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.ls-main .ls-news-pages :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) { font-family: var(--ls-f-body); font-size: 16px; }

.ls-main .ls-empty { max-width: 640px; padding: 32px; background: var(--paper); border-radius: var(--ls-radius); }
.ls-main .ls-empty > * { margin: 0; }
.ls-main .ls-empty > * + * { margin-top: 12px; }

@media (max-width: 900px) {
	.ls-main .ls-news-spot__item { grid-template-columns: 1fr; }
	.ls-main .ls-news-arch__list { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) { .ls-main .ls-news-arch__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ the article: editorial, one measure, no long project scroll */
.ls-article-hero { background: var(--paper); padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 48px); }
.ls-main .ls-article__head { max-width: 820px; margin-inline: auto; }
.ls-main .ls-article__head > * { margin: 0; }
.ls-main .ls-article__head > * + * { margin-top: var(--ls-stack-s); }
.ls-main .ls-article__kicker a { color: var(--ember); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.ls-main .ls-article__title { text-wrap: balance; }
.ls-main .ls-article__date { font-size: 15px; color: var(--ink); }
/* Landscape only, so a portrait photo never leaves empty space beside or under it. */
.ls-main .ls-article__image { margin-block: clamp(32px, 4vw, 48px) 0; }
.ls-main .ls-article__image img { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 72vh; object-fit: cover; border-radius: var(--ls-radius); }
.ls-main .ls-article__body { padding-block: clamp(40px, 5vw, 64px); }
.ls-main .ls-article__body > * { max-width: 600px; }
.ls-main .ls-article__body p { font-size: 19px; line-height: 1.7; }
.ls-main .ls-article__body > p:first-child { font-size: var(--ls-fs-lede); line-height: 1.5; color: var(--navy); }
.ls-main .ls-article__body h2 { margin-top: 1.6em; }
.ls-main .ls-article__body figure img { border-radius: var(--ls-radius); }
.ls-main .ls-article__foot { max-width: 820px; margin-inline: auto; }
.ls-main .ls-article__foot > * { margin: 0; }
.ls-main .ls-article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ls-gutter); }
.ls-main .ls-article__nav > * { margin: 0; }
.ls-main .ls-article__nav a { display: block; padding: 20px 22px; background: #fff; border-radius: var(--ls-radius); color: var(--navy); font-family: var(--ls-f-display); font-size: 20px; line-height: 1.3; text-decoration: none; }
.ls-main .ls-article__nav a:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.ls-main .ls-article__nav .ls-article__next { text-align: right; }
.ls-main .ls-article__nav .post-navigation-link__label { display: block; margin-bottom: 6px; font-family: var(--ls-f-body); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ember); }
.ls-main p.ls-article__all { margin-top: var(--ls-stack-l); }
@media (max-width: 781px) { .ls-main .ls-article__nav { grid-template-columns: 1fr; } .ls-main .ls-article__nav .ls-article__next { text-align: left; } }

/* Preview fixes (B18): the spotlight spans the wide column, the archive head keeps its gap, the hero label
   reads on the light hero. */
.ls-main .ls-news-spot, .ls-main .ls-news-spot .ls-news-spot__list, .ls-main .ls-news-spot__list > li, .ls-main .ls-news-spot__item { max-width: none; width: 100%; margin-inline: 0; }
.ls-main .ls-news-archsec > .alignwide > .ls-news-arch__head { margin-bottom: clamp(32px, 4vw, 48px); }
.ls-main .ls-news-arch, .ls-main .ls-news-arch .ls-news-arch__list { max-width: none; width: 100%; }
.ls-news-hero p.ls-news-hero__label { color: var(--ember); }
.ls-main :is(.ls-news-spot__media, .ls-news-arch__media) a { display: block; border-radius: var(--ls-radius); }
.ls-main :is(.ls-news-spot__media, .ls-news-arch__media) a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* B26 (C15 fix 3, L08): the card's own spacing had been reset to 0 by the list rule, so a title's last line
   box touched the photo below it. The title, photo and summary keep their gaps. */
.ls-main .ls-news-arch__list > li > .ls-news-arch__title { margin-top: 6px; margin-bottom: 0; }
.ls-main .ls-news-arch__list > li > .ls-news-arch__media { margin-top: 18px; }
.ls-main .ls-news-arch__list > li > .ls-news-arch__excerpt { margin-top: 12px; }

/* B27 (C16 fix 5, L09): category archives share the news archive module. A topic with a single story
   shows it as one wide feature (copy beside the photo) rather than one card in a three-column grid. */
.ls-main .ls-cat-archsec .ls-cat-all { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 901px) {
	.ls-main .ls-news-arch--cat .ls-news-arch__list > li:only-child { grid-column: 1 / -1; max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: var(--ls-gutter); align-content: start; }
	.ls-main .ls-news-arch--cat .ls-news-arch__list > li:only-child > .ls-news-arch__media { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
	.ls-main .ls-news-arch--cat .ls-news-arch__list > li:only-child > :not(.ls-news-arch__media) { grid-column: 1; }
}
/* B27 (C16 fix 8, D1.3): archive cards read title first, then the month (the date follows the title, not over it). */
.ls-main .ls-news-arch__list > li > .ls-news-arch__title { order: 1; margin-top: 0; }
.ls-main .ls-news-arch__list > li > .ls-news-arch__date { order: 2; margin-top: 8px; }
/* B27 (C16 fix 12, L12): the article photo is set at most 1024px wide, so the 2,048px original on "Clearing the ground" (C16) is twice its drawn width on dense screens. */
.ls-main .ls-article__image.alignwide { max-width: 1024px !important; margin-inline: auto !important; }

/* B30 (C17 fix 12, D1.7): phones. 100px lay between an article's last line and the links after it. */
@media (max-width: 600px) { html body .ls-main .ls-article__body { padding-bottom: 24px; } }

/* Batch 1 (P08, L19): each news card is one link. The title link is stretched over the whole card (the pattern
   project cards use), so the photo, title and summary all open the story. One tab stop per card; the focus ring
   is drawn round the card. */
.ls-main .ls-news-arch__list > li, .ls-main .ls-news-spot__list > li { position: relative; }
.ls-main :is(.ls-news-arch__title, .ls-news-spot__title) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ls-main :is(.ls-news-arch__list > li, .ls-news-spot__list > li):has(:is(.ls-news-arch__title, .ls-news-spot__title) a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: var(--ls-radius); }
.ls-main :is(.ls-news-arch__title, .ls-news-spot__title) a:focus-visible { outline: none; }
.ls-main :is(.ls-news-arch__list > li, .ls-news-spot__list > li):hover :is(.ls-news-arch__title, .ls-news-spot__title) a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* FB2 (S64): titles clamp at three lines; each row aligns on shared subgrid tracks so photos and summaries
   line up and cards in a row are equal height whatever the title length. */
.ls-main .ls-news-arch__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.ls-main .ls-news-arch__title a { display: inline; }
@media (min-width: 901px) {
	@supports (grid-template-rows: subgrid) {
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list { grid-auto-rows: auto; }
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list > li > * { order: 0; }
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list > li > .ls-news-arch__title { grid-row: 1; }
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list > li > .ls-news-arch__date { grid-row: 2; }
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list > li > .ls-news-arch__media { grid-row: 3; }
		.ls-main .ls-news-arch:not(.ls-news-arch--cat) .ls-news-arch__list > li > .ls-news-arch__excerpt { grid-row: 4; }
	}
}
/* CT3-17 (Josh, click-through 22 Nov 2026): pagination lands on the list, below the sticky header, and says where you are. */
/* The page's scroll-padding-top already clears the sticky header (its height plus 16px); taking off the section's own top
   padding lands the archive heading about 24px under the 64px header at 1536. On phones the sticky header is two rows
   (108px), taller than that padding allows for, so 44px more. */
html body .ls-main #archive { scroll-margin-top: calc(0px - var(--ls-section, 72px)); }
@media (max-width: 781px) { html body .ls-main #archive { scroll-margin-top: calc(44px - var(--ls-section, 72px)); } }
#archive h2[tabindex="-1"]:focus { outline: none; }
#archive h2[tabindex="-1"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.ls-main .ls-news-pages { flex-wrap: wrap; align-items: center; }
.ls-main .ls-news-pages p.ls-news-pages__of { flex-basis: 100%; margin: 4px 0 0 !important; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); }
#archive[aria-busy="true"] .wp-block-query { opacity: .6; transition: opacity 150ms ease; }

/* FR-39 (Josh, 23 Nov 2026): category archives are text-only lists. */
.ls-main .ls-news-arch--text .ls-news-arch__list > li { padding-top: 18px; }
