<?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_2c599e40-812f-41f5-ac7a-4114c4b8c9f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-01</startDate>
            <endDate>2025-12-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_ebf90005-eea1-4565-a324-e89b9ae2db2d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_69293bf2-50d4-4cb8-a342-b4f32e1ae49d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_4c443ec1-80c2-4492-8b85-d07c56c901f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_ba8d17b5-bae3-4212-97a6-412d4d3e6859">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_6efe5b1b-e8a5-4407-84fb-bf0ad72bba0b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_98dc82b8-5a9f-490a-9746-559ecd54cbd5">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_21c4e930-e4cd-4157-bef1-68dbe94b209e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_29938f9d-d7d7-4322-9888-bc41b958dde3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_c6e75df4-d764-4f61-9dab-65b01eed58aa">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      id="F_8ad0f44c-529e-4970-92fc-50e46ab1c225">&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;1,500,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_2c599e40-812f-41f5-ac7a-4114c4b8c9f3"
      decimals="0"
      id="F_43e630e6-c60e-471a-9a64-cc81de2b164f"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
