/* HALA Newsletter: same palette and shapes as the HALA Team and Portfolio plugins.
   Every rule is prefixed (html body .hln.hln) so the theme cannot override it. */
.hln {
	--hln-dark: #0D2C35;
	--hln-gold: #AD882E;
	--hln-gold-text: #8A6A1E;
	--hln-sand: #DCD5BE;
	--hln-line: #E4DFD0;
	--hln-line-soft: #EEEAE0;
	--hln-panel: #F7F5EF;
	--hln-body: #2D4750;
	--hln-muted: #5A6B70;
	--hln-input: #9A9179;
}
html body .hln.hln { color: var(--hln-dark); font-family: inherit; width: 100%; direction: ltr !important; text-align: left !important; unicode-bidi: isolate; }
html body .hln.hln *, html body .hln.hln *::before, html body .hln.hln *::after { box-sizing: border-box; }
html body .hln.hln :where(h1, h2, h3, h4, p, span, label, a, div, nav, header, section, form, button, input) { direction: ltr !important; text-align: left !important; }
html body .hln.hln :where(h1, h2, h3, h4, p) { margin: 0; padding: 0; letter-spacing: 0; text-transform: none; font-family: inherit; }
html body .hln.hln [hidden] { display: none !important; }
html body .hln.hln .hln-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important; opacity: 0 !important; }
html body .hln.hln .hln-tc, html body .hln.hln .hln-tc * { text-align: center !important; }

/* ---------- Archive: hero ---------- */
html body .hln.hln .hln-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 56px; background: var(--hln-panel); border: 1px solid var(--hln-line); margin: 0 0 80px; }
html body .hln.hln .hln-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
html body .hln.hln .hln-rule { display: block; width: 32px; height: 2px; background: var(--hln-gold); flex-shrink: 0; }
html body .hln.hln .hln-hero__title { font-size: 52px; line-height: 1.1; font-weight: 500; color: var(--hln-dark); margin: 0; }
html body .hln.hln .hln-hero__intro { font-size: 18px; line-height: 1.6; color: var(--hln-body); max-width: 520px; margin: 0; }
html body .hln.hln .hln-hero__signup { min-width: 0; }

/* ---------- Section titles: title + gold line to the edge ---------- */
html body .hln.hln .hln-section + .hln-section { margin-top: 88px; }
html body .hln.hln .hln-head { display: flex; align-items: center; gap: 24px; margin: 0 0 32px; }
html body .hln.hln .hln-head__title { font-size: 36px; line-height: 1.2; font-weight: 500; color: var(--hln-dark); flex-shrink: 0; max-width: 80%; margin: 0; }
html body .hln.hln .hln-head__line { flex: 1 1 auto; height: 2px; background: var(--hln-gold); min-width: 32px; }

html body .hln.hln .hln-meta, html body .hln.hln .hln-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; color: var(--hln-gold-text); }

/* ---------- Thumbnails (background images: never stretched) ---------- */
html body .hln.hln .hln-feature__img, html body .hln.hln .hln-card__img { position: relative; background-color: var(--hln-panel); background-repeat: no-repeat; background-position: center; overflow: hidden; }
html body .hln.hln .hln-fit-contain { background-size: contain; }
html body .hln.hln .hln-fit-cover { background-size: cover; }
html body .hln.hln .hln-feature__img.is-empty, html body .hln.hln .hln-card__img.is-empty { background-color: var(--hln-sand); }
html body .hln.hln .hln-mark { position: absolute; left: 50%; top: 50%; width: 40px; height: 2px; margin-left: -20px; background: var(--hln-gold); }

/* ---------- Featured (latest) issue ---------- */
html body .hln.hln .hln-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #FFFFFF; border: 1px solid var(--hln-line); color: inherit; text-decoration: none; transition: border-color .2s ease; }
html body .hln.hln .hln-feature:hover { border-color: var(--hln-gold); }
html body .hln.hln .hln-feature__img { min-height: 340px; border-right: 1px solid var(--hln-line); }
html body .hln.hln .hln-feature__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-width: 0; }
html body .hln.hln .hln-feature__title { font-size: 32px; line-height: 1.25; font-weight: 500; color: var(--hln-dark); }
html body .hln.hln .hln-feature__excerpt { font-size: 16px; line-height: 1.65; color: var(--hln-body); }
html body .hln.hln .hln-read { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hln-line-soft); width: 100%; font-size: 15px; font-weight: 600; color: var(--hln-gold-text); }
html body .hln.hln .hln-feature:hover .hln-read { color: var(--hln-dark); }

