<?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_f48aebc4-68ba-4e82-b4e1-de649950a53c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_108408d0-ac9f-4e04-a651-1cb31ab523f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_06b90193-99fe-49d1-b9e9-863de8ccfa50">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_c7aa8353-0fcb-44fa-8a0c-00293bb372de">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_817958b3-357e-4d93-a8f5-ee4f4274f394">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_84e1cba9-4a89-4831-8233-6056049170cf">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_76d6cbdd-87f0-4a0b-b3eb-dd83482eae07">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_a1bd8c20-43c5-4250-9518-8de90e1e69ea">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_75809aee-c5a1-43ec-aa7a-2e558c53d9c6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_98afec67-ed5a-43ab-92f7-86d1ddd4425b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      id="F_e96913a9-1cde-40f1-8461-5874f1c96cc7">&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;6,664,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_f48aebc4-68ba-4e82-b4e1-de649950a53c"
      decimals="0"
      id="F_da9d658e-940f-4c4d-89dc-0dda8f4fea59"
      unitRef="U_USD">6664000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
