/* ==========================================================================
   Gavnosis — minimal / modern theme
   Sea-blue accent, lots of white space, one clean font stack.
   Drop-in replacement for the default Textpattern "Hive" theme CSS —
   uses the same class names, so no template/HTML changes needed.
   ========================================================================== */

:root {
  --sea-blue: #1CA0C9;      /* main accent — bright, sunny-day sea blue */
  --sea-blue-dark: #0E7A9E; /* hover / active state */
  --sea-blue-tint: #EAF6FA; /* very light wash, for subtle backgrounds */
  --ink: #1F2933;           /* body text — soft black, not pure black */
  --ink-light: #5A6B75;     /* secondary text, captions, footer */
  --line: #E4EBEE;          /* hairline borders */
  --bg: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/***************************/

body.archive-page {
  --sea-blue: #0C5F7A;       /* darker than #1CA0C9 */
  --sea-blue-dark: #0A4A61;  /* darker hover/active state */
  --sea-blue-tint: #D3E9F0;  /* darker wash than the site-wide #EAF6FA */
}

body.archive-page .site-header {
  position: relative;
}

body.archive-page .site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg) 100%),
    url("images/gavnosis-header-sky.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.site-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
}

body.archive-page .site-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
}


/*body.archive-page .site-header h1 a{
  font-style: italic;
}*/

/************************/

img, video {
  max-width: 100%;
  height: auto;
}

/* Layout
   ========================================================================== */
.wrapper {
  background: var(--bg);
}

.site-header,
.site-footer,
.container {
  width: 90%;
  max-width: 42em;   /* narrower measure = more white space either side */
  margin: 0 auto;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .container {
        grid-template-columns: 3fr 1fr;
        align-items: start;
    }
}

.container > main {
    min-width: 0; /* lets main shrink below its content's intrinsic width */
}

main pre, main code {
    overflow-x: auto;   /* scrolls long lines instead of forcing width */
    white-space: pre;
    max-width: 100%;
}

.site-header {
  padding: 3.5em 0 2em;
}

