@charset "UTF-8";
/*
	Theme Name: Solar
	Theme URI: 
	Description: Solar is a Hugo theme designed for https://solar.lowtechmagazine.com. It is an attempt to radically reduce the energy use the associated with accessing our content.
	Version: 2.0
	Author: Marie Otsuka, Roel Roscam Abbing
    Author URI: http://motsuka.com/, http://roelof.info/
	License: AGPL 3.0
	License URI: https://choosealicense.com/licenses/agpl-3.0/
*/

/* modificato leggermente e rimosso alcuni parametri inutilizzati */

/* Define CSS variables for colors, spacing, fonts, and layout */
:root {
  --color-primary: black; /* Primary text color */
  --color-sub: rgb(120, 120, 120); /* Subdued text color */
  --color-bg: #F6E8EB ; /* Background color (porpora, a71d3c) (chiaro F6E8EB) (lowtech fff5d1) (chiaro FFFBEC)*/
  
  /* Spacing variables */
  --pad-small: 0.25rem;
  --pad: 0.5rem;
  --pad-large: 1rem;
  --pad-xlarge: 2rem;
  --pad-section: 3rem;
  
  /* Font settings */
  --monospace: "Courier", "Courier New", monospace; /* Monospace font */
  --sans: sans-serif;
  --font-xlarge: 2.5rem; /* Extra large font size */
  --font-large: 2rem; /* Large font size */
  --font-medium: 1.4rem; /* Medium font size */
  --font-body: 1rem; /* Default body font size */
  --font-small: 0.7rem; /* Small font size */
  
  /* Layout settings */
  --max-img-width: 1040px; /* Max image width */
  --max-content-width: 33rem; /* Max content width */
  --content-width: 80%; /* Default content width */
}

/* Adjust content width for smaller screens */
@media only screen and (max-width: 980px) {
  :root {
    --content-width: 90%; /* Increase width on medium screens */
  }
}

@media only screen and (max-width: 550px) {
  :root {
    --content-width: 100%; /* Use full width on small screens */
  }
}

/* Apply universal box sizing and reset padding/margin */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Set the base font size for the HTML document */
html {
  font-size: 20px;
}

/* Style the body */
body {
  background: var(--color-bg); /* Set background color */
  color: var(--color-primary); /* Set text color */
  padding: var(--pad-large); /* Apply padding */
}

/* Normalize heading font weight */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal; /* Remove bold effect */
}

/* Style h1 elements */
h1 {
  font-size: var(--font-xlarge); /* Set large font size */
  line-height: 1; /* Control vertical spacing */
  text-indent: -0.15rem; /* Adjust indentation */
}

/* Set paragraph line height */
p {
  line-height: 1.4;
}

/* Style links */
a {
  color: var(--color-primary); /* Default text color */
  text-decoration: none; /* Remove default underline */
  padding-bottom: 0.05em; /* Add slight padding */
  border-bottom: 1px solid; /* Add underline effect */
}

/* Change link style on hover */
a:hover {
  color: var(--color-sub); /* Change text color */
  text-decoration: none;
}

/* Style code elements */
code {
  font-size: 0.9em; /* Slightly smaller than regular text */
  color: var(--color-sub); /* Subdued text color */
}

/*---------------------
MAIN STRUCTURES
---------------------*/

/* Ensure header, main, footer, and section elements maintain relative positioning and spacing */
header,
main,
footer,
section {
  position: relative; /* Keeps the element positioned relative to itself */
  padding: var(--pad) 0; /* Adds vertical padding */
}

/* FOOTER */
main {
  margin-bottom: var(--pad-large); /* Adds spacing between the main content and footer */
}

/* Adds a top border to both main and footer */
main,
footer {
  border-top: 2px solid var(--color-primary); /* Creates a distinct separation with a solid border */
}

/* Remove default link styling in the header and footer */
.site-header a,
.site-footer a {
  border-bottom: 0; /* Removes the underline effect */
  padding-bottom: 0; /* Eliminates extra padding */
}

/* Style the site header’s h1 */
.site-header h1 {
  text-transform: uppercase; /* Ensures the title appears in all capital letters */
}

/* Utility class for centering text */
.center {
  text-align: justify; /* Centers the text */
  border: 1px solid black; /* Adds a visible border */
  padding: var(--pad-large); /* Adds spacing inside the border */
}

