/* =========================================================
   Internet Availability Explained
   Main stylesheet
   Publisher: WRS Web Solutions Inc.
   Design direction: deep navy, signal blue, soft green, cloud white
   ========================================================= */

/* ------------------------------
   Root variables
   ------------------------------ */
:root {
  --navy: #10233f;
  --navy-2: #18365f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --teal: #0ea5a8;
  --teal-dark: #0f766e;
  --green: #2f9e75;
  --green-soft: #dff5ec;
  --cloud: #f5f8fb;
  --cloud-2: #edf3f8;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #5f6f86;
  --muted-2: #74849a;
  --line: #d9e2ee;
  --line-strong: #bfccdc;
  --warning-soft: #fff7ed;
  --warning-line: #fed7aa;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.10);
  --shadow-soft: 0 10px 28px rgba(16, 35, 63, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1680px;
  --content: 1040px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cloud);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

p,
ul,
ol {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

/* ------------------------------
   Layout helpers
   ------------------------------ */
.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.content-wrap {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 36px 0;
}

.section-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(1.7rem, 2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 980px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

/* ------------------------------
   Header and navigation
   ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 320px;
  max-width: 560px;
  color: var(--navy);
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

/* The logo is a wide wordmark image, so width controls it better than height. */
.brand-logo {
  display: block;
  width: 520px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.brand-text {
  display: inline-block;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  letter-spacing: -0.03em;
}

.brand-text span {
  color: var(--teal-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--blue-dark);
  background: var(--blue-soft);
  text-decoration: none;
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--blue-dark) !important;
  color: #fff !important;
}

/* ------------------------------
   Hero
   ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(47, 158, 117, 0.40), transparent 30%),
    radial-gradient(circle at 85% 22%, rgba(37, 99, 235, 0.38), transparent 30%),
    linear-gradient(135deg, #10233f 0%, #18365f 48%, #0f766e 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% -8%;
  height: 70%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  max-width: 1040px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero .lead {
  max-width: 920px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-card ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-card li + li {
  margin-top: 8px;
}

/* ------------------------------
   Buttons
   ------------------------------ */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button:hover,
.button:focus,
.btn:hover,
.btn:focus {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.button-secondary,
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--green-soft);
  color: var(--navy);
  border-color: rgba(47, 158, 117, 0.35);
}

.hero .button-secondary,
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.96);
}

/* ------------------------------
   Cards and grids
   ------------------------------ */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}

.card,
.topic-card,
.country-card,
.place-card,
.article-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.card::before,
.topic-card::before,
.country-card::before,
.place-card::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
}

.card h2,
.card h3,
.topic-card h2,
.topic-card h3,
.country-card h2,
.country-card h3,
.place-card h2,
.place-card h3,
.article-card h2,
.article-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.card p,
.topic-card p,
.country-card p,
.place-card p,
.article-card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-dark);
  font-weight: 800;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 20px;
}

.country-card {
  min-height: 190px;
}

.country-card .country-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-card:hover,
.place-card:hover,
.article-card:hover,
.topic-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--shadow);
}

/* ------------------------------
   Article/page header
   ------------------------------ */
.page-hero {
  padding: 52px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 158, 117, 0.14), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1120px;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.page-hero .lead {
  max-width: 1020px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-meta a {
  color: var(--blue-dark);
  font-weight: 750;
}

.hero .article-meta,
.hero .article-meta a {
  color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------
   Main article content
   ------------------------------ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
  padding: 48px 0 64px;
}

.article-content {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.article-content h2 {
  margin: 38px 0 14px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 28px 0 10px;
  color: var(--navy-2);
  font-size: 1.28rem;
  line-height: 1.24;
}

.article-content p,
.article-content li {
  color: #263449;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35rem;
}

.article-content li + li {
  margin-top: 8px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--navy);
  font-weight: 650;
}

.article-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--cloud-2);
  color: var(--navy);
  font-size: 0.92em;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--cloud-2);
  color: var(--navy);
}

