/*
Theme Name: TTUC Retro Grid
Theme URI: https://example.com/
Author: OpenAI Codex
Description: Twitter Notes Archive Update: a retro 3-column WordPress theme inspired by late-2000s fan sites, with safer admin cleanup tools, YouTube video seeding, Story Vault, Photo Log, bar-style Notes/Twitter archive import, banner header, horizontal navigation, left sidebar links, central posts, and right-column feature cards.
Version: 2.4.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ttuc-retro-grid
*/

:root {
  --ttuc-bg: #040404;
  --ttuc-panel: #07076f;
  --ttuc-panel-dark: #02024e;
  --ttuc-border: #0088ff;
  --ttuc-text: #ffffff;
  --ttuc-link: #14a4ff;
  --ttuc-link-hover: #74d0ff;
  --ttuc-accent: #000000;
  --ttuc-max-width: 1040px;
  --ttuc-left: 220px;
  --ttuc-right: 220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: #000;
}

body {
  margin: 0;
  background: #000;
  color: var(--ttuc-text);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

a {
  color: var(--ttuc-link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ttuc-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(calc(100% - 24px), var(--ttuc-max-width));
  margin: 18px auto 32px;
}

.site-banner {
  min-height: 115px;
  border: 2px solid var(--ttuc-border);
  background-color: #000;
  background-position: center;
  background-size: cover;
  position: relative;
}

.site-branding {
  min-height: 115px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75));
}

.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 #000;
}

.site-title a,
.site-title a:hover {
  color: #fff;
  text-decoration: none;
}

.site-description {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.site-progress {
  width: min(280px, 38%);
  align-self: flex-end;
  padding: 8px;
  border: 1px solid var(--ttuc-border);
  background: #02024e;
}

.site-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-progress-track {
  height: 15px;
  border: 1px solid #74d0ff;
  background: #000;
  overflow: hidden;
}

.site-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #0088ff, #14a4ff);
}

.site-progress-note {
  margin: 5px 0 0;
  color: #d7eaff;
  font-size: 0.72rem;
}

.top-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  background: #0a0a6f;
  border-left: 2px solid var(--ttuc-border);
  border-right: 2px solid var(--ttuc-border);
  border-bottom: 2px solid var(--ttuc-border);
  padding: 6px 8px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.top-nav li {
  margin: 0;
}

.top-nav a {
  display: block;
  padding: 8px 11px;
  color: #0eb1ff;
  font-weight: 700;
  font-size: 0.96rem;
}

