/*
Theme Name: Minimal
Theme URI: http://simonmanley.com/
Author: Simon Manley
Author URI: http://simonmanley.com/
Description: 
License: GNU General Public License
License URI: license.txt
Tags: 
Text Domain: minimal
*/
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  color: #111;
  background: #fff;
}

a {color:#0000ff;text-decoration:underline;}
a:hover {color:#0000FF;text-decoration:none;}
a:visited {color:#0000FF;text-decoration:underline;}
a:focus {color:#0000FF;text-decoration:none;}
a:active {color:#FF0000;text-decoration:underline;}

.post, .type-page, .comments-section{
  max-width: 700px;
  margin: 20px auto;
  padding: 40px;
  border-radius: 16px;
  font-size: 1.25rem;
  line-height: 1.6;
  overflow-wrap:break-word;
}
article .content{
display:inline-block;	
}	
.home .comments-section{
display:none;
}
.format-standard, .type-page {
  background: #f3f3f3;
}
.format-standard h2, .type-page h2{
  margin-top: 0;
}
.format-quote {
  font-size: 1.6rem;
  font-style: italic;
  text-align: center;
  background:#C23636;
  color:#FFF;
}
.format-quote a{
  color:#FFF;
}
.format-quote blockquote, 
.format-quote.wp-block-quote {
  border-left: 5px solid #aaa; /* Change color to match your brand */
  background:#C23636;
  color:#FFF;
}
.format-image img {
  width: 100%;
  border-radius: 12px;
}
.format-image {
  max-width:785px;
}
.format-image figure {
    background: transparent;
    border: 0px solid #ddd;
}
.format-aside {
  font-size: 1.1rem;
  color: #555;
  background:#eee;
}
.format-status {
  font-weight: bold;
  text-align: center;
  background:#ededed;
}
.site-header {
  text-align: center;
  padding: 20px 0;
  font-size: 1.6rem;
  color: #777;
}
.site-header a,.site-header a:hover,.site-header a:visited,.site-header a:active{
  color: #777;
  text-decoration:none;
}
.post time {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 20px;
}
.footer-widgets {
  max-width: 100%;
  margin: 20px auto;
  padding: 15px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  background:#eee;
  overflow-wrap:break-word;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /* optional spacing */
}
@media (max-width: 800px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}
.site-footer {
  max-width: 775px;
  margin: 60px auto;
  padding: 20px 0;
}
.site-footer, .site-footer a, .site-footer a:hover {
  color:#555;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  font-size: 0.95rem;
  color: #555;
}
.footer-widgets li{
    display: block;
    margin: 0 !important;
}
.footer-widgets h2 { font-size: 1.4rem !important; margin:0;color:#333;}
.footer-widgets a { text-decoration: none; }
.footer-widgets ul, ol { margin: 0 !important; padding:0;}

abbr[title] {
  padding: 2px 0;
  border-bottom: 1px dashed #999;
  cursor: help;
  letter-spacing: .07em;
}

.page-numbers {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  list-style: none;
  padding: 0;
  font-size: 1rem;
  font-family: sans-serif;
}

.page-numbers li {
  margin: 0 5px;
  list-style: none;
  display: inline-block;
}

.page-numbers a,
.page-numbers span {
  display: block;
  padding: 8px 14px;
  background-color: #f0f0f0;  /* light gray background */
  color: #333;                 /* dark text */
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

.page-numbers a:hover {
  background-color: #ddd;      /* slightly darker on hover */
  color: #000;
}

.page-numbers .current {
  background-color: #333;      /* dark gray for current page */
  color: #fff;
}

.post-meta {
	display: block;
    font-size: .7em;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #bbb;
}
.post-meta a{
    text-decoration:none;
	color:#bbb;
}
.post-meta a:hover{
    text-decoration:underline dotted;
}
.home .post-back {
	display:none;
}
.single .post-forward {
	display:none;
}
.comment-count {
    position: relative;
    top: -2px;
    left: 17px;
    font-size: 10px;
    color: #fff;
    font-weight: bold;
}	
/* ==========================================================================
   WORDPRESS CORE ALIGNMENT CLASSES (Required)
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0.5em 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.alignnone {
    margin: 0.5em 0 1.5em 0;
}

/* Clearfix for post containers to prevent floating images from "bleeding" out */
.entry-content::after,
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   BLOCKQUOTE STYLING
   ========================================================================== */

blockquote, 
.wp-block-quote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 5px solid #333; /* Change color to match your brand */
    background-color: #f9f9f9;
    font-style: italic;
    font-family: Georgia, serif;
    color: #444;
    line-height: 1.6;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Citation/Author Styling */
blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    font-style: normal;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   IMAGE CAPTIONS & FIGURES
   ========================================================================== */

.wp-caption,
figure {
    max-width: 100%;
    margin-bottom: 1.5em;
    background: #f1f1f1;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.wp-caption img,
figure img {
    margin: 0;
    padding: 0;
    height: auto;
    max-width: 100%;
}

.wp-caption-text,
figcaption {
    font-size: 0.8em;
    line-height: 1.5;
    padding: 10px 5px;
    margin: 0;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   RESPONSIVE MEDIA & BASIC BLOCKS
   ========================================================================== */

/* Ensures videos and images don't overflow the container */
embed, 
iframe, 
object, 
video, 
img {
    max-width: 100%;
    height: auto;
}

/* Gallery Block Basics */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 2em 0;
    gap: 10px;
}

.wp-block-gallery .blocks-gallery-item {
    margin: 0;
    display: flex;
    flex-grow: 1;
}

/* Separator/Horizontal Rule */
hr.wp-block-separator {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 3em auto;
    max-width: 100px;
}
.dashicons, .dashicons-before:before {
    line-height: 1.2 !important;
}




/* ==========================
   Kubrick Lite Stress-Proof Layer
   ========================== */

/* 1. Floats (images, embeds) */
article,
.post {
    display: flow-root; /* ensures floats are contained */
}

/* Optional: fallback clearfix for older browsers */
article::after,
.post::after {
    content: "";
    display: table;
    clear: both;
}

/* 2. WordPress align images */
.alignleft,
.alignright,
.aligncenter {
    max-width: 100%;
    height: auto;
}

/* Ensure floated images don't exceed container */
.alignright,
.alignleft {
    float: right;
    margin-left: 1em;
}

.alignleft {
    float: left;
    margin-right: 1em;
}

/* 3. Pre/code blocks */
pre {
    max-width: 600px;
    overflow-x: auto; /* horizontal scroll if needed */
    white-space: pre; /* preserves formatting */
}

code {
    word-break: break-word; /* handles very long inline code */
}

/* 4. Captions & images inside captions */
.wp-caption,
.wp-block-image {
    max-width: 100%;
    width: auto !important;
}

.wp-caption img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Prevent long words from breaking layout (titles, headings, etc.) */
.post-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 700px; /* optional: constrain extreme cases */
}

/* 5. Optional: universal box-sizing sanity */
#content * {
    box-sizing: border-box;
}

/* 6. Post-meta float containment (your inline-block fix) */
.post-meta {
    display: inline-block;
}
