<?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_9400d372-e4c8-44bc-8df9-4609b0c91b02">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_58babe23-65de-4ca6-99df-83a92fdcacca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_ee50586a-e8c1-4ba6-b46e-cb9412b8343a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_f1e0bf69-db9e-4a0f-a590-ac8fa399840f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_128d1b19-8d68-47bf-a9cb-bed0b99ca222">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_d29e3295-feb7-4181-b8bf-2478dc0af903">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_8bc0cacd-59d6-4ee8-9ce8-6d25b97ddca9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_191775c6-a643-4d33-a66d-7507bd844ac9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_2198f54b-5184-4716-a6bb-4f6653640279">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_c373ef47-302f-4848-bd40-1d9a703f2ac1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      id="F_0adaf86f-6d69-4d1c-8533-f412bd59c37a">&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;1,693,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_9400d372-e4c8-44bc-8df9-4609b0c91b02"
      decimals="-3"
      id="F_0539fcbb-89f7-407e-81af-8f0c7a0d09b9"
      unitRef="U_USD">1693000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
