/*
Theme Name: ActionSnippet Modern
Theme URI: https://actionsnippet.com/
Author: Zevan Rosser
Description: A standalone, responsive evolution of the original ActionSnippet Thematic design. Readable serif typography, accessible navigation, and room for code.
Version: 1.0.0
Requires at least: 6.6
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: actionsnippet-modern
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready
*/

:root {
	--ink: #181e24;
	--text: #333c45;
	--muted: #606c77;
	--blue: #23679f;
	--sky: #b5d1ea;
	--line: #dfe5e9;
	--paper: #fff;
	--wash: #f5f7f9;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--serif: Georgia, "Times New Roman", serif;
	--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 18px/1.75 var(--serif); overflow-wrap: break-word; }
/* Some archived demos contain a universal font rule; keep theme inheritance. */
body * { font-family: inherit; }
::selection { background: #cfe3f5; color: #181e24; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #23679f; outline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
button, input, textarea, select { max-width: 100%; }
button, input[type="submit"], .wp-block-search__button { border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: #fff; padding: 10px 16px; font: 600 13px/1.5 var(--sans); min-height: 44px; }
button:hover, input[type="submit"]:hover, .wp-block-search__button:hover { background: #304352; }
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select { border: 1px solid #b8c4cd; border-radius: 3px; padding: 10px 12px; background: #fff; color: var(--ink); font: 16px/1.5 var(--sans); min-height: 44px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }
img, video { max-width: 100%; height: auto; }
iframe, object, embed { max-width: 100%; }
iframe { border: 0; }
figure { max-width: 100%; margin: 1.5em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; }
p { margin: 0 0 1.35em; }
[hidden] { display: none !important; }
.site-width { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
.skip-link:focus { clip: auto; clip-path: none; top: 12px; left: 12px; width: auto; height: auto; z-index: 100000; padding: 12px 20px; background: white; color: var(--ink); }

/* A familiar masthead, with less empty space. */
.site-header { border-top: 7px solid #080b0e; background: var(--ink); color: #fff; }
.site-branding { min-height: 222px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 48px; }
.site-title { margin: 0; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.1; letter-spacing: -2.5px; font-weight: 700; }
.site-title a { color: #fff; text-decoration: none; }
.site-description { color: #c6d1da; font-style: italic; margin: 15px 0 0; font-size: 17px; }
.feed-link { display: flex; align-items: center; gap: 9px; color: #c8d9e7; text-decoration: none; font: 13px var(--sans); padding: 12px 0; white-space: nowrap; }
.feed-link:hover { color: #fff; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }
.custom-logo-link { display: block; margin-bottom: 16px; }
.custom-logo { width: auto; max-height: 70px; }
.site-navigation { background: var(--sky); border-top: 1px solid #cfe2f3; border-bottom: 1px solid #a4bfd6; font: 14px/1.4 var(--sans); }
.navigation-inner { position: relative; }
.menu, .menu ul { list-style: none; padding: 0; margin: 0; }
.menu { display: flex; flex-wrap: wrap; gap: 3px; }
.menu li { position: relative; }
.menu > li > a { min-height: 56px; display: flex; align-items: center; padding: 14px 19px; }
.menu a { color: #203b50; text-decoration: none; }
.menu > li:first-child > a { padding-left: 0; padding-right: 24px; }
.menu > li.current-menu-item > a, .menu > li.current_page_item > a, .menu > li.current-menu-ancestor > a, .menu > li.current_page_ancestor > a { box-shadow: inset 0 -3px var(--blue); color: #102b3f; font-weight: 600; }
.menu a:hover { background: #c8def0; }
.menu ul { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px; max-width: min(300px, 85vw); background: #e9f1f8; border: 1px solid #a4bfd6; box-shadow: 0 8px 24px #181e2412; }
.menu ul a { display: block; padding: 12px 16px; min-height: 44px; }
.menu ul ul { position: static; margin-left: 12px; min-width: 0; border: 0; border-left: 1px solid #a4bfd6; box-shadow: none; }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.nav-enhanced .menu li > ul { display: none; }
.nav-enhanced .menu li.submenu-open > ul { display: block; }
.menu li.has-submenu > a { padding-right: 48px; }
.submenu-toggle { position: absolute; top: 6px; right: 2px; width: 40px; padding: 4px; background: transparent; border: 0; color: #203b50; }
.submenu-toggle:hover { background: #c8def0; }
.menu ul .submenu-toggle { top: 0; }
.menu-toggle { width: 100%; align-items: center; justify-content: space-between; background: transparent; color: #203b50; border: 0; border-radius: 0; padding: 12px 0; text-align: left; }
.menu-toggle:hover { background: transparent; }
.menu-icon { font-size: 21px; }

/* The notebook. */
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 72px; padding-block: 58px 88px; }
.site-main, .site-sidebar { min-width: 0; }
.site-main:focus { outline: none; }
.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.eyebrow { font: 600 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: 1.7px; color: var(--muted); margin: 0; }
.section-rule { flex: 1; height: 1px; background: var(--line); }
.entry { padding: 0 0 46px; margin: 0 0 46px; border-bottom: 1px solid var(--line); }
.entry-title, .page-title { font-size: clamp(29px, 2.7vw, 38px); letter-spacing: -.9px; margin: 0 0 12px; font-weight: 700; overflow-wrap: anywhere; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--blue); }
.single .entry-title, .page .entry-title { font-size: clamp(32px, 3.3vw, 44px); }
.entry-meta { font: 13px/1.7 var(--sans); color: var(--muted); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.entry-content { margin-top: 28px; display: flow-root; overflow-wrap: anywhere; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 29px; margin: 1.5em 0 .6em; letter-spacing: -.5px; }
.entry-content h3 { font-size: 23px; margin: 1.4em 0 .6em; }
.entry-content h4 { font-size: 20px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote, .wp-block-quote { border-left: 3px solid var(--sky); margin: 1.6em 0; padding: 4px 0 4px 24px; font-style: italic; color: #4b5a67; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content cite { display: block; font: 13px/1.6 var(--sans); margin-top: 12px; }
.entry-content iframe { display: block; width: 100%; margin-block: 24px; background: var(--wash); }
.entry-content .embed-link { font: 13px/1.6 var(--sans); margin-top: -12px; text-align: right; }
.entry-content .wp-embedded-content { max-width: 100%; }
.entry-image { margin-top: 28px; }
.entry-image img { display: block; }
.entry-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 30px; font: 12px/1.8 var(--sans); color: var(--muted); }
.entry-taxonomies { display: grid; gap: 4px; }
.entry-footer a { text-decoration: none; }
.entry-footer a:hover { text-decoration: underline; }
.comments-link { flex-shrink: 0; }
.edit-link, .read-more, .more-link { font: 600 13px/1.6 var(--sans); }
.archive-header { margin-bottom: 38px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.archive-header .eyebrow { margin-bottom: 12px; }
.archive-description { font-size: 17px; }
.archive-header .search-form { margin-top: 24px; max-width: 480px; }
.entry-summary { padding-bottom: 32px; margin-bottom: 32px; }
.entry-summary .entry-title { font-size: 28px; }
.entry-summary .entry-content { font-size: 17px; margin-top: 18px; }
.entry-summary .read-more { display: inline-block; margin-top: 16px; }
.empty-state { padding-block: 15px 60px; }
.empty-state .eyebrow { margin-bottom: 16px; }
.empty-state .search-form { margin: 25px 0; max-width: 480px; }

/* Code retains its whitespace; only the code panel scrolls. */
code, pre, kbd, samp { font-family: var(--mono); }
:not(pre) > code { background: #eef3f7; color: #264c69; padding: .15em .3em; border-radius: 2px; font-size: .85em; }
.entry-content pre { font-size: 14px; line-height: 1.75; background: var(--wash); border: 1px solid var(--line); border-radius: 3px; padding: 22px 24px; margin: 24px 0; overflow: auto; max-width: 100%; white-space: pre; word-wrap: normal; overflow-wrap: normal; tab-size: 4; color: #263b4b; }
.entry-content pre code { display: block; color: inherit; background: none; padding: 0; font: inherit; white-space: pre; }
.code-panel { border: 1px solid var(--line); border-radius: 4px; margin: 26px 0; overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 4px 18px; border-bottom: 1px solid var(--line); background: #eef3f7; font: 12px var(--sans); color: #4b5b69; gap: 12px; }
.code-label { overflow-wrap: anywhere; }
.copy-code { background: transparent; border: 0; color: #315773; padding: 8px; font-size: 12px; flex-shrink: 0; }
.copy-code:hover { background: #dce8f1; }
.code-panel > pre { margin: 0; border: 0; border-radius: 0; }
.entry-content .syntaxhighlighter { max-width: 100%; overflow: auto !important; font-size: 14px !important; margin: 0 !important; padding: 18px 0 !important; }
.entry-content .syntaxhighlighter table { width: 100% !important; margin: 0; display: table; border: 0; overflow: visible; }
.entry-content .syntaxhighlighter td { padding: 0; border: 0; }
.entry-content .syntaxhighlighter .toolbar { display: none !important; }
.entry-content .syntaxhighlighter .line { white-space: pre !important; line-height: 1.7 !important; }
.entry-content .syntaxhighlighter .gutter .line { border-right-color: #cadce9 !important; }
.legacy-demo { padding: 24px; border: 1px solid #cadce9; border-left: 3px solid var(--blue); background: #f1f6fa; margin: 28px 0; }
.legacy-demo p { margin: 10px 0; font-size: 16px; }
.legacy-demo > a { font: 600 13px/1.6 var(--sans); }

/* Both classic markup and editor blocks. */
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.entry-content th, .entry-content td { text-align: start; padding: 10px 14px; border: 1px solid var(--line); }
.entry-content th { background: var(--wash); }
.entry-content > table, .table-scroll, .wp-block-table { overflow-x: auto; max-width: 100%; }
.entry-content > table { display: block; }
.table-scroll table { margin: 0; }
.table-scroll { margin-block: 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption, .gallery-caption { color: var(--muted); font: 13px/1.6 var(--sans); margin-top: 10px; }
.alignleft { float: left; margin: 8px 24px 16px 0; }
.alignright { float: right; margin: 8px 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; margin-inline: 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery-item { flex: 1 1 180px; margin: 0; }
.gallery-item img { border: 0; }
.wp-block-image img { height: auto; }
.wp-block-button__link { font-family: var(--sans); border-radius: 3px; }
.wp-block-columns { max-width: 100%; }
.sticky { border-top: 2px solid var(--sky); padding-top: 24px; }
.bypostauthor > .comment-body { border-left: 2px solid var(--sky); padding-left: 18px; }

/* An unobtrusive, useful sidebar. */
.site-sidebar { font: 14px/1.7 var(--sans); padding-top: 2px; }
.widget { margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.widget:last-child { border-bottom: 0; }
.widget-title, .widget h2, .widget h3, .wp-block-search__label { display: block; color: var(--ink); font: 600 12px/1.6 var(--sans); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 18px; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.widget ul, .widget ol, .widget .wp-block-latest-comments { padding: 0; margin: 0; list-style: none; }
.widget li { margin: 0 0 11px; }
.widget li:last-child { margin-bottom: 0; }
.widget ul ul { padding-left: 16px; margin-top: 10px; }
.widget .wp-block-latest-comments__comment { font-size: 13px; line-height: 1.7; }
.widget .wp-block-latest-comments__comment-author { color: var(--text); }
.widget .wp-block-latest-posts__post-date { font-size: 12px; color: var(--muted); }
.widget .wp-block-group { padding: 0; }
.search-fields, .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.search-field, .wp-block-search__input { min-width: 0; width: 100%; }
.search-submit, .wp-block-search__button { flex-shrink: 0; padding-inline: 12px; margin: 0; }
.wp-block-search__input { border: 1px solid #b8c4cd; }

/* Pagination, conversations, and forms. */
.pagination .nav-links, .comments-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; font: 14px var(--sans); }
.page-numbers, .page-links a, .page-links > .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; }
.page-numbers.current, .page-links > .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-numbers.dots { border: 0; }
.post-navigation { margin: -10px 0 50px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-navigation a { text-decoration: none; display: block; }
.nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; color: var(--muted); font: 12px/1.5 var(--sans); margin-bottom: 8px; }
.nav-title { font-size: 18px; }
.comments-area { border-top: 3px solid var(--sky); padding-top: 30px; }
.comments-title, .comment-reply-title { font-size: 27px; margin: 0 0 28px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 24px; margin: 0; }
.comment-body { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 16px; overflow-wrap: anywhere; }
.comment-author { font: 14px/1.6 var(--sans); }
.comment-author .avatar { float: left; border-radius: 50%; margin-right: 12px; }
.comment-metadata { font: 12px/1.8 var(--sans); margin: 5px 0 18px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content pre { overflow-x: auto; max-width: 100%; }
.reply { font: 600 12px var(--sans); }
.comment-form { font: 14px/1.7 var(--sans); }
.comment-form label { display: block; margin-bottom: 7px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; }
.comment-form textarea { min-height: 180px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: baseline; gap: 10px; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as, .comments-closed { color: var(--muted); font: 13px/1.7 var(--sans); }
#cancel-comment-reply-link { font: 13px var(--sans); margin-left: 12px; }
.comment-respond { margin-top: 36px; }

.site-footer { border-top: 5px solid #080b0e; background: var(--ink); color: #bbc7d1; padding: 42px 0 50px; font: 12px/1.7 var(--sans); }
.site-footer a { color: #c8dced; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-title { font: bold 25px var(--serif); letter-spacing: -.5px; color: #fff !important; text-decoration: none; }
.footer-bottom p { margin: 8px 0 0; }
.back-to-top { text-decoration: none; padding-block: 12px; }
.back-to-top span { margin-left: 10px; }
.footer-menu { display: flex; gap: 20px; list-style: none; padding: 0; flex-wrap: wrap; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-widgets .widget-title, .footer-widgets h2, .footer-widgets h3, .footer-widgets .wp-block-search__label { color: #fff; }

@media (max-width: 1000px) {
	.site-width { width: calc(100% - 48px); }
	.site-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
	.menu > li > a { padding-inline: 14px; }
	.entry-footer { display: grid; gap: 10px; }
}
@media (max-width: 800px) {
	.site-layout { grid-template-columns: minmax(0, 1fr); padding-block: 38px 56px; gap: 52px; }
	.site-branding { min-height: 180px; padding-block: 38px; }
	.site-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 34px; }
	.widget { margin-bottom: 0; }
	.menu > li:first-child > a { padding-right: 16px; }
}
@media (max-width: 600px) {
	body { font-size: 17px; line-height: 1.7; }
	.site-width { width: calc(100% - 40px); }
	.site-header { border-top-width: 5px; }
	.site-branding { min-height: 172px; padding-block: 32px; display: block; }
	.site-title { letter-spacing: -1.8px; font-size: clamp(36px, 9vw, 46px); }
	.site-description { font-size: 15px; margin-top: 12px; }
	.feed-link { display: inline-flex; margin-top: 12px; font-size: 12px; padding-block: 5px; }
	.menu { display: block; padding-block: 8px; }
	.menu > li > a, .menu > li:first-child > a { padding: 12px; min-height: 46px; }
	.menu > li.current-menu-item > a, .menu > li.current_page_item > a { box-shadow: inset 3px 0 var(--blue); background: #c8def0; }
	.menu ul, .menu ul ul { position: static; min-width: 0; max-width: 100%; margin-left: 16px; border: 0; box-shadow: none; background: transparent; }
	.menu-toggle:not([hidden]) { display: flex; }
	.nav-enhanced .menu { display: none; }
	.nav-enhanced.menu-open .menu { display: block; border-top: 1px solid #9fbcd4; }
	.submenu-toggle { top: 1px; }
	.section-heading { margin-bottom: 28px; }
	.entry { margin-bottom: 34px; padding-bottom: 34px; }
	.entry-content { margin-top: 23px; }
	.entry-content pre { padding: 16px; font-size: 13px; }
	.entry-meta { gap: 7px; font-size: 12px; }
	.site-sidebar { display: block; }
	.site-sidebar .widget { margin-bottom: 30px; }
	.alignleft, .alignright { float: none; display: block; margin: 20px 0; }
	.comment-list .children { padding-left: 12px; }
	.footer-bottom { display: block; }
	.back-to-top { display: inline-block; margin-top: 16px; }
	.footer-widgets { display: block; }
}
@media print {
	.site-navigation, .site-sidebar, .site-footer, .feed-link, .copy-code, .comment-respond, .post-navigation, .entry-footer { display: none; }
	.site-header { background: #fff; border: 0; }
	.site-title a { color: #000; }
	.site-branding { min-height: 0; padding-block: 20px; }
	.site-width { width: 100%; }
	.site-layout { display: block; padding: 0; }
	.entry-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
