<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_57ba7f7b-a0fb-47ed-8e84-2492a0a4ea81">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_463dc759-f79a-4b76-80cc-babb6214ab1d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_7d3c41ca-a141-4e3d-b587-05973832a162">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_32d288ba-6772-4a3f-a38a-e48fdabc5ff3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_c30fba61-f39c-40fa-b2ee-c581fd35becf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_150d6027-ddbc-4095-8d41-c598039ddbd8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_2e756996-42f3-4e50-ba13-acd021d8d081">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_5b12ba00-c7ab-4180-8e18-93ee1a84dfa2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_8bc00962-717b-4088-953c-7e7ce45be065">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      id="F_332eb961-4129-409e-9cba-b2ec8d1cc301">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;15,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_8ad3a7fd-8f37-46cf-89a1-024c751f872f"
      decimals="-6"
      id="F_4499f5b4-49bd-4e04-b158-d67d34ef9a68"
      unitRef="U_USD">15000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
