/* Pixel Page - Documentation Style */

/* Reset and Base Layout */
* {
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Card Container for Better Separation */
.card-container {
  background: color-mix(in srgb, var(--primary-color) 3%, transparent);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

section {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  padding: 0;
}

/* Section Cards - Visual Separation */
#article-info,
#volte,
#charging,
#photos {
  background: color-mix(in srgb, var(--primary-color) 2%, transparent);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 8%, transparent);
}

/* Typography - Left Aligned */
p,
.article-text {
  text-align: left;
  line-height: 1.7;
  margin: 1rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  text-align: left;
  margin: 2rem 0 1rem 0;
  color: var(--primary-color);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
  border-radius: 0.3rem;
}
h4 {
  font-size: 1.25rem;
}

.accent {
  color: var(--primary-color);
}

/* Intro Section */
#intro {
  text-align: center;
  margin-bottom: 3rem;
}

#intro .heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  .container-mini.item.content, #title{
    width: 98% !important;
  }
}

/* Device Info */
#article-info h4 {
  text-align: center;
  margin-top: 0;
}

#screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem auto;
  display: block;
}

#specs-table {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  margin: 0 auto;
}

table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.table-left {
  font-weight: bold;
}

/* VoLTE Section */
#volte details {
  border: none;
  background: none;
}

#volte summary {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  padding: 1rem 0;
  text-align: left;
  list-style: none;
}

#volte summary::-webkit-details-marker {
  display: none;
}

.volte-content {
  padding: 1rem 0;
  text-align: left;
}

.volte-section {
  margin: 3rem 0;
}

.volte-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Carrier Grid - Documentation Style */
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.carrier-card {
  background: color-mix(in srgb, var(--primary-color) 5%, transparent);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
  overflow: hidden;
  word-wrap: break-word;
}

.carrier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.carrier-header h4 {
  margin: 0;
  font-size: 1.2rem;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.carrier-logo {
  max-width: 70px;
  max-height: 35px;
  object-fit: contain;
  /* Add semi-transparent white background for dark logos */
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.carrier-body p {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  p{
  word-wrap: break-word;
  overflow-wrap: break-word !important;
  }
}

.carrier-code {
  display: inline-block;
  background: var(--primary-color);
  color: var(--background-color-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  font-family: "Courier New", monospace;
  font-weight: bold;
  margin: 0.5rem 0;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.carrier-note {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}

.carrier-contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.carrier-contact-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.carrier-contact-list a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: break-word;
}

.carrier-contact-list a:hover {
  text-decoration: underline;
}

/* Warning Box */
.warning-box {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 0.5rem;
  border-left: 4px solid var(--red);
}

.warning-box p {
  margin: 0;
}

.warn {
  color: var(--red);
}

/* Method Cards - Clean Documentation Style */
.method-card {
  background: color-mix(in srgb, var(--primary-color) 3%, transparent);
  border-radius: 0.5rem;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.method-card.root-redirect {
  background: color-mix(in srgb, var(--primary-color) 5%, transparent);
  border: 1px solid var(--primary-color);
}

.method-header {
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.method-header h4 {
  margin: 0;
  font-size: 1.3rem;
  text-align: left;
}

.method-badge {
  background: var(--primary-color);
  color: var(--background-color-primary);
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.method-badge.root {
  background: var(--red);
}

.method-body {
  padding: 2rem 1.5rem;
}

/* Ordered Lists / Steps */
.method-steps {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.method-steps li {
  margin: 1.5rem 0;
  line-height: 1.7;
  padding-left: 0.5rem;
}

ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

ol li {
  margin: 0.75rem 0;
  line-height: 1.7;
}

/* Images */
img.step-image,
img.article-img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  display: block;
}

/* Videos */
video.step-video {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  display: block;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.step-action {
  margin: 1.5rem 0;
}

.verification-image {
  margin: 2rem 0;
  text-align: center;
}

.verification-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--background-color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.85;
}

/* Back Link */
.back-link {
  margin: 3rem 0 1rem;
  text-align: center;
}

/* Unordered Lists */
ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

ul li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.device-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.device-list li {
  padding: 0.5rem 0;
}

/* KSU Section */
.ksu-section {
  background: color-mix(in srgb, var(--primary-color) 5%, transparent);
  padding: 1.5rem;
  border-radius: 0.3rem;
  margin: 1.5rem 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.steps-section {
  margin: 1.5rem 0;
}

/* Code */
code,
.inline-code {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Charging Section */
#charging details {
  border: none;
  background: none;
}

#charging summary {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  padding: 1rem 0;
  text-align: left;
  list-style: none;
}

#charging summary::-webkit-details-marker {
  display: none;
}

.article-img-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.article-img-carousel img {
  max-width: 100%;
  flex: 1 1 200px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 0.5rem;
}

#tldr {
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
}

#tldr h2 {
  margin-top: 0;
  text-align: left;
}

#tldr ul {
  margin: 1rem 0;
}

/* Photos Section */
#photos {
  background-image: url(https://play-lh.googleusercontent.com/ZyWNGIfzUyoajtFcD7NhMksHEZh37f-MkHVGr5Yfefa-IX7yj9SMfI82Z7a2wpdKCA);
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  padding: 4rem 2rem;
  margin: 3rem auto;
  text-align: center;
}

#photos a {
  text-decoration: none;
}

#photos p {
  background: var(--primary-color);
  color: var(--background-color-primary);
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  margin: 0;
}

/* Footer */
footer {
  margin: 5rem auto 2rem;
  padding: 2rem;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .card-container,
  #article-info,
  #volte,
  #charging {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
  }

  section {
    padding: 0;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.1rem;
  }

  #volte summary,
  #charging summary {
    font-size: 1.4rem;
  }

  .carrier-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .method-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .method-body {
    padding: 1.5rem 1rem;
  }

  .carrier-card {
    padding: 1rem;
  }

  .carrier-logo {
    max-width: 60px;
    max-height: 30px;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
  }

  table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .article-img-carousel {
    flex-direction: column;
  }

  .article-img-carousel img {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .card-container,
  #article-info,
  #volte,
  #charging {
    padding: 1rem 0.75rem;
    margin: 1rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.15rem;
  }

  #volte summary,
  #charging summary {
    font-size: 1.2rem;
  }

  .method-header h4 {
    font-size: 1.1rem;
  }

  .method-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }

  .button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  #tldr,
  .warning-box,
  .method-card,
  .ksu-section {
    padding: 1rem;
  }

  #photos {
    padding: 2rem 1rem;
  }

  .carrier-logo {
    max-width: 50px;
    max-height: 25px;
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
  }
}

p{
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}


h1#title:not(p){
  font-size: 5rem !important ;
}

.article-summary{
  li{
    text-align: left;
  }
}