<?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_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_e6b585c0-1ec7-42d7-ad2f-806cbee2a0d6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_4c621865-33d0-4159-a17f-1649c1b6a46a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_5e81307c-b197-4f6c-a1ab-e08ad37695c7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_f1375b35-ff65-4cab-879f-76db6613ba64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_7205d007-1a93-4978-8e53-65b64311c3c3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_f7ecc1f6-502a-4213-b503-53d1f4b90a27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_6274d4a1-038e-42d1-b57a-d71d6ca4d689">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_aa01fba5-6288-4fcc-af37-a48a1fa69f2f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_16989667-ec33-4cfc-8bd6-92133d6ed950">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      id="F_6b728138-d28c-441c-bdb9-04a9549f1813">&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;10,495,050&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_f4cf7d36-4d0d-4aff-86b1-6cecf5acc458"
      decimals="0"
      id="F_bc1a04c3-ed31-4ccf-83ae-66e59f9ff38a"
      unitRef="U_USD">10495050</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