.site-header h1 {
  margin: 0;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header h1 a {
  color: var(--ink);
  text-decoration: none;
}

.site-header h1 a:hover {
  color: var(--sea-blue);
}

.site-header h3 {
  margin: 0.5em 0 0;
  color: var(--ink-light);
  font-weight: 400;
  font-size: 1em;
}

.site-footer {
  padding: 2em 0 4em;
  color: var(--ink-light);
  font-size: 0.85em;
}

.article {
  margin-bottom: 3em;
  word-wrap: break-word;
}

.complementary-content {
    margin: 3em 0 0;
    padding: 2em 0 0;
    border-top: none;
}

.complementary-content .search {
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid var(--line);
}

.complementary-content h4 {
  margin: 0.5em 0 0;
  color: var(--ink-light);
  font-weight: 400;
  font-size: 1.1em;
  font-family: "Fraunces", Georgia, serif;
}

@media (min-width: 600px) {
    .site-footer {
        text-align: right;
    }
}


/*
main p { font-size: 0; line-height: 0; }
main a img {
  display: inline-block;
  vertical-align: bottom;
  margin: 0 10px 10px 0;
}
*/

/* Navigation
   ========================================================================== */
.site-navigation {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/*.site-navigation > div {
  width: 90%;
  max-width: 42em;
  margin: 0 auto;
}*/

/*****************/
.site-navigation > div {
    width: 90%;
    max-width: 42em;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-navigation form[role="search"] {
    align-self: flex-end;
    width: 250px;
    max-width: 100%;
    margin-bottom: 0.5em; /* space between search and nav below it */
}

/*****************/

.site-navigation ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation li {
  border: 0;
  background: none;
}

.site-navigation a {
  display: block;
  padding: 0.9em 1em 0.9em 0;
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-navigation a:hover {
  color: var(--sea-blue);
  text-decoration: none;
}


/* To highlight current category in 'Art' section, where articles are grouped by category also */
.container a.active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-navigation li.active a {
    color: var(--sea-blue);
    text-decoration: underline;
    text-decoration-color: rgba(28, 160, 201, 0.4); /* fallback */
    text-underline-offset: 3px;
}

.site-navigation li a:hover,
.site-navigation li a:focus {
    color: var(--sea-blue);
    text-decoration: underline;
    text-decoration-color: rgba(28, 160, 201, 0.4); /* fallback */
    text-underline-offset: 3px;
}

@supports (text-decoration-color: color-mix(in srgb, red 40%, transparent)) {
    .site-navigation li.active a,
    .site-navigation li a:hover,
    .site-navigation li a:focus {
        text-decoration-color: color-mix(in srgb, var(--sea-blue) 40%, transparent);
    }
}

/***************************/
/* Search field */
.search {
  padding: 1em 0;
}

.search input[type="search"] {
  width: 100%;
  height: 2.5em;
  padding: 0 1em;
  border: 1px solid var(--line);
  border-radius: 2em;
  background: var(--bg);
}

.search input[type="search"]:focus {
  border-color: var(--sea-blue);
  outline: 0;
}

/* Links
   ========================================================================== */
a {
  color: var(--sea-blue);
  text-decoration: none;
}

a:hover,
a:active {
  color: var(--sea-blue-dark);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--sea-blue);
  outline-offset: 2px;
}

a:visited {
  color: var(--sea-blue-dark);
}

/* Paginator */
.paginator {
  display: flex;
  justify-content: space-between;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}

/* External links */
a[href^="http"]:not([href*="gavnosis.com"])::after {
  content: " ↗";
  font-size: 0.8em;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  clear: both;
  margin: 1em 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2em; line-height: 1.2; }
h2 { font-size: 1.6em; line-height: 1.25; }
h3 { font-size: 1.3em; line-height: 1.3; }
h4 { font-size: 1.1em; line-height: 1.4; }
h5, h6 { font-size: 1em; }

p {
  margin: 0 0 1.2em;
}

blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--sea-blue);
  color: var(--ink-light);
  font-size: 1.1em;
  font-style: italic;
}

small, figcaption, .footnote {
  color: var(--ink-light);
  font-size: 0.85em;
}

figcaption {
  margin-top: 0.5em;
  font-style: italic;
}

hr {
  height: 0;
  margin: 3em 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

pre, code, kbd, samp {
  border-radius: 0.3em;
  background: var(--sea-blue-tint);
  color: var(--ink);
  font-family: Menlo, Consolas, Monaco, monospace;
  font-size: 0.9em;
}

code, kbd, samp {
  padding: 0.15em 0.4em;
}

pre {
  padding: 1em 1.2em;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

mark {
  padding: 0 0.25em;
  border-radius: 0.25em;
  background: var(--sea-blue-tint);
}

.star-mark {
  margin-left: 0.2em;
  color: var(--sea-blue);
  font-style: normal; /* prevents inheriting the italic from the site name link */
  font-size: 0.6em;
  vertical-align: middle;
}

.complementary-content a.current{
    text-decoration: underline;    
}

/* Images
   ========================================================================== */
img.align-left  { margin: 1em 1em 1em 0; float: left; }
img.align-right { margin: 1em 0 1em 1em; float: right; }
img.align-center { display: block; margin: 1.5em auto; }

figure {
  margin: 1.5em 0;
}

/*main a img { vertical-align: bottom; }
.article a img { display: block; }
main a img { display: block; } */

/* smd_gallery styling
   ========================================================================== */
 a.art-gallery{
    display: inline-block;   /* or flex, matching gmcdermott's approach */
    line-height: 0;          /* kills the inline whitespace gap */
}
 a.art-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tables
   ========================================================================== */
table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
}

th, td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

/* Lists
   ========================================================================== */
ul, ol {
  padding-left: 1.5em;
}

.article-list {
  margin: 0 0 2em;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.article-list li {
  padding: 1.5em 0;
  border-bottom: 1px solid var(--line);
}

/* Forms & buttons
   ========================================================================== */
input, textarea, select {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid var(--line);
  border-radius: 0.4em;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1em;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--sea-blue);
  outline: 0;
}

textarea {
  min-height: 6em;
  resize: vertical;
}

fieldset {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border: 1px solid var(--line);
  border-radius: 0.5em;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  display: inline-block;
  padding: 0.7em 1.4em;
  border: 0;
  border-radius: 2em;
  background: var(--sea-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
}

button:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover {
  background: var(--sea-blue-dark);
}

.required {
  color: #C0392B;
}

/* Comments
   ========================================================================== */
.comments {
  margin-bottom: 1.5em;
  padding: 1.2em 1.5em;
  border-radius: 0.6em;
  background: var(--sea-blue-tint);
}

.comments-author {
  background: #DEF1F7;
}

#cpreview {
  margin-bottom: 0.5em;
  padding: 1em 1.5em;
  border-radius: 0.6em;
  background: #FFF9E1;
}

.error_message li {
  color: #C0392B;
}

/* External link icon (kept from original) 
a.external {
  padding-right: 1.6em;
  background: url('/images/301.png') center right no-repeat;
}
*/

.w3-right-align {
  text-align: right !important;
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */
@media only screen and (min-width: 46em) {
  html {
    font-size: 19px;
  }

  .site-navigation a {
    padding: 1.1em 1.5em 1.1em 0;
  }
}

/* ==========================================================================
   Print (kept minimal — just enough to make printed articles readable)
   ========================================================================== */
@media print {
  body {
    color: #000;
    font-size: 11pt;
  }

  nav, .search, .paginator, .comments, form {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
