<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_a33bceee-fcc2-49e3-b602-d07cf82d69e4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_fb2f5515-8bf8-476c-9373-34fdc6d8ed65">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_05eaa45d-ef94-43d8-b7cd-8902caa92913">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_f22ea376-c4f4-45e1-a4fa-5da8bede69a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_a90f01fe-724b-4969-aeb1-24ba529af265">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_e7dba7a9-78ab-4283-8ab5-5598cc72e4a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_b35a07c9-92d7-401a-9b54-6ad450f0855c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_1eab2fff-f57d-47d1-8498-eb79019b2648">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_c5e5b48f-0309-4ee5-8d12-85f4d9fdcac5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      id="F_646dea24-d8a1-4508-b411-a8aed1ebfd97">&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;921,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_20c72652-20e1-4b23-9a52-e0bfd04f54c6"
      decimals="0"
      id="F_2298a533-1f75-4605-b322-9a9360a477be"
      unitRef="U_USD">921000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>