/*
Theme Name: ContentOcean Magazine
Theme URI: https://contentocean.co.uk/
Author: ContentOcean
Author URI: https://contentocean.co.uk/
Description: Custom magazine child theme for ContentOcean, built on GeneratePress to match the approved HTML design (navy/teal, Archivo + Inter).
Version: 1.0.10
Template: generatepress
Text Domain: contentocean-magazine
*/

/* ============ Base ============ */
body{margin:0;background:#FFFFFF;color:#0B1F33;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
a{color:#0B6E78;text-decoration:none}
a:hover{color:#08525A}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:Archivo,Inter,system-ui,sans-serif;color:#0B1F33}
.co-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.co-main{max-width:1240px;margin:0 auto;padding:32px 24px 64px}

/* ============ Top bar ============ */
.co-topbar{background:#0B1F33;color:#FFFFFF;font-size:13px}
.co-topbar .co-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding-top:8px;padding-bottom:8px}
.co-topbar a{color:#FFFFFF}
.co-topbar a:hover{color:#9FE3E8}
.co-topbar-links{display:flex;gap:20px}

/* ============ Header ============ */
.co-header{border-bottom:1px solid #E3E8EE}
.co-header-inner{max-width:1240px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.co-logo{display:flex;align-items:center;gap:10px;color:#0B1F33}
.co-logo:hover{color:#0B1F33}
.co-wordmark{font-family:Archivo,sans-serif;font-weight:800;font-size:30px;letter-spacing:-.5px;line-height:1}
.co-wordmark span{color:#0B6E78}
.co-search{display:flex;gap:8px}
.co-search label{position:absolute;left:-9999px}
.co-search input{height:44px;width:240px;max-width:60vw;border:1px solid #C9D2DC;border-radius:6px;padding:0 12px;font:inherit;color:#0B1F33}
.co-search button{height:44px;padding:0 18px;border:0;border-radius:6px;background:#0B1F33;color:#FFFFFF;font:inherit;font-weight:600;cursor:pointer}
.co-search button:hover{background:#0B6E78}
.co-nav{max-width:1240px;margin:0 auto;padding:0 24px}
.co-nav-toggle{display:none;background:none;border:0;font:inherit;font-weight:700;color:#0B1F33;cursor:pointer;padding:12px 0;font-size:16px}
.co-nav-links{display:flex;flex-wrap:wrap;gap:4px 24px;font-weight:600;font-size:15px}
.co-nav-links a{color:#0B1F33;padding:12px 0;border-bottom:3px solid transparent}
.co-nav-links a:hover{color:#0B6E78}
.co-nav-links a.current{border-bottom-color:#0B6E78;color:#0B6E78}
@media (max-width:768px){
  .co-nav-toggle{display:block}
  .co-nav-links{display:none;width:100%;flex-direction:column;gap:0}
  .co-nav.open .co-nav-links{display:flex}
  .co-nav-links a{padding:10px 0;border-bottom:1px solid #E3E8EE}
  .co-nav-links a.current{border-bottom-color:#E3E8EE}
}
.co-breadcrumb .rank-math-breadcrumb{font-size:13px;color:#5A6B7C}
.co-breadcrumb .rank-math-breadcrumb a{color:#5A6B7C}
.co-breadcrumb .rank-math-breadcrumb a:hover{color:#0B6E78}

/* ============ Homepage hero + trending ============ */
.co-hero{display:flex;flex-wrap:wrap;gap:32px}
.co-hero-feature{flex:999 1 560px;min-width:0;display:block;color:#0B1F33}
.co-hero-feature:hover{color:#0B1F33}
.co-hero-img{display:block;aspect-ratio:16/9;background:#DCE6EE;border-radius:8px;overflow:hidden}
.co-hero-img img{width:100%;height:100%;object-fit:cover;display:block}
.co-hero-cat{margin:18px 0 6px;color:#0B6E78;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:1px}
.co-hero-title{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:42px;line-height:1.1;letter-spacing:-.5px}
.co-hero-deck{margin:12px 0 0;font-size:18px;line-height:1.55;color:#3A4B5C}
.co-hero-byline{margin:12px 0 0;font-size:14px;color:#5A6B7C}
.co-trending{flex:1 1 320px;min-width:0}
.co-trending h2,.co-related h2{margin:0 0 12px;font-family:Archivo,sans-serif;font-size:20px;border-bottom:3px solid #0B1F33;padding-bottom:8px}
.co-trending ol{list-style:none;margin:0;padding:0}
.co-trending li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid #E3E8EE}
.co-trending li:last-child{border-bottom:0}
.co-trending-num{font-family:Archivo,sans-serif;font-weight:800;font-size:28px;color:#0B6E78;width:28px;flex:none;line-height:1.1}
.co-trending a{font-weight:600;font-size:16px;line-height:1.4;color:#0B1F33}
.co-trending a:hover{color:#0B6E78}

/* ============ Category blocks + cards ============ */
.co-catblock{margin-top:56px}
.co-catblock-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:3px solid #0B1F33;padding-bottom:8px;margin-bottom:20px}
.co-catblock-head h2{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:26px}
.co-catblock-head a{font-weight:600;font-size:14px;color:#0B6E78;white-space:nowrap}
.co-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:28px}
.co-card{display:block;color:#0B1F33}
.co-card:hover{color:#0B1F33}
.co-card-img{display:block;aspect-ratio:3/2;background:#E8EEF3;border-radius:6px;overflow:hidden}
.co-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.co-card h3{margin:12px 0 6px;font-family:Archivo,sans-serif;font-weight:700;font-size:19px;line-height:1.25}
.co-card:hover h3{color:#0B6E78}
.co-card-byline{margin:0;font-size:13px;color:#5A6B7C}
.co-card-deck{margin:8px 0 6px;font-size:15px;line-height:1.5;color:#3A4B5C}
.co-author-avatar img{border-radius:50%;display:block;margin-bottom:12px}
.co-archive-head{margin:0 0 24px}
.co-archive-head h1{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:36px;letter-spacing:-.5px}
.co-archive-head p{color:#4A5D70;margin:8px 0 0}
.co-pagination{margin-top:40px;display:flex;gap:8px;flex-wrap:wrap}
.co-pagination a,.co-pagination span{padding:10px 16px;border:1px solid #C9D2DC;border-radius:6px;font-size:14px;color:#0B1F33}
.co-pagination span.current{background:#0B1F33;color:#FFFFFF;border-color:#0B1F33}

/* ============ Banner ============ */
.co-banner{margin-top:64px;background:#0B1F33;color:#FFFFFF;border-radius:10px;padding:40px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.co-banner-text{flex:1 1 420px}
.co-banner h2{margin:0 0 8px;font-family:Archivo,sans-serif;font-size:28px;color:#FFFFFF}
.co-banner p{margin:0;font-size:16px;line-height:1.5;color:#C9D6E2}
.co-banner-btn{background:#FFFFFF;color:#0B1F33;padding:14px 24px;border-radius:6px;font-weight:700;white-space:nowrap}
.co-banner-btn:hover{background:#DCE6EE;color:#0B1F33}

/* ============ Footer ============ */
.co-footer{background:#F2F5F8;border-top:1px solid #E3E8EE}
.co-footer-inner{max-width:1240px;margin:0 auto;padding:40px 24px;display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;font-size:14px}
.co-footer-brand{flex:1 1 280px}
.co-footer-brand .co-wordmark{font-size:22px}
.co-footer-tag{margin:8px 0 0;color:#4A5D70;line-height:1.5}
.co-footer nav{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-start}
.co-footer nav a{color:#0B1F33}
.co-footer nav a:hover{color:#0B6E78}
.co-copyright{margin:0;text-align:center;padding:16px;font-size:13px;color:#4A5D70;border-top:1px solid #E3E8EE}

/* ============ Article ============ */
.co-article-layout{max-width:1240px;margin:0 auto;padding:24px 24px 64px;display:flex;flex-wrap:wrap;gap:48px}
.co-article{flex:999 1 640px;min-width:0;max-width:780px}
.co-breadcrumb{font-size:13px;color:#5A6B7C}
.co-breadcrumb a{color:#5A6B7C}
.co-breadcrumb a:hover{color:#0B6E78}
.co-article h1{margin:14px 0 12px;font-family:Archivo,sans-serif;font-weight:800;font-size:44px;line-height:1.1;letter-spacing:-.5px}
.co-byline{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #E3E8EE;border-bottom:1px solid #E3E8EE}
.co-byline img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.co-byline-text{font-size:14px;line-height:1.4}
.co-byline-text a{color:#0B1F33;font-weight:700}
.co-byline-date{color:#5A6B7C}
.co-featured{margin-top:20px}
.co-featured-img{aspect-ratio:16/9;background:#DCE6EE;border-radius:8px;overflow:hidden}
.co-featured-img img{width:100%;height:100%;object-fit:cover;display:block}
.co-featured figcaption{font-size:13px;color:#5A6B7C;margin-top:8px}
.co-body{font-size:18px;line-height:1.7;color:#1E2F40}
.co-body p{margin:0 0 16px}
.co-body h2{margin:36px 0 10px;font-family:Archivo,sans-serif;font-size:28px;color:#0B1F33;line-height:1.25}
.co-body h3{margin:28px 0 8px;font-family:Archivo,sans-serif;font-size:22px;color:#0B1F33;line-height:1.3}
.co-body ul,.co-body ol{margin:0 0 16px;padding-left:24px}
.co-body li{margin-bottom:6px}
.co-body blockquote{margin:0 0 16px;padding:12px 20px;border-left:4px solid #0B6E78;background:#F5F8FA}
.co-body table{width:100%;border-collapse:collapse;font-size:15px;margin:0 0 16px;color:#1E2F40}
.co-body thead tr{background:#0B1F33;color:#FFFFFF}
.co-body th,.co-body td{text-align:left;padding:10px 14px;border-bottom:1px solid #E3E8EE;vertical-align:top}
.co-body thead th{border-bottom:0}
.co-body figure{margin:0 0 16px}
.co-body figure table{margin:0}
.co-body img{border-radius:6px}
.co-body .wp-caption-text{font-size:13px;color:#5A6B7C;margin-top:8px}

/* Quick facts box */
.co-quickfacts{margin-top:24px;border:1px solid #C9D2DC;border-radius:8px;overflow:hidden}
.co-quickfacts-bar{margin:0;padding:12px 16px;background:#0B1F33;color:#FFFFFF;font-weight:700;font-size:16px}
.co-quickfacts table{margin:0;border:0}
.co-quickfacts th{width:40%;background:#F5F8FA;font-weight:600;padding:10px 16px}
.co-quickfacts td{padding:10px 16px}
.co-quickfacts tr{border-top:1px solid #E3E8EE}
.co-quickfacts thead th{width:auto;background:#0B1F33;color:#FFFFFF;font-weight:700;border-bottom:0}
.co-quickfacts figure{margin:0}

/* Table of contents */
.co-toc{margin-top:24px;background:#F5F8FA;border-radius:8px;padding:16px 20px}
.co-toc-title{margin:0 0 8px;font-weight:700;font-size:16px;color:#0B1F33}
.co-toc ol{margin:0;padding-left:20px;line-height:1.9}
.co-toc a{color:#0B6E78}

/* FAQ details */
.co-body details{border-bottom:1px solid #E3E8EE;padding:12px 0}
.co-body details summary{font-weight:600;cursor:pointer;color:#0B1F33}
.co-body details p{margin:8px 0 0;font-size:16px}

/* Sources box */
.co-sources{margin-top:32px;background:#F5F8FA;border-radius:8px;padding:16px 20px;font-size:14px;line-height:1.6}
.co-sources h2{margin:0 0 6px;font-size:16px}
.co-sources ul{margin:0;padding-left:20px}
.co-sources p{margin:0 0 6px}
.co-sources p:last-child{margin-bottom:0}

/* Share + author box */
.co-share{margin-top:28px;padding-top:20px;border-top:1px solid #E3E8EE;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.co-share-label{font-weight:700;font-size:15px;color:#0B1F33}
.co-share-btns{display:flex;flex-wrap:wrap;gap:10px}
.co-share-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#0B1F33;color:#fff;transition:background .2s,transform .2s}
.co-share-btn:hover{background:#0B6E78;color:#fff;transform:translateY(-2px)}
.co-share-btn svg{width:20px;height:20px;display:block}
.co-social-profiles{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.co-social-label{font-size:13px;font-weight:600;color:#5A6B7C;margin-right:2px}
.co-soc{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#0B1F33;color:#fff;transition:background .2s,transform .2s}
.co-soc:hover{background:#0B6E78;color:#fff;transform:translateY(-2px)}
.co-soc svg{width:18px;height:18px;display:block}
@media(max-width:600px){.co-share-btn{width:44px;height:44px}.co-soc{width:40px;height:40px}}
.co-authorbox{margin-top:32px;display:flex;gap:16px;padding:20px;border:1px solid #E3E8EE;border-radius:8px}
.co-authorbox img{flex:none;width:64px;height:64px;border-radius:50%;object-fit:cover}
.co-authorbox-name{margin:0 0 4px;font-weight:700}
.co-authorbox-name a{color:#0B1F33}
.co-authorbox p{margin:0;font-size:14px;color:#4A5D70;line-height:1.5}

/* Sidebar: ad slot + related */
.co-sidebar{flex:1 1 300px;min-width:0}
.co-adslot{height:250px;border:1px dashed #C9D2DC;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#5A6B7C;font-size:13px;text-align:center;padding:0 16px}
.co-related{margin-top:28px}
.co-related a{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #E3E8EE;color:#0B1F33}
.co-related a:hover{color:#0B6E78}
.co-related-thumb{flex:none;width:84px;height:60px;border-radius:4px;background:#E8EEF3;overflow:hidden}
.co-related-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.co-related-title{font-weight:600;font-size:15px;line-height:1.35}

/* Sponsored notice (Phase 2 snippet) */
.contentocean-sponsored-notice{background:#FFF9DB;border:1px solid #F0E0A0;border-radius:6px;padding:12px 16px;font-size:14px;line-height:1.5;color:#5C4A00;margin:0 0 16px}

/* Pages (About, Contact, etc.) use GeneratePress page template + this chrome */
.co-page{max-width:780px;margin:0 auto;padding:32px 24px 64px;font-size:18px;line-height:1.7;color:#1E2F40}
.co-page h1{font-size:40px;line-height:1.1;letter-spacing:-.5px}
.co-page h2{font-size:26px;margin:32px 0 10px}
.co-page h3{font-size:21px}
.co-page table{width:100%;border-collapse:collapse;font-size:15px;margin:0 0 16px}
.co-page thead tr{background:#0B1F33;color:#FFFFFF}
.co-page th,.co-page td{text-align:left;padding:10px 14px;border-bottom:1px solid #E3E8EE;vertical-align:top}

/* Search + 404 */
.co-search-title{margin:0 0 24px;font-size:32px}
.co-empty{color:#4A5D70;font-size:18px}
.co-404{max-width:780px;margin:0 auto;padding:64px 24px;text-align:center}
.co-404 h1{font-size:40px}
.co-404 .co-search{justify-content:center;margin-top:24px}
.co-404-links{margin-top:32px;display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:center;font-weight:600}

/* ============ Print (also makes PDF page captures clean) ============ */
@media print{
  .co-hero{display:block}
  .co-hero-feature{display:block;margin-bottom:24px}
  .co-trending{display:block}
  .co-grid{display:block}
  .co-card{display:block;margin-bottom:24px;break-inside:avoid}
  .co-catblock{break-inside:avoid}
}

/* ============ Responsive ============ */
@media (max-width:900px){
  .co-article-layout{padding-top:16px}
  .co-sidebar{flex-basis:100%}
  .co-hero{flex-direction:column}
  .co-hero-feature{flex:1 1 auto}
  .co-trending{flex:1 1 auto}
}
@media (max-width:700px){
  .co-hero-title{font-size:32px}
  .co-article h1{font-size:32px}
  .co-page h1{font-size:32px}
  .co-catblock-head h2{font-size:22px}
  .co-banner{padding:24px}
  .co-banner h2{font-size:24px}
  .co-header-inner{padding:16px 24px}
  .co-wordmark{font-size:26px}
  .co-body{font-size:17px}
  .co-nav-links{font-size:14px;gap:4px 16px}
  .co-search{width:100%}
  .co-search input{flex:1 1 auto;min-width:0;width:auto;max-width:none}
  .co-quickfacts table,.co-quickfacts tbody,.co-quickfacts tr,.co-quickfacts th,.co-quickfacts td{display:block;width:auto!important}
  .co-quickfacts th{padding:10px 16px 2px}
  .co-quickfacts td{padding:2px 16px 10px}
  .co-quickfacts thead{display:none}
  .co-quickfacts td[data-label]::before{content:attr(data-label) ": ";font-weight:700;color:#0B1F33}
  .co-quickfacts table.co-qf-2col tr{display:block;padding:8px 16px}
  .co-quickfacts table.co-qf-2col td{display:inline;padding:0}
  .co-quickfacts table.co-qf-2col td:first-child{font-weight:700;color:#0B1F33}
  .co-quickfacts table.co-qf-2col td:first-child::after{content:": "}
  .co-quickfacts .co-qf-2col th,
  .co-quickfacts .co-qf-2col td{border:0!important}
  .co-quickfacts table:not(.co-qf-2col) tr{margin-bottom:12px;border-top:2px solid #0B1F33}
  .co-quickfacts table:not(.co-qf-2col) tr:last-child{margin-bottom:0}
  .co-quickfacts td[data-label]:first-child{font-size:17px;font-weight:600}
  .co-body figure.wp-block-table{display:block;overflow-x:auto}
  .co-body td,.co-body th{overflow-wrap:break-word}
  .co-sources{overflow-wrap:anywhere}
}
