/*
Theme Name: DoctorX Base
Theme URI: https://www.doctorx.ca/
Author: DoctorX.ca
Author URI: https://www.doctorx.ca/
Description: A clean, fast block theme for a small business website, and the parent theme that DoctorX child themes are made from. A header with your logo, site title and menu, a tidy footer, a blog laid out as cards, and pages with or without a title. Colours, fonts and every template can be changed in the Site Editor. It loads nothing from other websites: system fonts only.
Version: 1.0.2
Update URI: https://www.doctorx.ca/
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drx-base
Domain Path: /languages
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, block-styles, wide-blocks, threaded-comments, translation-ready, blog
*/

/*
 * DoctorX Base - the few rules theme.json cannot express. Colours, type and spacing live in theme.json.
 * assets/css/editor-style.css repeats the ones the editor needs: keep the two in step.
 */

/* Links: a thin underline, a little below the text. */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Keyboard focus: always a visible outline, in the colour of the text around it. */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Menus: room for the focus outline around each item, and between the items of a submenu. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/* Headings and paragraphs avoid a lone last word where the browser can. */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/* "Read more" on its own line. */
.more-link {
	display: block;
}

/* A long line of code scrolls inside its box, not the page. */
:where(pre) {
	overflow-x: auto;
}

/*
 * A band ("Light band", "Dark band") keeps room around what is in it: a coloured strip whose heading touches
 * its top edge looks unfinished. Zero weight, so a block that sets its own padding keeps it.
 */
:where(.wp-block-group.is-style-section-light, .wp-block-group.is-style-section-5, .wp-block-columns.is-style-section-light, .wp-block-columns.is-style-section-5) {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
:where(.wp-block-column.is-style-section-light, .wp-block-column.is-style-section-5) {
	padding: var(--wp--preset--spacing--40);
}

/*
 * With this theme active by itself (the page's body then has the class drx-base-solo), the footer sits right
 * under the page, with no strip of background between a full-width last section and it, and it stays at the
 * bottom of the window on a short page (a search with no results). Not under a child theme: it may draw its
 * own header and footer outside this box.
 */
.drx-base-solo .wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}
.drx-base-solo .wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
.drx-base-solo .wp-site-blocks > main {
	flex: 1 0 auto;
}