.logo {
  max-width: none !important;
  width: 300px;
}

.sans {
    font-size: var(--font-body);
    font-family: var(--sans);
    font-weight: bold;
}


/*--------------
METADATA, BYLINES
---------------*/

/* Styles metadata sections like article details (date, author, etc.) */
.metadata {
  color: var(--color-sub); /* Uses a subdued color */
  margin: var(--pad) 0; /* Adds vertical spacing */
  font-size: var(--font-small); /* Applies a smaller font size */
  font-family: var(--monospace); /* Uses a monospace font for a structured look */
  display: flex; /* Arranges items in a row */
  width: 100%; /* Ensures full width utilization */
}

/* Adds spacing between metadata items */
.metadata div {
  margin-right: var(--pad-large); /* Adds right margin for separation */
}

/* Styles links inside the metadata section */
.metadata a {
  color: var(--color-sub); /* Keeps links in subdued color */
}

/* Adjusts layout for smaller screens */
@media only screen and (max-width: 550px) {
  .metadata .byline, .metadata .author {
    display: block; /* Stacks elements vertically */
    line-height: 1.4; /* Improves readability */
  }
}

/* Styles tag elements */
.tags {
  font-family: var(--monospace); /* Uses monospace font for consistency */
}

/* Adds spacing between individual tags */
.tag {
  margin-right: 0.5em; /* Creates separation between tags */
}

/* Controls spacing and alignment for grouped elements */
.spacing {
  display: flex; /* Uses flexbox for layout */
  justify-content: center; /* Centers content horizontally */
  gap: var(--pad-section); /* Adds spacing between elements */
  align-items: center; /* Aligns items vertically */
}

/*---------------
HOMEPAGE & INDEX LIST
---------------*/

/* Style for time elements, often used for displaying dates */
time {
  font-family: var(--monospace); /* Uses a monospace font for consistency */
  display: block; /* Ensures time elements take up a full line */
  color: var(--color-sub); /* Uses a subdued text color */
  font-size: var(--font-small); /* Smaller font size */
}

/* Styles for a grid-based layout */
.grid {
  list-style-type: none; /* Removes default list styling */
  width: 100%; /* Ensures the grid spans the full width */
  display: grid; /* Enables CSS Grid layout */
  grid-template-columns: repeat(4, 1fr); /* Creates 4 equal columns */
  gap: var(--pad-large); /* Adds spacing between grid items */
}

.grid {
  list-style-type: none; /* Removes default list styling */
  width: 100%; /* Ensures the grid spans full width */
  display: grid; /* Enables CSS Grid layout */
  grid-template-columns: repeat(4, 1fr); /* Maintains four equal columns */
  gap: var(--pad-large); /* Adds spacing between grid items */
}

/* Adds spacing to time elements inside the grid */
.grid time {
  margin-top: var(--pad-small);
}

/* Ensures the cover section spans the full width */
.cover {
  grid-column: 1/-1; /* Stretches across all columns */
}

/* Styles links inside the cover section */
.cover a {
  display: grid; /* Uses a grid layout for internal elements */
  grid-template-columns: repeat(4, 1fr); /* Defines a 4-column structure */
  gap: var(--pad-large); /* Adds spacing between grid items */
  border-bottom: none; /* Removes default underline */
}

/* Places the image inside the cover section */
.cover a .image {
  grid-column: 2/-1; /* Starts from the second column and spans all remaining columns */
}

/* Adjusts grid layout for smaller screens */
@media only screen and (max-width: 980px) {
  .cover a .text,
  .cover a .image {
    grid-column: span 4; /* Makes text and image span all columns */
  }
  
  .cover a .image {
    max-height: 350px; /* Limits image height */
    overflow: hidden; /* Ensures content does not exceed container */
  }
}

/* Styles featured images inside the cover section */
.cover .featured-img {
  height: 500px; /* Sets fixed height */
  overflow: hidden; /* Prevents overflow */
  background-size: cover; /* Ensures image covers the entire container */
}

/* Adjusts entry title spacing */
.cover .entry-title {
  margin-top: 0; /* Removes extra spacing */
}

