/*
Theme Name: Layertor Base
Theme URI: https://layertor.com
Author: Codesk
Description: A deliberately minimal theme for sites built with the Layertor plugin. No JavaScript, about 2 KB of CSS, and nothing that competes with your Layertor header, footer or templates. Pages that are not built with Layertor still get clean, readable defaults.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: layertor-base
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, wide-blocks, accessibility-ready
*/

/* Reset: just enough to give Layertor a neutral, predictable surface. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sb-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); font-size: 1rem; line-height: 1.6; color: var(--sb-ink, #1d1f24); background: var(--sb-bg, #fff); }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--sb-link, #2448d8); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Accessibility helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #000; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }

/* Fallback layout: only used where Layertor has no header, footer or template. */
.sb-wrap { width: min(100% - 40px, var(--sb-wide, 1200px)); margin-inline: auto; }
.sb-header, .sb-footer { padding-block: 20px; }
.sb-header .sb-wrap, .sb-footer .sb-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sb-footer { margin-top: 64px; border-top: 1px solid rgba(0,0,0,.08); font-size: .875rem; color: #5b6170; }
.sb-site-title { font-weight: 700; font-size: 1.125rem; text-decoration: none; color: inherit; }
.sb-header .custom-logo { display: block; max-height: 48px; width: auto; }
.sb-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sb-menu a { color: inherit; text-decoration: none; }
.sb-menu a:hover, .sb-menu .current-menu-item > a { text-decoration: underline; }
.sb-menu .sub-menu { display: none; }

/* Readable content for posts and pages written in the block editor. */
.sb-main { padding-block: 40px; }
.sb-entry { margin-bottom: 56px; }
.sb-entry > *, .sb-page-head { width: min(100% - 40px, var(--sb-content, 720px)); margin-inline: auto; }
.sb-entry .entry-content > * { max-width: var(--sb-content, 720px); margin-inline: auto; }
.sb-entry .entry-content > .alignwide { max-width: var(--sb-wide, 1200px); }
.sb-entry .entry-content > .alignfull { max-width: none; }
.sb-entry .entry-content { width: 100%; padding-inline: 20px; }
.entry-title { line-height: 1.2; margin: 0 0 8px; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { color: #5b6170; font-size: .875rem; margin-bottom: 24px; }
.post-thumbnail img { display: block; width: 100%; border-radius: 6px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.5em; } .aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .875rem; color: #5b6170; }
.sb-pagination, .comments-area { width: min(100% - 40px, var(--sb-content, 720px)); margin: 0 auto 48px; }
.sb-pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.comment-list { padding-left: 0; list-style: none; } .comment-list .children { list-style: none; }
input:not([type=checkbox]):not([type=radio]):not([type=submit]), textarea { width: 100%; max-width: 100%; padding: 8px 10px; font: inherit; border: 1px solid #c9ccd3; border-radius: 4px; }

/* Layertor owns the page: no theme spacing around it. */
.sb-main.sb-bare { padding: 0; }
.layertor-canvas .sb-footer, .sb-bare + .sb-footer { margin-top: 0; }
