/* OneCebu site styles: the docs/newtheme.html layout in the logo's colours (harbour blue, sun yellow as a small accent). */
:root {
  --oc-bg: #f5f7fa;
  --oc-surface: #fff;
  --oc-ink: #16324a;
  --oc-muted: #5f7183;
  --oc-accent: #1b5e96;
  --oc-accent-dark: #123f66;
  --oc-sun: #e8a90c;
  --oc-line: #dde5ee;
  --oc-wash: #e7eff7;
  --oc-r: 20px;
  --oc-r-sm: 12px;
  --oc-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-font-family: var(--oc-sans);
  --bs-body-color: var(--oc-ink);
  --bs-body-bg: var(--oc-bg);
  --bs-link-color-rgb: 27, 94, 150;
  --bs-link-hover-color-rgb: 18, 63, 102;
  --bs-border-color: var(--oc-line);
}
body { background: var(--oc-bg); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, .std-font, .blog-post-title { font-family: var(--oc-sans); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
a { text-underline-offset: .15em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--oc-sun); outline-offset: 2px; }

/* Buttons are pills, as in the theme. */
.btn { --bs-btn-border-radius: 999px; --bs-btn-font-weight: 700; --bs-btn-padding-x: 1.15rem; }
.btn-primary, .btn-info { --bs-btn-color: #fff; --bs-btn-bg: var(--oc-accent); --bs-btn-border-color: var(--oc-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--oc-accent-dark); --bs-btn-hover-border-color: var(--oc-accent-dark); --bs-btn-active-bg: var(--oc-accent-dark); --bs-btn-active-border-color: var(--oc-accent-dark); }
.btn-outline-secondary { --bs-btn-color: var(--oc-ink); --bs-btn-border-color: rgba(22, 50, 74, .25); --bs-btn-hover-bg: var(--oc-ink); --bs-btn-hover-border-color: var(--oc-ink); }
.btn + .btn { margin-left: .35rem; }
.form-control, .form-select { border-radius: var(--oc-r-sm); }
.oc-kicker, .eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--oc-accent); }

/* Header */
.oc-top { background: var(--oc-surface); border-bottom: 1px solid var(--oc-line); }
.oc-top .navbar { --bs-navbar-padding-y: 0; min-height: 76px; }
.oc-brand { display: flex; align-items: center; gap: .6rem; color: var(--oc-ink); text-decoration: none; font-size: 1.6rem; font-weight: 850; letter-spacing: -.06em; white-space: nowrap; }
.oc-brand img { width: 44px; height: 44px; }
.oc-brand .cebu { color: var(--oc-accent); }
.oc-brand small { font-size: .75rem; letter-spacing: -.01em; color: var(--oc-muted); margin-left: 1px; }
.oc-top .nav-link { color: var(--oc-ink); font-size: .9rem; font-weight: 700; padding: .5rem .7rem; }
.oc-top .nav-link:hover, .oc-top .nav-link:focus { color: var(--oc-accent); }
.oc-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.oc-iconbtn { border: 0; background: transparent; color: var(--oc-ink); font-size: 1.2rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; }
.oc-iconbtn:hover { background: var(--oc-wash); color: var(--oc-accent); }
.oc-top .navbar-toggler { border: 0; padding: .5rem; }
@media (max-width: 991.98px) {
  .oc-top .navbar-collapse { order: 3; flex-basis: 100%; padding: .5rem 0 1rem; }
}
/* Seven menu links leave no room for the button below 1200px; "Share a story" is also in the footer and on the home page. */
@media (max-width: 1199.98px) { .oc-cta { display: none; } }
@media (max-width: 575.98px) { .oc-brand { font-size: 1.35rem; } .oc-brand img { width: 36px; height: 36px; } }

