/* ============================================================
   TTA Audio Codec — Main Stylesheet
   Author: Tau Software
   Based on: Twenty Twelve WordPress Theme (optimized)
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --color-text-primary: #444;
  --color-text-secondary: #757575;
  --color-text-heading: #515151;
  --color-link: #21759b;
  --color-link-hover: #0f3647;
  --color-bg-body: #e9e9e9;
  --color-bg-content: #fff;
  --color-bg-light: #e6e6e6;
  --color-border: #ededed;
  --color-menu-link: #5e5e5e;

  /* Typography */
  --font-family-base: "Open Sans", Helvetica, Arial, sans-serif;
  --font-size-base: 14px;
  --font-size-small: 12px;
  --font-size-medium: 13px;
  --font-size-large: 16px;
  --font-size-title: 20px;
  --font-size-site-title: 24px;
  --line-height-base: 1.714285714;
  --line-height-small: 1.42857143;

  /* Spacing */
  --spacing-unit: 24px;
  --spacing-small: 12px;
  --spacing-large: 48px;

  /* Layout */
  --site-max-width: 1340px;
  --content-max-width: 960px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background: url(../images/bg_body.png) top repeat-x #e9e9e9;
  min-height: 100%;
}

body.custom-font-enabled {
  font-family: var(--font-family-base);
}

/* ---- Links ---- */
a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

a:focus {
  outline: thin dotted;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  clear: both;
  margin: 0 0 var(--spacing-small) 0;
}

h1 { font-size: var(--font-size-site-title); line-height: 1.285714286; }
h2 { font-size: var(--font-size-title); line-height: var(--line-height-small); }

/* ---- Site Layout ---- */
.site {
  max-width: var(--site-max-width);
  margin: var(--spacing-large) auto 0;
  background-color: var(--color-bg-content);
  box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}

.container {
  padding: 0 var(--spacing-unit);
}

/* ---- Header ---- */
.site-header {
  padding: var(--spacing-unit) 0;
}

.site-branding {
  padding-left: 82px;
  background: url(../images/tau_logo.png) no-repeat left top;
  background-size: 72px auto;
  min-height: 72px;
}

.site-title {
  font-size: var(--font-size-site-title);
  line-height: 1.285714286;
  margin-bottom: 14px;
  font-weight: bold;
}

.site-title a {
  color: var(--color-text-heading);
}

.site-title a:hover {
  color: var(--color-link-hover);
}

.site-description {
  font-size: var(--font-size-medium);
  font-weight: normal;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.846153846;
}

/* ---- Navigation ---- */
.main-navigation {
  margin-top: var(--spacing-unit);
  text-align: center;
}

.main-navigation ul.nav-menu {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  display: inline-block;
  margin-top: var(--spacing-unit);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  white-space: nowrap;
}

.main-navigation li + li {
  margin-left: 40px;
}

.main-navigation a {
  color: var(--color-menu-link);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-link);
}

/* Language Switcher */
.language-switcher a {
  font-weight: bold;
}