.article-content tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------
   Sidebar
   ------------------------------ */
.sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.25;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li + li {
  margin-top: 10px;
}

.sidebar-card a {
  font-weight: 750;
}

/* ------------------------------
   Breadcrumbs
   ------------------------------ */
.breadcrumbs {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li::after {
  content: "›";
  margin-left: 7px;
  color: var(--muted-2);
}

.breadcrumbs li:last-child::after {
  content: "";
  margin: 0;
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 700;
}

/* ------------------------------
   Callouts and notes
   ------------------------------ */
.callout,
.note-box,
.disclaimer-box,
.neutral-box {
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cloud);
}

.callout {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
}

.note-box {
  border-color: rgba(47, 158, 117, 0.25);
  background: var(--green-soft);
}

.disclaimer-box {
  border-color: var(--warning-line);
  background: var(--warning-soft);
}

.callout h2,
.callout h3,
.note-box h2,
.note-box h3,
.disclaimer-box h2,
.disclaimer-box h3,
.neutral-box h2,
.neutral-box h3 {
  margin-top: 0;
}

/* ------------------------------
   AdSense ad slots
   ------------------------------ */
.ad-slot {
  display: block;
  width: 100%;
  min-height: 120px;
  margin: 30px 0;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  text-align: center;
}

.ad-label {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ------------------------------
   Related links
   ------------------------------ */
.related-links {
  margin-top: 42px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--cloud);
  border: 1px solid var(--line);
}

.related-links h2 {
  margin-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-grid a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
}

.related-grid a:hover,
.related-grid a:focus {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--blue-soft);
  text-decoration: none;
}

/* ------------------------------
   Author box
   ------------------------------ */
.author-box {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 38px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cloud);
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(14, 165, 168, 0.60), transparent 26%),
    linear-gradient(135deg, var(--navy), var(--blue-dark));
}

.author-box h2,
.author-box h3 {
  margin: 0 0 6px;
}

/* ------------------------------
   Glossary
   ------------------------------ */
.glossary-list {
  display: grid;
  gap: 18px;
}

.glossary-term {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.glossary-term h2,
.glossary-term h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.glossary-nav a {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
}

.glossary-nav a:hover,
.glossary-nav a:focus {
  background: var(--blue-soft);
  text-decoration: none;
}

/* ------------------------------
   FAQ
   ------------------------------ */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.faq-item h2,
.faq-item h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

/* ------------------------------
   Index/list pages
   ------------------------------ */
.index-intro {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.topic-section + .topic-section {
  margin-top: 42px;
}

.topic-section h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

/* ------------------------------
   Footer
   ------------------------------ */
.site-footer {
  margin-top: 70px;
  padding: 52px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(150px, 0.6fr));
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
}

.footer-brand {
  max-width: 520px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

/* ------------------------------
   Utility classes
   ------------------------------ */
.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.max-text {
  max-width: 980px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  margin: 36px 0;
  background: var(--line);
}

/* ------------------------------
   Responsive behaviour
   ------------------------------ */
@media (max-width: 1180px) {
  .hero-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand-logo {
    width: min(460px, 92vw);
    max-width: 100%;
    height: auto;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .wrap,
  .content-wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .hero {
    padding: 56px 0 42px;
  }

  .section {
    padding: 46px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .content-wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .brand-logo {
    width: min(360px, 92vw);
    max-width: 100%;
    height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .btn {
    width: 100%;
  }

  .card,
  .topic-card,
  .country-card,
  .place-card,
  .article-card,
  .article-content,
  .sidebar-card,
  .index-intro {
    border-radius: 16px;
  }

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

  .footer-bottom {
    display: block;
  }
}

/* ------------------------------
   Print
   ------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .ad-slot,
  .hero-actions {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .article-content,
  .card,
  .page-hero {
    box-shadow: none;
    border: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}