.top-nav a:hover,
.top-nav .current-menu-item > a,
.top-nav .current_page_item > a {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.top-nav .menu-item-image > a,
.top-nav a.has-image {
  min-width: 92px;
  min-height: 28px;
  text-indent: -9999px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.top-nav-search {
  margin-left: auto;
}

.top-nav-search .search-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-nav-search input[type="search"] {
  width: 150px;
  max-width: 34vw;
  padding: 5px 7px;
  border: 1px solid #9bbfff;
  background: #fff;
  color: #000;
  font-family: inherit;
}

.top-nav-search .search-submit {
  padding: 5px 10px;
}

.content-frame {
  display: grid;
  grid-template-columns: var(--ttuc-left) minmax(0, 1fr) var(--ttuc-right);
  gap: 0;
  background: var(--ttuc-panel);
  border-left: 2px solid var(--ttuc-border);
  border-right: 2px solid var(--ttuc-border);
  border-bottom: 2px solid var(--ttuc-border);
}

.sidebar-left,
.sidebar-right,
.content-main {
  padding: 14px 10px 20px;
  min-width: 0;
}

.sidebar-left {
  border-right: 2px solid var(--ttuc-border);
}

.sidebar-right {
  border-left: 2px solid var(--ttuc-border);
}

.widget_block,
.widget,
.retro-box,
.post-card {
  margin: 0 0 18px;
}

.retro-title,
.widget-title,
.post-card-title {
  margin: 0 0 8px;
  padding: 4px 8px;
  background: #000;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.sidebar-left ul,
.sidebar-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-left li,
.sidebar-right li {
  margin: 0 0 6px;
}

.sidebar-left a,
.sidebar-right a {
  color: #00aaff;
  font-weight: 700;
}

.sidebar-left .menu a {
  display: block;
  padding: 2px 0;
}

.theme-link-heading {
  margin: 10px 0 4px;
  padding: 3px 6px;
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.retro-blurb {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.featured-story {
  margin: 12px 0 18px;
}

.featured-story img {
  border: 1px solid #78b9ff;
  background: #000;
}

.search-submit,
input[type="submit"] {
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  font-family: inherit;
  padding: 5px 15px;
  cursor: pointer;
}

.posts-loop {
  display: block;
}

.post-card {
  padding-bottom: 10px;
  border-bottom: 1px solid #9bbfff;
}

.post-card:last-child {
  border-bottom: 0;
}

.post-card-title a {
  color: #fff;
}

.post-card-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}

.post-card-body.no-thumb {
  grid-template-columns: 1fr;
}

.post-card-body p:first-child,
.entry-summary p:first-child {
  margin-top: 0;
}

.post-thumb img {
  width: 96px;
  height: auto;
  border: 1px solid #7fb5ff;
  background: #000;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-style: italic;
}

.post-meta a {
  font-style: normal;
}

.post-taxonomy {
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 8px;
  border: 1px solid #0088ff;
  background: #02024e;
  font-size: 0.86rem;
}

.post-taxonomy span {
  display: block;
}

.post-taxonomy strong {
  color: #fff;
}

.pagination-wrap,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 16px 0 0;
}

.pagination-wrap .page-numbers,
.pagination .page-numbers {
  display: inline-block;
  min-width: 30px;
  padding: 5px 8px;
  border: 1px solid #0088ff;
  background: #02024e;
  color: #14a4ff;
  font-weight: 700;
  text-align: center;
}

.pagination-wrap .page-numbers.current,
.pagination .page-numbers.current,
.pagination-wrap .page-numbers:hover,
.pagination .page-numbers:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.read-more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.theme-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-sidebar-panel {
  display: grid;
  gap: 12px;
}

.theme-card {
  padding: 8px;
  border: 1px solid #0088ff;
  background: #02024e;
}

.theme-card-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.9rem;
}

.theme-card p {
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.theme-card-link {
  display: inline-block;
  font-weight: 700;
}

.related-posts-box,
.related-media-box,
.blog-page-jump,
.ttuc-author-box {
  margin-top: 18px;
}

.ttuc-author-box {
  margin-top: 8px;
}

.ttuc-author-inner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ttuc-author-inner.no-image {
  grid-template-columns: 1fr;
}

.ttuc-author-image {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ttuc-border);
  border-radius: 50%;
  background: #000;
}

.ttuc-author-copy h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
}

.ttuc-author-copy p {
  margin: 0 0 8px;
  max-width: 62ch;
}

.related-post-excerpt {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.blog-page-jump-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-page-jump-form label {
  font-weight: 700;
}

.blog-page-jump-form select {
  width: 130px;
  padding: 6px;
  border: 1px solid #9bbfff;
  background: #fff;
  color: #000;
  font-family: inherit;
}

.blog-page-jump-form button {
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  font-family: inherit;
  padding: 6px 14px;
  cursor: pointer;
}

.social-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.social-pill {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #000;
  border: 1px solid #0088ff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.social-pill:hover,
.social-pill:focus {
  background: #0088ff;
  color: #fff;
  text-decoration: none;
}

.ttuc-video-grid,
.ttuc-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.ttuc-video-card,
.ttuc-media-card {
  border: 1px solid #0088ff;
  background: #02024e;
  min-width: 0;
}

.ttuc-video-thumb,
.ttuc-media-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  border-bottom: 1px solid #0088ff;
  overflow: hidden;
}

.ttuc-photos-grid .ttuc-media-thumb {
  aspect-ratio: 1;
}

.ttuc-status-grid .ttuc-media-thumb {
  aspect-ratio: 4 / 3;
}

.ttuc-notes-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.ttuc-note-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--ttuc-border);
  background: #02024e;
}

.ttuc-note-row:nth-child(3n) {
  background: #000;
}

.ttuc-note-avatar {
  width: 56px;
  aspect-ratio: 1;
  border: 2px solid var(--ttuc-border);
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.ttuc-note-content {
  min-width: 0;
}

.ttuc-note-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ttuc-note-title {
  margin: 0;
  color: var(--ttuc-link);
  font-size: 1.05rem;
}

.ttuc-note-date {
  color: #fff;
  font-size: 0.82rem;
  white-space: nowrap;
}

.ttuc-note-text {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ttuc-note-meta {
  margin: 7px 0 0;
  color: #d7eaff;
  font-size: 0.78rem;
}

.ttuc-stories-grid .ttuc-media-thumb {
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 10px auto 0;
  width: min(130px, calc(100% - 20px));
  border: 2px solid var(--ttuc-border);
}

.ttuc-video-thumb img,
.ttuc-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.ttuc-video-fallback,
.ttuc-media-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.ttuc-video-body,
.ttuc-media-body {
  padding: 8px;
}

.ttuc-video-title,
.ttuc-media-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.ttuc-video-title a,
.ttuc-media-title a {
  color: #fff;
}

.ttuc-video-meta,
.ttuc-media-meta {
  margin: 0;
  font-size: 0.82rem;
}

.ttuc-media-cats {
  margin-top: 6px;
  color: #d7eaff;
  font-size: 0.78rem;
}

.ttuc-photo-full {
  margin: 0 0 14px;
  border: 1px solid var(--ttuc-border);
  background: #000;
}

.ttuc-photo-full img {
  width: 100%;
  height: auto;
  border: 0;
}

.ttuc-status-entry {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--ttuc-border);
  background: #02024e;
}

.ttuc-status-entry p {
  margin: 0;
}

.ttuc-tweet-note {
  display: grid;
  gap: 10px;
}

.ttuc-tweet-text {
  margin: 0;
  padding: 10px;
  border: 1px solid #0088ff;
  background: #000;
  color: #fff;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ttuc-tweet-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #d7eaff;
}

.ttuc-tweet-refs {
  margin: 8px 0 0;
  padding-left: 18px;
}

.story-vault-preview {
  margin-top: 16px;
}

.story-vault-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 10px;
}

