/* News uses the same surfaces, type and carousel as the public catalog. */
@font-face { font-family:Manrope; src:url('fonts/Manrope-500.ttf') format('truetype'); font-weight:500; font-style:normal; font-display:swap; }
.home-news__lead { color:var(--muted); margin:12px 0 0; font-size:16px; }
.news-grid:not(.carousel) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.news-card { display:flex; flex-direction:column; min-width:0; background:var(--surface); border-radius:var(--radius); overflow:hidden; }
.news-card__cover { display:block; aspect-ratio:8/5; overflow:hidden; background:var(--mist); }
.news-card__cover img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.news-card:focus-within .news-card__cover img { transform:scale(1.025); }
.news-card__placeholder { display:grid; place-items:center; width:100%; height:100%; color:var(--blue); background:var(--mist); font-size:88px; line-height:1; }
.news-card__content { display:flex; flex-direction:column; align-items:flex-start; flex:1; padding:24px; min-width:0; }
.news-meta { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; font-size:11px; line-height:1.6; }
.news-meta > span { color:var(--blue); font-weight:800; letter-spacing:.08em; text-transform:uppercase; overflow-wrap:anywhere; }
.news-meta time { color:var(--muted); font-weight:500; }
.news-card h3 { font-size:21px; line-height:1.35; letter-spacing:-.035em; margin:13px 0 9px; overflow-wrap:anywhere; }
.news-card h3 a { color:var(--ink); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-card__content > p { font-size:14px; line-height:1.65; color:var(--muted); margin:0 0 24px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.news-card__read { margin-top:auto; font-size:14px; }
.news-card a:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.news-article { max-width:1000px; margin:32px auto 0; }
.news-article__header { max-width:800px; margin:0 auto 32px; }
.news-article__header h1 { font-size:clamp(30px,4.5vw,52px); line-height:1.15; letter-spacing:-.045em; margin:18px 0; overflow-wrap:anywhere; }
.news-article__lead { color:var(--muted); font-size:clamp(17px,2vw,21px); line-height:1.65; overflow-wrap:anywhere; }
.news-article__cover { margin:0 0 40px; border-radius:24px; overflow:hidden; background:var(--mist); }
.news-article__cover img { display:block; width:100%; height:auto; max-height:650px; object-fit:contain; }
.news-article__body { --news-text-weight:400; max-width:740px; margin:0 auto; font-size:18px; font-weight:var(--news-text-weight); line-height:1.9; overflow-wrap:anywhere; }
.news-article__body p { margin:0 0 1.4em; }
.news-article__body .news-text--bold { font-weight:calc(var(--news-text-weight) + 100); }
.news-article__body .news-text--italic { font-style:italic; font-synthesis:style; }
.news-article__body a { color:var(--blue); font-weight:inherit; text-decoration:underline; text-underline-offset:3px; }
.news-article__footer { max-width:740px; margin:40px auto 0; border-top:1px solid var(--line); padding-top:24px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.news-article__footer > span { font-size:12px; color:var(--muted); }
.news-preview { background:var(--mist); color:var(--ink); padding:16px 20px; border-radius:16px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:14px; }
.news-preview a { color:var(--blue); display:inline-flex; align-items:center; gap:8px; font-weight:700; }
.news-admin__heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.news-admin__heading h2 { font-size:28px; line-height:1.25; margin:6px 0 10px; }
.news-admin__heading p:not(.section-kicker) { color:var(--muted); font-size:14px; line-height:1.6; margin:0; }
.news-admin__heading .btn { flex-shrink:0; gap:8px; }
.news-admin__empty { text-align:center; padding:56px 20px; color:var(--muted); }
.news-admin__empty > .icon { width:36px; height:36px; color:var(--blue); }
.news-admin__empty h3 { color:var(--ink); margin:16px 0 10px; }
.news-admin__empty p { max-width:430px; margin:auto; line-height:1.7; }
.news-editor { display:grid; gap:22px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:28px 0; margin-bottom:24px; scroll-margin-top:100px; }
.news-editor .news-admin__heading { margin:0; }
.news-editor h3 { font-size:22px; letter-spacing:-.03em; }
.news-editor__row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.news-editor__field { display:flex; flex-direction:column; align-items:stretch; gap:9px; min-width:0; font-size:14px; font-weight:700; }
.legacy-page main .news-editor :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) { width:100%; min-height:48px; font-family:inherit; font-weight:400; }
.news-editor textarea { resize:vertical; }
.news-editor small { color:var(--muted); font-size:12px; font-weight:400; line-height:1.7; }
.news-editor__cover { width:200px; max-height:140px; object-fit:cover; border-radius:12px; }
.news-editor__check { display:flex; align-items:center; gap:10px; font-weight:400; }
.news-editor__check input { width:18px; height:18px; accent-color:var(--brand); }
.news-editor input[type=file] { padding:10px 0; color:var(--muted); font-size:13px; }
.news-editor input::file-selector-button { font:inherit; font-weight:700; padding:12px 16px; margin-right:12px; border:0; border-radius:10px; background:var(--mist); color:var(--blue); cursor:pointer; }
.news-editor__actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:4px; }
.news-editor__actions small { flex-basis:100%; }
.news-editor__toolbar { display:flex; flex-wrap:wrap; gap:8px; }
.news-editor__toolbar[hidden], .news-editor__preview[hidden] { display:none; }
.legacy-page main #newsEditor .news-editor__toolbar button { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:10px; padding:10px 14px; min-height:44px; font:inherit; cursor:pointer; }
.legacy-page main #newsEditor .news-editor__toolbar button:hover { background:var(--mist); color:var(--blue); }
.news-editor__toolbar [data-news-format=italic] { font-style:italic!important; }
.news-editor__toolbar .icon { width:16px; height:16px; }
.news-editor__toolbar button:focus-visible, .news-editor__preview summary:focus-visible, .news-link-dialog button:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.news-editor__message { color:var(--muted); font-size:13px; font-weight:400; line-height:1.6; margin:0; }
.news-editor__message:empty { display:none; }
.news-editor__preview { border:1px solid var(--line); border-radius:14px; padding:16px 20px; background:var(--surface); }
.news-editor__preview summary { cursor:pointer; color:var(--blue); font-size:14px; font-weight:600; }
.news-editor__preview[open] summary { margin-bottom:20px; }
.news-editor__preview .news-article__body { max-width:none; color:var(--ink); }
.news-editor__preview .news-article__body p:last-child { margin-bottom:0; }
.news-link-dialog { width:min(480px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--surface); color:var(--ink); overflow:auto; box-shadow:0 24px 80px #0003; }
.news-link-dialog::backdrop { background:#0c102078; backdrop-filter:blur(4px); }
.news-link-dialog form { display:grid; gap:20px; margin:0; padding:0; }
.news-link-dialog__heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.news-link-dialog h3 { margin:0; font-size:22px; }
.news-link-dialog__heading button { flex-shrink:0; width:40px; height:40px; border:0; border-radius:50%; background:var(--field); color:var(--ink); font-size:24px; cursor:pointer; }
.news-link-dialog label { display:grid; gap:8px; font-size:14px; font-weight:600; }
.legacy-page main #newsLinkDialog input { display:block; width:100%; min-width:0; min-height:48px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--field); color:var(--ink); font:400 16px Manrope,sans-serif; }
.news-link-dialog__actions { display:flex; flex-wrap:wrap; gap:10px; }
.news-link-dialog #newsLinkError { color:var(--ink); }
.news-admin__item { display:flex; gap:18px; align-items:center; padding:24px 0; border-bottom:1px solid var(--line); }
.news-admin__item:last-child { border-bottom:0; padding-bottom:0; }
.news-admin__thumb { flex:0 0 96px; width:96px; height:72px; object-fit:cover; border-radius:12px; font-size:36px; }
.news-admin__copy { flex:1; min-width:0; }
.news-admin__copy h3 { font-size:17px; line-height:1.5; letter-spacing:-.025em; margin:7px 0 5px; overflow-wrap:anywhere; }
.news-admin__copy h3 a { color:var(--ink); }
.news-admin__copy p { color:var(--muted); font-size:12px; margin:0; }
.news-status { display:inline-block; font-size:11px; font-weight:700; line-height:1.5; padding:4px 8px; border-radius:6px; color:var(--muted); background:var(--field); }
.news-status.is-published { color:var(--blue); background:var(--mist); }
.news-admin__actions { display:flex; flex-direction:column; align-items:flex-end; flex-shrink:0; gap:10px; }
.news-admin__actions .text-link { font-size:12px; }
@media (hover:hover) { .news-card:hover .news-card__cover img { transform:scale(1.025); } .news-card h3 a:hover { color:var(--blue); } }
@media (max-width:1000px) { .news-grid:not(.carousel) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
  .news-grid:not(.carousel) { grid-template-columns:1fr; gap:20px; }
  .news-card__content { padding:20px; }
  .news-card h3 { font-size:20px; }
  .home-news__lead { font-size:14px; line-height:1.6; }
  .news-article { margin-top:24px; }
  .news-article__body { font-size:16px; line-height:1.85; }
  .news-article__cover { border-radius:16px; margin-bottom:28px; }
  .news-article__header { margin-bottom:24px; }
  .news-preview, .news-admin__heading { align-items:flex-start; flex-direction:column; gap:16px; }
  .news-editor__row { grid-template-columns:1fr; gap:22px; }
  .legacy-page main #newsEditor :is(input,select,textarea) { font-size:16px; }
  .news-admin__item { flex-wrap:wrap; gap:14px; }
  .news-admin__thumb { flex-basis:64px; width:64px; height:64px; }
  .news-admin__actions { flex-basis:100%; flex-direction:row; align-items:center; justify-content:flex-end; }
  .news-admin__copy h3 { font-size:15px; }
}
@media (prefers-reduced-motion:reduce) { .news-card__cover img { transition:none; } }