/* ---------- Year filters ---------- */
html body .hln.hln .hln-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
html body .hln.hln button.hln-year { min-height: 44px !important; height: auto !important; margin: 0 !important; padding: 0 20px !important; border: 1px solid var(--hln-input) !important; border-radius: 0 !important; background: #FFFFFF !important; color: var(--hln-dark) !important; font: inherit !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer; }
html body .hln.hln button.hln-year.is-active { background: var(--hln-dark) !important; border-color: var(--hln-dark) !important; color: #FFFFFF !important; }

/* ---------- Grid of issues ---------- */
html body .hln.hln .hln-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
html body .hln.hln .hln-grid.is-loading { opacity: .5; }
html body .hln.hln .hln-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--hln-line); color: inherit; text-decoration: none; min-width: 0; transition: border-color .2s ease; }
html body .hln.hln .hln-card:hover { border-color: var(--hln-gold); }
html body .hln.hln .hln-card__img { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--hln-line); }
html body .hln.hln .hln-card__body { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex-grow: 1; }
html body .hln.hln .hln-card__title { font-size: 21px; line-height: 1.3; font-weight: 500; color: var(--hln-dark); }
html body .hln.hln .hln-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--hln-body); }
html body .hln.hln .hln-card:hover .hln-card__title { color: var(--hln-gold-text); }
html body .hln.hln .hln-more { display: flex; justify-content: center; margin-top: 44px; }
html body .hln.hln .hln-empty { display: block; padding: 48px 24px; border: 1px solid var(--hln-line); color: var(--hln-body); font-size: 16px; line-height: 1.6; }

/* ---------- Buttons ---------- */
html body .hln.hln .hln-btn { display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px !important; height: auto !important; margin: 0 !important; padding: 0 24px !important; border: 1px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; font: inherit !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
html body .hln.hln .hln-btn--dark { background: var(--hln-dark) !important; color: #FFFFFF !important; }
html body .hln.hln .hln-btn--dark:hover { background: #164452 !important; }
html body .hln.hln .hln-btn--gold { background: var(--hln-gold) !important; color: var(--hln-dark) !important; }
html body .hln.hln .hln-btn--gold:hover { background: #C29A38 !important; }
html body .hln.hln .hln-btn--outline { background: #FFFFFF !important; color: var(--hln-dark) !important; border-color: var(--hln-input) !important; }
html body .hln.hln .hln-btn--outline:hover { border-color: var(--hln-dark) !important; }
html body .hln.hln .hln-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Signup ---------- */
html body .hln.hln .hln-signup { margin: 0; }
html body .hln.hln .hln-signup--light { background: #FFFFFF; border: 1px solid var(--hln-line); padding: 28px; }
html body .hln.hln .hln-signup__label { display: block; margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.4; color: inherit; }
html body .hln.hln .hln-signup__row { display: flex; flex-wrap: wrap; gap: 8px; }
html body .hln.hln input.hln-signup__input[type="email"] { flex: 1 1 200px; min-width: 0; height: 48px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--hln-input) !important; border-radius: 0 !important; background: #FFFFFF !important; color: var(--hln-dark) !important; font: inherit !important; font-size: 15px !important; line-height: 46px !important; box-shadow: none !important; }
html body .hln.hln input.hln-signup__input[type="email"]:focus { outline: 2px solid var(--hln-gold) !important; outline-offset: 1px; }
html body .hln.hln .hln-signup__note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--hln-muted); }
html body .hln.hln .hln-signup__msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--hln-dark); }
html body .hln.hln .hln-signup__msg.is-error { color: #A12C1F; }
html body .hln.hln .hln-admin-note { margin: 16px 0 0; padding: 14px 16px; background: #FFF8E5; border: 1px solid #DBA617; color: #1D2327; font-size: 14px; line-height: 1.6; }
html body .hln.hln .hln-admin-note a { color: #0D2C35; font-weight: 600; text-decoration: underline; }

/* ---------- Single issue ---------- */
.hln-page { padding-top: 48px; }
html body .hln.hln.hln-single { max-width: 880px; margin: 0 auto; }
html body .hln.hln .hln-issue-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--hln-line); }
html body .hln.hln .hln-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--hln-gold-text); text-decoration: none; }
html body .hln.hln .hln-back:hover { color: var(--hln-dark); }
html body .hln.hln .hln-issue-head__meta { display: flex; align-items: center; gap: 14px; }
html body .hln.hln .hln-issue-head__title { font-size: 46px; line-height: 1.15; font-weight: 500; color: var(--hln-dark); margin: 0; }
html body .hln.hln .hln-issue-head__lead { font-size: 19px; line-height: 1.6; color: var(--hln-body); max-width: 720px; }
html body .hln.hln .hln-share { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
html body .hln.hln .hln-share__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hln-muted); margin-right: 6px; }
html body .hln.hln .hln-share__btn { display: inline-flex !important; align-items: center; justify-content: center; width: 44px !important; height: 44px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--hln-line) !important; border-radius: 0 !important; background: #FFFFFF !important; color: var(--hln-dark) !important; box-shadow: none !important; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
html body .hln.hln .hln-share__btn:hover { border-color: var(--hln-gold) !important; background: var(--hln-panel) !important; }
html body .hln.hln .hln-share__btn svg { display: block; }
html body .hln.hln .hln-copy__done { font-size: 13px; color: var(--hln-muted); margin-left: 6px; }

