:root {
  --green: #0b6a46;
  --green-dark: #063f2e;
  --gold: #f2c94c;
  --red: #c9433b;
  --ink: #17231f;
  --muted: #66726d;
  --paper: #f6f3eb;
  --white: #fff;
  --line: rgba(23, 35, 31, .14);
  --shadow: 0 20px 50px rgba(7, 43, 31, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "Noto Sans Armenian", sans-serif; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.section-width { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -90px; left: 14px; z-index: 1000; padding: 12px 16px; color: white; background: var(--green-dark); }
.skip-link:focus { top: 14px; }

.language-tools { position: fixed; top: 10px; right: max(18px, 4vw); z-index: 100; display: flex; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.language-tools a { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 18px; color: var(--green-dark); font-size: .7rem; font-weight: 900; text-decoration: none; }
.language-tools a[aria-current="true"] { color: #fff; background: var(--green); }

.masthead { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; color: white; }
.home .masthead { min-height: 390px; place-items: center; }
.masthead__background { position: absolute; inset: 0; background: url("/assets/hero-dakar.jpg") center 42% / cover no-repeat fixed; transform: scale(1.015); }
.masthead__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,32,23,.28), rgba(2,32,23,.84)); }
.branding { position: relative; z-index: 1; display: grid; place-items: center; width: min(900px, calc(100% - 36px)); padding: 70px 0 52px; text-align: center; }
.home .branding { padding-bottom: 52px; }
.branding__logo img { width: 112px; height: 132px; object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,.35)); }
.home .branding__logo img { width: 112px; height: 132px; }
.branding__title { margin: 25px 0 6px; font-family: Georgia, "Noto Serif Armenian", serif; font-size: clamp(1.8rem, 4vw, 3.7rem); font-weight: 500; line-height: 1.1; letter-spacing: .02em; }
.branding__title a { color: #fff; text-decoration: none; }
.branding__description { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(.72rem, 1.4vw, .95rem); font-weight: 800; letter-spacing: .1em; }

.main-navigation { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.main-navigation ul { display: flex; justify-content: center; gap: clamp(6px, 2vw, 32px); width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 21px 12px 18px; border-bottom: 3px solid transparent; color: var(--ink); font-size: .78rem; font-weight: 900; letter-spacing: .035em; text-decoration: none; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold); }
.scroll-cue { position: absolute; top: 50%; right: max(22px, 4vw); display: grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important; border: 0 !important; border-radius: 50%; color: var(--green-dark) !important; font-size: 1.4rem !important; transform: translateY(-50%); }
.menu-toggle { display: none; }

.front-page-content { position: relative; padding-block: 1px; background: var(--paper); }
.front-panel { scroll-margin-top: 86px; }
.front-parallax { min-height: min(100svh, 900px); background: linear-gradient(rgba(2,32,23,.08), rgba(2,32,23,.18)), url("/assets/contact-gorr2.jpg") center / cover no-repeat fixed; }
.page-shell { margin-block: 88px; padding: clamp(34px, 6vw, 76px); background: white; box-shadow: var(--shadow); }
.entry-header { display: grid; grid-template-columns: .42fr 1.58fr; gap: 42px; align-items: end; margin-bottom: 58px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.entry-header p { margin: 0 0 7px; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.entry-header > * { min-width: 0; }
.entry-header h1, .entry-header h2 { margin: 0; color: var(--green-dark); font-family: Georgia, "Noto Serif Armenian", serif; font-size: clamp(2.2rem, 4.8vw, 4.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
.entry-content { font-size: 1rem; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { color: var(--green-dark); font-family: Georgia, "Noto Serif Armenian", serif; line-height: 1.25; }
.entry-content h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); }
.entry-content h6 { margin-top: 0; font-size: 1.12rem; letter-spacing: .06em; }
.entry-content p { margin: 0 0 1.55em; }
.entry-content figure { margin: 0 0 32px; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.entry-content iframe { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; height: auto; margin: 0 auto 32px; border: 0; }
.entry-content .wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 55px); }
.entry-content .wp-block-columns > .wp-block-column:only-child { grid-column: 1 / -1; }
.entry-content .wp-block-columns .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .wp-block-column { min-width: 0; }
.entry-content .wp-block-image img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.entry-content .ambassador-photo, .entry-content .honorary-consul-photo { width: min(100%, 269px); margin-inline: auto; }
.entry-content .ambassador-photo .wp-image-107 { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.entry-content .honorary-consul-photo .wp-image-108 { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.entry-content .wp-block-social-links { display: flex; gap: 10px; padding: 0; list-style: none; }
.entry-content .wp-block-social-links svg { width: 30px; height: 30px; fill: var(--green); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.visa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-panel { min-width: 0; padding: clamp(25px, 4vw, 42px); border-top: 4px solid var(--gold); background: var(--paper); overflow-wrap: anywhere; }
.info-panel h2 { margin-top: 0; }
.info-panel h3 { color: var(--red); font-family: inherit; font-size: .76rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.notice { margin-top: 30px !important; padding: 22px 26px; border-left: 4px solid var(--red); background: #fff3ed; color: #64322e; }
.source-note { font-size: .85rem; }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 8vw, 100px); }
.contact-featured { overflow: hidden; margin-bottom: clamp(34px, 6vw, 64px) !important; }
.contact-featured img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-layout address { font-style: normal; line-height: 1.9; }
.contact-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.contact-list a { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.contact-list span { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 44px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.media-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(38px, 6vw, 70px); }
.media-videos figure, .media-videos iframe { margin-bottom: 0; }

/* The front page deliberately follows the source Twenty Seventeen panel rhythm. */
.front-page-content { padding: 0; background: #fff; }
.front-page-content .front-panel {
  width: 100%;
  margin: 0;
  padding: 96px max(48px, calc((100% - 1200px) / 2 + 48px)) 72px;
  background: #fff;
  box-shadow: none;
}
.front-panel .entry-header { display: block; margin: 0 0 64px; padding: 0; border: 0; }
.front-panel .entry-header p { display: none; }
.front-panel .entry-header h1, .front-panel .entry-header h2 {
  font-family: inherit;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}
.front-panel .entry-content { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; }
.front-panel--home .entry-content { min-height: 1064px; }
.front-panel--home .entry-content .wp-block-columns .wp-block-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.front-panel--home .ambassador-photo { width: 187px; }
.front-panel--home .honorary-consul-photo { width: 134px; }
.front-panel--home .has-small-font-size { font-size: .8125rem; line-height: 1.5; }
.front-panel--home .wp-block-social-links { min-height: 24px; }
.front-panel--home .wp-block-social-links svg { width: 24px; height: 24px; }
#front-meeting .entry-content, #front-visas .entry-content { min-height: 360px; }
#front-meeting .wp-block-embed { float: left; width: 360px; margin: 0 32px 20px 0; }
#front-meeting .wp-block-embed iframe { width: 100%; margin: 0; }
#front-visas .info-panel { padding: 0; border: 0; background: transparent; }
#front-visas .info-panel h2 { font-family: inherit; font-size: 1rem; line-height: 1.5; }
#front-visas .notice { display: none; }
#front-media .entry-content { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; min-height: 586px; }
#front-media .gallery { grid-template-columns: repeat(5, 124px); grid-auto-rows: 84px; justify-content: center; align-content: start; gap: 0; }
#front-media .gallery a { width: 124px; height: 84px; padding: 2px; border: 1px solid #a9a9a9; aspect-ratio: auto; }
#front-media .gallery a:nth-child(n+25) { display: none; }
#front-media .gallery img { width: 120px; height: 80px; }
#front-media .media-videos { grid-template-columns: 1fr; align-content: start; gap: 16px; margin: 0; }
#front-media .media-videos iframe { width: 100%; margin: 0; }
#front-contact .entry-content { min-height: 301px; }
#front-contact .entry-content h2 { font-family: inherit; font-size: 1rem; line-height: 1.5; }
#front-contact .contact-list a { padding: 8px 0; }
#front-contact .social-links { margin-top: 20px; }
.home .sources { display: none; }
.home .site-footer { padding-block: 32px; }

@media (min-width: 821px) {
  .home .masthead { min-height: 390px; }
  .home .main-navigation a { padding-block: 28px 29px; }
}

.sources { margin-bottom: 88px; padding: 34px clamp(24px, 5vw, 54px); border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.sources h2 { margin: 0 0 18px; color: var(--green-dark); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.sources ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; }
.sources a { font-size: .83rem; }

.site-footer { padding: 64px 0; color: white; background: var(--green-dark); }
.site-footer p { margin: 0; font-family: Georgia, serif; }
.site-footer p + p { margin-top: 4px; color: rgba(255,255,255,.62); font-family: inherit; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer small { display: block; max-width: 650px; margin-top: 28px; color: rgba(255,255,255,.46); font-size: .7rem; }

dialog.lightbox { width: min(1100px, calc(100% - 28px)); padding: 0; border: 0; background: transparent; }
dialog.lightbox::backdrop { background: rgba(2,17,12,.92); }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; margin: auto; object-fit: contain; }
.lightbox button { position: fixed; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: white; background: rgba(0,0,0,.5); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(11,106,70,.88); }
.lightbox__close { top: 16px; right: 20px; width: 44px !important; height: 44px !important; font-size: 1.4rem !important; }
.lightbox__previous, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__previous { left: max(14px, 3vw); }
.lightbox__next { right: max(14px, 3vw); }

@media (max-width: 820px) {
  .home .masthead { min-height: 390px; }
  .front-parallax { background-attachment: scroll; }
  .home .branding { padding-bottom: 52px; }
  .main-navigation { padding: 10px 16px; }
  .menu-toggle { display: block; width: 100%; padding: 10px; border: 0; color: var(--green-dark); background: transparent; font-weight: 900; text-align: left; }
  .main-navigation ul { display: none; width: 100%; padding-top: 8px; }
  .main-navigation ul.is-open { display: grid; }
  .main-navigation a { padding: 12px 10px; border-bottom: 1px solid var(--line); }
  .scroll-cue { display: none !important; }
  .entry-header, .entry-content .wp-block-columns, .entry-content .wp-block-columns .wp-block-columns, .visa-grid, .contact-layout, .media-videos { grid-template-columns: 1fr; }
  .page-shell { width: min(100% - 28px, 1120px); margin-block: 38px; padding: 32px 22px; }
  .entry-header { gap: 10px; margin-bottom: 38px; }
  .entry-header h1, .entry-header h2 { font-size: clamp(1.8rem, 10vw, 2.4rem); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .front-page-content .front-panel { padding: 56px 28px 48px; }
  .front-panel--home .entry-content, #front-meeting .entry-content, #front-visas .entry-content, #front-media .entry-content, #front-contact .entry-content { min-height: 0; }
  .front-panel--home .entry-content .wp-block-columns .wp-block-columns { grid-template-columns: 1fr; }
  #front-meeting .wp-block-embed { float: none; width: 100%; margin: 0 0 32px; }
  #front-media .entry-content { display: block; }
  #front-media .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; margin-bottom: 38px; }
  #front-media .gallery a { width: auto; height: auto; padding: 0; border: 0; aspect-ratio: 4 / 3; }
  #front-media .gallery img { width: 100%; height: 100%; }
  #front-media .gallery a:nth-child(n+25) { display: block; }
}

@media (max-width: 500px) {
  .section-width { width: min(100% - 28px, 1120px); }
  .language-tools { right: 8px; }
  .language-tools a { min-width: 28px; height: 28px; }
  .masthead { min-height: 350px; }
  .home .masthead { min-height: 350px; }
  .branding__logo img, .home .branding__logo img { width: 104px; height: 124px; }
  .branding__description { font-size: .65rem; }
  .gallery { grid-template-columns: 1fr; }
  .lightbox button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