.story-circle-card {
  display: grid;
  gap: 6px;
  width: 104px;
  justify-items: center;
  text-align: center;
  font-weight: 700;
}

.story-circle-thumb {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ttuc-border);
  border-radius: 50%;
  background: #000;
  color: #fff;
}

.story-circle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.story-circle-title {
  font-size: 0.8rem;
  line-height: 1.15;
}

.story-vault-archive-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.ttuc-embed {
  margin: 0 0 14px;
  border: 1px solid var(--ttuc-border);
  background: #000;
}

.ttuc-embed iframe,
.ttuc-embed object,
.ttuc-embed embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.ttuc-youtube-embed {
  aspect-ratio: 16 / 9;
}

.ttuc-youtube-embed iframe,
.ttuc-facebook-embed iframe {
  height: 100%;
}

.ttuc-facebook-embed {
  aspect-ratio: 16 / 9;
}

.ttuc-video-file-embed {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.ttuc-video-file-embed video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}

.ttuc-external-links {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.ttuc-external-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ttuc-border);
  background: #02024e;
  color: #fff;
  text-decoration: none;
}

.ttuc-external-link.no-icon {
  grid-template-columns: 1fr;
}

.ttuc-external-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border: 1px solid var(--ttuc-border);
  background: #000;
}

.ttuc-external-copy,
.ttuc-external-link small {
  display: block;
}

.ttuc-external-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ttuc-link);
}

.ttuc-external-link small {
  margin-top: 3px;
  color: #fff;
  overflow-wrap: anywhere;
}

.ttuc-external-link:hover,
.ttuc-external-link:focus {
  background: #000;
}

.ttuc-sidebar-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ttuc-sidebar-icons a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ttuc-border);
  background: #000;
}

.ttuc-sidebar-icons img {
  display: block;
  width: 26px;
  height: 26px;
  border: 0;
  object-fit: contain;
}

.site-footer {
  width: min(calc(100% - 24px), var(--ttuc-max-width));
  margin: 0 auto 30px;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  border-top: 2px solid var(--ttuc-border);
  background: #000;
}

.site-footer a {
  color: #9fd3ff;
}

.footer-inner {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  color: #d7eaff;
  font-size: 0.82rem;
}

.archive-title,
.page-title {
  margin: 0 0 8px;
  padding: 4px 8px;
  background: #000;
  color: #fff;
  font-size: 1.1rem;
}

.page-hero-image {
  margin: 0 0 14px;
  border: 1px solid var(--ttuc-border);
  background: #000;
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

.page-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.single-content img,
.page-content img {
  border: 1px solid #7bb6ff;
}

.single-content,
.page-content {
  padding: 0;
}

.single-content > :first-child,
.page-content > :first-child {
  margin-top: 0;
}

.single-content > :last-child,
.page-content > :last-child {
  margin-bottom: 0;
}

.coming-soon-notice {
  padding: 12px;
  border: 1px solid var(--ttuc-border);
  background: #02024e;
}

.comments-area {
  margin-top: 22px;
}

.comments-title {
  margin: 0 0 12px;
  padding: 4px 8px;
  background: #000;
}

@media (max-width: 920px) {
  .content-frame {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 2px solid var(--ttuc-border);
  }
}

@media (max-width: 700px) {
  .site-branding {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-progress {
    width: 100%;
  }

  .site-shell,
  .site-footer {
    width: min(calc(100% - 10px), var(--ttuc-max-width));
  }

  .content-frame {
    grid-template-columns: 1fr;
  }

  .content-main {
    order: 1;
  }

  .sidebar-left {
    order: 2;
  }

  .sidebar-right {
    order: 3;
  }

  .sidebar-left,
  .sidebar-right {
    border: 0;
    border-top: 2px solid var(--ttuc-border);
  }

  .sidebar-left {
    border-top: 0;
    border-right: 0;
  }

  .top-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 2px 6px;
  }

  .top-nav a {
    padding: 6px 4px;
    font-size: 0.84rem;
  }

  .top-nav,
  .top-nav-search,
  .top-nav-search .search-form,
  .top-nav-search label {
    width: 100%;
  }

  .top-nav-search input[type="search"] {
    width: 100%;
    max-width: none;
  }

  .post-card-body {
    grid-template-columns: 1fr;
  }

  .ttuc-video-grid,
  .ttuc-media-grid {
    grid-template-columns: 1fr;
  }

  .ttuc-author-inner {
    grid-template-columns: 1fr;
  }

}
