<?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_f0be9ece-cc8f-4509-9214-ad88a43f9d53">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_1b7f539b-917c-41b7-b708-00f12102584b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_7113a450-7925-4423-a39f-9b0b9721fcdd">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_3ea52cc1-6d1e-4615-afad-badae748117b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_28ff8bdd-cc25-446f-a850-59bf5f89fa0a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_5b97022f-a9c2-4408-8ee5-621de774707e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_bd59ef35-f487-47de-b9ce-0a5d971f2cf8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_f1e900dc-568b-47d1-b1cb-ace23392985f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_8ca5f832-3601-4f37-bb4e-1358e2bc5095">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_111d19c6-abf6-46a2-a47e-b8203595d1d4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      id="F_9b1257da-7528-4ff9-b517-0e6acba9b8f8">&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;653,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_f0be9ece-cc8f-4509-9214-ad88a43f9d53"
      decimals="0"
      id="F_94cae3cd-3859-4ecb-b14a-a075f083db83"
      unitRef="U_USD">653000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
