<?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_3a04e1c2-030b-4120-af19-4924ed56ea98">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-23</startDate>
            <endDate>2026-07-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_bb8fb96f-64cb-4a7e-8ad3-ccb01be400f6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_409dffa9-a7a5-4050-982c-9bead408a69f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_5131ba43-2b39-46a7-9a67-7824df904847">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_5229b32c-220e-4203-b9a6-cc3c19533700">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_45b03758-d763-48b7-934f-0b26ffbc2b2f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_b0f5e31f-984d-4afc-bddc-c2fcd1bc73f6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_0fdbf8a0-f1f1-4d76-9436-9a8e2807f211">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_5c9d41da-a939-4b1f-8281-5d1f9c8ae739">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_b7226071-7764-46cc-bd26-ec8c7caafaa4">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3a04e1c2-030b-4120-af19-4924ed56ea98"
      id="F_316fe76f-4985-4f2d-ab94-e7e93869c87b">&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;5,533,260&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_3a04e1c2-030b-4120-af19-4924ed56ea98"
      decimals="0"
      id="F_939b8db1-27a5-4b62-a595-ed9e2b7989d2"
      unitRef="U_USD">5533260</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