/* Search opens in a dialog, as in the theme, but searches this site. */
.oc-search-dialog { border: 0; border-radius: 24px; padding: 2rem; width: min(640px, calc(100% - 2rem)); box-shadow: 0 30px 90px rgba(0, 0, 0, .25); }
.oc-search-dialog::backdrop { background: rgba(10, 30, 50, .7); }
.oc-search-dialog h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.oc-search-dialog .btn-close { position: absolute; right: 1.25rem; top: 1.25rem; }

/* The band under the header holds an ad or a page's search box. */
.ochead { background: var(--oc-wash); padding: 1.5rem 0; margin-bottom: 1.75rem; }
.ochead form + * { margin-top: .75rem; }
.ochead:not(:has(.container > *)) { display: none; }
main.container { padding-top: 1.5rem; }
.ochead:has(.container > *) + main.container { padding-top: 0; }
.ad-slot { display: flex; justify-content: center; align-items: center; max-width: 100%; overflow: hidden; margin: 1rem 0; }
.ad-970x250 { min-height: 250px; }
.ad-970x90, .ad-728x90 { min-height: 90px; }
.ad-300x250 { min-height: 250px; }
@media (max-width: 767.98px) { .ad-970x250 { min-height: 100px; } }

/* Home */
.oc-welcome { background: var(--oc-wash); padding: 3rem 0 4rem; }
.oc-welcome h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; margin: 1rem 0; }
.oc-welcome h1 span { color: var(--oc-accent); }
.oc-welcome p { max-width: 32rem; color: var(--oc-muted); font-size: 1.05rem; }
.oc-welcome-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.oc-welcome-actions .btn + .btn { margin-left: 0; }
.oc-welcome-photo { position: relative; display: block; border-radius: 28px; overflow: hidden; box-shadow: 14px 14px 0 rgba(27, 94, 150, .16); color: inherit; text-decoration: none; }
.oc-welcome-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.oc-welcome-photo b { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: #fff; padding: .9rem 1.1rem; border-radius: 14px; box-shadow: 0 12px 35px rgba(0, 0, 0, .14); font-size: 1rem; line-height: 1.3; }
.oc-welcome-photo b span { display: block; font-weight: 600; font-size: .78rem; color: var(--oc-muted); margin-bottom: .15rem; }
.oc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2rem; position: relative; }
.oc-quick a { display: block; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r); padding: 1.4rem; color: inherit; text-decoration: none; box-shadow: 0 6px 30px rgba(18, 63, 102, .06); }
.oc-quick a:hover { border-color: var(--oc-accent); }
.oc-quick i { font-size: 1.5rem; color: var(--oc-accent); }
.oc-quick h3 { font-size: 1.05rem; margin: .75rem 0 .2rem; }
.oc-quick p { font-size: .82rem; color: var(--oc-muted); margin: 0; }
@media (max-width: 767.98px) { .oc-quick { grid-template-columns: 1fr 1fr; } .oc-quick a { padding: 1rem; } .oc-welcome { padding: 2rem 0 3.5rem; } }

.oc-section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 3.5rem 0 1.25rem; }
.oc-section-title h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); margin: .3rem 0 0; }
.oc-section-title > a { font-size: .85rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
h2.oc-section-title { display: block; font-size: 1.4rem; }

/* Story rows (image left) and story cards (image on top). */
.oc-rows { display: grid; gap: .8rem; }
.oc-row { display: grid; grid-template-columns: 170px 1fr; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; }
.oc-row:hover { border-color: var(--oc-accent); }
.oc-row img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; }
/* Articles without a photo show the logo mark, faintly, instead of an empty box. */
.oc-row-noimg { display: block; min-height: 140px; background: var(--oc-wash) url('../custom/oc-mark-96.webp') center / 56px no-repeat; background-blend-mode: luminosity; opacity: .55; }
.oc-row-copy { padding: 1.1rem 1.25rem; }
.oc-row h3 { font-size: 1.15rem; line-height: 1.25; margin: .35rem 0; }
.oc-row p { font-size: .85rem; color: var(--oc-muted); margin: 0; }
@media (max-width: 575.98px) { .oc-row { grid-template-columns: 110px 1fr; } .oc-row img, .oc-row-noimg { min-height: 110px; } .oc-row-copy { padding: .8rem .9rem; } .oc-row h3 { font-size: 1rem; } }
.oc-story { display: block; height: 100%; background: var(--oc-surface); border-radius: var(--oc-r); overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--oc-line); }
.oc-story:hover { border-color: var(--oc-accent); }
.oc-story img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.oc-story-copy { padding: 1rem 1.1rem 1.2rem; }
.oc-story h3 { font-size: 1.05rem; line-height: 1.3; margin: .4rem 0 0; }
.oc-story p { font-size: .85rem; color: var(--oc-muted); margin: .4rem 0 0; }

