<?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_9e899aff-2ded-400b-86d9-428f31a2bcfd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_58a5ca8c-5202-4f12-9306-bbb458c33d8e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_8b132e92-4344-453b-8b99-1f2f089ed4e4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_33416482-7800-4408-a284-dc193ed7e535">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_2a215524-569f-4304-b94e-c82db180e1f9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_b0b9cbf5-0423-422b-b519-b3fe86c22685">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_7a68af9e-3502-4ecf-9d9b-0c53238640e1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_f8277069-bdc7-44a8-a7ab-1c5d9d636d5d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_0fb0a900-2ad6-4e2f-b17e-7a597eee08d0">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_f00edb4c-443b-4c96-938b-26d644050cf9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      id="F_aa110cfa-b3d7-4a6e-ba50-fd085d19e22b">&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;20,056,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_9e899aff-2ded-400b-86d9-428f31a2bcfd"
      decimals="0"
      id="F_85ea9bf8-6607-46dc-8d61-35105b06818e"
      unitRef="U_USD">20056000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
