<?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_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-30</startDate>
            <endDate>2026-01-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_7d790c90-75f8-4ae5-9772-3be728cc92f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_bfa35b84-0f0f-4caf-a276-acf1a19711d3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_56b7ce0b-b118-4bef-b8c8-e0986ee2fa84">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_5d2068f4-056b-42f1-bc3b-4f7294581d9c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_646cd6b0-b74f-429b-8fea-718e30552074">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_152f723a-ba8d-4b39-9b1d-7408131da744">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_a077a70b-0857-40d7-ae6d-41f7b0cd9f99">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_e2f87fab-2324-435f-8151-c719f9e1223c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_6714aea8-2852-45f9-a857-e94cb98c8e1c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      id="F_3311a1ff-4601-46b2-ba88-87939c33a1e3">&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;2,191,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_5ab2fbdb-1d9f-4d66-93ff-9a58cccaac6e"
      decimals="0"
      id="F_3f7f6396-eea2-4033-8459-58456ec92dc7"
      unitRef="U_USD">2191000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
