/*
 * Article blocks from the admin editor: block colours, coloured text, to-do lists, callouts,
 * videos and embeds, files and web bookmarks. Colour values come from EditorColors::css().
 */
.osh-content span.color { color: var(--color); }
:root[data-theme="dark"] .osh-content span.color { color: var(--dark-color); }
.osh-content [data-block-color$="-bg"] { padding: 3px 6px; border-radius: 4px; }
.osh-content [data-block-color="gray"] { color: var(--osh-c-gray); } .osh-content [data-block-color="gray-bg"] { background: var(--osh-bg-gray); }
.osh-content [data-block-color="brown"] { color: var(--osh-c-brown); } .osh-content [data-block-color="brown-bg"] { background: var(--osh-bg-brown); }
.osh-content [data-block-color="orange"] { color: var(--osh-c-orange); } .osh-content [data-block-color="orange-bg"] { background: var(--osh-bg-orange); }
.osh-content [data-block-color="yellow"] { color: var(--osh-c-yellow); } .osh-content [data-block-color="yellow-bg"] { background: var(--osh-bg-yellow); }
.osh-content [data-block-color="green"] { color: var(--osh-c-green); } .osh-content [data-block-color="green-bg"] { background: var(--osh-bg-green); }
.osh-content [data-block-color="blue"] { color: var(--osh-c-blue); } .osh-content [data-block-color="blue-bg"] { background: var(--osh-bg-blue); }
.osh-content [data-block-color="purple"] { color: var(--osh-c-purple); } .osh-content [data-block-color="purple-bg"] { background: var(--osh-bg-purple); }
.osh-content [data-block-color="pink"] { color: var(--osh-c-pink); } .osh-content [data-block-color="pink-bg"] { background: var(--osh-bg-pink); }
.osh-content [data-block-color="red"] { color: var(--osh-c-red); } .osh-content [data-block-color="red-bg"] { background: var(--osh-bg-red); }

