<?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_7d469649-d790-4e07-8b31-53db8422436d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_5511ee25-84df-4005-be73-7d100055c9f5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_4db19be8-8a37-437c-9261-291e1c9d8bcf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_6b9522b2-4bc3-425b-b650-0980d947018b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_f3754f76-bca8-4643-90e5-495913b4284b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_2cb43f30-6776-40ee-8774-ab506fb6a418">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_f1939c16-0c0a-4dd7-ba06-21e47e4d3fe3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_c275b6d3-b9c9-45bb-899e-846228f72c83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_60b049fe-485d-4aaf-bf9e-24926e70eb1e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_f688c571-0ab1-427d-bc8e-f4ab0438bc59">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7d469649-d790-4e07-8b31-53db8422436d"
      id="F_3cc1a598-ead8-492b-b121-788d23d3aac8">&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;865,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_7d469649-d790-4e07-8b31-53db8422436d"
      decimals="-3"
      id="F_06d9993a-2828-40d6-a714-326eb1ea299e"
      unitRef="U_USD">865000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
