<?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_08d81a0d-4cd8-4c42-825a-3d993991c768">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_fe15da90-cf59-48da-81fa-ff9f2c57869c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_bfbe7262-4b84-409b-9bb9-fb630831198b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_06ff8917-7aba-437e-81fb-94a2234a804f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_f185aa1d-d1ec-4ed1-a076-ecc5d0ccb5f3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_0b7e1ba3-4ccb-44cf-abc2-4e6885b4808f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_e18b7f40-a493-44d5-848f-f37c36107957">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_21b7ed2c-29c6-4f8d-bc63-c8f7be2b7922">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_1b315643-1c3a-4572-8a39-adc5f11f3336">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_09dea41b-3a2e-4bc0-ac07-e0b0b3e8bed7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_08d81a0d-4cd8-4c42-825a-3d993991c768"
      id="F_f1e7b805-ca0d-4a20-9dd2-5c063de1d472">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;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;35,337,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_08d81a0d-4cd8-4c42-825a-3d993991c768"
      decimals="0"
      id="F_bf498f66-df20-408d-8598-b9c00ace7aae"
      unitRef="U_USD">35337000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