/* Styles images designated as "featured" */
.featured-img {
  margin: var(--pad) 0; /* Adds vertical spacing */
  width: 100%; /* Ensures full-width */
  height: 200px; /* Defines fixed height */
  background-repeat: no-repeat; /* Prevents image repetition */
  background-size: cover; /* Ensures image covers the container */
  background-position: center; /* Centers the image */
  mix-blend-mode: multiply; /* Applies a blend effect for better contrast */
}

/* Styles pagination */
.pagination {
  margin: var(--pad-xlarge) 0 var(--pad); /* Adjusts spacing */
  text-align: center; /* Centers pagination */
}

/* Hides time elements in the article list inside the "about" section */
#about .article-list time {
  display: none;
}

/*------------
ARTICLE TYPOGRAPHY
--------------*/

/* Styles for post metadata (date, author, etc.) */
.post-info {
  overflow: auto; /* Ensures content does not overflow */
  margin-top: var(--pad-small); /* Adds top margin */
  font-size: var(--font-small); /* Sets small font size */
}

/* Styles for time elements inside post-info */
.post-info time {
  float: left; /* Aligns time to the left */
  font-style: normal; /* Removes default italic styling */
  padding-right: 0.2rem; /* Adds slight spacing to the right */
}

/* Styles for the address element inside post-info */
.post-info address {
  float: left; /* Aligns address to the left */
  font-style: normal; /* Removes default italic styling */
  padding-right: var(--pad); /* Adds right padding */
}

/* Styles the title of an entry */
.entry-title {
  margin: var(--pad-large) 0 var(--pad) 0; /* Adds vertical spacing */
}

/* Centers certain elements within the page */
.entry-header,
figure,
.figure-controls {
  max-width: var(--max-img-width); /* Limits width */
  margin: auto; /* Centers the element */
}

/* Applies consistent width settings to various content elements */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content p,
.entry-content dl,
.entry-content ol,
.entry-content ul,
.entry-content pre,
.entry-content table,
.entry-content blockquote,
.entry-content details,
.entry-content #comment-list {
  max-width: var(--max-content-width); /* Limits width */
  width: var(--content-width); /* Uses relative content width */
}

/* Centers preformatted text blocks */
.entry-content pre {
  margin: auto;
}

/* Styles for level 2 headers */
.entry-content h2 {
  font-size: var(--font-large); /* Sets font size */
  text-indent: -0.15rem; /* Adjusts text indentation */
  margin: var(--pad-section) auto 0; /* Adds spacing */
}

/* Styles for level 3 and 4 headers */
.entry-content h3,
.entry-content h4 {
  font-size: var(--font-body); /* Sets font size */
  font-style: italic; /* Makes text italic */
}

/* Adjusts spacing for level 3 headers */
.entry-content h3 {
  margin: calc(4 * var(--pad)) auto 0; /* Increases margin */
}

/* Adds margin for multiple content elements */
.entry-content h4,
.entry-content p,
.entry-content details,
.entry-content table,
.entry-content ol,
.entry-content ul,
.entry-content dl {
  margin: var(--pad-large) auto;
}

/* Ensures lists have appropriate spacing */
.entry-content ol,
.entry-content ul {
  line-height: 1.4; /* Adjusts line spacing */
}

/* Adds spacing to list items */
.entry-content li {
  margin-left: var(--pad-large); /* Indents list items */
  margin-bottom: var(--pad); /* Adds space between items */
}

/* Removes default spacing between table cells */
.entry-content table {
  border-spacing: 0;
}

/* Styles table header and data cells */
.entry-content table th,
.entry-content table td {
  padding: 8px 5px; /* Adds padding inside cells */
  text-align: left; /* Aligns text to the left */
}

/* Styles table data cells */
.entry-content table td {
  border-bottom: 1px solid black; /* Adds border below data rows */
}

/* Styles table header cells */
.entry-content table th {
  border-bottom: 2px solid black; /* Adds thicker border below header */
  font-weight: normal; /* Normalizes font weight */
}

/* Removes left padding for first column cells */
.entry-content table th:first-child, 
.entry-content table td:first-child {
  padding-left: 0;
}

/* Styles captions */
.entry-content .caption {
  font-size: calc(1.2 * var(--font-small)); /* Slightly larger than small text */
  margin-top: var(--pad-small); /* Adds margin above */
}

/* Ensures caption paragraphs are inline */
.entry-content .caption p {
  display: inline;
}

/* Prevents excessive spacing in caption list items */
.entry-content .caption li {
  margin-bottom: 0;
}