/* Side panel: "Local connections" on the home page and "More to read" beside articles. */
.oc-panel { background: var(--oc-wash); border-radius: 22px; padding: 1.5rem; }
.oc-panel h3 { font-size: 1.35rem; margin: .4rem 0 .6rem; }
.oc-panel > p { font-size: .9rem; color: var(--oc-muted); }
.oc-panel-rows { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.oc-panel-rows a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #fff; border-radius: var(--oc-r-sm); padding: .9rem 1rem; color: inherit; text-decoration: none; font-size: .9rem; font-weight: 700; }
.oc-panel-rows a:hover { color: var(--oc-accent); }
.oc-panel-rows small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--oc-accent); }

.oc-invite { background: var(--oc-accent-dark); color: #fff; padding: 2rem 0; margin-top: 4rem; }
.oc-invite .container { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.oc-invite h2 { font-size: 1.7rem; margin: .3rem 0; }
.oc-invite p { margin: 0; color: #c9dcee; }
.oc-invite .eyebrow { color: var(--oc-sun); }
.oc-invite .btn { --bs-btn-bg: #fff; --bs-btn-color: var(--oc-accent-dark); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--oc-sun); --bs-btn-hover-border-color: var(--oc-sun); --bs-btn-hover-color: var(--oc-accent-dark); }

/* Article and archive reading */
.blog-post-meta { color: var(--oc-muted); font-size: .92rem; }
.blog-post img, .article-body img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--oc-r-sm); }
.blog-post, .article-body { font-size: 1.1rem; line-height: 1.7; }
.article-body { max-width: 46rem; }
.article-body table, .blog-post table { display: block; max-width: 100%; overflow-x: auto; }
.blog-post .card { margin-bottom: 1.25rem; border-radius: var(--oc-r); }
.oc-archive-note { font-size: .9rem; color: var(--oc-muted); background: var(--oc-wash); padding: .65rem 1rem; border-radius: var(--oc-r-sm); max-width: 46rem; }
.std-reffont { font-size: .9rem; color: var(--oc-muted); border-top: 1px solid var(--oc-line); margin-top: 2rem; padding-top: 1rem; }
.ref-hdr { font-weight: 700; margin-bottom: .25rem; }
.std-badge-3 { font-size: 1.3rem; margin-top: 2.5rem; }
.std-badge-2 { background: var(--oc-wash); border-radius: var(--oc-r-sm); }
.premiumw { max-width: 46rem; }
.premiumfl p:first-child::first-letter { font-weight: 800; font-size: 3.2em; float: left; line-height: .9; padding-right: .1em; color: var(--oc-accent); }
.card { border-radius: var(--oc-r); border-color: var(--oc-line); }

/* Lists */
.resultline2 { font-weight: 400; font-size: .9rem; color: var(--oc-muted); }
.bizmoreinfo small { color: var(--oc-muted); margin-right: .4rem; }
.oc-results { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.oc-results li { padding: 1rem 1.2rem; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r-sm); }
.oc-results h3 { font-size: 1.1rem; margin: 0; }
.oc-results p { margin: .25rem 0 0; font-size: .92rem; color: var(--oc-muted); }
.pagin { margin: 1.5rem 0; }
.pagin a, .pagin span { display: inline-block; min-width: 2.6rem; padding: .4rem .8rem; margin: 0 .25rem .4rem 0; text-align: center; text-decoration: none; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: 999px; }
.pagin span { background: var(--oc-accent); border-color: var(--oc-accent); color: #fff; }
.oc-letters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.oc-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--oc-surface); border: 1px solid var(--oc-line); font-weight: 800; text-decoration: none; }
.oc-letters a:hover, .oc-letters a[aria-current] { background: var(--oc-accent); border-color: var(--oc-accent); color: #fff; }

/* Topic tags: the categories, shown as tags on articles and in the footer. */
.oc-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; background: var(--oc-wash); color: var(--oc-accent); font-size: .8rem; font-weight: 700; text-decoration: none; }
.oc-tag:hover { background: var(--oc-accent); color: #fff; }
h1 + .oc-tag { margin: -.25rem 0 1rem; }
.oc-topics { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.oc-topics .eyebrow { margin-right: .4rem; }
.oc-footer .oc-topics a { color: var(--oc-accent); font-weight: 700; }
.oc-footer .oc-topics a:hover { color: #fff; }

/* Business profile */
.oc-crumbs { font-size: .85rem; color: var(--oc-muted); margin-bottom: 1rem; }
.oc-crumbs a { font-weight: 700; text-decoration: none; }
.oc-biz-hero { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: 24px; padding: 1.75rem; margin-bottom: 1.5rem; }
.oc-biz-logo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 22px; overflow: hidden; background: var(--oc-wash); display: flex; align-items: center; justify-content: center; border: 1px solid var(--oc-line); }
.oc-biz-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.oc-biz-logo span { font-size: 3rem; font-weight: 850; color: var(--oc-accent); }
.oc-biz-head { min-width: 0; flex: 1; }
.oc-biz-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.oc-tag-ok { background: #e3f4ea; color: #1d6b40; }
.oc-biz-head h1 { margin: 0 0 .5rem; }
.oc-biz-address { color: var(--oc-muted); margin-bottom: 1rem; }
.oc-biz-address i { color: var(--oc-accent); }
.oc-biz-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.oc-biz-actions .btn + .btn { margin-left: 0; }
.oc-biz-block { background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r); padding: 1.5rem; margin-bottom: 1rem; }
.oc-biz-block h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.oc-biz-block > p:last-child { margin-bottom: 0; }
.oc-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.oc-chips li { background: var(--oc-wash); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; }
.oc-chips i { color: var(--oc-accent); }
.oc-biz-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.oc-biz-contact li { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border-radius: var(--oc-r-sm); padding: .8rem 1rem; font-size: .92rem; overflow-wrap: anywhere; }
.oc-biz-contact i { color: var(--oc-accent); width: 1.1rem; margin-top: .2rem; text-align: center; }
.oc-biz-contact small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--oc-muted); }
.oc-biz-social { display: flex; gap: .5rem; margin-top: 1rem; }
.oc-biz-social a { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.oc-biz-social a:hover { background: var(--oc-accent); color: #fff; }
.oc-biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.oc-biz-card { display: block; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r-sm); padding: 1rem 1.1rem; color: inherit; text-decoration: none; }
.oc-biz-card:hover { border-color: var(--oc-accent); }
.oc-biz-card strong { display: block; line-height: 1.3; }
.oc-biz-card span { display: block; font-size: .85rem; color: var(--oc-muted); margin-top: .25rem; }
@media (max-width: 767.98px) {
  .oc-biz-hero { flex-direction: column; padding: 1.25rem; }
  .oc-biz-logo { width: 88px; height: 88px; flex-basis: 88px; }
  .oc-biz-grid { grid-template-columns: 1fr; }
}

/* Search pages: directory, dictionary, exam passers */
.oc-pagehead-title { margin: .4rem 0 .5rem; }
.oc-pagehead-intro { color: var(--oc-muted); max-width: 40rem; margin-bottom: 1rem; }
.oc-searchbar { max-width: 46rem; }
.oc-searchbar .form-control { border-radius: 999px 0 0 999px; padding-left: 1.4rem; }
.oc-searchbar .btn { border-radius: 0 999px 999px 0; }
.oc-chips a { color: inherit; text-decoration: none; }
.oc-chips li:has(a):hover { background: var(--oc-accent); }
.oc-chips li:has(a):hover a { color: #fff; }
.oc-term h1 { margin: .5rem 0 1rem; }
.oc-term-lead { color: var(--oc-muted); margin-bottom: .4rem; }
.oc-term-definition { font-size: 1.2rem; line-height: 1.6; }
.oc-namelist { columns: 2; column-gap: 2rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.oc-namelist li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--oc-line); }
@media (max-width: 575.98px) { .oc-namelist { columns: 1; } }

/* Share bar: plain links plus the phone's share sheet, no third-party scripts */
.oc-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--oc-line); }
.oc-share .eyebrow { margin-right: .25rem; }
.oc-share-link { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--oc-line); background: var(--oc-surface); color: var(--oc-ink); text-decoration: none; padding: 0; }
.oc-share-link:hover, .oc-share-link:focus-visible { background: var(--oc-accent); border-color: var(--oc-accent); color: #fff; }
.oc-share-status { font-size: .85rem; color: var(--oc-muted); }
.oc-panel + .oc-share, aside > .oc-share { border-top: 0; }

.oc-share-top { margin: .25rem 0 1.25rem; padding-top: 0; border-top: 0; }
.oc-tag-active { background: var(--oc-accent); color: #fff; }
/* Spam trap on the story form: hidden from people, visible to bots that fill every field. */
.oc-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Calendar */
.oc-cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: .4rem 0 1rem; }
.oc-cal-nav { display: flex; gap: .4rem; }
.oc-cal-nav .btn + .btn { margin-left: 0; }
.oc-cal-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.oc-cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.oc-cal th { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--oc-muted); text-align: left; padding: 0 .5rem; }
.oc-cal td { vertical-align: top; height: 7rem; padding: .45rem; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r-sm); }
.oc-cal-out { opacity: .45; }
.oc-cal-today { border-color: var(--oc-accent) !important; box-shadow: inset 0 0 0 1px var(--oc-accent); }
.oc-cal-day { display: block; font-weight: 800; margin-bottom: .25rem; }
.oc-cal-today .oc-cal-day { color: var(--oc-accent); }
.oc-cal-event { display: block; font-size: .75rem; line-height: 1.25; padding: .2rem .35rem; margin-bottom: .2rem; border-radius: 6px; background: var(--oc-wash); color: var(--oc-accent-dark); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-cal-event:hover { background: var(--oc-accent); color: #fff; }
.oc-cal-more { font-size: .72rem; color: var(--oc-muted); }
.oc-cal-row { grid-template-columns: 84px 1fr; }
.oc-cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--oc-wash); color: var(--oc-accent); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.oc-cal-date strong { font-size: 1.8rem; line-height: 1; }
/* On phones the grid is too small to read; the event list below it does the work. */
@media (max-width: 767.98px) { .oc-cal { display: none; } }

/* Staff area */
.oc-staff { background: var(--oc-bg); }
.oc-staff-top { background: var(--oc-accent-dark); }
.oc-staff-top .navbar { --bs-navbar-padding-y: .5rem; }
.oc-staff-top .oc-brand { color: #fff; font-size: 1.3rem; }
.oc-staff-top .oc-brand .cebu { color: #9cc8ef; }
.oc-staff-top .oc-brand small { color: #c9dcee; margin-left: .35rem; text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; }
.oc-staff-top .nav-link { color: #dbe6f0; font-weight: 600; font-size: .9rem; }
.oc-staff-top .nav-link:hover, .oc-staff-top .nav-link:focus { color: #fff; }
.oc-staff-top .navbar-toggler { border-color: rgba(255, 255, 255, .4); }
.oc-staff-top .navbar-toggler-icon { filter: invert(1); }
.oc-staff-main { padding-top: 1.75rem; padding-bottom: 6rem; }
.oc-staff-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.oc-staff-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: .2rem 0; }
.oc-staff-head .btn + .btn { margin-left: 0; }
.oc-card { background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r); padding: 1.5rem; }
.oc-card .table { --bs-table-bg: transparent; }
.oc-card-subhead { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--oc-muted); margin: 1.25rem 0 .6rem; }
.oc-status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eef1f5; color: var(--oc-muted); }
.oc-status-live { background: #e3f4ea; color: #1d6b40; }
.oc-status-review { background: #fff3d6; color: #7a5600; }
.oc-empty { text-align: center; padding: 3rem 1.5rem; }
.oc-empty > i { font-size: 2rem; color: var(--oc-accent); margin-bottom: .75rem; }
.oc-fieldset { border-top: 1px solid var(--oc-line); padding-top: 1rem; margin-top: 1rem; }
.oc-fieldset:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.oc-fieldset > legend { font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.oc-section-form { margin-bottom: 1rem; }
.oc-section-form > legend { float: none; width: auto; font-weight: 800; padding: 0; margin-bottom: .75rem; }
.oc-savebar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.5rem; padding: .85rem 1rem; background: rgba(255, 255, 255, .96); border: 1px solid var(--oc-line); border-radius: var(--oc-r); box-shadow: 0 -6px 24px rgba(18, 63, 102, .08); }
.oc-savebar .btn + .btn { margin-left: 0; }
.oc-signin { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.oc-signin-card { width: min(420px, 100%); background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: 24px; padding: 2.25rem; box-shadow: 0 20px 60px rgba(18, 63, 102, .1); }
.oc-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.oc-stat { display: block; background: var(--oc-surface); border: 1px solid var(--oc-line); border-radius: var(--oc-r); padding: 1.25rem 1.4rem; color: inherit; text-decoration: none; }
.oc-stat:hover { border-color: var(--oc-accent); }
.oc-stat-number { display: block; font-size: 2.2rem; font-weight: 850; line-height: 1; color: var(--oc-accent); }
.oc-stat-label { display: block; margin-top: .35rem; font-size: .85rem; color: var(--oc-muted); font-weight: 600; }
@media (max-width: 767.98px) { .oc-stat-grid { grid-template-columns: 1fr 1fr; } }
.oc-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.oc-tile { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem .9rem; border: 1px solid var(--oc-line); border-radius: var(--oc-r-sm); color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; }
.oc-tile:hover { border-color: var(--oc-accent); color: var(--oc-accent); }
.oc-list { list-style: none; margin: 0; padding: 0; }
.oc-list li { padding: .6rem 0; border-bottom: 1px solid var(--oc-line); }
.oc-list li:last-child { border-bottom: 0; }
.oc-list a { display: block; font-weight: 600; text-decoration: none; }
.oc-list small { color: var(--oc-muted); }
.oc-facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; font-size: .85rem; }
.oc-facts dt { color: var(--oc-muted); font-weight: 600; }
.oc-facts dd { margin: 0; overflow-wrap: anywhere; }
.oc-log { max-height: 16rem; overflow: auto; background: #0f2236; color: #d7e5f2; border-radius: var(--oc-r-sm); padding: 1rem; font-size: .78rem; white-space: pre-wrap; margin: 0; }
.oc-search-short { max-width: 20rem; }
.oc-qr svg { width: 100%; max-width: 240px; height: auto; }
.oc-secret { display: inline-block; word-break: break-all; font-size: .9rem; }

/* Tagged text: images, quotes and tables written with [tags] */
.oc-figure { margin: 1.25rem 0; }
.oc-figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--oc-r-sm); }
.oc-figure figcaption { font-size: .85rem; color: var(--oc-muted); text-align: center; margin-top: .4rem; }
.oc-quote { margin: 1.25rem 0; padding: .9rem 1.2rem; background: var(--oc-wash); border-radius: var(--oc-r-sm); font-style: italic; }
.oc-quote > p:last-child { margin-bottom: 0; }
.article-body .table, .blog-post .table, .oc-markup-preview .table { font-size: .95rem; }

/* Preview banner on staff previews */
.oc-preview-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #fff3d6; color: #5c4100; border-radius: var(--oc-r-sm); }

/* Staff editor: tag toolbar, live preview, sortable sections */
.oc-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .35rem; margin-bottom: .35rem; background: var(--oc-wash); border-radius: var(--oc-r-sm); }
.oc-toolbar .btn { --bs-btn-padding-x: .55rem; --bs-btn-border-radius: 8px; }
.oc-toolbar .btn + .btn { margin-left: 0; }
.oc-markup-preview { min-height: 8rem; padding: 1rem 1.2rem; border: 1px dashed var(--oc-accent); border-radius: var(--oc-r-sm); background: #fff; }
.oc-section-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.oc-move { display: inline-flex; gap: .3rem; align-items: center; }
.oc-move .btn + .btn { margin-left: 0; }
.oc-drag { cursor: grab; padding: .25rem .5rem; color: var(--oc-muted); border-radius: 8px; }
.oc-drag:hover { background: var(--oc-wash); color: var(--oc-accent); }
.oc-dragging { opacity: .5; outline: 2px dashed var(--oc-accent); }

/* Staff media library and its picker */
.oc-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.oc-library-item { display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: .4rem; text-align: left; font-size: .8rem; background: #fff; border: 1px solid var(--oc-wash); border-radius: var(--oc-r-sm); color: inherit; }
.oc-library-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--oc-wash); }
.oc-library-item figcaption span, .oc-library-item > span { display: block; color: var(--oc-muted); }
button.oc-library-item:hover, button.oc-library-item:focus-visible { border-color: var(--oc-accent); outline: 2px solid var(--oc-accent); }
.oc-library-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--oc-r-sm); padding: 1.25rem; }
.oc-library-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.oc-library-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.oc-library-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .85rem; }
.oc-library-choice img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; vertical-align: middle; }

