/* Shared article and preview, also used in the admin editor. */
.opti-news-article{font:15px/1.8 system-ui,-apple-system,"Segoe UI",sans-serif;color:#d5e4f2;overflow-wrap:anywhere}
.opti-news-article *,.opti-news-dialog *,.opti-news-reader-feed *{box-sizing:border-box}
.opti-news-date{display:block;color:#9ebbd2;font-size:12px;letter-spacing:.02em;margin-bottom:12px}
.opti-news-title{font-size:clamp(23px,3vw,34px);font-weight:750;letter-spacing:-.035em;line-height:1.2;margin:0 0 24px;color:#f5faff;max-width:800px}
.opti-news-text{max-width:780px;margin:28px auto 0}
.opti-news-text p{margin:0 0 22px;white-space:pre-wrap}
.opti-news-text p:first-child{font-size:17px;line-height:1.75;color:#edf6ff}
.opti-news-gallery{display:grid;gap:22px;margin:0}
.opti-news-figure{margin:0;min-width:0;overflow:hidden;border:1px solid #3c627d;border-radius:16px;background:#071420;box-shadow:0 12px 30px #020d1b40}
.opti-news-image{display:block;width:100%;height:auto;max-height:62vh;object-fit:contain;background:#071420}
.opti-news-image[hidden],.opti-news-button[hidden]{display:none!important}
.opti-news-caption{padding:13px 18px;font-size:12px;line-height:1.6;color:#b1cbe0;background:#142d43;white-space:pre-wrap;border-top:1px solid #294b66}
.opti-news-image-error{padding:24px;color:#efbb8d;font-size:13px}
.opti-news-dialog{box-sizing:border-box;width:min(1040px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #4d7089;border-radius:24px;background:radial-gradient(ellipse at 95% 0%,#20547670,transparent 48%),linear-gradient(150deg,#15334b,#102538 65%);color:#edf6ff;box-shadow:0 40px 120px #0009,0 1px 0 #ffffff14 inset;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;overflow:auto;margin:auto;scrollbar-width:thin;scrollbar-color:#557e99 #102538;color-scheme:dark}
.opti-news-dialog::backdrop{background:#020a14c7;backdrop-filter:blur(7px)}
.opti-news-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:2;padding:14px 26px;background:#112b40f5;border-bottom:1px solid #355770;font-weight:700;backdrop-filter:blur(14px)}
.opti-news-dialog-body{padding:24px 26px}
.opti-news-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;position:sticky;bottom:0;z-index:2;background:#10293ef7;border-top:1px solid #355770;padding:16px 30px;backdrop-filter:blur(14px)}
.opti-news-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 18px;border:1px solid #52758f;border-radius:10px;background:#24455e;color:#f1f8ff;cursor:pointer;font:650 13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s}
.opti-news-button:hover{background:#315b78;border-color:#7ba8c6}
.opti-news-button:focus-visible{outline:3px solid #73d9ff;outline-offset:3px}
.opti-news-button:disabled{opacity:.45;cursor:default}
.opti-news-button.opti-news-primary{background:linear-gradient(110deg,#39edc3,#58d7ee);border-color:#68eedc;color:#062e38;box-shadow:0 4px 16px #16dab41a}
.opti-news-button.opti-news-primary:hover{background:linear-gradient(110deg,#71f5d4,#82e6f7);border-color:#b0fff2}
.opti-news-button.opti-news-danger{color:#ffbcc2;border-color:#9d5966;background:#4a2a39}
.opti-news-dialog-close{width:40px;min-width:40px;min-height:40px;padding:0;font-size:24px;line-height:1;background:#22435b;border-color:#3f6682;border-radius:12px;color:#c7dfef}

/* News reader and cards. All selectors are scoped to the news UI. */
.opti-news-reader-dialog:not([open]),.opti-news-reader-dialog .opti-news-button[hidden]{display:none!important}
.opti-news-reader-brand{display:flex;align-items:center;gap:12px;min-width:0}
.opti-news-reader-brandmark{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid #6bf0d58c;border-radius:12px;background:linear-gradient(140deg,#37e7b9,#59c9f0);color:#07323a;font-size:21px;font-weight:850;letter-spacing:-.08em;box-shadow:0 3px 18px #32dab322}
.opti-news-reader-brandname{display:block;font-size:16px;font-weight:750;letter-spacing:-.02em;color:#f2f9ff}
.opti-news-reader-brandcopy{display:block;margin-top:1px;font-size:11px;font-weight:500;color:#9dbbd2}
.opti-news-reader-launcher{position:relative;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-height:43px;padding:6px 1px;margin-top:auto;background:#102c42;color:#dcefff;border:0;border-top:1px solid #2d5065;cursor:pointer;font:600 9px/1.2 system-ui,sans-serif;text-align:center;z-index:1}
.opti-news-reader-launcher[hidden]{display:none!important}
.opti-news-reader-launcher:hover{background:#1a425c}
.opti-news-reader-launcher:focus-visible{outline:2px solid #59c8ff;outline-offset:-2px}
.opti-news-reader-icon{font-size:17px;line-height:1}
.opti-news-reader-badge{display:inline-grid;place-items:center;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:#087f70;color:white;font:700 10px/1 system-ui,sans-serif;margin-left:5px}
.opti-news-reader-badge:empty{display:none}
.opti-news-reader-launcher .opti-news-reader-badge{position:absolute;right:1px;top:2px;margin:0}
.opti-news-reader-dialog .opti-news-reader-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 24px}
.opti-news-reader-select{width:100%;min-width:0;padding:12px 14px;border:1px solid #4c718c;border-radius:10px;background:#18374e;color:#edf6ff;font:13px system-ui,sans-serif;color-scheme:dark}
.opti-news-reader-select option{background:#18374e;color:#edf6ff}
.opti-news-reader-select:focus-visible{outline:3px solid #73d9ff;outline-offset:2px}
.opti-news-reader-status{font-size:12px;color:#ffcf95;white-space:pre-wrap;margin-right:auto}
.opti-news-reader-status:empty{display:none}
.opti-news-reader-preference{display:flex;align-items:flex-start;gap:10px;flex-basis:100%;padding:0 0 12px;margin:0 0 4px;border-bottom:1px solid #4c718c55;color:#e2f2ff;font:500 13px/1.45 system-ui,sans-serif;cursor:pointer}
.opti-news-reader-preference[hidden]{display:none!important}
.opti-news-reader-preference input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:#56e2c5;cursor:pointer}
.opti-news-reader-preference input:focus-visible{outline:2px solid #73d9ff;outline-offset:3px}
.opti-news-reader-preference small{display:block;margin-top:3px;color:#a9c3d6;font:400 11px/1.5 system-ui,sans-serif}
.opti-news-reader-counter{font-size:12px;color:#b7d0e2;margin-right:auto}
.opti-news-reader-feed{padding:24px;margin-bottom:20px;background:#15334b;border:1px solid #42627c;border-radius:20px;color:#e7f1ff;font:14px/1.5 system-ui,sans-serif}
.opti-news-reader-feed h2{margin:0 0 20px;font-size:24px}
.opti-news-reader-feed-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.opti-news-reader-overview-kicker{display:inline-flex;align-items:center;gap:8px;color:#8ff7db;font-size:10px;font-weight:750;letter-spacing:.13em;margin:0 0 12px;padding:6px 10px;border:1px solid #4ab5a54d;border-radius:7px;background:#36d4b31a}
.opti-news-reader-overview-kicker:before{content:"";width:6px;height:6px;border-radius:50%;background:#5de5bf}
.opti-news-reader-overview-title{font-size:clamp(26px,3.1vw,36px);letter-spacing:-.04em;line-height:1.15;color:#f6fbff;margin:0 0 12px;font-weight:750}
.opti-news-reader-overview-copy{color:#b9d1e3;font-size:14px;line-height:1.65;margin:0 0 24px}
.opti-news-reader-card{--news-accent:#68edcc;--news-accent-end:#59d7e6;display:flex;flex-direction:column;align-items:stretch;min-width:0;overflow:hidden;border:1px solid #4e7b8d;border-radius:18px;background:linear-gradient(160deg,#21465c,#19364c 65%);box-shadow:0 8px 24px #06172533;transition:border-color .15s,box-shadow .15s;overflow-wrap:anywhere}
.opti-news-reader-card:nth-child(even){--news-accent:#8ccaff;--news-accent-end:#78b0ff;border-color:#516e96;background:linear-gradient(160deg,#25465f,#1a354e 65%)}
.opti-news-reader-card:hover{border-color:var(--news-accent);box-shadow:0 12px 28px #04162755}
.opti-news-reader-card-media{padding:12px 12px 0;background:linear-gradient(150deg,#67e5c224,#56a3e024);position:relative}
.opti-news-reader-card-media:before{content:"";position:absolute;top:0;left:24px;right:24px;height:2px;background:var(--news-accent);border-radius:0 0 4px 4px}
.opti-news-reader-card img{display:block;width:100%;height:clamp(180px,25vh,250px);object-fit:contain;background:#071420;border:1px solid #ffffff14;border-radius:10px}
.opti-news-reader-card img[hidden]{display:none}
.opti-news-reader-card-placeholder{display:grid;place-items:center;height:clamp(180px,25vh,250px);background:radial-gradient(ellipse at center,#255c77,#0b2133);border:1px solid #ffffff14;border-radius:10px;color:#b4e5ed;font-size:22px;font-weight:750;letter-spacing:-.04em}
.opti-news-reader-card-content{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:20px}
.opti-news-reader-card-meta{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:20px;margin:0 0 12px;color:#adc9df;font-size:11px;line-height:1.4}
.opti-news-reader-card-label{color:var(--news-accent);font-weight:650;letter-spacing:.015em}
.opti-news-reader-card h3{font-size:21px;font-weight:750;letter-spacing:-.025em;line-height:1.3;margin:0 0 12px;color:#f4faff}
.opti-news-reader-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;margin:0 0 20px;color:#c3d8e7;font-size:14px;line-height:1.65}
.opti-news-reader-card .opti-news-button{display:flex;justify-content:space-between;width:100%;margin-top:auto;min-height:44px;border:1px solid var(--news-accent);border-radius:10px;background:linear-gradient(105deg,var(--news-accent),var(--news-accent-end));color:#092c3b;font-size:13px;font-weight:750;box-shadow:0 3px 12px #030f1c12}
.opti-news-reader-card .opti-news-button:after{content:"→";font-size:19px;font-weight:500;line-height:1}
.opti-news-reader-card .opti-news-button:hover{filter:brightness(1.1)}
.opti-news-reader-notice{position:fixed;left:70px;bottom:32px;z-index:2147483000;max-width:min(420px,calc(100vw - 90px));border:1px solid #796346;border-radius:8px;background:#1b2833;color:#ffe0b0;padding:12px;font:13px/1.5 system-ui,sans-serif;box-shadow:0 8px 30px #0008}
.opti-news-reader-notice .opti-news-button{margin-top:8px;margin-right:6px}
@media(max-width:700px){.opti-news-reader-feed-list{grid-template-columns:minmax(0,1fr)}.opti-news-reader-card img,.opti-news-reader-card-placeholder{height:auto;aspect-ratio:16/9}.opti-news-reader-feed{padding:16px}}
@media(max-width:600px){.opti-news-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.opti-news-dialog-head{padding:14px 16px}.opti-news-dialog-actions{padding:12px 16px;gap:8px}.opti-news-dialog-body{padding:22px 16px}.opti-news-dialog-actions>.opti-news-button{flex:1;min-width:0;padding:10px}.opti-news-reader-status{flex-basis:100%}.opti-news-reader-counter{font-size:11px}.opti-news-reader-overview-kicker{font-size:9px}.opti-news-reader-overview-copy{font-size:13px;margin-bottom:22px}.opti-news-reader-card-content{padding:18px}.opti-news-reader-card h3{font-size:20px}.opti-news-reader-card p{font-size:13px}.opti-news-reader-brandcopy{font-size:10px}.opti-news-reader-brandmark{width:36px;height:36px}.opti-news-reader-brand{gap:10px}.opti-news-reader-notice{left:12px;max-width:calc(100vw - 24px)}.opti-news-gallery{gap:16px}.opti-news-text{margin-top:22px}.opti-news-text p:first-child{font-size:15px}.opti-news-article{font-size:14px}.opti-news-caption{padding:10px 14px}.opti-news-title{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.opti-news-button,.opti-news-reader-card{transition:none}}
