<?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_c35e484f-8795-42cf-8bca-a302e4d1e6eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_dcf7e452-30e6-42b9-9225-06815ed1d055">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_ba3315b2-79d0-480d-ac81-94a46eb0359a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_ca28be4e-1f36-4a3e-90ae-e25cbdb5f92c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_5e19d344-578c-4e00-9e59-e2d8fcf28857">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_1d0aa70e-68d2-4aa8-be9d-468f30a720fb">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_e090173d-8d16-4745-8cae-64b5c25b4f5b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_b7269ea7-c400-475b-9893-7d21cfa50c3b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_418aa07d-d041-47a6-bb6b-5c66fe6c6da0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_443a05d2-f510-4856-a876-63c8e4a2bccd">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      id="F_79af139a-93db-464f-b533-7373f587dc3d">&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;2,044,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_c35e484f-8795-42cf-8bca-a302e4d1e6eb"
      decimals="-3"
      id="F_3cceabcd-c039-463c-8bac-833de66c5f38"
      unitRef="U_USD">2044000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
