<?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_6e27ddd1-3b36-4b5a-b37c-87855b66216f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_d02f4b4b-9d33-44bb-aabd-7f68d6e18667">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_267a680f-610a-4e4a-a2c2-fbc668d2344b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_bf33c9ad-023a-477b-a2b6-767b22b0ff48">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_200ea3cc-60c5-4e80-ba32-cd5950a25b2d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_aab92c74-05c7-49cc-b23b-ff7bc126f61c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_5ab2890d-edfd-447a-b912-edac636b6144">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_343fceda-429e-450e-9742-149c2071b752">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_58f59b90-c56b-41a6-b28f-0ffde9f2a571">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_5d6237ce-d223-4d9d-b4f0-6bf467316931">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      id="F_eb7006d9-7c10-429b-a05c-6f91ed572d3b">&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;357,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_6e27ddd1-3b36-4b5a-b37c-87855b66216f"
      decimals="-3"
      id="F_78046e34-8f7b-43d5-af90-37fc37521ffc"
      unitRef="U_USD">357000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
