/*
Theme Name: CourseDeals
Description: Responsive block theme for the CourseDeals directory and creator marketplace.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: course-deals
License: GPL-2.0-or-later
*/
:root{scroll-behavior:smooth}body{margin:0}img{height:auto;max-width:100%}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.cdm-site-header{position:relative;z-index:20;background:#fff;border-bottom:1px solid #e5eaf2;padding:16px 24px}
.cdm-site-header .wp-block-site-title{font-weight:800;font-size:1.55rem;letter-spacing:-.05em}
.cdm-site-footer{background:#12233d;color:#e9eff9;padding:55px 24px;margin-top:60px}
.cdm-site-footer a{color:#b3dbff}

/* Header remains available when browsing a long course catalog. */
.cdm-site-header{position:sticky;top:0;z-index:90}
body.admin-bar .cdm-site-header{top:32px}
@media(max-width:782px){body.admin-bar .cdm-site-header{top:46px}}
@media(max-width:600px){.cdm-site-header{padding:11px 14px}}
.cdm-site-header .wp-block-navigation-item__content{min-height:40px;display:inline-flex;align-items:center}
.cdm-site-header .wp-block-navigation__responsive-container-open{min-width:44px;min-height:44px;align-items:center;justify-content:center}

/* Header course search uses the same dynamically resolved archive as the directory. */
.cdm-site-header .cdm-header-search{display:flex;align-items:stretch;min-width:165px;max-width:265px;flex:1 1 165px;margin:0;gap:4px}
.cdm-header-search input{width:100%;min-width:0;background:#fff;color:#172e4b;border:1px solid #8294ab;border-radius:7px;padding:8px;font:inherit}
.cdm-header-search button{min-height:44px;padding:8px 12px;color:#fff;background:#164b8a;border:0;border-radius:7px;font:inherit;cursor:pointer}
.cdm-site-header :is(a,button,input):focus-visible{outline:3px solid #b45309;outline-offset:3px}
@media(max-width:780px){.cdm-site-header .cdm-header-search{order:3;flex:1 1 100%;max-width:none}.cdm-site-header .wp-block-navigation{margin-left:auto}}