/*---------------
FIGURES AND IMAGES
----------------*/

/* Center vertical elements and limit width */
.vertical {
  max-width: var(--max-content-width); /* Restricts maximum width */
  margin: auto; /* Centers the element */
}

/* Ensure images take up full width and display properly */
img {
  width: 100%; /* Makes images responsive */
  display: block; /* Prevents inline spacing issues */
}

/* Style for figures (image containers) */
figure {
  overflow: hidden; /* Prevents overflowing content */
  margin: auto; /* Centers the figure */
  margin-top: var(--pad-xlarge); /* Adds spacing above */
}

/* Padding for figure control elements */
.figure-controls {
  padding: var(--pad-small) 0 var(--pad);
}

/* Hidden image indicators used for accessibility or metadata */
.imgindicator {
  display: inline;
  visibility: hidden; /* Initially hidden */
  color: var(--color-sub);
  font-family: var(--monospace); /* Uses a monospace font */
  font-size: 0.8em; /* Slightly reduced size */
}

/* Adjusts table headers in setup tables */
.setuptable thead tr:first-child td,
.setuptableclass + table thead tr:first-child td {
  border-bottom: 0; /* Removes bottom border */
}

/* Adds left padding to table cells */
.setuptable td,
.setuptable th,
.setuptableclass + table td,
.setuptableclass + table th {
  padding-left: 5%;
}

/* Styles the first column of the table */
.setuptable td:first-child,
.setuptable th:first-child,
.setuptableclass + table td:first-child,
.setuptableclass + table th:first-child {
  width: 100px; /* Sets fixed width */
  border-right: 2px solid; /* Adds right border */
  padding-left: 0; /* Removes left padding */
}

/* Styles summary paragraphs */
p.summary {
  font-size: 1.5rem; /* Large font size */
  text-indent: 0; /* Removes indentation */
  line-height: 1.2; /* Adjusts spacing */
}

/* Styles blockquotes */
blockquote {
  margin: var(--pad-large) auto; /* Centers the blockquote */
  border: 1px solid var(--color-primary);
  border-width: 2px 0; /* Adds horizontal borders */
}

/* Adjusts blockquote text */
blockquote p {
  font-size: var(--font-medium); /* Medium font size */
  line-height: 1.3; /* Adjusts line spacing */
  text-indent: 0; /* No indentation */
}

/* Styling for long quotations */
.longquote {
  margin: var(--pad-large);
  margin-bottom: 0;
  border-left: 1px solid var(--color-primary); /* Left border for visual emphasis */
  padding-left: var(--pad-large); /* Adds left padding */
}

/* Adjusts font size for long quotes */
.longquote p {
  font-size: 0.9rem;
}

/* Ensures iframes are centered */
iframe {
  margin: auto;
  display: block;
}

/* Styles horizontal rules */
hr {
  border: 0;
  border-top: 2px solid black; /* Creates a visible separation */
}

/*------------------
POST FOOTER
-------------------*/

/* Styles the post footer, footnotes, and comments section */
.post-footer,
.footnotes,
.comments {
  width: var(--content-width); /* Uses a percentage-based content width */
  max-width: var(--max-content-width); /* Ensures the content does not exceed a set max width */
  margin: auto; /* Centers the section horizontally */
}

/* Styles the main post footer */
.post-footer {
  margin-top: var(--pad-xlarge); /* Adds large spacing above the footer */
  border-top: 2px solid rgb(0, 0, 0); /* Adds a solid top border */
  padding-top: var(--pad-large); /* Adds padding inside the footer */
}

/* Styles list items inside the post footer */
.post-footer li {
  font-size: var(--font-medium); /* Sets a medium-sized font */
  line-height: 1.5; /* Adjusts line spacing for readability */
  list-style-type: none; /* Removes bullet points from the list */
}

/*------------------
COMMENTS & DROPDOWNS
-------------------*/

/* Styles the comments section */
.comments {
  padding: var(--pad-large) 0; /* Adds vertical padding */
  margin-top: var(--pad-large); /* Creates space above the section */
  border-top: 2px solid black; /* Adds a solid top border */
}

/* Styles the <details> element inside the comments section */
.comments details {
  margin-top: var(--pad); /* Adds spacing above */
  font-family: var(--monospace); /* Uses a monospace font for readability */
}

