<?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_ef370213-2b54-4cb2-a361-148d779b0478">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-14</startDate>
            <endDate>2025-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_abf4d1b5-7eb2-455b-a09c-2459eb579917">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_2921f7f5-d7cb-401d-ae40-2c5b2d37e5c3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_99c506f4-a773-456d-a28f-4b52b1848f1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_90c023bf-6e20-4396-9ebb-b774694d7b75">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_2f4a5cfc-1f6b-4d81-a9eb-64d09f07f1b1">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_ff7c1063-8218-4c76-b2c1-2ee577eae4ed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_608a8f19-e72b-4494-af0b-a844982fc5c4">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_d4445321-12f9-4099-b6b8-35bbcad84bdb">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_2e3d392f-ce07-40cd-90fa-e66d735384b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ef370213-2b54-4cb2-a361-148d779b0478"
      id="F_ee090fce-9ecb-40ba-ad40-466dfdbab3a9">&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;14,350,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_ef370213-2b54-4cb2-a361-148d779b0478"
      decimals="0"
      id="F_8427a1f1-9559-4c53-88c0-47203d2d7840"
      unitRef="U_USD">14350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
