/* Bundled stylesheet. See assets/src/css/manifest.json. */

/* Readable magazine-style news and press pages.
   Shared by Arabic and French; keeps the original WordPress articles and imagery. */
.tm-story, .tm-story * { box-sizing: border-box; }
.tm-story {
  --story-ink: #161719;
  --story-paper: #faf9f7;
  --story-copper: #a75f42;
  --story-line: #dfd9d3;
  width: 100%; min-width: 0;
  padding: 0 0 clamp(52px, 6vw, 84px);
  background: var(--story-paper); color: var(--story-ink);
  font-family: var(--tm-font-body, Tahoma, sans-serif);
}
.tm-story--press { --story-copper: #ad5b45; }
.tm-story--fr { font-family: var(--tm-font-body, Arial, sans-serif); }
.tm-story :where(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.tm-story a { text-decoration: none; }
.tm-story :where(button) { font: inherit; }
.tm-story :where(a,button) { -webkit-tap-highlight-color: transparent; }
.tm-story :where(a,button):focus-visible { outline: 3px solid #ba7455; outline-offset: 4px; }

/* A two-column lead: Arabic copy on the right and image on the left.
   Direction is mirrored naturally for French. No giant dark hero or overlapping cover. */
.tm-story__hero {
  color: var(--story-ink);
  background: #f3f0ec;
  border-top: 1px solid #e7e2dc;
  border-bottom: 1px solid #ddd7d0;
}
.tm-story--press .tm-story__hero { background: #f5efeb; }
.tm-story__hero-inner {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
  padding: clamp(35px, 4vw, 56px) 0 clamp(40px, 5vw, 68px);
}
.tm-story__intro {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 5.6vw, 76px);
  align-items: center;
}
.tm-story__intro--no-image { display: block; max-width: 890px; }
.tm-story__intro-copy { min-width: 0; padding-block: 6px; }
.tm-story__eyebrow {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 9px; margin-bottom: clamp(15px, 2vw, 24px);
  color: var(--story-copper);
  font-size: 12px; font-weight: 850; line-height: 1.6;
}
.tm-story__eyebrow-mark { width: 17px; height: 3px; background: currentColor; flex: 0 0 auto; }
.tm-story__eyebrow-index {
  margin-inline-start: 10px;
  font-family: Arial, sans-serif; letter-spacing: .11em;
  font-size: 10px; font-weight: 800; color: #92908c;
}
.tm-story__title {
  max-width: 100%;
  font-family: var(--tm-font-heading, var(--tm-font-body, sans-serif));
  font-size: clamp(29px, 2.85vw, 46px);
  font-weight: 700; line-height: 1.36;
  letter-spacing: -.018em; overflow-wrap: break-word;
  color: #161719;
  text-wrap: pretty;
}
.tm-story--fr .tm-story__title {
  font-family: var(--tm-font-heading, Arial, sans-serif);
  font-size: clamp(29px, 2.8vw, 46px);
  line-height: 1.18; letter-spacing: -.028em;
}
.tm-story__lead {
  margin-top: clamp(17px, 2vw, 25px) !important;
  max-width: 60ch;
  color: #60605e;
  font-size: clamp(15px, 1.24vw, 17px);
  font-weight: 400; line-height: 1.94;
}
.tm-story--fr .tm-story__lead { line-height: 1.76; }
.tm-story__hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 11px 15px; margin-top: clamp(23px, 3vw, 37px);
  padding-top: 17px; border-top: 1px solid #d9d2ca;
  color: #6d6963; font-size: 12px; font-weight: 650;
}
.tm-story__hero-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.tm-story__hero-meta-item svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tm-story__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #b5aaa0; }

/* Frame keeps the entire featured image visible, including portrait posters. */
.tm-story__cover {
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0; height: clamp(290px, 34vw, 465px);
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid #d9d5d0;
  background: #25282b;
  box-shadow: 0 16px 42px rgba(37,30,26,.11);
}
.tm-story__cover > img {
  display: block; width: 100%; height: 100%; min-height: 0;
  object-fit: contain; object-position: center;
}
.tm-story__cover figcaption {
  min-height: 0;
  padding: 10px 15px;
  background: #fff; color: #696761;
  font-size: 11px; line-height: 1.65; text-align: center;
}

/* One centred text column; the publication facts are deliberately below it. */
.tm-story__main-layout {
  display: flex; flex-direction: column;
  width: min(820px, calc(100% - 48px));
  margin: clamp(42px, 5.5vw, 70px) auto 0;
  gap: clamp(35px, 4vw, 52px);
}
.tm-story__main-layout--no-cover { margin-top: clamp(42px, 5.5vw, 70px); }
.tm-story__article {
  width: 100%; min-width: 0;
  border: 0; border-radius: 0;
  background: transparent; padding: 0; box-shadow: none;
}

.tm-story__body-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 17px;
  color: #9e684f;
  border-bottom: 1px solid #ebe7e1;
  font-size: 12px;
  font-weight: 800;
}
.tm-story__body-heading-symbol { font-size: 12px; }
.tm-story__content {
  max-width: 100%;
  margin: 0;
  color: #28292b;
  font-family: var(--tm-font-reading, var(--tm-font-body)) !important;
  font-size: clamp(16px, 1.38vw, 19px);
  font-weight: 400;
  line-height: 1.98;
  overflow-wrap: break-word;
}
.tm-story--fr .tm-story__content { line-height: 1.92; }
.tm-story__content > *:first-child { margin-top: 0; }
.tm-story__content > *:last-child { margin-bottom: 0; }
.tm-story__content p { margin: 0 0 1.55em; line-height: inherit; color: inherit; }
.tm-story__content :where(h2,h3,h4) {
  margin: 2em 0 .85em;
  font-family: var(--tm-font-heading, inherit);
  font-weight: 700;
  color: #17181a;
  line-height: 1.55;
}
.tm-story--fr .tm-story__content :where(h2,h3,h4) { font-family: var(--tm-font-heading); line-height: 1.3; }
.tm-story__content h2 {
  position: relative;
  padding-inline-start: 16px;
  border-inline-start: 4px solid var(--story-copper);
  font-size: clamp(23px, 2vw, 32px);
}
.tm-story__content h3 { font-size: clamp(19px, 1.7vw, 25px); }
.tm-story__content h4 { font-size: clamp(17px, 1.5vw, 22px); }
.tm-story__content :where(ul,ol) { margin: 0 0 1.5em; padding-inline-start: 1.5em; }
.tm-story__content li { padding-inline-start: .25em; margin-bottom: .45em; }
.tm-story__content blockquote {
  margin: 1.8em 0;
  padding: 26px 28px;
  border: 0;
  border-inline-start: 4px solid var(--story-copper);
  background: #f7f3ef;
  color: #242222;
  font-size: 1.06em;
  font-weight: 650;
  line-height: 1.85;
}
.tm-story__content blockquote p:last-child { margin-bottom: 0; }
.tm-story__content a:not(.wp-block-button__link) {
  color: #a55635;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.tm-story__content :where(img,video,iframe,embed) { max-width: 100%; height: auto; }
.tm-story__content :where(figure,.wp-block-gallery,.wp-block-image,.wp-block-embed,.wp-block-video) {
  max-width: 100%; width: auto; margin: 28px 0 32px; transform: none;
}
.tm-story__content figure img { display: block; height: auto; max-width: 100%; border-radius: 8px; }
.tm-story__content :where(figcaption,.wp-element-caption) {
  margin-top: 9px; color: #85807a; font-size: 12px; text-align: center; line-height: 1.8;
}
.tm-story__content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 16px; }
.tm-story__content .wp-block-column { flex: 1 1 220px; min-width: 0; }
.tm-story__content :where(table,.wp-block-table table) { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .84em; }
.tm-story__content :where(th,td) { padding: 12px; border: 1px solid #e4ded8; }
.tm-story__content th { background: #272729; color: #fff; }
.tm-story__content .wp-block-table { max-width: 100%; overflow-x: auto; }
.tm-story__content :where(pre,.wp-block-code) { max-width: 100%; overflow-x: auto; font-size: .82em; }
.tm-story__content iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
.tm-story__content .alignwide { max-width: 100%; }
.tm-story__content .alignfull { max-width: 100%; margin-inline: 0; }
.tm-story__content .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  background: #17181a; color: #fff; border-radius: 5px;
}
.tm-story__pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tm-story__pagination .post-page-numbers { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; background: #f1ece6; color: #272727; }
.tm-story__pagination .post-page-numbers.current { background: #111318; color: #fff; }
.tm-story__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #ebe7e1; margin-top: 34px; padding-top: 23px; }
.tm-story__tags strong { font-size: 12px; margin-inline-end: 8px; }
.tm-story__tags a { display: inline-block; padding: 6px 12px; background: #f6f4f1; border: 1px solid #ebe7e1; border-radius: 4px; color: #4b4540; font-size: 12px; }
.tm-story__tags a:hover { color: #a55635; }



/* Related content deliberately uses the same vertical poster family as the site. */
.tm-story__related { width: min(1180px, calc(100% - 64px)); margin: clamp(48px, 5vw, 68px) auto 0; }
.tm-story__related-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 22px; margin-bottom: 23px; border-bottom: 1px solid #d7d2cb; }
.tm-story__related-header > div > span { display: block; color: #ad735a; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.tm-story__related-header h2 { color: #111318; font-size: clamp(24px, 3vw, 39px); font-weight: 850; line-height: 1.35; }
.tm-story__related-header > a { display: inline-flex; align-items: center; gap: 10px; color: #252325; font-size: 13px; font-weight: 700; border-bottom: 2px solid #ba7656; padding-bottom: 6px; white-space: nowrap; }
.tm-story__related-header > a:hover { color: #9f4d32; }
.tm-story__related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); }
.tm-story__related-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e4e0da; border-radius: 10px; }
.tm-story__related-image { display: block; aspect-ratio: 4 / 5; background: #141518; overflow: hidden; }
.tm-story__related-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tm-story__related-card:hover .tm-story__related-image img { transform: scale(1.035); }
.tm-story__related-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 70% 20%, #9b432d, transparent 55%), #17181a; color: #f2e6d6; font-size: clamp(26px, 4vw, 50px); font-weight: 900; letter-spacing: .1em; }
.tm-story__related-copy { padding: 16px 16px 21px; }
.tm-story__related-copy time { display: block; color: #a66f56; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.tm-story__related-copy h3 { display: -webkit-box; overflow: hidden; min-height: 3.8em; font-size: clamp(15px, 1.4vw, 19px); font-weight: 750; line-height: 1.85; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tm-story__related-copy h3 a { color: #17181a; }
.tm-story__related-copy h3 a:hover { color: #9a492f; }
/* Responsive editorial header, with no horizontal overflow. */
@media (max-width: 950px) {
  .tm-story__hero-inner { width: min(100% - 48px, 1240px); }
  .tm-story__intro { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .tm-story__title { font-size: clamp(28px, 3.4vw, 42px); }
  .tm-story__cover { height: clamp(270px, 38vw, 400px); }
}
@media (max-width: 740px) {
  .tm-story__hero-inner { width: calc(100% - 34px); padding: 27px 0 34px; }
  .tm-story__intro { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .tm-story__title { font-size: clamp(28px, 5vw, 37px); line-height: 1.4; }
  .tm-story--fr .tm-story__title { font-size: clamp(28px, 5vw, 37px); line-height: 1.25; }
  .tm-story__lead { margin-top: 14px !important; font-size: 15px; line-height: 1.85; }
  .tm-story__eyebrow { margin-bottom: 11px; }
  .tm-story__hero-meta { margin-top: 19px; padding-top: 13px; }
  .tm-story__cover { height: clamp(260px, 60vw, 380px); border-radius: 11px; }
  .tm-story__main-layout { width: min(100% - 36px, 820px); margin-top: 35px; gap: 35px; }
  .tm-story__related { width: calc(100% - 36px); margin-top: 54px; }
  .tm-story__related-header h2 { font-size: 29px; }
  .tm-story__related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
}
@media (max-width: 480px) {
  .tm-story { padding-bottom: 52px; }
  .tm-story__hero-inner { width: calc(100% - 28px); }
  .tm-story__eyebrow-index { margin-inline-start: 3px; }
  .tm-story__title { font-size: clamp(26px, 6.9vw, 32px); }
  .tm-story--fr .tm-story__title { font-size: clamp(28px, 7.1vw, 34px); }
  .tm-story__meta-dot { display: none; }
  .tm-story__hero-meta { gap: 8px 13px; }
  .tm-story__cover { height: clamp(275px, 88vw, 390px); }
  .tm-story__main-layout { width: calc(100% - 32px); margin-top: 30px; }
  .tm-story__body-heading { margin-bottom: 21px; }
  .tm-story__content { font-size: 16px; line-height: 1.95; }
  .tm-story__content h2 { font-size: 22px; }
  .tm-story__content h3 { font-size: 19px; }
  .tm-story__content blockquote { padding: 18px 16px; }
  .tm-story__related { width: calc(100% - 32px); }
  .tm-story__related-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tm-story__related-header h2 { font-size: 25px; }
  .tm-story__related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .tm-story__related-copy { padding: 10px 10px 14px; }
  .tm-story__related-copy h3 { font-size: 13px; line-height: 1.65; min-height: 3.3em; }
  .tm-story__related-copy time { font-size: 10px; }
}
@media (max-width: 350px) {
  .tm-story__related-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .tm-story { color: #000 !important; background: #fff !important; padding: 0 !important; }
  .tm-story__related { display: none !important; }
  .tm-story__hero { background: white !important; border: none !important; }
  .tm-story__hero-inner { width: 100% !important; padding: 0 !important; }
  .tm-story__intro { display: block !important; }
  .tm-story__title { color: #000 !important; font-size: 27px !important; }
  .tm-story__lead,.tm-story__hero-meta { color: #333 !important; }
  .tm-story__cover { width: 100% !important; height: auto !important; max-height: 210px; margin: 15px 0 0 !important; box-shadow: none !important; border: 0 !important; }
  .tm-story__cover img { width: auto !important; max-width: 100% !important; max-height: 195px !important; margin: auto; }
  .tm-story__main-layout { display: block !important; width: 100% !important; margin-top: 20px !important; }
  .tm-story__article { width: 100% !important; padding: 0 !important; }
  .tm-story__content { color: #000 !important; font-size: 12pt !important; line-height: 1.6 !important; }
  .tm-story__content :where(h2,h3,h4,figure,blockquote) { break-inside: avoid; }
}