/* To-do lists: a checklist readers can see but not change. */
.osh-content ul[data-type="taskList"] { margin-left: 0; padding-left: 0; list-style: none; }
.osh-content ul[data-type="taskList"] > li { display: flex; align-items: flex-start; gap: .6em; padding-left: 0; list-style: none; }
.osh-content ul[data-type="taskList"] > li::before { content: none !important; display: none !important; }
.osh-content ul[data-type="taskList"] > li::marker { content: none; }
.osh-content ul[data-type="taskList"] > li > label { flex: none; margin-top: .3em; }
.osh-content ul[data-type="taskList"] > li > label input { display: inline-grid; place-content: center; width: 1.1em; height: 1.1em; margin: 0; border: 1.5px solid #8a9a9d; border-radius: 4px; background: #fff; appearance: none; -webkit-appearance: none; opacity: 1; }
.osh-content ul[data-type="taskList"] > li > label input:checked { border-color: #0b7a66; background: #0b7a66; }
.osh-content ul[data-type="taskList"] > li > label input:checked::before { content: ""; width: .55em; height: .3em; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
:root[data-theme="dark"] .osh-content ul[data-type="taskList"] > li > label input { border-color: #6b7f83; background: transparent; }
.osh-content ul[data-type="taskList"] > li > div { flex: 1; min-width: 0; }
.osh-content ul[data-type="taskList"] > li > div > p { margin: 0; }
.osh-content ul[data-type="taskList"] > li[data-checked="true"] > div { opacity: .6; text-decoration: line-through; }

/* Callouts. */
.osh-content aside.osh-callout { display: flex; flex-wrap: wrap; gap: .7em; margin: 0 0 1.5em; padding: 1em 1.15em; border-radius: 8px; background: var(--osh-bg-gray); }
.osh-content aside.osh-callout::before { content: attr(data-emoji); flex: none; font-size: 1.25em; line-height: 1.45; }
.osh-content aside.osh-callout > * { flex: 1 1 calc(100% - 2.4em); min-width: 0; margin: 0; }
.osh-content aside.osh-callout > * + * { margin-left: 1.95em; }

/* Videos, embeds and audio. */
.osh-content .osh-embed { margin: 0 0 1.5em; }
.osh-content .osh-embed-frame { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #eef1f1; }
.osh-content .osh-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.osh-content .osh-embed-media { display: block; width: 100%; border-radius: 8px; }
.osh-content .osh-embed-audio { display: block; width: 100%; }

/* Files and web bookmarks. */
.osh-content a.osh-file, .osh-content a.osh-bookmark { color: inherit; text-decoration: none; }
.osh-content .osh-file { display: flex; align-items: center; gap: .85em; padding: .8em 1em; border: 1px solid #dbe4e3; border-radius: 10px; }
.osh-content .osh-embed-frame + .osh-file { margin-top: .6em; }
.osh-content .osh-file-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 8px; background: #0c252c; color: #fff; font: 700 11px/1 Inter, system-ui, sans-serif; }
.osh-content .osh-file-name { display: block; font-weight: 600; }
.osh-content .osh-file-meta { display: block; font-size: .85em; opacity: .7; }
.osh-content .osh-bookmark { display: flex; align-items: stretch; margin: 0 0 1.5em; overflow: hidden; border: 1px solid #dbe4e3; border-radius: 10px; }
.osh-content .osh-file:hover, .osh-content .osh-bookmark:hover { border-color: #0b7a66; }
.osh-content .osh-bookmark-txt { display: flex; flex: 1; flex-direction: column; gap: .3em; min-width: 0; padding: .9em 1.1em; }
.osh-content .osh-bookmark-title { font-weight: 600; line-height: 1.35; }
.osh-content .osh-bookmark-desc { display: -webkit-box; overflow: hidden; font-size: .88em; opacity: .75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.osh-content .osh-bookmark-url { font-size: .8em; opacity: .6; }
.osh-content .osh-bookmark-img { flex: 0 0 32%; max-width: 240px; }
.osh-content .osh-bookmark-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="dark"] .osh-content .osh-file, :root[data-theme="dark"] .osh-content .osh-bookmark { border-color: #22343a; }
@media (max-width: 600px) { .osh-content .osh-bookmark-img { display: none; } }

/* Lead (bigger intro) and small print. */
.osh-content .lead > p { font-size: 1.16em; line-height: 1.6; color: var(--site--preset--color--heading); }
.osh-content small { font-size: .84em; opacity: .85; }

/* Pros and cons. */
.osh-content .osh-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.5em; }
.osh-content .osh-pc { padding: 1em 1.1em; border-radius: 10px; }
.osh-content .osh-pc.is-pro { background: var(--osh-bg-green); }
.osh-content .osh-pc.is-con { background: var(--osh-bg-red); }
.osh-content .osh-pc-t { margin: 0 0 .5em; font-weight: 700; }
.osh-content .osh-pc ul { margin: 0; padding: 0; list-style: none; }
.osh-content .osh-pc li { display: grid; grid-template-columns: 1.3em 1fr; gap: .4em; margin: 0 0 .45em; padding: 0; line-height: 1.5; }
.osh-content .osh-pc li::before, .osh-content .osh-pc li::marker { content: none !important; }
.osh-content .osh-pc-ic { font-weight: 800; }
.osh-content .osh-pc.is-pro .osh-pc-ic { color: var(--osh-c-green); }
.osh-content .osh-pc.is-con .osh-pc-ic { color: var(--osh-c-red); }
@media (max-width: 600px) { .osh-content .osh-proscons { grid-template-columns: minmax(0, 1fr); } }

/* Verdict box. */
.osh-content .osh-verdict { margin: 0 0 1.75em; padding: 1.2em 1.3em; border: 2px solid #0c252c; border-radius: 12px; }
:root[data-theme="dark"] .osh-content .osh-verdict { border-color: #3a5a62; }
.osh-content .osh-verdict.is-top { border-color: #0b7a66; }
.osh-content .osh-verdict.is-avoid { border-color: var(--osh-c-red); }
.osh-content .osh-vd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: .8em; }
.osh-content .osh-vd-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; }
.osh-content .osh-vd-kicker { margin: 0; font-size: .78em; font-weight: 700; letter-spacing: .02em; color: #0b7a66; }
.osh-content .osh-verdict.is-avoid .osh-vd-kicker { color: var(--osh-c-red); }
.osh-content .osh-verdict.is-ok .osh-vd-kicker { color: var(--osh-c-orange); }
.osh-content .osh-vd-product { margin: 0; font-size: 1.3em; font-weight: 800; line-height: 1.2; }
.osh-content .osh-vd-rating { margin: 0 0 0 auto; font-size: .95em; }
.osh-content .osh-vd-stars { position: relative; display: inline-block; margin-right: .4em; color: #d1d5db; letter-spacing: 2px; }
.osh-content .osh-vd-stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--r); overflow: hidden; color: #d4a017; }
.osh-content .osh-vd-summary { margin: 0 0 .8em; }
.osh-content .osh-vd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 18px; margin: 0 0 .9em; }
.osh-content .osh-vd-facts dt { font-size: .8em; opacity: .7; }
.osh-content .osh-vd-facts dd { margin: 0; font-weight: 600; }
.osh-content .osh-vd-cta { margin: 0; }

/* Notes to self ([CHECK: ...], [SCREENSHOT: ...]): admins only (App\Support\Articles\AdminNotes). */
.osh-admin-note { padding: 1px 6px; border-radius: 4px; background: #fff3c4; color: #5c4400; outline: 1px dashed #c99a00; font-size: .92em; }
.osh-admin-note::before { content: "Only you see this: "; font-weight: 600; }
