<?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_d7b9b468-abf5-4ad4-86de-19a65e158132">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_f40a0dad-ce8a-46fc-a65b-2a3ed8ea427c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_c02de5b0-44af-4ee3-b9bd-79d533a3c5a9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_4ee8d21a-5a7c-438e-a428-22109e596ddb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_c9aa0ac8-0682-479f-9a9f-cbf73c51654b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_72bea1ff-8f35-4d71-b397-fdd99bdbaed0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_769169f9-73c9-44a6-9c21-44a1d16d5ecd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_e99a09e6-3e14-4872-adee-5dbc5aac7e31">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_ff968814-1707-44dc-a012-2eb65cdd610a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_f3df3ca7-33cb-449c-9200-903b32d9c3e4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d7b9b468-abf5-4ad4-86de-19a65e158132"
      id="F_867191b0-c0b0-4eea-b8c4-0a6f40501c9d">&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;712,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_d7b9b468-abf5-4ad4-86de-19a65e158132"
      decimals="-3"
      id="F_e7aec518-d53c-4f76-af2d-311e837c83b2"
      unitRef="U_USD">712000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