/* Styles the comment list */
#comments-list {
  margin: auto; /* Centers the list */
  margin-top: 1rem; /* Adds spacing above */
  font-size: var(--font-small); /* Uses a small font size */
  font-family: var(--monospace); /* Uses monospace font for consistency */
  counter-reset: comments; /* Resets the comment numbering */
  overflow: hidden; /* Prevents unwanted overflow */
}

/* Ensures links inside comments wrap properly */
#comments-list a {
  word-wrap: break-word; /* Prevents long URLs from breaking layout */
}

/* Styles comment titles or metadata */
#comments-list h5 {
  font-size: 0.75rem; /* Sets a small font size */
  font-weight: normal; /* Normalizes font weight */
  border-top: 1px solid black; /* Adds a thin border above */
  padding-top: var(--pad); /* Adds padding above */
  margin: var(--pad) 0; /* Controls spacing */
  width: 100%; /* Ensures full width */
}

/* Adds numbered labels before comment headers */
#comments-list h5::before {
  counter-increment: comments; /* Increments the counter */
  content: counter(comments) ")"; /* Displays the count before the heading */
  padding-right: 5px; /* Adds spacing after the number */
}

/* Adjusts line height for ordered and unordered lists */
#comments-list ol,
#comments-list ul {
  line-height: 1.4; /* Improves readability */
}

/* Adds spacing between list items */
#comments-list ol li,
#comments-list ul li {
  margin-bottom: 1em; /* Ensures proper spacing */
}

/* Indents paragraphs that follow another paragraph */
#comments-list p + p {
  text-indent: 3em; /* Creates a large text indentation */
}

/*------------------
FOOTNOTES & REFERENCES
-------------------*/

/* Styles the footnotes section */
.footnotes {
  font-size: var(--font-small); /* Uses a smaller font size for footnotes */
  padding-top: var(--pad-large); /* Adds top padding */
}

/* Adds left margin to ordered lists within footnotes */
.footnotes ol {
  margin-left: var(--pad);
}

/* Adds spacing between list items in footnotes */
.footnotes li {
  margin-bottom: var(--pad);
}

/* Styles paragraph text inside footnotes */
.footnotes p {
  line-height: 1.2; /* Adjusts line height for readability */
  word-wrap: break-word; /* Ensures long words wrap properly */
  margin: 0; /* Removes default paragraph margins */
  width: 100%; /* Ensures full width */
}

/* Adds spacing below footnote separator */
.footnotes hr {
  margin-bottom: var(--pad-large);
}

/* Styles superscript elements, often used for footnote references */
sup {
  position: relative;
  top: 2px; /* Slightly raises the superscript */
  left: -2px; /* Adjusts positioning */
  font-size: 0.6em; /* Makes the font smaller */
  font-family: var(--monospace); /* Uses a monospace font for consistency */
  margin-right: 5px; /* Adds spacing after */
}

/* Removes underline from links inside superscript */
sup a {
  border-bottom: none;
}

/* Styles subscript elements */
sub {
  vertical-align: baseline; /* Ensures baseline alignment */
  font-size: 0.75rem; /* Sets font size */
}

/* Styles reference popups (tooltips for footnotes) */
.ref {
  border: 1px solid var(--color-primary); /* Adds a border */
  padding: var(--pad); /* Adds padding */
  background: #fff; /* Sets background color */
  z-index: 10; /* Ensures the element appears above others */
  position: absolute; /* Positions the reference */
  right: 0; /* Aligns it to the right */
  width: 300px; /* Defines a fixed width */
  margin-top: -2rem; /* Adjusts positioning */
  max-width: 50%; /* Limits maximum width */
  display: none; /* Initially hides the reference */
}

/* Ensures inline display for paragraphs inside .ref */
.ref p {
  margin: 0;
  word-wrap: break-word;
  display: inline;
}

/* Adds hover effect for references */
.ref:hover {
  cursor: pointer; /* Changes cursor to indicate interactivity */
}

/* Hides back-reference links inside the reference popups */
.ref .footnote-backref {
  display: none;
}

/* Styles footnote back-reference links */
a.footnote-backref {
  border-bottom: none; /* Removes underline */
  padding-right: var(--pad-small); /* Adds right padding */
}

/* Prevents indentation for footnote references */
[id^=fn] .ref {
  text-indent: 0;
}

