/*
Theme Name: Together Refined Safe
Theme URI: https://together-association.ch/
Description: A conservative visual refresh for Together Association. Child theme of Twenty Eleven. Preserves Twenty Eleven's native layout, sidebar geometry, responsive behavior, templates, menus, widgets and content.
Author: Together Association
Version: 1.3.0
Template: twentyeleven
Text Domain: together-refined-safe
*/

:root {
  --together-ink: #29343d;
  --together-muted: #68737c;
  --together-blue: #355f7d;
  --together-blue-dark: #294b65;
  --together-yellow: #c7a33d;
  --together-bg: #eceeed;
  --together-line: #d9dee1;
  --together-soft: #f5f6f5;
}

/*
 * IMPORTANT: this stylesheet intentionally does not redefine geometry for
 * #page, #primary, #content, #secondary, .singular, .left-sidebar or
 * .one-column. Twenty Eleven owns the layout and responsive breakpoints.
 */

body,
input,
textarea,
select,
button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: var(--together-bg);
  color: var(--together-ink);
}

#page {
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 42, 52, 0.08);
}

/* Fine brand accent without changing the box model. */
#branding {
  border-top-color: var(--together-blue-dark);
}

::selection {
  background: rgba(199, 163, 61, 0.25);
}

a {
  color: var(--together-blue);
}

a:focus,
a:hover,
a:active {
  color: var(--together-blue-dark);
}

/* Header: preserve all Twenty Eleven positioning and dimensions. */
#site-title a {
  color: #26333d;
  font-weight: 650;
  letter-spacing: -0.02em;
}

#site-title a:hover,
#site-title a:focus {
  color: var(--together-blue-dark);
  text-decoration: none;
}

#site-description {
  color: var(--together-muted);
}

/* Navigation: same structure and dimensions, cleaner palette. */
#access {
  background: #293945;
  box-shadow: none;
}

#access a {
  color: #f8f9f9;
  font-weight: 500;
}

#access li:hover > a,
#access a:focus,
#access ul ul :hover > a {
  background: #344957;
  color: #fff;
}

#access .current-menu-item > a,
#access .current-menu-ancestor > a,
#access .current_page_item > a,
#access .current_page_ancestor > a {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--together-yellow);
}

#access ul ul {
  box-shadow: 0 8px 20px rgba(20, 30, 38, 0.14);
}

/* Articles: typography only; no widths/margins/floats. */
.entry-title,
.entry-title a {
  color: #26333d;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--together-blue-dark);
}

.entry-meta,
.entry-meta a {
  color: var(--together-muted);
}

.entry-content,
.entry-summary {
  color: #364149;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.comment-content h1,
.comment-content h2,
.comment-content h3,
.comment-content h4 {
  color: #29343d;
  font-family: inherit;
  font-weight: 600;
}

.hentry,
.no-results {
  border-bottom-color: var(--together-line);
}

/* Images: no forced dimensions. */
.entry-content img,
.entry-summary img,
.comment-content img,
.widget img {
  border-radius: 2px;
}

.wp-caption {
  background: var(--together-soft);
  border-color: var(--together-line);
}

.wp-caption .wp-caption-text,
.gallery-caption {
  color: var(--together-muted);
}

/* Sidebar: presentation only. Parent theme keeps its position and width. */
.widget {
  color: #4f5b64;
}

.widget-title {
  color: #303c45;
  font-family: inherit;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.widget a {
  color: #46657a;
}

.widget a:hover,
.widget a:focus {
  color: var(--together-blue-dark);
}

.widget ul li {
  border-bottom-color: #edf0f1;
}

/* Buttons keep their native placement and dimensions; only surface styling. */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link {
  background: var(--together-blue-dark);
  border-color: var(--together-blue-dark);
  border-radius: 3px;
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  text-shadow: none;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--together-blue);
  border-color: var(--together-blue);
  color: #fff;
}

/* Forms: conservative surface refresh. */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  background-color: #fff;
  border-color: #cfd6da;
  color: #35414a;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #7891a3;
  color: #26333d;
  box-shadow: 0 0 0 2px rgba(53, 95, 125, 0.10);
}

/* Quotes and rules. */
blockquote {
  color: #525e67;
}

hr {
  background-color: var(--together-line);
}

/* Comments. */
#comments-title,
#reply-title {
  color: #29343d;
}

.commentlist > li.comment {
  background: #f7f8f7;
  border-color: var(--together-line);
  box-shadow: none;
}

/* Footer: no geometry changes. */
#colophon {
  border-top-color: var(--together-line);
}

#site-generator {
  background: #f2f4f3;
  color: #68737c;
}

#site-generator a {
  color: #4f6270;
}

/* Keyboard accessibility. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--together-yellow);
  outline-offset: 2px;
}

/*
 * Header logo enhancement (v1.3).
 * IMPORTANT: no JavaScript, no widget manipulation, and no changes to
 * #primary / #content / #secondary. WordPress' custom-logo setting only
 * supplies the image URL; the existing Twenty Eleven header remains intact.
 */
body.together-has-header-logo #branding hgroup {
  position: relative;
}

body.together-has-header-logo #branding hgroup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.35em;
  width: 128px;
  height: 92px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  pointer-events: none;
}

body.together-has-header-logo #site-title,
body.together-has-header-logo #site-description {
  margin-left: 150px;
}

/* On narrow screens Twenty Eleven repositions the search field and title.
 * Reduce the logo footprint rather than modifying those parent rules. */
@media (max-width: 650px) {
  body.together-has-header-logo #branding hgroup::before {
    top: 1.4em;
    width: 82px;
    height: 64px;
  }

  body.together-has-header-logo #site-title,
  body.together-has-header-logo #site-description {
    margin-left: 98px;
  }
}

@media (max-width: 450px) {
  body.together-has-header-logo #branding hgroup::before {
    width: 68px;
    height: 54px;
  }

  body.together-has-header-logo #site-title,
  body.together-has-header-logo #site-description {
    margin-left: 82px;
  }
}

@media print {
  body.together-has-header-logo #branding hgroup::before {
    display: none;
  }

  body.together-has-header-logo #site-title,
  body.together-has-header-logo #site-description {
    margin-left: 0;
  }
}