/* The email itself, framed like a letter */
html body .hln.hln .hln-letter { background: var(--hln-panel); border: 1px solid var(--hln-line); padding: 40px 24px; }
html body .hln.hln .hln-frame { display: block; width: 100%; height: 1600px; border: 0; background: transparent; overflow: hidden; }
html body .hln.hln .hln-frame.is-ready { transition: height .15s ease; }

/* Fallback version (older issues before re-sync) */
html body .hln.hln .hln-content { max-width: 660px; margin: 0 auto; background: #FFFFFF; padding: 32px; color: var(--hln-body); font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
html body .hln.hln .hln-content table { max-width: 100% !important; border-collapse: collapse; border: 0; }
html body .hln.hln .hln-content td, html body .hln.hln .hln-content th { border: 0; }
html body .hln.hln .hln-content img { max-width: 100% !important; height: auto !important; }
html body .hln.hln .hln-content ul, html body .hln.hln .hln-content ol { list-style: none; margin: 0; padding: 0; }

/* Previous / next */
html body .hln.hln .hln-pager { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html body .hln.hln .hln-pager__link { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--hln-line); background: #FFFFFF; color: inherit; text-decoration: none; transition: border-color .2s ease; }
html body .hln.hln .hln-pager__link:hover { border-color: var(--hln-gold); }
html body .hln.hln .hln-pager__link--next { grid-column: 2; align-items: flex-end; }
html body .hln.hln .hln-pager__link--next, html body .hln.hln .hln-pager__link--next * { text-align: right !important; }
html body .hln.hln .hln-pager__dir { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hln-gold-text); }
html body .hln.hln .hln-pager__title { font-size: 17px; font-weight: 500; color: var(--hln-dark); line-height: 1.4; }

/* Dark signup band */
html body .hln.hln .hln-band { margin: 48px 0 80px; background: var(--hln-dark); color: #FFFFFF; padding: 48px; }
html body .hln.hln .hln-band .hln-signup__label { font-size: 26px; font-weight: 500; color: #FFFFFF; margin-bottom: 20px; }
html body .hln.hln .hln-band input.hln-signup__input[type="email"] { border-color: #FFFFFF !important; }
html body .hln.hln .hln-band .hln-signup__note { color: #C9D2DB; }
html body .hln.hln .hln-band .hln-signup__msg { color: #FFFFFF; }
html body .hln.hln .hln-band .hln-signup__msg.is-error { color: #FFB4A8; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	html body .hln.hln .hln-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px; }
	html body .hln.hln .hln-hero__title { font-size: 42px; }
	html body .hln.hln .hln-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	html body .hln.hln .hln-feature { grid-template-columns: minmax(0, 1fr); }
	html body .hln.hln .hln-feature__img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--hln-line); }
}
@media (max-width: 690px) {
	html body .hln.hln .hln-hero { padding: 28px 22px; margin-bottom: 56px; }
	html body .hln.hln .hln-hero__title { font-size: 34px; }
	html body .hln.hln .hln-head__title { font-size: 28px; }
	html body .hln.hln .hln-section + .hln-section { margin-top: 64px; }
	html body .hln.hln .hln-feature__body { padding: 24px; }
	html body .hln.hln .hln-feature__title { font-size: 25px; }
	html body .hln.hln .hln-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.hln-page { padding-top: 24px; }
	html body .hln.hln .hln-issue-head__title { font-size: 32px; }
	html body .hln.hln .hln-issue-head__lead { font-size: 17px; }
	html body .hln.hln .hln-letter { padding: 16px 0; border-left: 0; border-right: 0; }
	html body .hln.hln .hln-pager { grid-template-columns: minmax(0, 1fr); }
	html body .hln.hln .hln-pager__link--next { grid-column: 1; }
	html body .hln.hln .hln-band { padding: 28px 22px; }
	html body .hln.hln .hln-signup__row .hln-btn { width: 100%; }
}

/* ---------- Home page element ---------- */
html body .hln.hln.hln-home { margin: 0; }
html body .hln.hln .hln-home__head { margin: 0 0 32px; }
html body .hln.hln .hln-home__head .hln-head { margin: 0; }
html body .hln.hln .hln-home__intro { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--hln-body); max-width: 640px; }
html body .hln.hln .hln-viewall { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--hln-gold-text); text-decoration: none; white-space: nowrap; }
html body .hln.hln .hln-viewall:hover { color: var(--hln-dark); }
html body .hln.hln .hln-grid--1 { grid-template-columns: minmax(0, 1fr); }
html body .hln.hln .hln-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .hln.hln .hln-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* Latest issue + signup */
html body .hln.hln .hln-home__feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
html body .hln.hln .hln-home__feature.is-solo { grid-template-columns: minmax(0, 1fr); }
html body .hln.hln .hln-home__feature .hln-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100%; }
html body .hln.hln .hln-home__feature .hln-feature__img { min-height: 300px; }
html body .hln.hln .hln-home__feature .hln-feature__body { padding: 36px; }
html body .hln.hln .hln-home__feature .hln-feature__title { font-size: 26px; }
html body .hln.hln .hln-home__signup { display: flex; }
html body .hln.hln .hln-signup--panel { display: flex; flex-direction: column; justify-content: center; width: 100%; background: var(--hln-panel); border: 1px solid var(--hln-line); padding: 32px; }
html body .hln.hln .hln-signup--panel .hln-signup__label { font-size: 22px; font-weight: 500; line-height: 1.3; margin-bottom: 20px; }
html body .hln.hln .hln-signup--panel .hln-signup__row { flex-direction: column; }
html body .hln.hln .hln-signup--panel .hln-signup__row .hln-btn { width: 100%; }
html body .hln.hln .hln-signup--panel input.hln-signup__input[type="email"] { flex: 0 0 auto; width: 100%; }

/* Signup band */
html body .hln.hln .hln-homeband { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; background: var(--hln-dark); color: #FFFFFF; padding: 56px; }
html body .hln.hln .hln-homeband__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
html body .hln.hln .hln-homeband__title { font-size: 40px; line-height: 1.15; font-weight: 500; color: #FFFFFF; }
html body .hln.hln .hln-homeband__intro { font-size: 17px; line-height: 1.6; color: #C9D2DB; max-width: 520px; }
html body .hln.hln .hln-homeband__latest { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); width: 100%; color: #FFFFFF; text-decoration: none; }
html body .hln.hln .hln-homeband__latest .hln-meta { color: var(--hln-gold); }
html body .hln.hln .hln-homeband__issue { font-size: 18px; line-height: 1.4; font-weight: 500; color: #FFFFFF; }
html body .hln.hln .hln-homeband__latest:hover .hln-homeband__issue { color: var(--hln-gold); }
html body .hln.hln .hln-homeband .hln-viewall { color: var(--hln-gold); }
html body .hln.hln .hln-homeband .hln-viewall:hover { color: #FFFFFF; }
html body .hln.hln .hln-homeband .hln-signup__label { font-size: 20px; font-weight: 500; color: #FFFFFF; margin-bottom: 16px; }
html body .hln.hln .hln-homeband input.hln-signup__input[type="email"] { border-color: #FFFFFF !important; }
html body .hln.hln .hln-homeband .hln-signup__note { color: #C9D2DB; }
html body .hln.hln .hln-homeband .hln-signup__msg { color: #FFFFFF; }
html body .hln.hln .hln-homeband .hln-signup__msg.is-error { color: #FFB4A8; }

@media (max-width: 1000px) {
	html body .hln.hln .hln-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html body .hln.hln .hln-home__feature { grid-template-columns: minmax(0, 1fr); }
	html body .hln.hln .hln-homeband { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px; }
}
@media (max-width: 690px) {
	html body .hln.hln .hln-grid--2, html body .hln.hln .hln-grid--4 { grid-template-columns: minmax(0, 1fr); }
	html body .hln.hln .hln-home__head .hln-head { flex-wrap: wrap; row-gap: 12px; }
	html body .hln.hln .hln-home__head .hln-head__line { order: 3; flex-basis: 100%; }
	html body .hln.hln .hln-home__feature .hln-feature { grid-template-columns: minmax(0, 1fr); }
	html body .hln.hln .hln-home__feature .hln-feature__img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--hln-line); }
	html body .hln.hln .hln-homeband { padding: 32px 22px; }
	html body .hln.hln .hln-homeband__title { font-size: 30px; }
}
