/*
Theme Name: AdultHosting Portal
Theme URI: https://adulthosting.org/
Author: AdultHosting Project
Author URI: https://adulthosting.org/
Description: Lightweight theme for a hosting comparison website. Built for Elementor and the Classic editor: every page, plus the site-wide header and footer, can be edited with either. Pairs with the AdultHosting Core plugin (search bar, hosting reviews, comparison, tools).
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.9
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: adulthosting-portal
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, editor-style, threaded-comments, translation-ready, blog, business
*/

:root {
	--navy: #0e1b2b;
	--mint: #24c7a8;
	--ink: #172235;
	--muted: #526578;
	--teal: #08786d;
	--soft: #f6f8fb;
	--line: #dce6ee;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; overflow-wrap: break-word; margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); line-height: 1.65; background: #fff; }
a { color: var(--teal); }
a:hover { text-decoration: underline; }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.container.narrow { width: min(850px, calc(100% - 36px)); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; left: 8px; top: 8px; padding: 10px 14px; background: #fff; color: var(--ink); }

/* Default header/footer (used until a Header & Footer layout is active) */
.site-header { background: var(--navy); color: #fff; }
.site-header .header-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; min-height: 72px; padding: 12px 0; }
.site-brand { font-size: 1.35rem; font-weight: 800; color: #fff; text-decoration: none; }
.site-brand span { color: var(--mint); }
.site-header .menu { display: flex; gap: 6px 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header .menu a { color: #dce8f0; text-decoration: none; font-size: .95rem; }
.site-footer { background: var(--navy); color: #d4e3eb; padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #9de7da; }
.site-footer .menu { display: flex; gap: 6px 20px; list-style: none; margin: 12px 0; padding: 0; flex-wrap: wrap; }

/* Content */
.site-main { padding: 48px 0 64px; }
.site-main.is-full { padding: 0; }
.entry-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 18px; }
.entry-meta { color: var(--muted); font-size: .9rem; margin: -6px 0 22px; }
.entry-content { overflow-wrap: break-word; }
.entry-content pre { overflow-x: auto; max-width: 100%; background: var(--soft); padding: 14px 16px; border-radius: 8px; }
.entry-content code { overflow-wrap: anywhere; }
.entry-content .wp-block-table, .entry-content figure.wp-block-table { overflow-x: auto; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content blockquote { border-left: 4px solid var(--mint); margin: 1.5em 0; padding: .2em 1.2em; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { border-radius: 12px; display: block; }
.alignwide { margin-inline: calc((100% - min(1160px, 100vw - 36px)) / 2); max-width: min(1160px, 100vw - 36px); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .87rem; color: var(--muted); }
.sticky .post-card { border-color: var(--mint); }

/* Post lists */
.archive-header { margin-bottom: 28px; }
.archive-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; }
.archive-header p { color: var(--muted); margin: 0; }
.post-list { display: grid; gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; min-width: 0; overflow-wrap: anywhere; }
.post-card h2 { font-size: 1.45rem; margin: 0 0 6px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 8px 0 0; color: var(--muted); }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-navigation .nav-links { justify-content: space-between; }

/* Forms */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .search-field { flex: 1; padding: 10px 12px; border: 1px solid #b9c8d6; border-radius: 8px; font: inherit; }
.search-form .search-submit, .button, button.submit, input[type="submit"] { background: var(--mint); color: #09292b; border: 0; padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }

/* Comments */
.comments-area { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid #b9c8d6; border-radius: 8px; font: inherit; }

/* Elementor: let full-width sections touch the edges */
.elementor-page .site-main { padding: 0; }

/* Tablet */
@media (max-width: 1024px) {
	.container { width: calc(100% - 48px); }
	.container.narrow { width: min(850px, calc(100% - 48px)); }
}

/* Phone */
@media (max-width: 700px) {
	.container, .container.narrow { width: calc(100% - 32px); }
	.site-main { padding: 32px 0 48px; }
	.site-header .header-inner { flex-direction: column; align-items: flex-start; }
	.entry-title, .archive-header h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
	.post-card { padding: 18px; }
	.post-card h2 { font-size: 1.25rem; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.entry-content table { display: block; overflow-x: auto; }
	.comment-list .children { padding-left: 12px; }
	.search-form { flex-direction: column; }
	.post-navigation .nav-links { flex-direction: column; }
}