/* Footer */
.oc-footer { margin-top: 4rem; padding: 2rem 0 1.5rem; border-top: 1px solid var(--oc-line); background: var(--oc-surface); font-size: .9rem; color: var(--oc-muted); }
.oc-footer-top, .oc-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.oc-footer-bottom { border-top: 1px solid var(--oc-line); margin-top: 1.5rem; padding-top: 1.25rem; font-size: .82rem; }
.oc-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.oc-footer a { color: var(--oc-ink); text-decoration: none; font-weight: 600; }
.oc-footer a:hover { color: var(--oc-accent); }
.oc-invite + .oc-footer { margin-top: 0; }

/* Cookie notice */
.cookiealert { display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1030; margin: 0 auto; max-width: 640px; padding: .85rem 1.1rem; text-align: center; background: var(--oc-ink); color: #fff; border-radius: 16px; font-size: .9rem; }
.cookiealert.show { display: block; }
.cookiealert a { color: #fff; }

/* Bootstrap 4 classes that may still be inside HTML saved in the database (articles, internal pages, ads). */
.float-left { float: left !important; }
.float-right { float: right !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-italic { font-style: italic !important; }
.btn-block { display: block; width: 100%; }
.embed-responsive { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.embed-responsive-4by3 { aspect-ratio: 4 / 3; }
.embed-responsive-item, .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
