/*
Theme Name: Flush Twice Classic
Theme URI: https://www.flushtwice.com/
Author: f2x & OpenAI
Description: A lightweight, deliberately traditional responsive theme built for Flush Twice.
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: flush-twice
*/

:root {
  --ft-page-bg: #5a302b;
  --ft-content-bg: #f7f1e7;
  --ft-text: #241b18;
  --ft-link: #8a164c;
  --ft-menu-bg: #3b201e;
  --ft-menu-text: #fff8ee;
  --ft-sidebar-bg: #4a2825;
  --ft-sidebar-text: #fff5e6;
  --ft-sidebar-link: #ffd2e5;
  --ft-max-width: 1024px;
  --ft-side-margin: 60px;
  --ft-sidebar-width: 360px;
  --ft-column-gap: 24px;
  --ft-font: Arial, Helvetica, sans-serif;
  --ft-menu-font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ft-text);
  background: var(--ft-page-bg);
  font-family: var(--ft-font);
  line-height: 1.55;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ft-link); }
a:hover, a:focus { text-decoration-thickness: 2px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus, .skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px;
  background: #fff; color: #111; z-index: 10000;
}

.site-shell {
  width: min(var(--ft-max-width), calc(100% - (2 * var(--ft-side-margin))));
  margin: 0 auto;
  background: var(--ft-content-bg);
}
.site-header { position: relative; height: 150px; overflow: hidden; background: #555; }
.header-background {
  display: block; width: 100%; height: 150px;
  object-fit: cover; object-position: right center;
}
.site-logo-link, .site-header .custom-logo-link {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: block; max-width: 48%; line-height: 0;
}
.site-logo, .site-header .custom-logo { display: block; width: min(100%, var(--ft-logo-width, 500px)); height: auto; }
.text-branding { padding: 24px; }
.text-branding .site-title { margin: 0; font-size: 2.2rem; }
.text-branding .site-description { margin: 4px 0 0; }

.site-navigation { background: var(--ft-menu-bg); color: var(--ft-menu-text); font-family: var(--ft-menu-font); }
.menu-toggle { display: none; width: 100%; border: 0; padding: 12px 16px; color: inherit; background: inherit; font: inherit; text-align: left; }
.primary-menu, .footer-menu { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: 11px 16px; color: var(--ft-menu-text); text-decoration: none; }
.primary-menu a:hover, .primary-menu a:focus, .primary-menu .current-menu-item > a { background: rgba(255,255,255,.14); }
.primary-menu .sub-menu { margin: 0; padding-left: 18px; list-style: none; }

@media (min-width: 721px) {
  .site-navigation { position: relative; z-index: 1000; }
  .primary-menu li { position: relative; }
  .primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 0;
    background: var(--ft-menu-bg);
    box-shadow: 0 6px 12px rgba(0,0,0,.35);
  }
  .primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }
  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu {
    display: block;
  }
  .primary-menu .sub-menu a {
    min-width: 220px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    white-space: nowrap;
  }
  .primary-menu > .menu-item-has-children > a::after,
  .primary-menu > .page_item_has_children > a::after {
    content: " \25BE";
  }
  .primary-menu .sub-menu .menu-item-has-children > a::after,
  .primary-menu .sub-menu .page_item_has_children > a::after {
    float: right;
    margin-left: 12px;
    content: "\25B8";
  }
}

.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--ft-sidebar-width); gap: var(--ft-column-gap); align-items: start; }
.content-area { min-width: 0; padding: 24px; background: var(--ft-content-bg); }
.widget-area {
  width: var(--ft-sidebar-width); padding: 15px;
  color: var(--ft-sidebar-text); background: var(--ft-sidebar-bg);
  overflow: visible;
}
.widget { margin: 0 0 28px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { margin: 0 0 10px; color: inherit; }
.widget-area a { color: var(--ft-sidebar-link); }
.widget-area img { max-width: 100%; height: auto; }
.widget-area ul { margin: 0; padding-left: 20px; }

.post-card { margin: 0 0 36px; padding: 0 0 30px; border-bottom: 1px solid rgba(0,0,0,.2); }
.post-card:last-child { border-bottom: 0; }
.entry-title { margin: 0 0 5px; line-height: 1.2; overflow-wrap: anywhere; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover, .entry-title a:focus { text-decoration: underline; }
.entry-meta { margin-bottom: 18px; font-size: .9rem; opacity: .76; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.more-link { white-space: nowrap; }
.page-header { margin-bottom: 28px; }
.page-title { margin-top: 0; }
.post-navigation, .posts-navigation, .pagination { margin: 30px 0; }
.nav-links { display: flex; justify-content: space-between; gap: 20px; }
.nav-next { margin-left: auto; text-align: right; }
.comment-list { padding-left: 24px; }
.comment-body { margin-bottom: 22px; }
textarea, input[type="text"], input[type="email"], input[type="url"], input[type="search"] { max-width: 100%; padding: 8px; }
button, input[type="submit"] { cursor: pointer; padding: 8px 14px; }

.site-footer { padding: 18px 24px; color: var(--ft-menu-text); background: var(--ft-menu-bg); }
.footer-menu { margin-bottom: 10px; gap: 16px; }
.footer-menu a { color: inherit; }
.site-info { font-size: .9rem; }

@media (max-width: 720px) {
  .site-logo-link, .site-header .custom-logo-link { max-width: 52%; }
  .menu-toggle { display: block; }
  .primary-menu { display: none; }
  .primary-menu.is-open { display: block; }
  .primary-menu a { border-top: 1px solid rgba(255,255,255,.12); }
  .primary-menu .sub-menu { position: static; display: block; padding-left: 18px; box-shadow: none; }
  .content-area { padding: 18px 15px; }
  .nav-links { display: block; }
  .nav-next { margin-top: 14px; text-align: left; }
}

@media print {
  body, .site-shell, .content-area { background: #fff; color: #000; }
  .site-navigation, .widget-area, .site-footer, .post-navigation, .comments-area { display: none; }
  .site-layout { display: block; }
  a { color: #000; text-decoration: none; }
}