/* Makes reference popups visible when they are inside a `.show` class */
.show .ref {
  display: block;
}

/* Styles the related section */
#related {
  border-top: 2px solid var(--color-primary); /* Adds a top border */
}

/*------------------
ETC
-------------------*/

/* Styles button elements */
.button {
  display: block; /* Ensures the button takes up a full line */
  padding: var(--pad); /* Adds internal spacing */
  border: 2px solid var(--color-primary); /* Sets border color */
  border-width: 2px; /* Defines border thickness */
  text-align: center; /* Centers text inside the button */
  margin: 1rem auto; /* Centers the button and adds margin */
  width: 300px; /* Sets a fixed width */
}

/* Styles button hover effects */
.button:hover {
  cursor: pointer; /* Changes cursor to pointer when hovering */
  color: var(--color-sub); /* Changes text color */
  border-color: var(--color-sub); /* Changes border color */
}

/* Ensures icons inside buttons are aligned properly */
.button .icon {
  vertical-align: bottom; /* Aligns icons to the bottom */
}

/* Ensures paragraphs inside address elements are displayed inline */
address p {
  display: inline; /* Prevents line breaks between address paragraphs */
}

/*------------------
POST NAVIGATION
-------------------*/

/* Adds margin to the post info section */
.post-info {
  margin: var(--pad-large) 0; /* Adds vertical spacing */
}

/* Styles the post navigation list */
#post-nav {
  width: 100%; /* Makes the navigation span full width */
  list-style-type: none; /* Removes default list styling */
  overflow: auto; /* Ensures contents do not overflow */
  margin-bottom: var(--pad-large); /* Adds spacing below */
}

/* Styles individual list items */
#post-nav li {
  display: block; /* Ensures each item takes up full width */
  float: left; /* Aligns items to the left */
  width: 50%; /* Each item takes half of the available width */
}

/* Adds right padding to the "newer" navigation item */
#post-nav li.newer {
  padding-right: var(--pad);
}

/* Aligns the "older" navigation item to the right */
#post-nav li.older {
  float: right;
}

/* Styles text with the "gray" class inside navigation */
#post-nav .gray {
  font-size: var(--font-small); /* Reduces font size */
}

/*------------------
FOOTER
-------------------*/

/* Ensures footer headings are in uppercase */
footer h2 {
  text-transform: uppercase;
}

/* Adds spacing above the dashboard section in the footer */
footer .dashboard {
  margin-top: var(--pad-large);
}

/* Adds an empty content block before weather day elements */
footer .dashboard .weather_day::before {
  content: " "; /* Inserts an invisible space */
  display: block; /* Ensures the element behaves as a block */
}

/* Removes content from the first child before weather day */
footer .dashboard .weather_day:first-child::before {
  content: ""; /* Keeps the first item unaltered */
}

/* Ensures footer links are displayed as block elements */
.footer-links a {
  display: block; /* Makes links take up full width */
}

/*---------------
Global Responsive Styles
------------*/

/* Adjusts styles for screens smaller than 980px */
@media only screen and (max-width: 980px) {
  html {
    font-size: 18px; /* Reduces font size for better readability */
  }
  
  /* Adjusts article grid layout */
  .article-list .grid .article {
    grid-column: span 2; /* Makes each article span two columns */
  }

  /* Styles for menu items */
  #menu-s span {
    display: block; /* Ensures menu spans are block elements */
    text-transform: uppercase; /* Converts text to uppercase */
    letter-spacing: 1px; /* Adds spacing between letters */
    padding-top: 2px; /* Adjusts vertical spacing */
  }

  #menu-s span:hover {
    cursor: pointer; /* Changes cursor to pointer on hover */
    color: var(--color-sub); /* Changes text color on hover */
  }

  /* Adjusts navigation menu items */
  nav#menu > ul li {
    display: block; /* Makes navigation items stack vertically */
    margin: 0 var(--pad) 0 0; /* Adds right margin */
  }

  nav#menu > ul li::before {
    content: ""; /* Removes default content before list items */
  }

  /* Styles for the collapsible menu */
  #menu-list {
    height: 0; /* Initially hides menu */
    padding-left: 26px; /* Adds left padding */
    overflow: hidden; /* Prevents overflow */
    transition: height 300ms ease-in-out; /* Adds smooth animation */
  }

  #menu-list.show {
    height: 100%; /* Displays menu when "show" class is applied */
  }
}

