<?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_bb74d59a-cc04-4880-80a2-3b62e5709655">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_c1d8df89-9613-46f2-a4d7-a15d30ccca59">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_8a28f833-2fac-4590-b783-b6f9e0212d86">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_97022121-2d03-4b7f-8267-c29b24a03e9f">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_6639a7b3-a961-4cca-a545-5c3c9fee5e5d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_6c561565-2502-437b-b1b9-a1091a795b99">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_9fc1d199-e4e4-4009-856c-86aae0cc59d2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_4800a199-74a3-46eb-b276-2b13b918c749">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_e9f57c5a-f2ee-4100-ab55-f138ebf0a129">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_b50bfd44-5b55-4300-b787-ee300ed86400">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_bb74d59a-cc04-4880-80a2-3b62e5709655"
      id="F_3b3e2b48-0242-448a-8105-d4e5b089f9fc">&lt;p style="tab-size:26.66px;font-size:12pt;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;700,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_bb74d59a-cc04-4880-80a2-3b62e5709655"
      decimals="-3"
      id="F_06792f51-bcf1-46b5-be5b-375abf88759c"
      unitRef="U_USD">700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
