<?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_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-19</startDate>
            <endDate>2025-09-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_13312a2d-652a-4bd4-9c48-5c1123c27af1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_eeedeeba-7a58-49a3-a1c0-936a6f4f8fd3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_608826d2-0ac2-46c6-ba51-594874960c2e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_a0a770af-4bd8-4406-9ff7-ad927a5130cf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_36a8094b-a835-49f2-969d-27f76333d1e3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_62c1eb1f-786c-4e85-b297-4751a7cb2cfc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_29795aa8-a988-44a1-98f0-ae89551f4a9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_20590256-0d44-489f-9078-eaf94496817c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_0376870b-3ee0-4965-98dc-db72e570eeb3">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      id="F_62177944-59ab-4bbb-888c-6fb9987765c5">&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;8,585,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_ae9d2d73-1a0c-4b4f-9451-98016a9b48d9"
      decimals="0"
      id="F_b8dfa211-b607-4ea5-a324-be1c9e3a1bb2"
      unitRef="U_USD">8585000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