/* Adjust styles for screens smaller than 550px */
@media only screen and (max-width: 550px) {
  :root {
    --font-xlarge: 2rem; /* Reduces font sizes for smaller screens */
    --font-large: 1.4rem;
  }

  html {
    font-size: 16px; /* Further reduces base font size */
  }

  #menu-s span {
    padding-top: 3px; /* Slightly increases padding */
  }

  /* Adjusts cover layout */
  .cover .image {
    grid-row: 1; /* Moves image above text */
  }

  .cover .text {
    grid-row: 2; /* Moves text below image */
  }

  /* Changes article grid to a block layout */
  .article-list .grid {
    display: block; /* Stacks articles vertically */
  }

  .article-list .grid .article, .article-list .grid .cover {
    margin-bottom: var(--pad-section); /* Adds spacing between articles */
  }

  .article-list .grid .featured-img {
    margin-bottom: 0; /* Removes bottom margin */
  }

  /* Adjusts footnote and superscript sizes */
  sup {
    font-size: 0.7em; /* Makes superscripts slightly larger */
  }

  .footnotes ol {
    margin-left: var(--pad-large); /* Adds more left margin */
  }

  /* Adjusts dashboard grid */
  .dashboard .grid {
    grid-template-columns: repeat(2, 1fr); /* Uses 2-column layout */
  }
}

/* Styles specifically for printing */
@media print {
  html {
    font-size: 10.5pt; /* Sets a standard print font size */
  }

  body {
    background: none; /* Removes background for printing */
  }

  /* Adjusts header sizes for print */
  h1, footer h2 {
    font-size: 1.2rem; /* Sets a smaller font size */
    margin: 0; /* Removes margin */
    display: inline-block; /* Ensures inline formatting */
  }

  .subtitle {
    display: inline-block; /* Ensures inline formatting */
    margin: 0; /* Removes extra spacing */
  }

  .subtitle .icon {
    height: 1rem; /* Adjusts icon size */
  }

  /* Adjusts entry title for print */
  h1.entry-title {
    font-size: 2rem; /* Adjusts font size */
    margin-top: 2rem; /* Adds top margin */
  }

  /* Reduces bottom margin for summary paragraphs */
  p.summary {
    margin-bottom: 1rem;
  }

  /* Enables multi-column text layout */
  .entry-content {
    -moz-columns: 2;
         columns: 2;
    -moz-column-gap: 20pt;
         column-gap: 20pt;
  }

  /* Removes underlines from links */
  .entry-content a {
    text-decoration: none;
  }

  /* Shows URLs in print format */
  .entry-content a:after {
    content: " (" attr(href) ") ";
    font-size: var(--font-small);
    font-weight: normal;
  }

  /* Adjusts header formatting */
  .entry-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* Prevents image distortion and ensures proper formatting */
  .entry-content figure {
    max-width: none;
    margin: 1rem auto 0.5rem auto;
    background-color: white !important;
    mix-blend-mode: normal !important;
    page-break-inside: avoid; /* Prevents figure splitting across pages */
  }

  /* Ensures images stay within content width */
  .entry-content figure img {
    max-width: 100%;
    mix-blend-mode: normal !important;
  }

  /* Adjusts captions */
  .entry-content .caption {
    margin-bottom: 1rem;
  }

  /* Ensures content takes up full width in print */
  .entry-content h2, .entry-content h3, .entry-content p, .entry-content .footnote {
    max-width: none;
    width: 100%;
  }

  .entry-content p {
    margin: 0;
    line-height: 1.2;
    text-indent: 2rem;
  }

  /* Removes indentation for certain elements */
  .entry-content h2 + p, .entry-content .caption, .entry-content .caption + p, .entry-content .footnote p {
    text-indent: 0;
  }

  /* Adjusts blockquote formatting for print */
  .entry-content blockquote p {
    line-height: 1.1;
    text-indent: 0;
    margin: 1rem 0;
    page-break-inside: avoid;
  }

  /* Hides unnecessary print elements */
  #battery_data {
    display: none;
  }

  nav, #battery, #comment-list, #related, #post-nav, ul.cols .featured-img, footer .dashboard {
    display: none;
  }

  /* Limits max width for multi-column layout */
  ul.cols li {
    max-width: 50%;
  }
}