/* Menu Toggle (mobile) */
.menu-toggle {
  display: none;
  padding: 6px 10px;
  font-size: var(--font-size-small);
  color: #7c7c7c;
  background: #e6e6e6;
  background: linear-gradient(to bottom, #e6e6e6, #d2d2d2);
  border: 1px solid #d2d2d2;
  border-radius: 3px;
  cursor: pointer;
  margin: 0 auto;
}

.menu-toggle:hover {
  color: #5e5e5e;
  background: #ebebeb;
  background: linear-gradient(to bottom, #ebebeb, #cecece);
}

/* Assistive text (skip link) */
.assistive-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

.assistive-text:focus {
  clip: auto !important;
  height: auto;
  width: auto;
  display: block;
  padding: 15px 23px 14px;
  background: #f1f1f1;
  color: var(--color-link);
  z-index: 100000;
  line-height: normal;
  text-decoration: none;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* ---- Main Content ---- */
.site-main {
  margin: var(--spacing-unit) 0 0;
}

.entry-header {
  margin-bottom: var(--spacing-unit);
}

.entry-header .entry-title {
  padding-left: 15px;
  font-size: var(--font-size-medium);
  font-size: 0.928571429rem;
  font-weight: normal;
  color: var(--color-text-secondary);
  background: url(../images/chevron.svg) left center no-repeat;
  line-height: 1.714285714;
  margin: 0;
}

.entry-content {
  line-height: var(--line-height-base);
}

.entry-content p {
  margin: 0 0 var(--spacing-unit);
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* ---- Article ---- */
article.page {
  margin-bottom: var(--spacing-unit);
  padding-bottom: var(--spacing-unit);
}

/* ---- Images ---- */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.entry-content .no-border img,
.no-border img {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

figure.aligncenter {
  text-align: center;
}

figure.aligncenter img {
  display: inline-block;
}

.alignleft {
  float: left;
  margin: 0 var(--spacing-unit) var(--spacing-unit) 0;
}

.alignright {
  float: right;
  margin: 0 0 var(--spacing-unit) var(--spacing-unit);
}

figure {
  margin: 0 0 var(--spacing-unit);
  max-width: 100%;
}

figcaption {
  font-size: var(--font-size-small);
  font-style: italic;
  padding-top: 0.75em;
}

/* ---- Tables ---- */
table {
  border-collapse: collapse;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  margin-bottom: var(--spacing-unit);
}

th, td {
  border-bottom: 1px solid var(--color-border);
  padding: 6px 10px 6px 0;
}

th {
  text-transform: uppercase;
  font-weight: bold;
}

/* ---- Buttons ---- */
.btn,
.wp-block-button__link {
  display: inline-block;
  padding: 6px 10px;
  font-size: 11px;
  color: #7c7c7c;
  background: #e6e6e6;
  background: linear-gradient(to bottom, #e6e6e6, #d2d2d2);
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
}

.btn:hover,
.wp-block-button__link:hover {
  color: #5e5e5e;
  background: #ebebeb;
  background: linear-gradient(to bottom, #ebebeb, #cecece);
}

.btn-primary {
  color: #fff;
  background: #21759b;
  background: linear-gradient(to bottom, #2a95c5, #21759b);
  border-color: #1b6f94;
}

.btn-primary:hover {
  color: #fff;
  background: #1b6f94;
  background: linear-gradient(to bottom, #2a8fbd, #1b6f94);
}

/* Buttons group */
.entry-buttons {
  text-align: center;
  margin-bottom: var(--spacing-unit);
}

.entry-buttons .btn {
  margin: 5px;
}

/* WP Block Buttons container - inline, centered, no wrap */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--spacing-unit);
}

.wp-block-buttons .wp-block-button {
  display: inline-flex;
  margin: 0;
}

.wp-block-buttons .btn {
  white-space: nowrap;
}

/* ---- Spacer ---- */
.wp-block-spacer {
  clear: both;
}

/* ---- Donation Box ---- */
.donation-box {
  background-color: #e6e6e6;
  padding: 20px;
  margin-bottom: var(--spacing-unit);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.donation-box p {
  flex: 1 1 60%;
  margin: 0;
  padding: 0;
}

.donation-form {
  flex: 0 0 auto;
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  line-height: 2;
  max-width: var(--site-max-width);
  margin: var(--spacing-unit) auto 0;
  padding: var(--spacing-unit) 0;
  text-align: center;
  color: var(--color-text-secondary);
}

/* ---- Utility Classes ---- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ---- WP Block fallbacks ---- */
.wp-block-group.has-light-gray-background-color {
  background-color: #e6e6e6;
  padding: 20px;
  margin-bottom: var(--spacing-unit);
}

.wp-block-group.has-background {
  padding: 1.25em 2.375em;
}

p.has-light-gray-background-color.has-background {
  background-color: #eee;
  padding: 1.25em 2.375em;
}

/* ---- Nav Menu Container (backward compatibility) ---- */
.menu-menu-1-container {
  display: inline;
}
